Write a C program that will do the following: 1. Send Ready: message from the dragon12...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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. 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.
Expert Answer:
Answer rating: 100% (QA)
include hide f h common defines and macros include der iv ative h derivative specific definit... View the full answer
Related Book For
Posted Date:
Students also viewed these computer engineering questions
-
Write a C program that waits for 14 machine cycles in Normal mode. Generates a square wave of 50% duty cycle on PORTB.5 (High for 14 Machine Cycles & Low for 14 Machine Cycles)
-
Write a C program for this problem: FoodPanda delivery service wants to appraise their riders by adding increments to the basic salaries . The amount of increment depends upon the feedback points...
-
Write a C program in which we have three processes. One process will take command line input numbers and store them into shared memory. 2nd and 3rd processes will read from shared memory and print...
-
In your own words, define or explain the terms or symbols (a) (b) [ ]; (c) Spectator ion; (d) Weak acid.
-
The following data consist of the sales figures ( in millions of dollars) for a group of 20 firms. Construct a stem- and- leaf display for these data. Use a leaf unit equal to 100. 68351973 2820 5358...
-
A firm is considering several policy changes to increase sales. It will increase the variety of goods it keeps in inventory, but this will increase inventory by $10,000. It will offer more liberal...
-
Describe the duties of healthcare organizations, the CEO, and medical staff.
-
In an attempt to include all relevant information for decision-making purposes, Merimore Company estimated bad debts using the aging method. However, for external reporting purposes, the company...
-
Gross profit 464,000 Other income Provision for foreign exchange gain 84,000 Gain on sale of motor vehicle 28,000 Release of liability 32,000 Refund of excise duty 16,000 Investment income (gross)...
-
Pavement Corp. ("Pavernent) nas been operating sinoe 1398. Ht is now Docember 31, 2004, and Pavement is about to prepare consolidated finendial etetements for Favement and ts subeidiary. Sigur. Co...
-
Advise how IFRS requires gains or losses on remeasurement to be dealt with within the financial statements in the case of each of the following assets.
-
Outline the three major strategies pursued by Canadian businesses. What implications do they have for the HR functions within the firms? Illustrate your answer with suitable examples. What four...
-
As an HR professional, it is important to understand the overall makeup of an organization, especially company staff. Diversity is an ongoing concern for some organizations. There are employment laws...
-
What is the burden a plaintiff must prove in a reasonable accommodation case
-
Identify two companies, one that you believe pursues a low-cost strategy and another that pursues a differentiation strategy. Relying on personal knowledge, company annual reports, or articles in...
-
Simplify the expression. 9x+18 x + 2x
-
If an insurance policy covers individual losses up to $10,000 and has a deductible of $500, the insured will be paid how much in the event of a covered loss of $5,000?
-
The following table shows the rates of total return in successive years from 2004 to 2008 for the Sprott Canadian Equity Fund and for the benchmark Toronto Stock Exchange S&P/TSX Composite Index. By...
-
How can you tell from the root locus if a system is unstable?
-
For the system shown in Figure P4.8, a step torque is applied at 1 (t). Find: a. The transfer function, G(s) = 2 (s)/T(s) b. The percent overshoot, settling time, and peak time for 2 (t). ff 2...
-
Repeat Problem 48 using MATLAB. Data From Problem 48: Find the closed-loop transfer function of the Unmanned Free-Swimming Submersible vehicles pitch control system shown on the back endpapers...
-
What are some of the issues that should be considered when conducting marketing research?
-
Why do organizations conduct marketing research?
-
What are the different methods of conducting marketing research?
Study smarter with the SolutionInn App