Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
include hide f h common defines and macros include der iv ative h derivative specific definit...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started