PIC18F87K22 Plug-in Module for PICDEM PIC18 Explorer Board Overview The PIC18F87K22 Plug-in Module (PIM) is an accessory to the PICDEM PIC18 Explorer Board that allows users to easily experiment with the PIC18F87K22 family of microcontrollers. PIC18F87K22 is the superset member of the family and this PIM can be used to evaluate and develop with the PIC18F87K22 products. The PIM takes the place of the on-board PIC18F8722 device, and changes the output of the voltage regu- lator on the board to the proper voltage level for these parts. This enables users to quickly evaluate the new PIC18FK Flash devices without having to buy a completely new demo board. Getting Started with the PIM 1. Make sure the on-board PIC18F87K22 is programmed to allow the MCLR Reset pin to function as a Reset pin. If the MCLR is configured to be used for general purpose I/O, the on-board PIC18F8722 may interfere with PIM usage, even when the board is switched to ICE mode. 2. Verify that the PICDEM PIC18 Explorer Board is not powered. 3. Set switch, S4, to the ICE position. This will hold the on-board PIC18F8722 in Reset, allowing the PIM to function instead. 4. Line up the PIM so its 3-pin female header aligns with the 3-pin riser on the PICDEM PIC18 Explorer Board, then plug the PIM into the demo board. 5. Apply power to the demo board. Be sure that VDD is correct for the device being used (5V for PIC18F87K22). If it is not correct, disconnect power and check that the 3-pin female header is aligned properly with the demo boards 3-pin riser. Changes to PICDEM PIC18 Explorer Board Configuration The difference of available I/O pins between the PICDEM PIC18 Explorer Boards PIC18F8722 device and the PIMs PIC18F87K22 device causes some changes in the operation of the PICDEM PIC18 Explorer Board. 1. Most I/O lines connected to the PICDEM PIC18 Explorer Boards PICtail connector, J3/J5/J7/J11 silkscreen, will map 1:1 with PIC18F87K22 I/O pins. 2. Port I/O pin, RF0, will be left unconnected because this pin does not exist on the PIC18F87K22 devices. 3. The PIC18F87K22 can operate between 1.8V and 5V. The supplied voltage can be adjusted by populating the PIM boards R101 and R102 resistors. For more detailed information on varying the device voltage, see PICDEM PIC18 Explorer Demonstration Board Users Guide, Section 2.3.3 Calculating Other VDD Values. Bootloader Firmware This PIM comes preprogrammed with firmware from the High-Speed Serial Bootloader for PIC16 and PIC18 Devices (AN1310), which can be used to reprogram the device without requiring a dedicated PIC MCU programmer. The host software installation package and AN1310 application note documentation may be downloaded from the Microchip web site. Demonstration Firmware Additionally, the PIM is programmed with firmware demonstrating basic features on the PIC18 Explorer Board. The source for the PIC18F87K22 PIM demo code may be downloaded from the Microchip web site.PIC18F87K22 Plug-in Module for PICDEM PIC18 Explorer Board Board Schematic 30 RA0/AN0 RJ7/UB 29 42 RA1/AN1 RB6/LB 28 41 RA2/AN2/VREF- RJ5 27 40 RA3/AN3/VREF+ RJ4/BA0 34 39 RA4/T0CKI RJ3/WRH 33 59 RA5/AN4/LVDIN RJ2/WRL 60 RJ1/OE 61 RJ0/ALE 58 62 RB0/INT0 57 RB1/INT1 56 RB2/INT2 RH7/AN15 19 55 RB3/INT3/CCP2 RH6/AN14 20 54 RB4/KBI0 RH5/AN13 21 53 RB5/KBI1/PGM RH4/AN12 22 52 RB6/KBI2/PGC RH3/A19 2 47 VSS RB7/KBI3/PGD RH2/A18 1 RH1/A17 80 RH0/A16 79 36 RC0/T1OSO/T13CKI 35 RC1/T1OSI/CCP2 VSS 43 RC2/CCP1 RG4/CCP5 10 44 RC3/SCK/SCL RG3/CCP4 VDD 8 45 RC4/SDI/SDA RG2/RX2/DT2 7 46 RC5/SDO RG1/TX2/CK2 VDD 6 37 RC6/TX1/CK1 RG0/CCP3 5 38 RC7/RX1/DT1 (1) AVDD VIN AVDD (1) .1 F 4.7 F .1 F .1 F .1 F .1 F (2) Note 1: Not installed by default. 2: Never populate R104, unexpected behavior may occur. DS51895A 72 RD0/PSP0/AD0 69 RD1/PSP1/AD1 68 RD2/PSP2/AD2 67 49 RD3/PSP3/AD3 OSC1/CLKI 50 66 RD4/PSP4/AD4 OSC2/CLKO/RA6 65 RD5/PSP5/AD5 64 RD6/PSP6/AD6 63 RD7/PSP7/AD7 MCLR/VPP 9 4 RE0/RD/AD8 3 RE1/WR/AD9 78 RE2/CS/AD10 AVSS 77 26 RE3/AD11 AVDD AVDD 76 25 RE4/AD12 75 RE5/AD13 VDD 74 71 RE6/AD14 VDD 73 48 RE7/CCP2/AD15 VDD 32 VDD 12 24 RF0/AN5 VSS 23 70 RF1/AN6/C2OUT VSS 18 51 RF2/AN7/C1OUT VSS 17 31 RF3/AN8 VSS 16 11 RF4/AN9 15 RF5/AN10/CVRED 14 RF6/AN11 13 RF7/SS AVDD AVDD AVSS VDD VSS VSS VDD