ECE473 Lab5 (2022): Purpose: Using timer/counters 1 and 3 Using the analog comparator to trigger the capture register Using the bandgap reference as one analog comparator input Building an constant current source Project Specification: *Write code to implement a capacitance meter using the skeleton file as a template. The range of values to measure should be roughly 100pf to 1uF. The value of the cap to be measured should be displayed on the LCD display with one decimal point. The display will show capacitance in nanofarads. Leading zero suppression should be implemented.. *Build a simple constant current source (~500uA) to charge the capacitor until its voltage reaches the bandgap reference voltage of 1.23V. *Blink the PORTB bit zero LED to show that measurements are running. *When the measurement is out of range (capacitor is too big) show a display of ----.- nF cap on the LCD. When the cap is too small, you can display your lowest value measurable (probably 0.1nF). Before Lab: *Build the current source and check with a multimeter. *You will need: 1, 10K resistor 1, 100K resistor 1, 1K resistor 1, 2N4403, BJT 1, OPAMP, LMC6032 or equiv. Testing: *Three caps will be measured to determine correct function; 0.1uF, .062uF, and 10,000pf. This will be a live demo given to the TAs. Turn into COE TEACH: A single file with your lab5.c code. Grading: *Circuit function +90% (live demo) -performs as expected, with reasonable accuracy -flickering LCD display -deduct 5% -measurement is inaccurate. -deduct 5% -no leading zero suppression -deduct 5% *Documentation +10% -poorly written code -deduct 10% Lab weighting = 0.20