Question: Write a C program that will do the following: 1. Send Ready: message from the dragon12 board to the serial terminal in the computer
Write a C program that will do the following: 1. Send "Ready:" message from the dragon12 board to the serial terminal in the computer using the serial communication interface in the HCS12. 2. Wait until the user pushes a SW5. 3. Once pushed, the program will make a random delay between 1 to 3 seconds. 4. After that delay, your program will turn on LED 0 and make a tone (500 Hz) on the speaker. 5. Once the user pushes SW2, the tone should stop and LED O should go off. 6. Your program will then calculate the time interval in millisecond starting from turning on LED O until pushing SW2. 7. Send "Your Time Reaction is: T ms" to the serial terminal in the computer where T represents that reaction time.
Step by Step Solution
3.33 Rating (153 Votes )
There are 3 Steps involved in it
include hide f h common defines and macros include der iv ative h derivative specific definit... View full answer
Get step-by-step solutions from verified subject matter experts
