DM240002 Microchip Technology, DM240002 Datasheet

BOARD DEV EXPLORER 16 44-PIN

DM240002

Manufacturer Part Number
DM240002
Description
BOARD DEV EXPLORER 16 44-PIN
Manufacturer
Microchip Technology
Series
Explorer 16 44-pinr
Type
MCUr
Datasheet

Specifications of DM240002

Contents
Explorer 16 Dev Board, PIC24FJ64GA004 and dsPIC33FJ32GP204 PIM Modules
Processor To Be Evaluated
PIC24FJ128GA010, dsPIC33FJ256GP710
Processor Series
PIC 24, dsPIC33
Data Bus Width
32 bit
Interface Type
RS-232
Silicon Manufacturer
Microchip
Core Architecture
PIC, DsPIC
Core Sub-architecture
PIC24, DsPIC33
Silicon Core Number
PIC24F, DsPIC33F
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With/related Products
dsPIC30, dsPIC33, PIC32, PIC24FJ, PIC24HJ
Lead Free Status / Rohs Status
Lead free / RoHS Compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
DM240002
Manufacturer:
Microchip Technology
Quantity:
135
Part Number:
DM240002
Manufacturer:
MICROCHIP
Quantity:
12 000
44-PIN DEMO BOARD
USER’S GUIDE
© 2007 Microchip Technology Inc.
DS41296B

Related parts for DM240002

DM240002 Summary of contents

Page 1

... DEMO BOARD © 2007 Microchip Technology Inc. USER’S GUIDE DS41296B ...

Page 2

... Select Mode, Smart Serial, SmartTel, Total Endurance, UNI/O, 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

... Lesson 7: Reversible Variable Speed Rotate ............................................ 24 3.2.8 Lesson 8: Function Calls ........................................................................... 26 3.2.9 Lesson 9: Timer0 ....................................................................................... 26 3.2.10 Lesson 10: Interrupts ............................................................................... 28 3.2.11 Lesson 11: Indirect Data Addressing ...................................................... 30 3.2.12 Lesson 12: Look-up Table (ROM Array) .................................................. 32 © 2007 Microchip Technology Inc. 44-PIN DEMO BOARD Table of Contents Microcontroller Architectural Overview USER’S GUIDE DS41296B-page iii ...

Page 4

... Demo Board User’s Guide Appendix A. Hardware Schematics A.1 Introduction ................................................................................................... 35 Worldwide Sales and Service......................................................................................38 DS41296B-page iv © 2007 Microchip Technology Inc. ...

Page 5

... Chapter 3. “44-Pin Demo Board Lessons” – This chapter provides lessons that introduce mid-range PIC Demo board features. • Appendix A. “Hardware Schematics” – Illustrates the 44-Pin Demo Board hardware schematic diagram, PCB layout and Bill of Materials. © 2007 Microchip Technology Inc. 44-PIN DEMO BOARD Preface NOTICE TO CUSTOMERS ® ...

Page 6

... Optional arguments mcc18 [options] file [options] Choice of mutually exclusive errorlevel {0|1} arguments selection Replaces repeated text var_name [, var_name...] Represents code supplied by void main (void) user { ... } © 2007 Microchip Technology Inc. Examples ® IDE User’s Guide” ...

Page 7

... For the latest information on using other tools, read the tool-specific Readme files in the Readmes subdirectory of the MPLAB IDE installation directory. The Readme files contain update information and known issues that may not be included in this user’s guide. © 2007 Microchip Technology Inc. Preface DS41296B-page 3 ...

Page 8

... Programmers – The latest information on Microchip programmers. These include the MPLAB PM3 and PRO MATE Plus and PICkit™ 2 development programmers. DS41296B-page 4 ® II device programmers and the PICSTART © 2007 Microchip Technology Inc. ® ® ...

Page 9

... Added Chapter 3. “44-Pin Demo Board Lessons”. • Changed PICmicro • Changed PICkit • Removed Development Systems Information Line from Customer Support bulleted list. • Updated schematic in Appendix. © 2007 Microchip Technology Inc. ® Microcontroller Architectural Overview”. ® ®. to PIC ® ...

