Question: Exercise 1 1 . 0 The state machine shown in state _ machine _ tut 1 1 . png implements a serial command parser

Exercise 11.0
The state machine shown in "state_machine_tut11.png" implements a
serial command parser with the following functionality:
Start character: 'a'
Escape character: 'b'
Commands :
'c' turn on display
'd' turn off display
'e' display payload byte in hexadecimal
Command 'e' is followed by a payload byte of one character and a
checksum byte which should be equal to the payload byte plus one.
On receipt of a valid command, the command parser responds with
"ACK
".
On receipt of an invalid command (including a failed checksum) the
command parser responds with "NACK
".
TASK: Complete the implementation of this serial command parser below.
You can use the following stdio functions to access the serial
interface:
getchar()
printf()
The following functions provided by "qutyio.h" can be used to control
the display:
display_on()
display_off()
display_hex()
 Exercise 11.0 The state machine shown in "state_machine_tut11.png" implements a serial

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!