Question: TASK: Your task is to write code which handles a sequence of input characters from the UART interface, and responds with the output specified below.
TASK:
Your task is to write code which handles a sequence of input characters
from the UART interface, and responds with the output specified below.
On receipt of the character sequence:
"foo" your program should print
"bar" your program should print
"foobar" your program should not print either or as specified
above, but should instead print a linefeed
character.
NOTE:
It is strongly recommended that you design a state machine to complete
this task.
Your solution should use a baud rate of and N frame format. Your
solution MUST NOT use qutyio.o or qutyserial.o
EXAMPLES:
INPUT: foo.bar.foo.barfoobarfood
OUTPUT:
START
END
INPUT: barsfoosbarforbarfoobarrforfoobarfoobarfood
OUTPUT:
START
END
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