Page 10

... Demo Board User’s Guide NOTES: DS41296B-page 6 © 2007 Microchip Technology Inc. ...

Page 11

... PIC MCU. The assembled 44-Pin Demo Board is populated with a PIC16F887-I/PT microcontroller. Additional 44-Pin Demo Boards can be ordered from Microchip Technology and distrib- utors. Part number, DM164120-2, comes with one assembled and two blank 44-Pin Demo Boards. The blank demo board can be used for evaluating or prototyping circuits using any of the 44-pin devices listed below ...

Page 12

... Rotate the potentiometer, RP1, and the light sequence will blink at a different rate. DS41296B-page 8 44-PIN DEMO BOARD PICkit™ 2 Programming Header Push Button SW1 LEDs DS1-DS8 Surface Mount Prototyping Area ) using a PICkit™ © 2007 Microchip Technology Inc. ...

Page 13

... PIC microcontrollers are designed with separate program and data memory areas. This allows faster execution as the address and data busses are separate and do not have to do double duty. © 2007 Microchip Technology Inc. 44-PIN DEMO BOARD ® Microcontroller Architectural Overview SIMPLIFIED MID-RANGE PIC ...

Page 14

... Calls and GOTO’s use 11 bits as a literal address. MOVLW Moves the ASCII value of ‘A’ (0x41) into the WREG. DS41296B-page 10 ® MCUs may be clocked by a number of different devices. Unless oth- data,f STATUS,RP0 'A' © 2007 Microchip Technology Inc. ...

Page 15

... The advantage is that as variables come and go through the development process, the cblock keeps the block to a minimum. Using one of the other methods, you may have to go back and find an unused location. © 2007 Microchip Technology Inc. ® Microcontroller Architectural Overview ...

Page 16

... Demo Board User’s Guide NOTES: DS41296B-page 12 © 2007 Microchip Technology Inc. ...

Page 17

... Lesson 6: Switch Debounce • Lesson 7: Reversible Variable Speed Rotate • Lesson 8: Function Calls • Lesson 9: Timer0 • Lesson 10: Interrupts • Lesson 11: Indirect Data Addressing • Lesson 12: Look-up Table (ROM Array) © 2007 Microchip Technology Inc. 44-PIN DEMO BOARD USER’S GUIDE DS41296B-page 13 ...

Page 18

... We want to make it an output, so the bit must be cleared. Tells the processor to set pin 0 of PORTD. This will force the I/O pin to a high condition turning on the LED. Tells the processor the current instruction. ® microcontroller version ® micro- © 2007 Microchip Technology Inc. ...

Page 19

... Counting cycles – Relating clock speed to instruction speed. The processor requires 4 clocks to execute an instruction. Since the internal oscillator as used in these lessons runs at 4 MHz, the instruction rate is 1 MHz. © 2007 Microchip Technology Inc. 44-Pin Demo Board Lessons Clear file register ...

Page 20

... Open Blink.asm and build the lesson. Next, import the hex file into the PICkit 2 and program the device. Note the LED now flashes at about a 2.5 Hz rate. DS41296B-page 16 DELAY LOOP Delay Delay,f Loop Delay1 Delay2 Delay1,f Loop Delay2,f Loop © 2007 Microchip Technology Inc. ...

Page 21

... Copy the Display variable to the I/O Port, then • Delay for a little while • Rotate the display FIGURE 3-1: © 2007 Microchip Technology Inc. 44-Pin Demo Board Lessons Loads WREG with a literal value Moves the contents of WREG to a file register ...

Page 22

... Copy the display to the LEDs PORTD Delay1,f ; Delay .197 s OndelayLoop Delay2,f OndelayLoop STATUS,C ; ensure the carry bit is clear Display,f ; rotate display right STATUS,C ; Did the bit rotate into the carry? Display,7 ; yes, put it into bit 7. MainLoop © 2007 Microchip Technology Inc. ...

