Question: Follow the procedure and requirements below: 1 . Create two new program files named ras.c and ras.h . 2 . Read through temp _ (

Follow the procedure and requirements below: 1. Create two new program files named ras.c and ras.h.2. Read through temp_(s)ensor.c, temp_(s)ensor.h, and temp_(s)ensor_(a)sm.asm. Use them as templates to create the contents of ras.c and ras.h. You can write all the functions in C.(In the bonus part, you will rewrite the ISR function in assembly.)3. You must use interrupt for RAS (no( I)/(O) polling).4. Revise lab6_(m)ain.c to print out RAS readings on terminal. The starter code prints the temperature reading every four seconds. With your changes, the system should print temperature RAS readings alternately every two seconds. 5. The system should print the RAS reading as an integer to show the angular position of the knob. If the knob is turned counter-clockwise all the way, the printed reading should be 0. If the knob is turned clockwise all the way, the printed reading should be 180. See following as an example. 6. See the following for more information you may need in the programming.

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 Programming Questions!