Microchip Technology MA240013 用户手册
Overview
The PIC24FJ64GA004 PIM is designed to demonstrate the capabilities of the PIC24FJ64GA004
family using the Explorer 16 Demonstration Board kit and the PICtail™ Plus daughter boards. The
PIC24FJ64GA004 is a 44-pin device with the new Peripheral Pin Select (PPS) feature. The PPS
feature of this PIC24F family allows many of the digital peripherals on the part to be remapped
to use any of a number of pins on the device. This allows for signifi cant improvements in ease of
design and helps to reduce cost by allowing for the smallest possible size devices to be used.
family using the Explorer 16 Demonstration Board kit and the PICtail™ Plus daughter boards. The
PIC24FJ64GA004 is a 44-pin device with the new Peripheral Pin Select (PPS) feature. The PPS
feature of this PIC24F family allows many of the digital peripherals on the part to be remapped
to use any of a number of pins on the device. This allows for signifi cant improvements in ease of
design and helps to reduce cost by allowing for the smallest possible size devices to be used.
The following two tables detail the pin mapping of the 44-pin device to the 100-pin PIM header.
•
The 44-pin to 100-pin table lists the device pins and shows what functions are mapped to each.
This table is most useful for viewing multiplexing confl icts which prevent some functions from
being used simultaneously.
This table is most useful for viewing multiplexing confl icts which prevent some functions from
being used simultaneously.
•
The 100-pin to 44-pin table shows a listing of the Explorer 16 functions and what device pin is
mapped to that function.
mapped to that function.
PIC24FJ64GA004 PIM Limitations
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 simultaneously. All of the built-in functionality on the Explorer 16 board
can be used simultaneously, with the exception of the LEDs. LEDs are multiplexed on switch and
PMP lines, which means they will not always be usable if these functions are in use.
the functions cannot be used simultaneously. All of the built-in functionality on the Explorer 16 board
can be used simultaneously, with the exception of the LEDs. LEDs are multiplexed on switch and
PMP lines, which means they will not always be usable if these functions are in use.
The PICtail Plus daughter boards have similar limitations. All daughter boards will work by
themselves, however, most PICtail Plus daughter boards will not work if two are installed
simultaneously. Additionally, a PICtail Plus daughter board may not work with all of the default
Explorer 16 functionality. If a PICtail Plus daughter board is designed to work with a Microchip stack,
the stack will need to be modifi ed to function with the PIM pinout and PPS feature.
themselves, however, most PICtail Plus daughter boards will not work if two are installed
simultaneously. Additionally, a PICtail Plus daughter board may not work with all of the default
Explorer 16 functionality. If a PICtail Plus daughter board is designed to work with a Microchip stack,
the stack will need to be modifi ed to function with the PIM pinout and PPS feature.
Please check the pinouts of the components you are using to ensure compatability before attempting
to use multiple peripheral functions or PICtail Plus daughter boards at the same time.
to use multiple peripheral functions or PICtail Plus daughter boards at the same time.
Introducing the PIC24FJ64GA004 PIM
PIC24FJ64GA004 PIM Features
Due to the fl exibility allowed by the PPS feature, the 44-pin device is capable of performing all of the
base functions on the 100-pin Explorer 16 board. In addition, the PIM is compatible with most of the
PICtail Plus daughter boards for the Explorer 16.
base functions on the 100-pin Explorer 16 board. In addition, the PIM is compatible with most of the
PICtail Plus daughter boards for the Explorer 16.
Tips for Using the PIC24FJ64GA004 PIM
•
The Explorer 16 LEDs are multiplexed with a number of functions and so may not be useful in
some situations. Make sure to check the mapping tables for confl icts.
some situations. Make sure to check the mapping tables for confl icts.
•
The PIC24FJ64GA004 port pins are not mapped to the corresponding port I/O on the Explorer 16.
Make sure to use the following pinout tables as a cross reference to ensure you use the correct
device pin in your application.
Make sure to use the following pinout tables as a cross reference to ensure you use the correct
device pin in your application.
•
Many of the peripherals used by the Explorer 16 and PICtail Plus daughter boards are
implemented on pins with analog functionality. These peripherals may not confl ict with analog
features on other PIC24F PIMs. Make sure to add any necessary code to override this analog
functionality in your application or in the stack application you are using.
implemented on pins with analog functionality. These peripherals may not confl ict with analog
features on other PIC24F PIMs. Make sure to add any necessary code to override this analog
functionality in your application or in the stack application you are using.
•
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 boards, it may be necessary to manually drive the pins initially. The pin
must be driven in order to ensure the bus is driven to either V
PMP pins on one of these boards, it may be necessary to manually drive the pins initially. The pin
must be driven in order to ensure the bus is driven to either V
DD
or V
SS
, instead of fl oating at 5V.
Zero ohm resistors on pins 99 and 100 of the PIM allow the PMP functionality to be removed from
these pins. This is done in order to prevent the I2C2 from having a bus collision with the PMP data
lines when they are connected to the 5V LCD.
these pins. This is done in order to prevent the I2C2 from having a bus collision with the PMP data
lines when they are connected to the 5V LCD.
•
UART1 and SPI1 are multiplexed onto the same device pins as the temperature sensor and
potentiometer on the Explorer 16 board. Jumpers are provided to remove the analog temperature
sensor and potentiometer functions from the PIM. Removing the jumpers will allow the SPI1 and
UART1 to function correctly.
potentiometer on the Explorer 16 board. Jumpers are provided to remove the analog temperature
sensor and potentiometer functions from the PIM. Removing the jumpers will allow the SPI1 and
UART1 to function correctly.
•
Many PICtail Plus daughter boards use the EEPROM, SPI and UART2 (which has the RS-232 port
functionality). These functions were mapped to ensure that they can be used together to allow support for
these boards.
functionality). These functions were mapped to ensure that they can be used together to allow support for
these boards.
Table 1: 44-Pin to 100-Pin Pinout
Pin #
PIC24FJ64GA004 Pinout
Pin #
PIM Func #1
Pin #
PIM Func #2
Pin #
PIM Func #3
1
RP9/SDA1/CN21/PMPD3/RB9
59
RA3/SDA2
99
PMD3
2
RP22/CN18/PMPA1/RC6
92
RA7
23
RB2/SS1
(1)
43
PMA1
3
RP23/CN17/PMPA0/RC7
44
PMA0
4
RP24/CN20/PMPA5/RC8
67
RA15/INT4
(1)
48
RD15/U1RTS
(1)
10
PMA5/SCK2
5
RP25/CN19/PMPA6/RC9
50
U2TX
66
RA14/INT3
(1)
29
PMA6
6
DISVREG
75
GND
7
V
CAP
/V
DDCORE
85
V
CAP
/V
DDCORE
8
RP10/CN16/PMPD2/RB10
98
PMD2
9
RP11/CN15/PMPD1/RB11
94
PMD1
10
RP12/CN14/PMPD0/RB12
91
RA6
93
PMD0
11
RP13/CN13/PMPRD/RB13
82
PMRD
12
PMPA10/RA10/TMS
17
RA0/TMS
83
RD6
13
PMPA7/RA7/TCK
38
RA1/TCK
80
RD13
28
PMA7
14
AN10/CV
REF
/RTCC/RP14/CN12/
PMPWR/RB14
68
RTCC/RD8
(1)
81
PMWR
15
AN9/RP15/C11/PMPCS1/RB15
55
SCK1
7
RC2/T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
3
PMD5
44
RP8/SCL1/CN22/PMPD4/RB8
58
RA2/SCL2
100
PMD4
Note 1: This pin is a common or required signal for PICtail™ Plus daughter boards.