91.305 home syllabus html pdf assignment 1 html pdf rev'd short syll. txt lecture 3 notes txt data sheets html uml305dev html pdf parts list pdf assembly html pdf assignment 2a html pdf assignment 2b html pdf assignment 3 main html pdf java setup html files zip bootloader html assignment 4 html pdf assignment 5 main html pdf files zip reading pdf assignment 6 html pdf invokevirtual pdf assignment 7 html pdf IA-32 manual pdf assignment 8 html pdf assignment 9 pdf review html pdf |
Assignment 4: Photocell Bargraph
The voltage divider generates an output voltage that is a function of the ratio of the two resistances in the legs of the converter. In this instance, the photocell is in the upper leg. Its resistance decreases with increasing light, causing a higher voltage result in this case. bset The full sample program repeatedly makes analog-to-digital conversions and prints to the serial line an ASCII representation of their hex value. How to Go About It To verify that your hardware is functioning properly, it is suggested that you first build the circuit and run the supplied demo program. Features Your solution must:
For extra credit, you can generate a graph of 0 31 asterisks using the upper five bits of the converted value. What to Turn in Hand in your assembled .lst file and a screen capture of your program in action. Last modified: Friday, 11-Oct-2002 13:33:53 EDT by |