Microchip Technology Explorer 16 User Manual
Microchip Technology Explorer 16 User Manual

Microchip Technology Explorer 16 User Manual

Hide thumbs Also See for Explorer 16:
Table of Contents

Advertisement

Quick Links

Explorer 16 Development Board
User's Guide
© 2005 Microchip Technology Inc.
DS51589A

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Explorer 16 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Microchip Technology Explorer 16

  • Page 1 Explorer 16 Development Board User’s Guide © 2005 Microchip Technology Inc. DS51589A...
  • Page 2 Smart Serial, SmartTel, Total Endurance and WiperLock are trademarks of Microchip Technology Incorporated in the U.S.A. and other countries. SQTP is a service mark of Microchip Technology Incorporated in the U.S.A. All other trademarks mentioned herein are property of their respective companies.
  • Page 3: Table Of Contents

    1.3 What’s in the Kit ..................... 7 1.4 Explorer 16 Development Board Functionality and Features ......8 1.5 Using the Explorer 16 Out of the Box ............. 9 1.6 Explorer 16 Development Board Demonstration Programs ......10 1.7 Reference Documents .................. 10 Chapter 2.
  • Page 4 Explorer 16 Development Board User’s Guide NOTES: © 2005 Microchip Technology Inc. DS51589A-page iv...
  • Page 5: Preface

    • Customer Support • Document Revision History DOCUMENT LAYOUT This document describes how to use the Explorer 16 Development Board as a development tool to emulate and debug firmware on a target board. The manual layout is as follows: • Chapter 1. “Introducing the Explorer 16 Development Board” provides a brief overview of the Explorer 16 Development Board, its features and its uses.
  • Page 6: Documentation Conventions

    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. © 2005 Microchip Technology Inc. DS51589A-page 2...
  • Page 7 For the latest information on using the Explorer 16 Development Board, read the Readme for Explorer 16 Development Board.txt file (an ASCII text file) at the root level of the Explorer 16 CD-ROM. The Readme file contains update information and known issues that may not be included in this user’s guide.
  • Page 8: Mplab Ide Simulator, Editor User's Guide

    Microchip consultant program member listing • Business of Microchip – Product selector and ordering guides, latest Microchip press releases, listing of seminars and events, listings of Microchip sales offices, distributors and factory representatives © 2005 Microchip Technology Inc. DS51589A-page 4...
  • Page 9 Explorer 16 Development Board User’s Guide DEVELOPMENT SYSTEMS CUSTOMER CHANGE NOTIFICATION SERVICE Microchip’s customer notification service helps keep customers current on Microchip products. Subscribers will receive e-mail notification whenever there are changes, updates, revisions or errata related to a specified product family or development tool of interest.
  • Page 10 Preface NOTES: © 2005 Microchip Technology Inc. DS51589A-page 6...
  • Page 11: Chapter 1. Introducing The Explorer 16 Development Board

    As provided, the development board works as a demo board right from the box, and also has the ability to extend its functionality through modular expansion interfaces. The Explorer 16 board supports MPLAB ICD 2 for full emulation and debug capabilities, and also allows 3V controllers to interface with 5V peripheral devices.
  • Page 12: Explorer 16 Development Board Functionality And Features

    Introducing the Explorer 16 Development Board EXPLORER 16 DEVELOPMENT BOARD FUNCTIONALITY AND FEATURES A layout of the Explorer 16 Development Board is shown in Figure 1-1. The board includes these key features, as indicated in the diagram: 1. 100-pin PIM riser, compatible with the PIM versions of all Microchip PIC24F/24H/dsPIC33F devices 2.
  • Page 13: Using The Explorer 16 Out Of The Box

    EXPLORER 16 DEVELOPMENT BOARD LAYOUT USING THE EXPLORER 16 OUT OF THE BOX Although intended as a development platform, the Explorer 16 board may also be used directly from the box as a demonstration board for PIC24 and dsPIC33F devices. The programs discussed in Chapter 3.
  • Page 14: Explorer 16 Development Board Demonstration Programs

    PIC24FJ128GA010 EXPLORER 16 DEVELOPMENT BOARD DEMONSTRATION PROGRAMS The preprogrammed example code on the PIMs has been included on the Explorer 16 CD-ROM for future reference. All project files have been included, so that the code may be used directly to restore a PIM to its original state (i.e., if the sample device has been reprogrammed with another program), or so the user may use the tutorial code as a platform for further experimentation.
  • Page 15: Chapter 2. Explorer 16 Programming Tutorial

    EXPLORER 16 DEVELOPMENT BOARD USER’S GUIDE Chapter 2. Explorer 16 Programming Tutorial INTRODUCTION This chapter is a self-paced tutorial to get you started using the Explorer 16 Development Board. HIGHLIGHTS Items discussed in this chapter include: • Tutorial Overview • Creating the Project •...
  • Page 16: Creating The Project

    Tutorial for the project files for this tutorial (C:\Tutorial is assumed in the instructions that follow). From the Example Code\Tutorial Code directory on the Explorer 16 Development Kit Software CD-ROM, copy all of the source files into this folder.
  • Page 17 Explorer 16 Development Board User’s Guide FIGURE 2-2: SELECTING THE TOOLSUITE 2.4.2 Select Language Toolsuite 1. From the Active Toolsuite drop-down list, select Microchip C30 Toolsuite. This toolsuite includes the assembler and linker that will be used. 2. In the Toolsuite Contents combo box, select MPLAB C30 Compiler (pic30-gcc.exe).
  • Page 18 Explorer 16 Programming Tutorial FIGURE 2-3: NAMING YOUR PROJECT 2.4.3 Name Your Project 1. In the Project Name text box, type “MyProject”. 2. In the Project Directory box, click Browse... and navigate to C:\Tutorial to place your project in the Tutorial folder.
  • Page 19 Explorer 16 Development Board User’s Guide 2.4.4 Add Files to Project 1. From the list of folders on the PC, locate the C:\Tutorial folder. 2. Select the source (.c) and header (.h) files. Click Add >> to include the file in the project.
  • Page 20: Building The Code

    Explorer 16 Programming Tutorial ® FIGURE 2-6: MPLAB IDE WORKSPACE Project Window Source Code Window Output Window BUILDING THE CODE In this project, building the code consists of compiling the source files to create an object file, MyProject.o, then linking the object file to create the MyProject.hex and MyProject.cof output files.
  • Page 21: Build Options

    Explorer 16 Development Board User’s Guide FIGURE 2-7: BUILD OPTIONS 2.5.1 Identify Assembler Include Path 1. Select the General tab. 2. Click Suite Default. This tells the environment where to find the library files. 3. Select the MPLAB LINK30 tab to view the linker settings (Figure 2-8).
  • Page 22 Explorer 16 Programming Tutorial ® FIGURE 2-8: MPLAB LINK30 BUILD OPTIONS 2.5.2 Build the Project From the menu bar of the main MPLAB IDE window, select Project > Make . The Build Output window displays (Figure 2-9). Observe the progress of the build. When the “BUILD SUCCEEDED” message displays, you are ready to program the device.
  • Page 23: Programming The Device

    Configuration Bits window in MPLAB IDE. The PIC24 Explorer 16 tutorial code already includes configuration macros in the source code itself. It is only necessary to confirm that the following macros are in place near the top of the PIC24ExplDemo.c file:...
  • Page 24 Connect and Enable MPLAB ICD 2 1. Connect the MPLAB ICD 2 module to the PC with the USB cable. 2. Connect the MPLAB ICD 2 to the Explorer 16 Development Board with the short RJ-11 cable. 3. Apply power to the Explorer 16 board.
  • Page 25: Programming The Device

    Explorer 16 Development Board User’s Guide 2.6.3 Program the Device 1. From the Debugger menu, select Program to program the part. The Output window (Figure 2-12) displays the program steps as they occur. 2. Observe the results of the programming. When “MPLAB ICD 2 Ready” displays, the device is programmed and ready to run.
  • Page 26 Explorer 16 Programming Tutorial NOTES: © 2005 Microchip Technology Inc. DS51589A-page 22...
  • Page 27: Chapter 3. Explorer 16 Tutorial Programs

    EXPLORER 16 DEVELOPMENT BOARD USER’S GUIDE Chapter 3. Explorer 16 Tutorial Programs INTRODUCTION This chapter provides a high-level overview of the PIC24 and dsPIC33F firmware programmed during the tutorial exercise in the previous chapter. PIC24 TUTORIAL PROGRAM OPERATION The PIC24 tutorial program is made up of three components which are individually displayed on the LCD.
  • Page 28 Explorer 16 Tutorial Programs Pressing S4 at this point exits Clock/Calendar mode and returns the device to the PIC24 Features mode. The data that is sent to the LCD is also sent to the RS-232 serial port using the UART.
  • Page 29: Dspic33F Tutorial Program Operation

    RP5. The LCD is driven via the port pins. The program flow is shown in Figure 3-2. In addition to the tutorial, the Explorer 16 CD also provides code examples to demon- strate higher level processing requirements, such as DMA, digital filters and Fast Fourier Transforms (FFT).
  • Page 30: Dspic33F Tutorial Program Flowchart

    Explorer 16 Tutorial Programs FIGURE 3-2: dsPIC33F TUTORIAL PROGRAM FLOWCHART Power-up Display “dsPIC33 Demo” “Press S3 to cont” Is S3 pressed? Initialize Timer1 Display “Time 00:00:00” “R6 = 0.00 VDC” Initialize A/D Converter Update time? Convert Time of Day to Decimal and...
  • Page 31: Chapter 4. Explorer 16 Development Hardware

    This chapter provides a more detailed description of the hardware features of the Explorer 16 Development Board. HARDWARE FEATURES The key features of the Explorer 16 board are listed below. They are presented in the order given in Section 1.4 “Explorer 16 Development Board Functionality and Features”, Figure 1-1.
  • Page 32: Icd Connector

    The Lumex LCM-SO1062 (populated at LCD4) is a 5V LCD with TTL input, and is used in the initial version of the Explorer 16 board. The Tianma TM162JCAWG1 (populated at LCD1) is a 3V LCD; it is anticipated to be used in future versions of the board.
  • Page 33: Oscillator Options

    Here 4.2.8 Graphic LCD The Explorer 16 also has a footprint and layout support for the Optrex 128 x 64 dot-matrix graphic LCD (part number F-51320GNB-LW-AB) and associated circuitry. This is the same display used in Microchip’s MPLAB PM3 programmer.
  • Page 34: Crossover Connections

    4.2.16.1 CROSSOVER CONNECTIONS FOR SPI AND UART The PICtail Plus interface allows two Explorer 16 boards to be connected directly to each other without any external connector. This provides 1-to-1 connection between the microcontrollers on the two boards, an interface that works well for many types of peripherals (I C, PMP, etc.).
  • Page 35: Explorer 16 Development Board

    Control Pin RB13 Control Pin RB12 Pin State U1RX U1TX U1CTS U1RTS SDI1 SDO1 Note: When connecting SPI and UART peripherals on two Explorer 16 boards, use crossover connection on only one of the boards. © 2005 Microchip Technology Inc. DS51589A-page 31...
  • Page 36 Explorer 16 Development Hardware NOTES: © 2005 Microchip Technology Inc. DS51589A-page 32...
  • Page 37: Appendix A. Explorer 16 Development Board Schematics

    EXPLORER 16 DEVELOPMENT BOARD USER’S GUIDE Appendix A. Explorer 16 Development Board Schematics INTRODUCTION This section provides detailed technical information on the Explorer 16 board. DEVELOPMENT BOARD BLOCK DIAGRAM FIGURE A-1: HIGH-LEVEL BLOCK DIAGRAM OF THE EXPLORER 16 DEVELOPMENT BOARD 16x2 LCD Display +3.3V and...
  • Page 38: Development Board Schematics

    Explorer 16 Development Board Schematics DEVELOPMENT BOARD SCHEMATICS FIGURE A-2: EXPLORER 16 BOARD SCHEMATIC, SHEET 1 OF 8 (PIM SOCKET) 100-Pin PIM © 2005 Microchip Technology Inc. DS51589A-page 34...
  • Page 39 Explorer 16 Development Board User’s Guide FIGURE A-3: EXPLORER 16 BOARD SCHEMATIC, SHEET 2 OF 8 (BOARD MOUNTED PIC24FJ128GA010 MCU, WHEN INSTALLED) .1 μF 10 μF PIC24FJ128GA010 © 2005 Microchip Technology Inc. DS51589A-page 35...
  • Page 40: Mplab Icd 2

    Explorer 16 Development Board Schematics ® FIGURE A-4: EXPLORER 16 BOARD SCHEMATIC, SHEET 3 OF 8 (MPLAB ICD 2, JTAG, PICkit™ 2 AND PICtail™ Plus CONNECTORS) ® MPLAB ICD 2 Connector .1 μF PICkit™ 2 Programmer © 2005 Microchip Technology Inc.
  • Page 41 Explorer 16 Development Board User’s Guide FIGURE A-5: EXPLORER 16 BOARD SCHEMATIC, SHEET 4 OF 8 (PICtail™ PLUS EDGE AND SOCKET CONNECTORS) © 2005 Microchip Technology Inc. DS51589A-page 37...
  • Page 42 Explorer 16 Development Board Schematics FIGURE A-6: EXPLORER 16 BOARD SCHEMATIC, SHEET 5 OF 8 (SWITCHES, MULTIPLEXERS AND POTENTIOMETER) .1 μF .1 μF .1 μF © 2005 Microchip Technology Inc. DS51589A-page 38...
  • Page 43 Explorer 16 Development Board User’s Guide FIGURE A-7: EXPLORER 16 BOARD SCHEMATIC, SHEET 6 OF 8 (EEPROM, TEMPERATURE SENSOR, LEDs, OSCILLATOR CIRCUITS AND POWER SUPPLY) .1 μF 25LC256 TC1047A .1 μF 8 MHz 32 kHz 22 pF 22 pF 22 pF 22 pF .1 μF...
  • Page 44 Explorer 16 Development Board Schematics FIGURE A-8: EXPLORER 16 BOARD SCHEMATIC, SHEET 7 OF 8 (USB AND UART SUBSYSTEMS) PIC18F4550_QFN44 .1 μF .1 μF 20 MHz .1 μF .1 μF 22 pF 22 pF .1 μF .1 μF .1 μF .1 μF...
  • Page 45 Explorer 16 Development Board User’s Guide FIGURE A-9: EXPLORER 16 BOARD SCHEMATIC, SHEET 8 OF 8 (LCDs AND OPTIONAL LCD CONNECTIONS) Alternative LCD Configurations: 4.7 μF 4.7 μF 4.7 μF 4.7 μF 1 μF .1 μF 1 μF 1 μF 1 μF...
  • Page 46 Explorer 16 Development Board Schematics NOTES: © 2005 Microchip Technology Inc. DS51589A-page 42...
  • Page 47: Appendix B. Updating The Usb Connectivity Firmware

    1. If not done already, download the latest PICkit 2 operating system software from the Microchip web site. 2. On the Explorer 16 board, install a jumper between pins 9 and 10 of the JTAG connector (J13). 3. Press and release MCLR (S1). This places the USB subsystem in Bootloader mode and makes it ready to accept new code.
  • Page 48: Other Usb Firmware Updates

    OTHER USB FIRMWARE UPDATES It is anticipated that various USB connectivity firmwares will be made available in the future. Users are encouraged to periodically check the Microchip web site (www.microchip.com) for new and revised code. © 2005 Microchip Technology Inc. DS51589A-page 44...
  • Page 49: Index

    Flowchart ............24 Layout ..............9 PICtail Plus Edge Connectors Schematics ..........34 – Use with Crossover Serial Explorer 16 Programming Tutorial ......11 Connections........30 Building the Code ..........16 Project ..............12 Creating the Project .......... 12 Project Wizard............12 Programming the Device ........
  • Page 50: Worldwide Sales And Service

    Fax: 949-462-9608 Tel: 886-2-2500-6610 Fax: 86-29-8833-7256 San Jose Fax: 886-2-2508-0102 Mountain View, CA Thailand - Bangkok Tel: 650-215-1444 Tel: 66-2-694-1351 Fax: 650-961-0286 Fax: 66-2-694-1350 Toronto Mississauga, Ontario, Canada Tel: 905-673-0699 Fax: 905-673-6509 10/31/05 © 2005 Microchip Technology Inc. DS51589A-page 46...
  • Page 51 Click below to find more Mipaper at www.lcis.com.tw Mipaper at www.lcis.com.tw...

Table of Contents