Question: Part 1 : Knob Input Overview. In this part, you will extend the system to show the readings from the RAS attached to J 5

Part 1: Knob Input Overview. In this part, you will extend the system to show the readings from the RAS attached to J5 of the Grove baseboard. You will first create a set of driver functions for RAS, and then revise lab6_main.c to use the RAS and display RAS readings. Follow the procedure and requirements below: 1. Create two new program files named ras.c and ras.h.2. Read through temp_sensor.c, temp_sensor.h, and temp_sensor_asm.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_main.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.

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!