User manual

2015 Microchip Technology Inc. DS40001812A-page 29
EXPLORER 8 DEVELOPMENT BOARD
USERS GUIDE
Chapter 3. Tutorial Program
The tutorial program is pre-programmed into the PIC16F1719 that comes with the
Explorer 8 demo board. This program, which can be downloaded from the Microchip
web site (www.microchip.com/explorer8), is built using the MPLAB X IDE and the
MPLAB
XC8 Complier. It also utilizes the macros, drivers and initializers generated by
the MPLAB
®
Code Configurator (MCC). MCC is a plug-in for MPLAB X IDE that
generates seamless, easy to understand drivers and initializers that are inserted into
your project. For more information on MCC, visit www.microchip.com/mcc.
3.1 TUTORIAL PROGRAM OPERATION
The tutorial program consists of three components: Voltmeter, LED Toggle and LED
dimming. The flowchart in Figure 3-1 illustrates the button navigation through the entire
program.
The different components are displayed on the LCD and the LEDs. The data sent to the
LCD is simultaneously transmitted by the EUSART module of the device to the
USB-to-UART/I
2
C converter and can, therefore, be viewed on the host PC monitor
through a serial terminal program (see
Section 2.4 “Connecting to Host PC for USB
Communication”
). Make sure that the terminal program is configured to 9600 Baud,
8-bit Data, No Parity and 1 Stop Bit. For the board supply and jumper configurations,
see
Section 2.1 “Explorer 8 with Pre-Programmed Device”.
FIGURE 3-1: TUTORIAL PROGRAM FLOWCHART
Power Up
Microchip
Explorer 8 Demo
Voltmeter
S1=Now S2=Next
Volts = x.xxV
S1=Exit
Toggle LEDs
S1=Now S2=Next
LEDs Toggle
S1=Exit
LED Dimming
S1=Now S2=Next
Turn POT R25
S1=Exit