Table 1: 44-Pin to 100-Pin Pinout Introducing the PIC24FJ128GB204 PIM Device PIM PIM PIM PIM PIM PIM PIM PIM PIC24FJ128GB204 Pinout Jumper Jumper Jumper Jumper Overview Pin Pin Func 1 Pin Func 2 Pin Func 3 Pin Func 4 The PIC24FJ128GB204 PIM is designed to demonstrate the capabilities of the PIC24FJ128GB204 family using the Explorer 16 (1) 1 C1INC/C2INC/C3INC/RP9/SDA1/ 56 RG3/SDA1 99 RE3/ T1CK/CTED4/PMD3/CN21/RB9 PMD3 Demonstration Board kit and the PICtail Plus daughter boards. The PIC24FJ128GB204 is a 44-pin device with USB On-The-Go (OTG), XLP Technology and Peripheral Pin Select (PPS) features. The PPS feature of this PIC24F family allows many of the digital 2 RP22/PMA1/PMALH/CN18/RC6 J5-I2S SS 1 RG15/VBUS 23 RB2/SS1/ 43 RB14/ 92 RA7 (1) AN2 PMA1 peripherals on the part to be remapped to use any of a number of pins on the device. This allows for significant improvements in ease of 3 RP23/PMA0/PMALL/CN17/RC7 39 RF13/ 44 RB15/ 77 RD2 design and helps to reduce cost by allowing for the smallest possible size devices to be used. The following two tables detail the pin (1) U2RTS PMA0 mapping of the 44-pin device to the 100-pin PIM header. 4 RP24/PMA5/CN20/RC8 10 RG6/PMA5/ 48 RD15/ (1) The 44-pin to 100-pin table (Table 1) lists the device pins and shows what functions are mapped to each pin. This table is most useful SCK2 U1RTS (1) for viewing multiplexing conflicts which prevent some functions from being used simultaneously. 5 RP25/CTED7/PMA6/CN19/RC9 29 RA10/PMA6 50 RF5/ 66 RA14/ 72 RD0 (1) PMA8/ INT3 The 100-pin to 44-pin table (Table 2) shows a listing of the Explorer 16 functions and what device pin is mapped to that function. U2TX All supporting documentation and software for the Explorer 16 Development Board can be found at www.microchip.com/explorer16. 6VBAT 86 VBAT 7VCAP 85 VCAP PIC24FJ128GB204 PIM Features 8 RP10/CTED11/CN16/PGD2/D+/RB10 J9-PGD2/D+ 27 RB7/AN7/ 90 RG0 Due to the flexibility allowed by the PPS feature, the 44-pin device is capable of performing all of the base functions on the 100-pin PGD/D+ Explorer 16 board. In addition, the PIM is compatible with most of the PICtail Plus daughter boards for the Explorer 16, including the 9 REFI/RP11/CTED9/CN15/PGC2/D-/ J8-PGC2/D- 26 RB6/AN6/ 89 RG1 RB11 PGC/D- USB PICtail Plus Daughter Board (AC164131). 10 VUSB3V3 16 VDD PIC24FJ128GB204 PIM Limitations 11 AN7/C1INC/REFO/RP13/CTPLS/ J3-SC TX 51 RF3/U1TX J3-PMRD 82 RD5/ PMRD/CN13/RB13 PMRD The result of multiplexing the functions from a 44-pin part to the 100-pin PIM header is that many of the functions cannot be used 12 TMS/PMA2/PMALU/CN36/RA10 14 RG9/PMA2/ 17 RA0/TMS 69 RD9 83 RD6 simultaneously. Explorer 16 board LEDs are multiplexed on switch and PMP lines, which means they will not always be usable if these SS2 functions are in use. The Explorer 16 potentiometer and temperature sensor cannot be used with PMP, and are selectable through 13 TCK/PMA7/CN33/RA7 28 RA9/PMA7 38 RA1/TCK 80 RD13 2 Jumpers J6 and J7. Smart Card cannot be used along with PMP, and is selectable through Jumpers J2 and J3. I S and USB cannot be 14 CVREF/AN6/C3INB/RP14/RTCC/ 40 RF12/U2CTS 68 RD8 used simultaneously, and the function is selectable through Jumper J5. The programming lines, PGC1/PGD1, cannot be used with the CTED5/CN12/RB14 (1) USB and are selectable through Jumpers J8 and J9. The PICtail Plus daughter boards have similar limitations. All daughter boards will 15 AN9/C3INA/RP15/T3CK/T2CK/ 7 RC2 33 RB9/ 55 RF6/SCK1 (1) CTED6/PMA14/CS1/CN11/PMCS/ AN9 work by themselves, however, most PICtail Plus daughter boards will not work if two are installed simultaneously. Additionally, a PICtail PMCS1/RB15 Plus daughter board may not work with all of the default Explorer 16 functionality. If a PICtail Plus daughter board is designed to work 16 AVSS/VSS 31 AVSS with a Microchip Library, the respective system configuration may have to be modified to function with the PIM pinout and PPS feature. 17 AVDD 30 AVDD Please check the pinouts of the components you are using to ensure compatibility before attempting to use multiple peripheral functions 18 MCLR 13 MCLR or more than one PICtail Plus daughter board at the same time. 19 CVREF+/VREF+/AN0/C3INC/RP5/ 5RE7/PMD7 25 RB0/ (1) ASDA1/CTED1/CN2/PMD7/PGD3/ AN0 Tips for Using the PIC24FJ128GB204 PIM RA0 (1) The Explorer 16 LEDs are multiplexed with a number of functions and so may not be useful in some situations. Make sure to check 20 CVREF-/VREF-/AN1/C3IND/RP6/ 24 RB1/AN1 ASCL1/CTED2/CN3/PGC3/RA1 the mapping tables for conflicts. 21 AN2/CTCMP/C2INB/RP0/CN4/PGD1/ J9-PGD1 27 RB7/AN7/ 93 RE0/ The PIC24FJ128GB204 port pins are not mapped to the corresponding port I/O on the Explorer 16. Make sure to use the following HLVDIN/PMD0/RB0 PGD/D+ PMD0 pinout tables as a cross reference to ensure you use the correct device pin in your application. 22 AN3/C2INA/RP1/CTED12/CN5/ J8-PGC1 26 RB6/AN6/ 94 RE1/ Many of the peripherals used by the Explorer 16 and PICtail Plus daughter boards are implemented on pins with analog functionality. PMD1/PGC1/RB1 PGC/D- PMD1 (1) (1) These peripherals may not conflict with analog features on other PIC24F PIMs. Make sure to add any necessary code to override this 23 AN4/C1INB/RP2/SDA2/T5CK/T4CK/ 19 RE9/INT2 59 RA3/SDA2 87 RF0 98 RE2/ CTED13/CN6/PMD2/RB2 PMD2 analog functionality in the application code used. (1) 24 AN5/C1INA/RP3/SCL2/CTED8/CN7/ 47 RD14/ 58 RA2/SCL2 81 RD4/ 88 RF1 Some Explorer 16 boards have a 5V LCD. If you are using a function which is multiplexed onto the PMP pins on one of these (1) PMWR/RB3 U1CTS PMWR boards, it may be necessary to manually drive the pins initially. The pins must be driven in order to ensure the bus is driven to either 25 AN10/RP16/PMBE1/CN8/RC0 J7-TEMP 21 RB4/AN4 J7-PMBE1 34 RB10/ 53 RF8/SDO1 VDD or VSS, instead of floating at 5V. PMA13 Jumper Settings: 26 AN11/RP17/CN9/RC1 J6-POT 20 RB5/AN5 54 RF7/SDI1 J6-PMCS2 70 RD10/ PMCS2 Jumper J1 Pins (1-2) select the USB OTG ID Pin (USBID) (1) (1) 2 27 AN12/RP18/PMACK1/CN10/RC2 6 RC1 18 RE8/ 32 RB8/AN8 Pins (2-3) select the I S bit Clock Line (I2S SCK). (1) INT1 Jumper J2 Pins (1-2) select PMP Data<5> (PMD5) 28 VDD 46 VDD 62 VDD Pins (2-3) select the Smart Cards RX Pin (SC RX). 29 VSS 15 VSS 45 VSS 75 VSS (1) Jumper J3 Pins (1-2) select the PMP Read Strobe (PMRD) 30 OSCI/C1IND/CLKI/PMCS1/CN30/RA2 63 OSC1 71 RD0 Pins (2-3) select the Smart Cards TX Pin (SC TX). 31 OSCO/C2IND/CLKO/CN29/RA3 64 OSC2 Jumper J4 Pins (1-2) select the Explorer 16 Serial EEPROM CS (EE CS) 32 TDO/PMA8/CN34/RA8 61 RA5/TDO J4-RD1 76 RD1 J4-EE CS 79 RD12 Pins (2-3) select the Device PORTA<8> Connection to Explorer 16 PORTD<1> (RD1). 33 SOSCI/CN1/RPI4/RB4 XT 2 on Jumper J5 Pins (1-2) select the I S Channel Select Line (I2S SS) PIM Pins (2-3) select the USB Voltage and PMP Data<6> (VBUS/PMD6). 34 SOSCO/SCLKI/CN0/RA4 XT Jumper J6 Pins (1-2) select the PMP Chip Select 2 Strobe (PMCS2) on PIM Pins (2-3) select the Explorer 16 Potentiometer Function (POT). (1) 35 TDI/PMA9/CN35/RA9 22 RB3/AN3 60 RA4/TDI 84 RD7 96 RG12 Jumper J7 Pins (1-2) select the PMP Byte Enable 1 Strobe (PMBE1) 36 RP19/PMBE0/CN28/RC3 49 RF4/PMA9/ 67 RA15/ 78 RD3/PMBE J1-I2S SCK 95 RG14/ Pins (2-3) select the Explorer 16 Analog Temperature Sensor (TEMP). (1) U2RX INT4 USBID Jumper J8 Pins (1-2) select the Programming Clock 2 and USB Differential Minus Line (PGC2/D-) 37 RP20/PMA4/CN25/RC4 11 PMA4/SDI2 96 RG12 Pins (2-3) select the Programming Clock 1 (PGC1). 38 RP21/PMA3/CN26/RC5 12 PMA3/SDO2 91 RA6 97 RG13 Jumper J9 Pins (1-2) select the Programming Data Line 2 and USB Differential Plus Line (PGD2/D+) 39 VSS 15 VSS 45 VSS 75 VSS Pins (2-3) select the Programming Data Line 1 (PGD1). 40 VDD 46 VDD 62 VDD It is not possible to use the Explorer 16 LCD and USB when debugging on this PIM. When debugging and using the LCD on the 41 CN27/USBID/RB5 J1-USBID 95 RG14/USBID Explorer 16, connect Jumper J8 (2-3) = PGC1 and J9 (2-3) = PGD1. When debugging and using USB, connect 42 PMD6/CN24/VBUS/RB6 J5-VBUS/PMD6 1 RG15/VBUS 4RE6/ Jumper J8 (1-2) = PGC2/D- and J9 (1-2) = PGD2/D+. PMD6 Many PICtail Plus daughter boards use the EEPROM, SPI and UART2 (which has the RS-232 port functionality). These functions 43 RP7/CTED3/INT0/CN23/PMD5/RB7 J2-PMD5 3 RE5/PMD5 J2-SC RX 52 RF2/U1RX are mapped to ensure that they can be used together to allow support for these boards. (1) 44 RP8/SCL1/CTED10/PMD4/CN22/ 57 RG2/SCL1 100 RE4/ USBOEN/RB8 PMD4 Note 1: This pin is a common or required signal for PICtail Plus daughter boards.Table 2: 100-Pin to 44-Pin Pinout Table 2: 100-Pin to 44-Pin Pinout (Continued) Exp 16 Pin PIM Function Jumper Device Pin PIC24FJ128GB204 Pinout Exp 16 Pin PIM Function Jumper Device Pin PIC24FJ128GB204 Pinout 1RG15/VBUS J5-I2S SS 2 RP22/PMA1/PMALH/CN18/RC6 51 RF3/U1TX J3-SC TX 11 AN7/C1INC/REFO/RP13/CTPLS/PMRD/CN13/RB13 J5-VBUS/PMD6 42 PMD6/CN24/VBUS/RB6 52 RF2/U1RX J2-SC RX 43 RP7/CTED3/INT0/CN23/PMD5/RB7 2VDD 53 RF8/SDO1 25 AN10/RP16/PMBE1/CN8/RC0 3 RE5/PMD5 J2-PMD5 43 RP7/CTED3/INT0/CN23/PMD5/RB7 54 RF7/SDI1 26 AN11/RP17/CN9/RC1 4 RE6/PMD6 42 PMD6/CN24/VBUS/RB6 55 RF6/SCK1 15 AN9/C3INA/RP15/T3CK/T2CK/CTED6/PMA14/CS1/CN11/PMCS/PMCS1/RB1 (1) 5RE7/PMD7 19 CVREF+/VREF+/AN0/C3INC/RP5/ASDA1/CTED1/CN2/PMD7/PGD3/RA0 56 RG3/SDA1 1 C1INC/C2INC/C3INC/RP9/SDA1/T1CK/CTED4/PMD3/CN21/RB9 (1) (1) 6RC1 27 AN12/RP18/PMACK1/CN10/RC2 57 RG2/SCL1 44 RP8/SCL1/CTED10/PMD4/CN22/USBOEN/RB8 (1) 7RC2 15 AN9/C3INA/RP15/T3CK/T2CK/CTED6/PMA14/CS1/CN11/PMCS/PMCS1/RB15 58 RA2/SCL2 24 AN5/C1INA/RP3/SCL2/CTED8/CN7/PMWR/RB3 8RC3 59 RA3/SDA2 23 AN4/C1INB/RP2/SDA2/T5CK/T4CK/CTED13/CN6/PMD2/RB2 9RC4 60 RA4/TDI 35 TDI/PMA9/CN35/RA9 10 RG6/PMA5/SCK2 4 RP24/PMA5/CN20/RC8 61 RA5/TDO 32 TDO/PMA8/CN34/RA8 11 PMA4/SDI2 37 RP20/PMA4/CN25/RC4 62 VDD 28 VDD 12 PMA3/SDO2 38 RP21/PMA3/CN26/RC5 40 VDD 13 MCLR 18 MCLR 63 OSC1 30 OSCI/C1IND/CLKI/PMCS1/CN30/RA2 14 RG9/PMA2/SS2 12 TMS/PMA2/PMALU/CN36/RA10 64 OSC2 31 OSCO/C2IND/CLKO/CN29/RA3 15 VSS 29 VSS 65 VSS (1) 39 VSS 66 RA14/INT3 5 RP25/CTED7/PMA6/CN19/RC9 (1) 67 RA15/INT4 36 RP19/PMBE0/CN28/RC3 16 VDD 10 VUSB3V3 68 RD8 14 CVREF/AN6/C3INB/RP14/RTCC/CTED5/CN12/RB14 17 RA0/TMS 12 TMS/PMA2/PMALU/CN36/RA10 (1) 69 RD9 12 TMS/PMA2/PMALU/CN36/RA10 18 RE8/INT1 27 AN12/RP18/PMACK1/CN10/RC2 (1) 70 RD10/PMCS2 J6-PMCS2 26 AN11/RP17/CN9/RC1 19 RE9/INT2 23 AN4/C1INB/RP2/SDA2/T5CK/T4CK/CTED13/CN6/PMD2/RB2 71 RD11/PMCS1 30 OSCI/C1IND/CLKI/PMCS1/CN30/RA2 20 RB5/AN5 J6-POT 26 AN11/RP17/CN9/RC1 (1) 72 RD0 5 RP25/CTED7/PMA6/CN19/RC9 21 RB4/AN4 J7-TEMP 25 AN10/RP16/PMBE1/CN8/RC0 (1) 73 RC13/SOSCI 22 RB3/AN3 35 TDI/PMA9/CN35/RA9 (1) 74 RC14/SOSCO 23 RB2/SS1/AN2 2 RP22/PMA1/PMALH/CN18/RC6 (1) 75 VSS 29 VSS 24 RB1/AN1 20 CVREF-/VREF-/AN1/C3IND/RP6/ASCL1/CTED2/CN3/PGC3/RA1 (1) 39 VSS 25 RB0/AN0 19 CVREF+/VREF+/AN0/C3INC/RP5/ASDA1/CTED1/CN2/PMD7/PGD3/RA0 76 RD1 J4-RD1 32 TDO/PMA8/CN34/RA8 26 RB6/AN6/PGC/D- J8-PGC2/D- 9 REFI/RP11/CTED9/CN15/PGC2/D-/RB11 77 RD2 3 RP23/PMA0/PMALL/CN17/RC7 J8-PGC1 22 AN3/C2INA/RP1/CTED12/CN5/PMD1/PGC1/RB1 78 RD3/PMBE 36 RP19/PMBE0/CN28/RC3 27 RB7/AN7/PGD/D+ J9-PGD2/D+ 8 RP10/CTED11/CN16/PGD2/D+/RB10 79 RD12 J4-EE CS 32 TDO/PMA8/CN34/RA8 J9-PGD1 21 AN2/CTCMP/C2INB/RP0/CN4/PGD1/HLVDIN/PMD0/RB0 80 RD13 13 TCK/PMA7/CN33/RA7 28 RA9/PMA7 13 TCK/PMA7/CN33/RA7 81 RD4/PMWR 24 AN5/C1INA/RP3/SCL2/CTED8/CN7/PMWR/RB3 29 RA10/PMA6 5 RP25/CTED7/PMA6/CN19/RC9 82 RD5/PMRD J3-PMRD 11 AN7/C1INC/REFO/RP13/CTPLS/PMRD/CN13/RB13 30 AVDD 17 AVDD 83 RD6 12 TMS/PMA2/PMALU/CN36/RA10 31 AVSS 16 AVSS/VSS (1) 84 RD7 35 TDI/PMA9/CN35/RA9 32 RB8/AN8 27 AN12/RP18/PMACK1/CN10/RC2 (1) 85 VCAP 7VCAP 33 RB9/AN9 15 AN9/C3INA/RP15/T3CK/T2CK/CTED6/PMA14/CS1/CN11/PMCS/PMCS1/RB1 86 VBAT 6VBAT 34 RB10/PMA13 J7-PMBE1 25 AN10/RP16/PMBE1/CN8/RC0 (1) 87 RF0 23 AN4/C1INB/RP2/SDA2/T5CK/T4CK/CTED13/CN6/PMD2/RB2 35 RB11/PMA12 (1) 88 RF1 24 AN5/C1INA/RP3/SCL2/CTED8/CN7/PMWR/RB3 36 VSS 89 RG1 9 REFI/RP11/CTED9/CN15/PGC2/D-/RB11 37 VDD 90 RG0 8 RP10/CTED11/CN16/PGD2/D+/RB10 38 RA1/TCK 13 TCK/PMA7/CN33/RA7 (1) 91 RA6 38 RP21/PMA3/CN26/RC5 39 RF13/U2RTS 3 RP23/PMA0/PMALL/CN17/RC7 92 RA7 2 RP22/PMA1/PMALH/CN18/RC6 40 RF12/U2CTS 14 CVREF/AN6/C3INB/RP14/RTCC/CTED5/CN12/RB14 93 RE0/PMD0 21 AN2/CTCMP/C2INB/RP0/CN4/PGD1/HLVDIN/PMD0/RB0 41 RB12/PMA11 94 RE1/PMD1 22 AN3/C2INA/RP1/CTED12/CN5/PMD1/PGC1/RB1 42 RB13/PMA10 95 RG14/USBID J1-USBID 41 CN27/USBID/RB5 43 RB14/PMA1 2 RP22/PMA1/PMALH/CN18/RC6 J1-I2S SCK 36 RP19/PMBE0/CN28/RC3 44 RB15/PMA0 3 RP23/PMA0/PMALL/CN17/RC7 96 RG12 35 TDI/PMA9/CN35/RA9 45 VSS 29 VSS 37 RP20/PMA4/CN25/RC4 39 VSS 97 RG13 38 RP21/PMA3/CN26/RC5 46 VDD 28 VDD 98 RE2/PMD2 23 AN4/C1INB/RP2/SDA2/T5CK/T4CK/CTED13/CN6/PMD2/RB2 40 VDD (1) 99 RE3/PMD3 1 C1INC/C2INC/C3INC/RP9/SDA1/T1CK/CTED4/PMD3/CN21/RB9 47 RD14/U1CTS 24 AN5/C1INA/RP3/SCL2/CTED8/CN7/PMWR/RB3 (1) 100 RE4/PMD4 44 RP8/SCL1/CTED10/PMD4/CN22/USBOEN/RB8 48 RD15/U1RTS 4 RP24/PMA5/CN20/RC8 Note 1: This pin is a common or required signal for PICtail Plus daughter boards. 49 RF4/PMA9/U2RX 36 RP19/PMBE0/CN28/RC3 50 RF5/PMA8/U2TX 5 RP25/CTED7/PMA6/CN19/RC9 Note 1: This pin is a common or required signal for PICtail Plus daughter boards.