Can flexible data-rate (fd) protocol module (116 pages)
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.
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 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...
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™...
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...
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...
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.
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...
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...
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...
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...
• 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.
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...
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...
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...
Need help?
Do you have a question about the PICDEM 2 Plus and is the answer not in the manual?
Questions and answers