background image

PICDEM™ 2 Plus User’s Guide

DS51275B-page 8

 2004 Microchip Technology Inc.

FIGURE 3-1:

TUTORIAL PROGRAM FLOW CHART

Power-up

PICDEM™ 2 Plus

Voltmeter

RA4 = Next
RB0 = Now

Buzzer

Temperature

Clock

RA4 = Next
RB0 = Now

RA4 = Next
RB0 = Now

RA4 = Next
RB0 = Now

Volts = 0.33V

RB0 = Exit

Temp = 022°C

RB0 = Exit

RA4 = 3 presses

RA4 = 3 presses

Prd = 128 DC = 128
RA4 = ->

RB0 = ++

00.00.02

RA4 = Set RB0 = Menu

00.00.03

RA4 = ->

RB0 = ++

Summary of Contents for PICDEM 2 Plus

Page 1: ...2004 Microchip Technology Inc DS51275B PICDEM 2 Plus User s Guide...

Page 2: ...mpanies 2004 Microchip Technology Incorporated Printed in the U S A All Rights Reserved Printed on recycled paper Note the following details of the code protection feature on Microchip devices Microch...

Page 3: ...programmed Device 5 2 2 PICDEM 2 Plus Used with an In Circuit Emulator or In Circuit Debugger 6 Chapter 3 Tutorial 3 1 Tutorial Program Operation 7 3 2 Source Code and Application Notes 9 Appendix A H...

Page 4: ...PICDEM 2 Plus User s Guide DS51275B page iv 2004 Microchip Technology Inc NOTES...

Page 5: ...alone with a programmed part with an in circuit emulator e g MPLAB ICE or with an in circuit debugger e g MPLAB ICD 2 Sample programs are provided to demonstrate the unique features of the supported d...

Page 6: ...associated hardware for direct connection to an RS 232 interface 4 In Circuit Debugger ICD connector 5 5 K pot for devices with analog inputs 6 Three push button switches for external stimulus and Re...

Page 7: ...C18 40 pin DIP devices 1 4 SAMPLE PROGRAMS The PICDEM 2 Plus Kit includes a CD ROM with sample demonstration programs These programs may be used with the included sample devices with an In Circuit Emu...

Page 8: ...Chapter 3 Tutorial This chapter provides a detailed description of the tutorial program Appendix A Hardware Description This appendix describes in detail the hardware of the PICDEM 2 Plus board 1 6 R...

Page 9: ...he file on the included CD ROM 2 An assembler such as MPASM assembler available with MPLAB IDE or a compiler such as MPLAB C18 PIC18 devices only Source code must be assembled or compiled into a Hex f...

Page 10: ...ECTED TO MPLAB ICD 2 USING USB Configure the PICDEM 2 Plus for the desired oscillator as described in Table 2 1 Refer to the ICE ICD user s guide for any oscillator configuration requirements TABLE 2...

Page 11: ...ter is ready to be incremented To change the duty cycle press RA4 once and the cursor will now flash over the duty cycle s first digit indicating it is now ready to increment the CCPR1L register The n...

Page 12: ...TORIAL PROGRAM FLOW CHART Power up PICDEM 2 Plus Voltmeter RA4 Next RB0 Now Buzzer Temperature Clock RA4 Next RB0 Now RA4 Next RB0 Now RA4 Next RB0 Now Volts 0 33V RB0 Exit Temp 022 C RB0 Exit RA4 3 p...

Page 13: ...s included on the PICDEM 2 Plus CD ROM Both source code and related Hex files are found in device specific directories Application Notes are also included on the CD ROM for additional examples of use...

Page 14: ...PICDEM 2 Plus User s Guide DS51275B page 10 2004 Microchip Technology Inc NOTES...

Page 15: ...he PICDEM 2 Plus A 9V battery can be plugged into J8 A 9V 100 mA unregulated AC or DC supply can be plugged into J2 A power supply can be purchased through Microchip Part AC162039 A 5V 100 mA regulate...

Page 16: ...ohm resistor to AN0 The pot can be adjusted from VDD to GND to provide an analog input to the parts with an A D module A 8 ICD CONNECTOR By way of the modular connector J5 the MPLAB ICD 2 can be conne...

Page 17: ...O features and port connections for each processor type TABLE A 1 PORT CONNECTIONS Device LEDs RS 232 S1 S2 S3 Pot R16 LCD EEPROM Buzzer ICD Temp Sensor Y1 Y2 18 pin RB3 RB0 N A MCLR RA4 RB0 RA0 N A N...

Page 18: ...MO BOARD 2002 GND GND 5V 5V 5V GND GND 5V RD PORT RC PORT RB PORT RA PORT 7 6 5 4 3 2 1 0 5 4 3 2 1 0 2 1 0 RE PORT RA0 CONTRAST Y2 5V BATTERY 9V IN J5 J9 RESET S1 28 PIN S2 RA4 40 PIN S3 RB0 LCD1 RB0...

Page 19: ...L SDA A0 A1 A2 GND 8 7 6 5 1 2 3 4 1 2 4 3 14 4 17 18 1 2 3 16 15 5 6 7 8 9 10 11 12 13 5 3 1 2 4 1 3 2 1 2 3 20 1 2 3 4 5 6 7 9 10 8 19 21 22 23 24 25 26 27 28 11 12 13 14 15 16 17 18 1 2 3 1 2 4 3 1...

Page 20: ...3 8 4 5 V T1IN T2IN R1OUT R2OUT C1 C1 V T1OUT T2OUT R1IN R2IN C2 C2 V CC GND 2 11 10 12 9 1 3 6 16 15 1 2 3 4 5 6 7 8 9 1 2 3 4 5 6 1 2 3 1 2 3 4 5 6 7 8 1 RC0 2 RC1 3 4 RC3 5 RC4 6 7 RC6 8 RC7 1 2 3...

Page 21: ...5 6 11 12 MPLAB ICD 2 Quick Start Guide 4 MPLAB ICE 1 6 11 MPLAB ICE User s Guide 4 MPLAB IDE 5 MPLAB IDE User s Guide 4 O Oscillator Options 12 Oscillator Selection 6 P PIC16F87X Data Sheet 4 PIC16 1...

Page 22: ...1 Tel 86 21 6275 5700 Fax 86 21 6275 5060 China Shenzhen Rm 1812 18 F Building A United Plaza No 5022 Binhe Road Futian District Shenzhen 518033 China Tel 86 755 82901380 Fax 86 755 8295 1393 China Sh...

Reviews: