Microchip Technology PICDEM 2 Plus User Manual
Microchip Technology PICDEM 2 Plus User Manual

Microchip Technology PICDEM 2 Plus User Manual

Hide thumbs Also See for PICDEM 2 Plus:

Advertisement

Quick Links

PICDEM™ 2 Plus
Demonstration Board
User's Guide
 2011 Microchip Technology Inc.
DS41584A

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the PICDEM 2 Plus and is the answer not in the manual?

Questions and answers

Summary of Contents for Microchip Technology PICDEM 2 Plus

  • Page 1 PICDEM™ 2 Plus Demonstration Board User’s Guide  2011 Microchip Technology Inc. DS41584A...
  • Page 2 Select Mode, Total Endurance, TSHARC, UniWinDriver, WiperLock and ZENA 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

    PICkit™ Connector ................. 32 A.10 Temperature Sensor ................32 A.11 Serial EEPROM ..................32 A.12 LCD ......................32 A.13 Sample Devices ..................33 A.14 Board Layout and Schematics ..............34 Worldwide Sales and Service ..................38  2011 Microchip Technology Inc. DS41584A-page 3...
  • Page 4 PICDEM™ 2 Plus Demonstration Board User’s Guide NOTES:  2011 Microchip Technology Inc. DS41584A-page 4...
  • Page 5: Preface

    Board and provides a brief description of the hardware. • Chapter 2. “Getting Started” – Goes through a basic step-by-step process for getting your PICDEM 2 Plus Demonstration Board up and running as a stand-alone board or with an ICE, ICD or PICkit™ programmer.
  • Page 6 Curly brackets and pipe Choice of mutually exclusive errorlevel {0|1} character: { | } arguments; an OR selection Ellipses... Replaces repeated text var_name [, var_name...] Represents code supplied by void main (void) user { ...  2011 Microchip Technology Inc. DS41584A-page 6...
  • Page 7 3 User’s Guide (DS51464) ® • MPLAB Plus User’s Guide (DS51028) ® ® IDE PICSTART • MPLAB ® ICE Emulator User’s Guide (DS51159) • MPLAB ® ICD 3 In-Circuit Debugger Quick Start Guide (DS51766)  2011 Microchip Technology Inc. DS41584A-page 7...
  • Page 8 • Programmers – The latest information on Microchip programmers. These include ® ® the MPLAB PM3 and PRO MATE II device programmers and the PICSTART Plus and PICkit™ 1 development programmers.  2011 Microchip Technology Inc. DS41584A-page 8...
  • Page 9 This board (DM163022-1) has been updated from the previous version Note: (DM163022).The user guide for the previous board version (DM163022) can be found online at the PICDEM 2 Plus web site (DS51275) www.Microchip.com/PICDEM2PLUS.  2011 Microchip Technology Inc. DS41584A-page 9...
  • Page 10 PICDEM™ 2 Plus Demonstration Board User’s Guide NOTES:  2011 Microchip Technology Inc. DS41584A-page 10...
  • Page 11: Introduction

    INTRODUCTION Thank you for purchasing the PICDEM™ 2 Plus Demonstration Board from Microchip Technology Incorporated. The PICDEM 2 Plus Demonstration Board is a simple board that demonstrates the capabilities of Microchip’s 8-bit, 18-, 28- and 40-pin PIC16FXXX, PIC16F1XXX, and PIC18 devices.
  • Page 12 14. Prototype area for user hardware 15. Expansion Header for PICtail™ daughter card connectivity or user access to MCU pins 16. Microchip TC74 thermal sensor FIGURE 1-1: PICDEM 2 PLUS DEMONSTRATION BOARD HARDWARE 9V BATTERY PICDEM™ 2 PLUS DEMO BOARD PICtail™...
  • Page 13: On-Board Jumper Configurations

    PICDEM™ 2 PLUS DEMONSTRATION BOARD JUMPER LOCATIONS 9V BATTERY PICDEM™ 2 PLUS DEMO BOARD SAMPLE DEVICES Two Flash devices are included. The device types may change, but will generally include PIC16 and PIC18 40-pin, DIP devices.  2011 Microchip Technology Inc. DS41584A-page 13...
  • Page 14: Sample Programs

    ICD 3 (programmer/debugger) or with a PICkit™ 3 (programmer/debugger). For each type of device (PIC16 or PIC18), demo source code (several .C and .H files) and compiled code (one .hex file) are provided.  2011 Microchip Technology Inc. DS41584A-page 14...
  • Page 15: Chapter 2. Getting Started

    PICDEM™ 2 PLUS DEMONSTRATION BOARD AS A STAND-ALONE BOARD – PREPROGRAMMED DEVICE The PICDEM 2 Plus Demonstration Board may be demonstrated immediately by following the steps listed below: • Place the preprogrammed sample device in the appropriate socket on the PICDEM 2 Plus Demonstration Board.
  • Page 16: Programming The Device

    If the code protection bit(s) have not been programmed, the on-chip program memory can be read out for verification purposes. PROGRAMMING THE DEVICE The PICDEM 2 Plus Demonstration Board supports the ability to program a device through multiple options. 2.2.1...
  • Page 17 Getting Started Connecting the PICkit programmer to the PICDEM 2 Plus Demonstration Board is quick and easy. • First connect the PICkit 3 as shown in Figure 2-1. • Make sure to connect the USB cable to the PICkit 3 and to the computer.
  • Page 18 DSCs with the powerful, yet easy-to-use graphical user interface of MPLAB Integrated Development Environment (IDE). Connecting the ICD 3 to the PICDEM 2 Plus Demonstration Board is quick and easy. • First connect the ICD 3 as shown in Figure 2-3.
  • Page 19 Getting Started FIGURE 2-4: CONNECTING AN ICD  2011 Microchip Technology Inc. DS41584A-page 19...
  • Page 20: Powering The Board

    External 9V Connector FIGURE 2-5: 9V EXTERNAL POWER SUPPLY The PICDEM 2 Plus Demonstration Board can be powered with an external 9V power supply. • Connect 9V power supply to a wall outlet. • Connect to board as shown in Figure 2-5.
  • Page 21 Power by Programmer FIGURE 2-7: 5V SUPPLIED BY PROGRAMMER The PICDEM 2 Plus Demonstration Board can also be powered with a PICkit or ICD programming device. • To power the device with a programmer go to either the Debuggger/Programmer tab.
  • Page 22 PICDEM™ 2 Plus Demonstration Board User’s Guide NOTES:  2011 Microchip Technology Inc. DS41584A-page 22...
  • Page 23: Chapter 3. Tutorial

    In case the device has been reprogrammed to a user’s unique code, the device can always be reprogrammed with the tutorial program if installed. For detailed information on the PICDEM 2 Plus hardware, please refer to Appendix A. “Hardware Detail”.
  • Page 24 • The LCD will display the current Key being played by the buzzer based upon the period. • Press RB0 to exit the buzzer function. Figure 3-3 shows an example of a signal supplied to the buzzer.  2011 Microchip Technology Inc. DS41584A-page 24...
  • Page 25 Tutorial FIGURE 3-5: BUZZER SIGNAL TABLE 3-1: BUZZER INDEX  2011 Microchip Technology Inc. DS41584A-page 25...
  • Page 26 B) Change the unit of measurement. 3.1.4 Temperature Fault If during I C communication a time-out Fault occurs the LCD display will indicate the Fault as shown in Figure 3-8. FIGURE 3-8: TEMPERATURE COMMUNICATION FAULT  2011 Microchip Technology Inc. DS41584A-page 26...
  • Page 27 RB0 within the increment minute’s function, the program will then allow the user to decrement the minutes, one minute at a time by pressing RA4. When the user presses RB0 again the program will return to the clock display screen.  2011 Microchip Technology Inc. DS41584A-page 27...
  • Page 28: Source Code And Application Notes

    SOURCE CODE AND APPLICATION NOTES In addition to the assembled tutorial program (hex files), source code used to create these hex files are included in the PICDEM 2 Plus installer. Both source code and related hex files are found in device-specific directories.
  • Page 29 RA4 = [F] RB0 = Exit RB0 = Now Clock Time 00:00:00 RA4 = Next RA4 = Set RB0 = Menu RB0 = Now RA:[HR] 00:00:00 RB:[MIN] TIME 00:00:00 *[HRS] 00:00:00 *[MIN] RA:++/-- RB:Next RA:++/-- RB:Next  2011 Microchip Technology Inc. DS41584A-page 29...
  • Page 30 PICDEM™ 2 Plus Demonstration Board User’s Guide NOTES:  2011 Microchip Technology Inc. DS41584A-page 30...
  • Page 31: Appendix A. Hardware Detail

    • PORTB pins are set high to light the LEDs. These LEDs may be disconnected from PORTB by removing jumper J6. • One red LED is provided to indicate whether there is power to the PICDEM 2 Plus Demonstration Board.
  • Page 32: Switches

    There are three control lines (RA3:RA1) and four data lines (RD3:RD0). A 5kΩ pot may be installed into R20 to adjust contrast on the LCD. If this is done, R5 and R6 need to be removed.  2011 Microchip Technology Inc. DS41584A-page 32...
  • Page 33: Sample Devices

    Hardware Detail A.13 SAMPLE DEVICES A sample part programmed with a simple program is included in the PICDEM 2 Plus Demonstration Board kit. Table A-1 lists the I/O features and port connections for each processor type. TABLE A-1: PORT CONNECTIONS...
  • Page 34: Board Layout And Schematics

    PICDEM™ 2 Plus Demonstration Board User’s Guide A.14 BOARD LAYOUT AND SCHEMATICS The following figures show the part layout (silkscreen) and schematics for the PICDEM 2 Plus Demonstration Board. FIGURE A-1: PICDEM™ 2 PLUS DEMONSTRATION BOARD PARTS LAYOUT  2011 Microchip Technology Inc. DS41584A-page 34...
  • Page 35 Hardware Detail FIGURE A-2: PICDEM™ 2 PLUS DEMONSTRATION BOARD SCHEMATIC  2011 Microchip Technology Inc. DS41584A-page 35...
  • Page 36 PICDEM™ 2 Plus Demonstration Board User’s Guide FIGURE A-3: PICDEM™ 2 PLUS PIC16F1937 PINOUT FIGURE A-4: PICDEM™ 2 PLUS PIC18F86K22 PINOUT  2011 Microchip Technology Inc. DS41584A-page 36...
  • Page 37 PICDEM™ 2 Plus Demonstration Board User’ Guide NOTES:  2011 Microchip Technology Inc. DS41584A-page 37...
  • Page 38: Worldwide Sales And Service

    Tel: 408-961-6444 Fax: 408-961-6445 China - Xian Tel: 86-29-8833-7252 Toronto Fax: 86-29-8833-7256 Mississauga, Ontario, Canada China - Xiamen Tel: 905-673-0699 Tel: 86-592-2388138 Fax: 905-673-6509 Fax: 86-592-2388130 China - Zhuhai Tel: 86-756-3210040 05/02/11 Fax: 86-756-3210049  2011 Microchip Technology Inc. DS41584A-page 38...
  • Page 39 Authorized Distribution Brand: Website: Welcome to visit www.ameya360.com Contact Us: Address: 401 Building No.5, JiuGe Business Center, Lane 2301, Yishan Rd Minhang District, Shanghai , China Sales: Direct +86 (21) 6401-6692 Email amall@ameya360.com 800077892 Skype ameyasales1 ameyasales2 Customer Service: Email service@ameya360.com Partnership:...

Table of Contents