Explorer 8 Development Board User’s Guide 2015 Microchip Technology Inc.
Note the following details of the code protection feature on Microchip devices: • Microchip products meet the specification contained in their particular Microchip Data Sheet. • Microchip believes that its family of products is one of the most secure families of its kind on the market today, when used in the intended manner and under normal conditions. • There are dishonest and possibly illegal methods used to breach the code protection feature.
EXPLORER 8 DEVELOPMENT BOARD USER’S GUIDE Table of Contents Preface ........................................................................................................................... 5 Chapter 1. Overview 1.1 Introduction ................................................................................................... 11 1.2 Development Kit Contents ............................................................................ 11 1.3 Explorer 8 Development Board ...................................
Explorer 8 Development Board User’s Guide A.1.12 Pmod™ Connectors .................................................................................35 A.1.13 Configurable In-line Connector ................................................................35 A.1.14 LCD .........................................................................................................35 A.1.15 Sample Devices .......................................................................................36 A.
EXPLORER 8 DEVELOPMENT BOARD USER’S GUIDE Preface NOTICE TO CUSTOMERS All documentation becomes dated, and this manual is no exception. Microchip tools and documentation are constantly evolving to meet customer needs, so some actual dialogs and/or tool descriptions may differ from those in this document. Please refer to our web site (www.microchip.com) to obtain the latest documentation available. Documents are identified with a “DS” number.
Explorer 8 Development Board User’s Guide CONVENTIONS USED IN THIS GUIDE This manual uses the following documentation conventions: DOCUMENT CONVENTIONS Description Represents Examples Arial font: MPLAB® IDE User’s Guide Italic characters Referenced books Emphasized text ...is the only compiler...
Preface WARRANTY REGISTRATION Please complete the enclosed Warranty Registration Card and mail it promptly. Sending in the Warranty Registration Card entitles users to receive new product updates. Interim software releases are available at the Microchip web site. RECOMMENDED READING This user’s guide describes how to use the Explorer 8 Development Board. The following documents are available and recommended as supplemental reference resources.
Explorer 8 Development Board User’s Guide THE MICROCHIP WEB SITE Microchip provides online support via our web site at www.microchip.com. This web site is used as a means to make files and information easily available to customers.
Preface CUSTOMER SUPPORT Users of Microchip products can receive assistance through several channels: • Distributor or Representative • Local Sales Office • Field Application Engineer (FAE) • Technical Support Customers should contact their distributor, representative or field application engineer (FAE) for support. Local sales offices are also available to help customers. Technical support is available through the web site at: http://www.microchip.com/support.
Explorer 8 Development Board User’s Guide NOTES: DS40001812A-page 10 2015 Microchip Technology Inc.
EXPLORER 8 DEVELOPMENT BOARD USER’S GUIDE Chapter 1. Overview 1.1 INTRODUCTION The Explorer 8 Development Board is one of the latest development boards for evaluating and demonstrating the capabilities and features of Microchip’s 8-bit PIC® MCUs. This board supports 8/14/20/28/40-pin DIP and 44/64/80-pin PIM-mounted PIC MCUs.
Explorer 8 Development Board User’s Guide 1.3 EXPLORER 8 DEVELOPMENT BOARD The Explorer 8 Development Board has the following hardware features. Each feature’s number corresponds to the number in Figure 1-1, showing the feature’s location on the board: 1. MCP2221 USB-to-UART/I2C serial converter (U3) 2. 16x2 Character LCD (LCD1) 3. MCP23S17 I/O Expander for LCD Interface (U4) 4. Eight blue LEDs (D1 to D8). 5. Male header pins for attaching Plug-in-Modules (U1A) 6.
Overview FIGURE 1-1: EXPLORER 8 DEVELOPMENT BOARD 2 1 3 4 5 6 8 7 9 10 26 11 25 24 12 23 22 13 20 19 18 17 21 1.4 16 15 14 ON-BOARD JUMPER CONFIGURATIONS The Explorer 8 Development Board allows the user to connect or disconnect components from PIC MCU pins or from other on-board components through associated jumpers. Table 1-1 and Figure 1-2 provide details and examples for these connections.
Explorer 8 Development Board User’s Guide TABLE 1-1: Label 4 ON-BOARD JUMPERS DESCRIPTION AND SAMPLE CONFIGURATION (CONTINUED) Jumper/s J53, J55 J54, J56 Description Connects the microcontroller UART RX pin to the MCP2221 TX pin. E.g. RC7 is configured as the microcontroller RX pin. J53 J55 RB5 RC5 RC7 Connects the microcontroller UART TX pin to the MCP2221 RX pin. E.g. RC6 is configured as the microcontroller TX pin.
Overview TABLE 1-1: Label ON-BOARD JUMPERS DESCRIPTION AND SAMPLE CONFIGURATION (CONTINUED) Jumper/s Description Configuration MCU Interface to J35 mikroBUS(1) 9 J48 J49 J50 10 J41 J42 Connects the microcontroller SDO pin to the J35 mikroBUS MOSI (SPI Master Output Slave Input) pin. E.g. RC5 is configured as the microcontroller SDO pin. RC7 Connects the microcontroller SDI pin to the J35 mikroBUS MISO (SPI Master Input Slave Output) pin. E.g. RC4 is configured as the microcontroller SDI pin.
Explorer 8 Development Board User’s Guide TABLE 1-1: Label 16 Jumper/s J2 17 J51, J52 Description Configuration Selects whether to supply 5V power to the board via USB or the output of the 5V regulator. E.g. The board is USB-powered. USB +5V Connects the PGD and PGC pins of the PICkit™ 3, ICD 3 or REAL ICE™ to the PIC® MCU ICSPDAT and ICSPCLK, respectively for ICSP™ programming J52 J51 RB6 RB7 BRD +5V RA1 RA0 18 J61 Connects the LCD VDD pin to +5V supply.
Overview 1.5 SAMPLE DEVICES The Explorer 8 Development Board comes with a 40-pin PIC16F1719. 1.6 SAMPLE PROGRAMS The Explorer 8 Development Board demonstration program can be downloaded from the Microchip web site (www.microchip.com/explorer8). This Demo Code can be used with the included sample device and with a REAL ICE (In-Circuit Emulator), MPLAB ICD 3 (programmer/debugger) or with a PICkit 3 (programmer/debugger).The Demo code was developed using the MPLAB Code Configurator (MCC).
Explorer 8 Development Board User’s Guide NOTES: DS40001812A-page 18 2015 Microchip Technology Inc.
EXPLORER 8 DEVELOPMENT BOARD USER’S GUIDE Chapter 2. Getting Started The Explorer 8 Demo Board is very flexible and may be used in a variety of ways. This section provides the different configurations of the board, and the required tools and equipment for each of them. 2.1 EXPLORER 8 WITH PRE-PROGRAMMED DEVICE Several features of the Explorer 8 Demo Board can be demonstrated immediately by following the steps listed below: 1.
Explorer 8 Development Board User’s Guide TABLE 2-1: Jumper/s J37 JUMPER SETUP USING THE PRE-PROGRAMMED DEVICE Description Configuration Connect the 8 MHz Crystal to the device OSC2 pin to function as primary oscillator RA5 RA6 J51 For ICSP™ programming, connect the device to the PGD pin of PICkit™ 3, ICD 3 or REAL ICE™ RB7 RA0 J52 For ICSP programming, connect the device to the PGC pin of PICkit™ 3, ICD 3 or REAL ICE™ RB6 RA1 J54 For USB-to-UART communication RC4 RC6 J59 To send data to the L
Getting Started 2.2 BOARD WITH PIM ATTACHED DEVICES The Explorer 8 Development Board can also be used to demonstrate PIM-mounted 8-bit PIC microcontrollers. A Plug-in-Module (PIM) enables the attachment of 44/64/80-pin devices to the board. To attach a PIM, simply seat the PIM in the 84-pin, elevated male connectors as shown in Figure 2-1. FIGURE 2-1: 84-PIN HEADER FOR PLUG-IN-MODULE (PIM) Make sure that the device mounted on the PIM is supplied with the appropriate voltage. See Section 2.
Explorer 8 Development Board User’s Guide In meeting these requirements, the following items are to be taken into consideration: • Code development and debugging – The free MPLAB X IDE software development tool includes a debugger and several other software tools as well as a unified graphical user interface (GUI) for working with other Microchip and third-party software and hardware tools. • Assembler – The free MPLAB X IDE tool includes the MPASM™ assembler.
Getting Started 2.3.3 Programming the Microcontroller Program the device using an ICD 3, REAL ICE or PICkit 3. 1. Connect the ICD 3 or REAL ICE as shown in Figure 2-2. For PICkit 3, see Figure 2-3. 2. Setup the jumpers. In addition to the jumper settings listed in Section 2.1 “Explorer 8 with Pre-Programmed Device”, J51 and J52 should also be configured. See Figure 2-2. 3. Power-up the Explorer 8 Development Board (see Section 2.5 “Powering the Board”). 4. Open the project on MPLAB X IDE (see Section 2.3.
Explorer 8 Development Board User’s Guide FIGURE 2-4: PROJECT PROPERTIES WINDOW IN MPLAB® X IDE 6. Select the XC8 compiler under the Compiler Tool chain, if not already selected. 7. Under Hardware Tool, click ICD 3, REAL ICE or PICkit 3, depending upon the connected programmer. 8. Click Apply, and then OK. 9. To load the program to the PIC16F1719 device, click the Make and Program Device icon. 2.
Getting Started 2.4.1 USB-to-UART Interface The MCP2221 supports baud rates between 300 and 115200. It utilizes a set of commands to read and set the UART parameters during operation. It only supports eight Data bits, no Parity, and one Stop bit. The terminal program (e.g., Teraterm, Realterm, etc.) must be configured with the same settings. If the MCU is configured to communicate with the host PC via UART interface, jumpers J53, J54, J55 and J56 must be setup properly.
Explorer 8 Development Board User’s Guide 2.5 POWERING THE BOARD The Explorer 8 Development Board can be powered-up in two ways: External 9V DC supply and USB power. 2.5.1 External 9V Power Supply To power-up the board using an external 9V power supply: • Plug the 9V power supply to a wall outlet. • Connect the 9V power supply to the board through the barrel connector placed on the lower left corner of the board. • Place J2 in the position shown in Figure 2-6.
Getting Started 2.6 SELECTING VDD VALUES The Explorer 8 Development Board is capable of supplying 5V, 3.3V and variable supply voltages between 1.2 and 5V through dedicated on-board regulators. The variable supply voltage, called V_VAR (also equal to VDD), is used to power the device and the on-board components. 2.6.1 Varying the Device Voltage Figure 2-8 shows the jumper configuration for the three voltage settings.
Explorer 8 Development Board User’s Guide The Explorer 8 Development Board’s R20 and R19 resistors have their default values of 1 kΩ and 330Ω, respectively. Without R102 and R101 being inserted in parallel on the PIM board, VOUT = 1.25V(1 + 1 kΩ/330Ω) = 5.04V. To calculate a desired VOUT: 1. Solve for R2, given R1 = R19 = 330Ω. 2. Now knowing R2 and R20, solve for R102. 3.
EXPLORER 8 DEVELOPMENT BOARD USER’S 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).
Explorer 8 Development Board User’s Guide To select menu options, use the S1 and S2 buttons on the board (see Figure 3-2). FIGURE 3-2: BUTTON SWITCHES FOR MENU SELECTION When the board is powered up, a “Microchip Explorer 8 Demo” text is displayed on the LCD and sent to the serial terminal as well. After a few seconds, the program proceeds to the first component. 1.
Tutorial Program 3. LED Dimming Both the Complementary Output Generator (COG) and Analog-to-Digital Converter (ADC) modules are implemented in this mode. The COG produces a pulse-width modulated output whose duty cycle is determined by the measured ADC value across the R25 potentiometer. The COG output controls the brightness of the D6, D7 and D8 LEDs. FIGURE 3-6: LED DIMMING DISPLAY Turning the potentiometer clockwise increases the brightness of the LEDs while rotating it counterclockwise dims the LEDs.
Explorer 8 Development Board User’s Guide NOTES: DS40001812A-page 32 2015 Microchip Technology Inc.
EXPLORER 8 DEVELOPMENT BOARD USER’S GUIDE Appendix A. Hardware Details A.1 HARDWARE ELEMENTS A.1.1 Processor Sockets The Explorer 8 Development Board contains four processor sockets: • • • • 20-pin Socket – for 8/14/20-pin DIP microcontrollers 28-pin Socket – for 28-pin DIP microcontrollers 40-pin Socket – for 40-pin DIP microcontrollers 84-pin PIM Socket – for 44/64/80-pin PIM-mounted microcontrollers Only one device may be used at a time. Remove unnecessary devices before demonstrating your program.
Explorer 8 Development Board User’s Guide A.1.4 Micro USB Port A micro USB port is provided not just for powering the board but also for communications between the device and a host PC via USB. The micro USB cable included in the Explorer 8 Development Board Kit can be used to connect the board’s micro USB port to the host PC’s USB port. The on-board MCP2221 is a USB-to-UART/I2C serial converter that enables USB connectivity for devices with UART or I2C interfaces. Note: A.1.
Hardware Details A.1.10 PICtail™ and PICtail Plus Expansion Connectors The PICtail interface enables the Explorer 8 Development Board to be connected directly to available PICtail daughter board cards.
Explorer 8 Development Board User’s Guide A.1.15 Sample Devices A sample part programmed with a simple program is included in the Explorer 8 Development Board Kit. The device’s I/O features and port connections are listed in Table A-1. TABLE A-1: Device PIC16F1719 DS40001812A-page 36 SAMPLE DEVICE I/O FEATURES AND CONNECTIONS LEDs RB3:RB0 RD3:RD0 USB S1 S2 RC6 RB0 RA5 S3 LCD MCLR RC3 RC5 RA2 RB5 POT R25 RA0 ICD/ PICkit™ RB7 RB6 Y1 RA7 RA6 2015 Microchip Technology Inc.
Hardware Details A.2 BOARD LAYOUT AND SCHEMATICS FIGURE A-1: 2015 Microchip Technology Inc.
DS40001812A-page 38 2015 Microchip Technology Inc.
EXPLORER 8 DEVELOPMENT SCHEMATIC - 2 2015 Microchip Technology Inc.
DS40001812A-page 40 2015 Microchip Technology Inc.
Worldwide Sales and Service AMERICAS ASIA/PACIFIC ASIA/PACIFIC EUROPE Corporate Office 2355 West Chandler Blvd. Chandler, AZ 85224-6199 Tel: 480-792-7200 Fax: 480-792-7277 Technical Support: http://www.microchip.com/ support Web Address: www.microchip.