Question: C Programming Only Requirement : You must demo your program on a dragon12-Light board. Goal : To become familiar with using the analog-to-digital converter units
C Programming Only
Requirement: You must demo your program on a dragon12-Light board.
Goal: To become familiar with using the analog-to-digital converter units on the board, using Dragon12-Light boards, as well to improve your programming skills.
Project: Write a C program to do the following:
Run this example program, LightSensor.txt
to see how the light sensor inputs are converted to binary data on the controller board; please understand this program completely.
Note the polling method used by the example program.
Modify this program to use interrupt method.
For an example of using interrupt method for ATD, please study Program 13-2C on page 453 of the textbook.
Test your program against the example program LightSensor.txt to make sure you get the same readings.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