Page 23

... RA0 on the PIC16F887. Here’s the checklist for this lesson: • Configure PORTA as an analog input, TRISA<0> ANSEL<0> • Select justification and V • Select clock scaling and channel in ADCON0. © 2007 Microchip Technology Inc. 44-Pin Demo Board Lessons * 1023 REF REF source in ADCON1 ...

Page 24

... VCFG1 VCFG0 — Writable bit U = Unimplemented bit, read as ‘0’ ‘1’ = Bit is set ‘0’ = Bit is cleared - pin REF + pin REF DD REF+ is the voltage at REF+ and U-0 U-0 U-0 — — — bit Bit is unknown AD © 2007 Microchip Technology Inc. ...

Page 25

... A/D conversion cycle in progress. Setting this bit starts an A/D conversion cycle A/D conversion completed/not in progress bit 0 ADON: ADC Enable bit 1 = ADC is enabled 0 = ADC is disabled and consumes no operating current © 2007 Microchip Technology Inc. 44-Pin Demo Board Lessons ADCON0: A/D CONTROL REGISTER 0 R/W-0 R/W-0 R/W-0 ...

Page 26

... Delay Loop shortened by the ADResult ; as controlled by the potentiometer. A2DDelayLoop Delay2,f A2DDelayLoop VARIABLE SPEED ROTATE PROGRAM FLOW Initialize I/O Port Initialize ADC Put Up Display Get ADC Result Delay Using ADC Rotate Display Yes Did it overflow? No Reset Display © 2007 Microchip Technology Inc. ...

Page 27

... Figure 3-4 and Figure 3-5). These methods are still effective but they involve additional cost in material, installation and board real estate. Debounc- ing in software eliminates these additional costs. FIGURE 3-4: FIGURE 3-5: © 2007 Microchip Technology Inc. 44-Pin Demo Board Lessons FILTERING DEBOUNCE SOLUTION +V R2 ...

Page 28

... When the ‘1’ shows up in bit 7 of the display, insert it into the bit 0 position. DS41296B-page 24 SIMPLE SWITCH DEBOUNCE PROGRAM FLOW Switch has Yes changed states? Increment Counter No Is Counter = 5? Yes Change State Reset Counter Delay Reset Counter © 2007 Microchip Technology Inc. ...

Page 29

... RRF BTFSC BSF GOTO RotateLeft: RLF BTFSC BSF GOTO © 2007 Microchip Technology Inc. 44-Pin Demo Board Lessons REVERSIBLE VARIABLE SPEED ROTATE EXAMPLE Display,f STATUS,C ; Did the bit rotate into the carry? Display,7 ; yes, put it into bit 7. STATUS,C ; ensure the carry bit is clear ...

Page 30

