User manual

Table Of Contents
PICDEM
TM
Lab Development Board User’s Guide
DS41369A-page 74 © 2009 Microchip Technology Inc.
3. Copy/paste the code in Example 4-6 into the main() over the code from the
previous lab:
EXAMPLE 4-6: MAIN() CODE FOR COMPARATOR LAB 3
4. Compile the project. There should be no errors.
4.2.6.4 TESTING THE APPLICATION
Program the PIC16F690. Adjust the R1 potentiometer until the LEDs begin to light
displaying a binary value. Touching the thermistor should introduce heat, reduce the
frequency of oscillation and increase the binary count on the LED display. Introducing
cold to the thermistor should have the opposite effect thereby decreasing the binary
count.
The solution for this project is located in the
C:\PICDEM_Lab\Comparator_Lab\Comparator_Lab3\solution directory
.
Initialize(); //Initialize the relevant registers
while(1);