User manual

Table Of Contents
PICDEM
TM
Lab Development Board User’s Guide
DS41369A-page 90 © 2009 Microchip Technology Inc.
7. Copy/paste the code in Example 5-14 over the main() code from the previous
lab:
EXAMPLE 5-14: MAIN() CODE FOR ADC LAB 2
8. Compile the project. There should be no errors.
5.2.4.3 TESTING THE APPLICATION
Program the PIC16F690. An audible tone should emit from the speaker. Pinching the
thermistor should introduce body heat to the component thereby increasing the fre-
quency of the speaker output. Colder temperature sources applied to the thermistor
should reduce the speaker output frequency.
The solution for this project is located in the
C:\PICDEM_Lab\ADC_Labs\ADC_Lab2\solution directory.
Initialize(); //Initialize the relevant registers
while(1)
{
Get_Inputs();
Decide();
Do_Outputs();
Timing();
}