... Move conversion value (delay add 1 otherwise entering with 0 takes ; longer than entering with 1. Delay ; Call delay function ; returns here when done XXX Enter with number of 771uS delays in Wreg Delay2 Delay1,f DelayLoop Delay2,f DelayLoop ; goes back to instruction after call © 2007 Microchip Technology Inc. ...

Page 31

... Thus, the Timer0 Flag will be set every 65536 μs (0.0000001 second * 256 * 256), or about 15 times a second. The main program sits in a loop waiting for the rollover and when it does, it increments the display and then loops back. © 2007 Microchip Technology Inc. 44-Pin Demo Board Lessons TIMER0 SIMPLIFIED ...

Page 32

... INTCON,T0IF ; wait here until Timer0 rolls over ForeverLoop INTCON,T0IF ; flag must be cleared in software Display,f ; increment display variable Display,w ; send to the LEDs PORTD ForeverLoop Return from Interrupt Swap nibbles in file register INTERRUPT LOGIC SIMPLIFIED Global Interrupt Enable Other Interrupt Sources Master Interrupt © 2007 Microchip Technology Inc. ...

Page 33

... MOVWF STATUS SWAPF W_Temp,f SWAPF W_Temp,w Finally, RETFIE transfers control back to the original program and sets the GIE bit, re-enabling interrupts. © 2007 Microchip Technology Inc. 44-Pin Demo Board Lessons CONTEXT RESTORE ;this may change the Z bit ;in the Status register ;swap in place ...

Page 34

... Older value overwritten, pointer advanced 110 103 99 99 Pointer advanced Average 103 105 107 103 99 103 105 103 104 99 103 104 Average 101 102 105 103 101 102 105 103 101 102 105 104 © 2007 Microchip Technology Inc. ...

Page 35

... Additionally, rather than summing the array every time, it’s faster to keep a running sum, then subtract out the oldest value in the queue and adding in the new value. © 2007 Microchip Technology Inc. 44-Pin Demo Board Lessons FILE SELECT REGISTER EXAMPLE temp ...

Page 36

... See the PCL and PCLATH section in the PIC16F882/883/884/886/887 Data Sheet (DS41291) for more details of how PCLATH is used. DS41296B-page 32 LOOK-UP TABLE PCL,f ;jump to '0' ;index 0 '1' ;index 1 'F' ;index 15 © 2007 Microchip Technology Inc. ...

Page 37

... LEDs. The code changes one bit at a time as the potentiom- eter rotates across its range (seeExample 3-12). Gray Code Converter Decimal © 2007 Microchip Technology Inc. 44-Pin Demo Board Lessons PC LOADING AS DESTINATION OF INSTRUCTION PCH PCL PCLATH<4:0> 5 PCLATH Binary 0000 0001 0011 0010 0110 0111 0101 0100 1100 ...

Page 38

... PCLATH low TableStart ;load starting address of table temp,w ;add offset STATUS,C ;did it overflow? PCLATH,f ;yes: increment PCLATH PCL ;modify PCL b'0000' ;0 b'0001' ;1 b'0011' ;2 b'0010' ;3 b'0110' ;4 b'0111' ;5 b'0101' ;6 b'0100' ;7 b'1100' ;8 b'1101' ;9 b'1111' ;10 b'1110' ;11 b'1010' ;12 b'1011' ;13 b'1001' ;14 b'1000' ;15 © 2007 Microchip Technology Inc. ...

Page 39

... Appendix A. Hardware Schematics A.1 INTRODUCTION This appendix contains the 44-Pin Demo Board schematic, PCB layout and Bill of Materials. FIGURE A-1: © 2007 Microchip Technology Inc. 44-PIN DEMO BOARD USER’S 44-PIN DEMO BOARD SCHEMATIC DIAGRAM GUIDE DS41296B-page 35 ...

Page 40

... Demo Board User’s Guide FIGURE A-2: FIGURE A-3: DS41296B-page 36 44-PIN DEMO BOARD SILKSCREEN 44-PIN DEMO BOARD TOP COPPER © 2007 Microchip Technology Inc. ...

Page 41

... R1 RP1 DS1-DS8 SW1 U1 – Microcontroller P1 JP1 Rubber feet © 2007 Microchip Technology Inc. Hardware Schematics 44-PIN DEMO BOARD BOTTOM COPPER 44-PIN DEMO BOARD BILL OF MATERIALS Bill of Materials Qty Capacitor, Ceramic, 0805 SMT, 0.1 μF, 16V, 5%, X7R 3 8 Resistor, 0805 SMT, 750Ω, 5%, 1/8W 2 Resistor, 0805 SMT, 1 kΩ ...

Page 42

... Fax: 886-3-572-6459 Taiwan - Kaohsiung Tel: 886-7-536-4818 Fax: 886-7-536-4803 Taiwan - Taipei Tel: 886-2-2500-6610 Fax: 886-2-2508-0102 Thailand - Bangkok Tel: 66-2-694-1351 Fax: 66-2-694-1350 © 2007 Microchip Technology Inc. EUROPE Austria - Wels Tel: 43-7242-2244-39 Fax: 43-7242-2244-393 Denmark - Copenhagen Tel: 45-4450-2828 Fax: 45-4485-2829 France - Paris Tel: 33-1-69-53-63-20 ...

Related keywords