Microchip Technology MA180027 User Manual

Page of 66
PICDEM™ LCD 2 DEMONSTRATION
KIT USER’S GUIDE
 2010 Microchip Technology Inc.
DS51662C-page 17
Chapter 3.  Using the Demo Software
The demo programs are preprogrammed into the sample devices. Also, this program 
is included on the CD-ROM program disk for user reference. This demo program uses 
the functions or macros provided by the firmware LCD driver module to display the 
required characters, strings or icons on the LCD.
3.1
DEMO FIRMWARE OPERATION
The demo firmware is made up of four components, which are individually displayed on 
the LCD. The PIC microcontroller’s internal RC oscillator is used as the system clock 
source.
1.
Voltmeter (F1)
This mode uses the A/D module to measure the voltage of the R44 pot through 
analog channel AN0, and displays a voltage between 0.00V and 3.30V on the 
LCD using the LCD module. Voltage is continually updated until the mode is 
exited by pressing either the S1 or S2 switch.
2.
Thermometer (F2)
This mode uses the A/D module to measure the voltage of the thermistor R11 
through analog channel AN1, and converts to temperature both in Celsius and 
Fahrenheit and displays the temperature on the LCD using the LCD module. 
Temperature is continually updated until the mode is exited by pressing either 
the S1 or S2 switch.
3.
Clock (F3)
(1)
This mode uses the Timer1 module and a 32 kHz clock crystal. Once this mode 
is entered from the main menu, the Real-Time Clock will start counting from 
00:00:00. The S3 switch is used to increment minutes and the S4 switch is used 
to increment hours. To perform the increment operations, press and hold the 
switches. The clock keeps running continuously until the mode is exited by 
pressing either the S1 or S2 switch.
4.
Charge Pump and Software Contrast (F4)
(1)
This mode is available only for the PIC18F85J90 and PIC18F87J90 families of 
devices and uses the on-board charge pump and LCD voltage regulator. The 
LCD module is configured in Charge Pump mode and software contrast is 
achieved by either pressing S3 to increase the contrast or S4 to decrease the 
contrast until the mode is exited by pressing either the S1 or S2 switch. By exiting 
this mode, the Voltmeter mode is entered and retains the contrast level.
Note 1:
For low-power battery operation in JP17, remove jumper on V
CC
 and I/O 
and connect I/O and RB0.