User manual

2011 Microchip Technology Inc. DS41581A-page 17
FIGURE 2-2: DEMO APPLICATION SOFTWARE FLOW
On power-up, the PIC
®
device will first run through its initialize process. First, it will set
the device’s system clock to be configured for the custom set frequency. If no custom
preferences are set, the device will be set to the program default of 4 MHz.
Next, the program will run through the Low_Power()routine, where the devices I/O
ports are configured for their ideal low-current use settings. All unused interrupts are
disabled. All peripherals not currently used are disabled and the device is set up to
enter the lowest possible Sleep state upon execution of the SLEEP() command. The
LCD is then initialized. The backlight will turn on and the display will begin to show char-
acters. The LCD screen should welcome the user with the display “8-Bit XLP Demo
Board” for two seconds. The display will then change to show a clock set to 00:00:00.
This is the clock initial setup.