Differences
This shows you the differences between two versions of the page.
| chipkit_pro_mx4:refmanual [2015/03/19 00:00] – [8 USB Interface] brandon marcum | chipkit_pro_mx4:refmanual [2022/10/04 11:38] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== ChipKIT™ PRO MX4 Board Reference Manual ====== | ====== ChipKIT™ PRO MX4 Board Reference Manual ====== | ||
| - | {{ : | + | {{: |
| ---- | ---- | ||
| ==== Revision History ==== | ==== Revision History ==== | ||
| Line 73: | Line 73: | ||
| The ChipKIT Pro MX4 has a number of input/ | The ChipKIT Pro MX4 has a number of input/ | ||
| Digilent Pmod™ line of peripheral modules to provide a variety of input and output functions. For more | Digilent Pmod™ line of peripheral modules to provide a variety of input and output functions. For more | ||
| - | information, | + | information, |
| for RC hobby servos, two push button switches, and four LEDs, as well as providing connections for two I< | for RC hobby servos, two push button switches, and four LEDs, as well as providing connections for two I< | ||
| Line 199: | Line 199: | ||
| microcontroller, | microcontroller, | ||
| - | The ChipKIT Pro MX4 Schematic, available on the ChipKIT Pro MX4 product | + | The ChipKIT Pro MX4 Schematic, available on the ChipKIT Pro MX4 [[/ |
| - | www.digilentinc.com | + | |
| The PIC32MX3XX/ | The PIC32MX3XX/ | ||
| Line 531: | Line 530: | ||
| When operating as a USB host, the ChipKIT Pro MX4 must be externally powered. Connect a regulated 5V power supply to one of the external power connectors (J13, J14, or J18) and ensure that the shorting block is in the center, “EXT” position of J12. The power supply used must be a regulated 5V supply. The ChipKIT Pro MX4 board provides power to the attached USB device when operating as a host, and the USB specification requires the use of a 5V power supply. NOTE: Providing a voltage greater than 5V can damage the ChipKIT Pro MX4 board and/or the USB device being used. | When operating as a USB host, the ChipKIT Pro MX4 must be externally powered. Connect a regulated 5V power supply to one of the external power connectors (J13, J14, or J18) and ensure that the shorting block is in the center, “EXT” position of J12. The power supply used must be a regulated 5V supply. The ChipKIT Pro MX4 board provides power to the attached USB device when operating as a host, and the USB specification requires the use of a 5V power supply. NOTE: Providing a voltage greater than 5V can damage the ChipKIT Pro MX4 board and/or the USB device being used. | ||
| - | {{ : | + | {{ : |
| {{ : | {{ : | ||
| - | When operating as a USB host, the PIC32MX460 microcontroller controls application of power to the connected device via the VBUSON control pin. Bus power is applied to the device by driving the VBUSON pin high. Power is removed from the device by driving the VBUSON pin low. The VBUSON pin is accessed via bit 3 of the U1OTGCON register. | + | When operating as a USB host, the PIC32MX460 microcontroller controls application of power to the connected device via the VBUSON control pin. Bus power is applied to the device by driving the VBUSON pin high. Power is removed from the device by driving the VBUSON pin low. The VBUSON pin is accessed via bit 3 of the U1OTGCON register.\\ \\ \\ \\ \\ \\ \\ \\ \\ \\ |
| - | {{ : | + | {{ : |
| {{ : | {{ : | ||
| Line 554: | Line 553: | ||
| ===== 9 UART Interface ===== | ===== 9 UART Interface ===== | ||
| - | The PIC32MX460 microcontroller provides two UART interfaces, UART1 and UART2. These UARTs can provide | + | The PIC32MX460 microcontroller provides two UART interfaces, UART1 and UART2. These UARTs can provide either a 2-wire or a 4-wire asynchronous serial interface. The 2-wire interface provides receive (RX) and transmit (TX) signals. The 4-wire interface includes request-to-send (RTS) and clear-to-send (CTS) in addition to receive and |
| - | either a 2-wire or a 4-wire asynchronous serial interface. The 2-wire interface provides receive (RX) and transmit | + | |
| - | (TX) signals. The 4-wire interface includes request-to-send (RTS) and clear-to-send (CTS) in addition to receive and | + | |
| transmit. | transmit. | ||
| - | UART1 can be accessed from Pmod connector JE and UART2 can be accessed from Pmod connector JH using the | + | UART1 can be accessed from Pmod connector JE and UART2 can be accessed from Pmod connector JH using the following pins: |
| - | following pins: | + | |
| * U1CTS JE-01 | * U1CTS JE-01 | ||
| Line 572: | Line 568: | ||
| * U2RTS JH-04 | * U2RTS JH-04 | ||
| - | Detailed information about the operation of the UART peripherals can be found in the PIC32 Family Reference | + | Detailed information about the operation of the UART peripherals can be found in the PIC32 Family Reference Manual, Section 21, UART. |
| - | Manual, Section 21, UART. | + | |
| - | The USB Serial converter is connected to UART1. The MPIDE uses this to communicate with the boot loader. This | + | The USB Serial converter is connected to UART1. The MPIDE uses this to communicate with the boot loader. This can also be used for a serial communications interface between the ChipKIT Pro MX4 board and other software running on a PC. Resistors are used to decouple the USB serial interface and so UART1 can also be used via Pmod connector JE when it is not being used to communicate via the USB serial converter. |
| - | can also be used for a serial communications interface between the ChipKIT Pro MX4 board and other software | + | |
| - | running on a PC. Resistors are used to decouple the USB serial interface and so UART1 can also be used via Pmod | + | |
| - | connector JE when it is not being used to communicate via the USB serial converter. | + | |
| - | Note that when using the MPIDE software, devices connected to JE can interfere with the operation of the serial | + | Note that when using the MPIDE software, devices connected to JE can interfere with the operation of the serial interface and prevent the MPIDE from successfully downloading sketches to the board. If this happens, disconnect the external device from JE until the sketch has been downloaded and then reconnect it. |
| - | interface and prevent the MPIDE from successfully downloading sketches to the board. If this happens, disconnect | + | |
| - | the external device from JE until the sketch has been downloaded and then reconnect it. | + | |
| - | When using the ChipKIT Pro MX4 with the MPIDE and the chipKIT system, the UARTs are accessed using the | + | When using the ChipKIT Pro MX4 with the MPIDE and the chipKIT system, the UARTs are accessed using the HardwareSerial facility built into the system. UART1, connector JE, is accessed using the Serial object and UART2, connector JH, is accessed using Serial1. |
| - | HardwareSerial facility built into the system. UART1, connector JE, is accessed using the Serial object and | + | |
| - | UART2, connector JH, is accessed using Serial1. | + | |
| ---- | ---- | ||
| ===== 10 Serial Peripheral Interface (SPI) ===== | ===== 10 Serial Peripheral Interface (SPI) ===== | ||
| - | SPI is a four wire synchronous serial interface and SPI devices can operate as either master devices or as slave | + | SPI is a four wire synchronous serial interface and SPI devices can operate as either master devices or as slave devices. The PIC32 microcontroller labels the four SPI signals as Slave Select (SS), Serial Data Out (SDO), Serial Data In (SDI), and Serial Clock (SCK). A master device transmits SS, SDO and SCK, and receives SDI. A slave device receives SS, SDI, and SCK and transmits SDO. The SS signal is used to enable the slave device, and this signal is only significant for slave devices. A master device can use any general purpose I/O pin to generate SS to enable |
| - | devices. The PIC32 microcontroller labels the four SPI signals as Slave Select (SS), Serial Data Out (SDO), Serial Data | + | |
| - | In (SDI), and Serial Clock (SCK). A master device transmits SS, SDO and SCK, and receives SDI. A slave device | + | |
| - | receives SS, SDI, and SCK and transmits SDO. The SS signal is used to enable the slave device, and this signal is only | + | |
| - | significant for slave devices. A master device can use any general purpose I/O pin to generate SS to enable the | + | |
| - | slave. | + | |
| - | An SPI transaction begins with the master device bringing SS low. When the slave sees SS go low it becomes | + | An SPI transaction begins with the master device bringing SS low. When the slave sees SS go low it becomes enabled and waits for the master to send data. The master shifts data out on SDO and simultaneously shifts data in on SDI. The slave device receives data from the master on its SDI pin and simultaneously sends data to the master on its SDO pin. Each time the master sends a byte to the slave, it simultaneously receives a byte from the slave. |
| - | enabled and waits for the master to send data. The master shifts data out on SDO and simultaneously shifts data in | + | |
| - | on SDI. The slave device receives data from the master on its SDI pin and simultaneously sends data to the master | + | |
| - | on its SDO pin. Each time the master sends a byte to the slave, it simultaneously receives a byte from the slave. | + | |
| - | The PIC32MX460 microcontroller provides two Serial Peripheral Interfaces, SPI1 and SPI2. SPI2 is accessed via | + | {{ : |
| - | Pmod connector JB and SPI1 is accessed via connector J1. Because of the way that peripheral functions are shared | + | |
| - | on the pins on the PIC32 microcontroller, | + | |
| - | board. For this reason, when using only a single SPI port, SPI2 is the preferred port to use. | + | |
| The following gives the mapping between SPI signals and connector pins: | The following gives the mapping between SPI signals and connector pins: | ||
| Line 620: | Line 597: | ||
| * SCK1 J1-04 (also JD-09) | * SCK1 J1-04 (also JD-09) | ||
| - | Detailed information about the operation of the SPI peripherals can be found in the PIC32 Family Reference | + | Detailed information about the operation of the SPI peripherals can be found in the PIC32 Family Reference Manual, Section 23, Serial Peripheral Interface. |
| - | Manual, Section 23, Serial Peripheral Interface. | + | |
| - | When using the ChipKIT Pro MX4 with the MPIDE and the chipKIT system, the SPI ports are accessed using either | + | When using the ChipKIT Pro MX4 with the MPIDE and the chipKIT system, the SPI ports are accessed using either the standard chipKIT SPI library or using the Digilent DSPI library. |
| - | the standard chipKIT SPI library or using the Digilent DSPI library. | + | |
| The standard SPI library supports access to a single SPI port, SPI2. This is accessed using the SPI object. | The standard SPI library supports access to a single SPI port, SPI2. This is accessed using the SPI object. | ||
| - | The DSPI library supports access to both SPI ports. The DSPI0 object class is used to create an object used to | + | The DSPI library supports access to both SPI ports. The DSPI0 object class is used to create an object used to access the default SPI port, SPI2, connector JB. The DSPI1 object class is used to access SPI1, connector J1. |
| - | access the default SPI port, SPI2, connector JB. The DSPI1 object class is used to access SPI1, connector J1. | + | |
| ---- | ---- | ||
| - | ===== 11 I2C ™ Interface ===== | + | ===== 11 I²C™ Interface ===== |
| - | The Inter-Integrated Circuit (I< | + | The Inter-Integrated Circuit (I< |
| - | communications bus. The I< | + | |
| - | The PIC32MX460 microcontroller provides for two independent I< | + | {{ : |
| - | The I< | + | {{ : |
| The I< | The I< | ||
| - | ==== 11.1 Jumper Setting for I2C Pull Up Resistors ==== | + | ==== 11.1 Jumper Setting for I²C Pull Up Resistors ==== |
| Line 677: | Line 650: | ||
| - | ==== 11.2 On-Board | + | ==== 11.2 On-Board |
| - | + | The ChipKIT Pro MX4 provides two on-board I< | |
| - | The ChipKIT Pro MX4 provides two on-board I< | + | |
| - | 256Kbit (32Kbyte) serial EEPROM device to provide non-volatile memory storage. The MCP4725 is a single | + | |
| - | channel, 12-bit, serial digital to analog converter that provides an analog output voltage for various uses. The | + | |
| - | device address for IC2, the 24LC256 is 1010000 (0x50). The device address for IC3, the MCP4725, is 1100000 | + | |
| - | (0x60). | + | |
| Refer to the Microchip data sheets for detailed information on the operation of these devices. | Refer to the Microchip data sheets for detailed information on the operation of these devices. | ||
| - | The analog output voltage from IC3 is available at two places on the ChipKIT Pro MX4 board. The two pin header, | + | {{ : |
| - | J10, provides the DAC output voltage and ground for connection to off-board applications. | + | |
| - | The DAC output signal is also available at the center, DAC, position of jumper block J16. Placing a shorting block at this position connects the DAC output to pin 20 on the PIC32MX460 microcontroller. One of the functions for this | + | {{ : |
| - | pin is as one of the inputs to analog comparator #1 on the PIC32 device. This allows the output of the DAC to be | + | |
| - | used as a programmable reference voltage for the comparator. | + | |
| ---- | ---- | ||
| ===== 12 Analog Inputs ===== | ===== 12 Analog Inputs ===== | ||
| - | The PIC32MX460 microcontroller provides a 10-bit analog to digital (A/D) converter that provides up to sixteen | + | The PIC32MX460 microcontroller provides a 10-bit analog to digital (A/D) converter that provides up to sixteen analog inputs. The ChipKIT Pro MX4 board provides access to 14 of them on the Pmod connectors. The converted values produced by the A/D converter will be in the range 0–1023. |
| - | analog inputs. The ChipKIT Pro MX4 board provides access to 14 of them on the Pmod connectors. The converted | + | |
| - | values produced by the A/D converter will be in the range 0–1023. | + | |
| - | For detailed information on the operation and use of the A/D converter, refer to the PIC32 Family Reference | + | For detailed information on the operation and use of the A/D converter, refer to the PIC32 Family Reference Manual, Section 17, 10-bit AD Converter. |
| - | Manual, Section 17, 10-bit AD Converter. | + | |
| - | The analog inputs are accessed using the analogRead() function in the MPIDE software. The analog input pin | + | The analog inputs are accessed using the analogRead() function in the MPIDE software. The analog input pin number is specified using the symbols A0–A13. The digital pin numbers for the pin or the numbers 0–13 can also be used, but using the symbols A0–A13 is recommended. |
| - | number is specified using the symbols A0–A13. The digital pin numbers for the pin or the numbers 0–13 can also | + | |
| - | be used, but using the symbols A0–A13 is recommended. | + | |
| The following gives the Pmod connector position, digital pin number, and microcontroller I/O port and bit number | The following gives the Pmod connector position, digital pin number, and microcontroller I/O port and bit number | ||
| Line 731: | Line 691: | ||
| - | The PIC32 microcontroller provides two voltage reference inputs to the analog to digital converter. Vref- is used to | + | The PIC32 microcontroller provides two voltage reference inputs to the analog to digital converter. Vref- is used to set the lower reference level and Vref+ is used to set the upper reference level. These reference inputs can be connected to internal references or to external references using two of the analog input pins. |
| - | set the lower reference level and Vref+ is used to set the upper reference level. These reference inputs can be | + | |
| - | connected to internal references or to external references using two of the analog input pins. | + | |
| - | When the internal references are being used, Vref- is connected to VSS and Vref+ is connected to VDD. This means | + | When the internal references are being used, Vref- is connected to VSS and Vref+ is connected to VDD. This means that the voltage input range at the analog input pins is 0V–3.3V. In this case, an input voltage of 0V will convert to ~0, an input voltage of 1.65V will convert to ~511, and an input voltage of 3.3V will convert to ~1023. |
| - | that the voltage input range at the analog input pins is 0V–3.3V. In this case, an input voltage of 0V will convert to | + | |
| - | ~0, an input voltage of 1.65V will convert to ~511, and an input voltage of 3.3V will convert to ~1023. | + | |
| - | Either one, or both, of the references can be connected to external reference pins. When this is done, the | + | Either one, or both, of the references can be connected to external reference pins. When this is done, the references can be set to voltages other than 0V and 3.3V. |
| - | references can be set to voltages other than 0V and 3.3V. | + | |
| - | If, for example, both references were selected to use external references, with 1V applied to Vref- and 2V applied | + | If, for example, both references were selected to use external references, with 1V applied to Vref- and 2V applied to Vref+, the input voltage range at the analog input pins would be from 1V to 2V. An applied voltage of 1V would have a converted value of ~0, 1.5V would have a converted value of ~511, and 2V would have a converted value of ~1023. |
| - | to Vref+, the input voltage range at the analog input pins would be from 1V to 2V. An applied voltage of 1V would | + | |
| - | have a converted value of ~0, 1.5V would have a converted value of ~511, and 2V would have a converted value of | + | |
| - | ~1023. | + | |
| When both external references are being used, Vref+ must have a higher voltage applied to in than Vref-. | When both external references are being used, Vref+ must have a higher voltage applied to in than Vref-. | ||
| - | The analog reference input pins appear on Pmod connector JK, pins 7 & 8. Vref- is on pin JK-07, and Vref+ is on pin | + | The analog reference input pins appear on Pmod connector JK, pins 7 & 8. Vref- is on pin JK-07, and Vref+ is on pin JK-08. These pins are not available to be used for digital I/O when being used as an external reference. |
| - | JK-08. These pins are not available to be used for digital I/O when being used as an external reference. | + | |
| - | When using the MPIDE software, the use of external analog references is selected using the analogReference() | + | When using the MPIDE software, the use of external analog references is selected using the analogReference() function. The following values can be used with analogReference(): |
| - | function. The following values can be used with analogReference(): | + | |
| * DEFAULT – Vref- = 0V, Vref+ = 3.3V | * DEFAULT – Vref- = 0V, Vref+ = 3.3V | ||
| Line 759: | Line 709: | ||
| * EXTERNAL – Vref- = 0V, Vref+ = voltage at A2 | * EXTERNAL – Vref- = 0V, Vref+ = voltage at A2 | ||
| * EXTMINUS – Vref- = voltage at A3, Vref+ = 3.3V | * EXTMINUS – Vref- = voltage at A3, Vref+ = 3.3V | ||
| - | * EXTPLUSMINUS – Vref- = voltage at A3, Vref+ = voltage at A2 * Unordered List Item | + | * EXTPLUSMINUS – Vref- = voltage at A3, Vref+ = voltage at A2 |
| ---- | ---- | ||
| Line 765: | Line 715: | ||
| The PIC32 microcontroller provides five timers that can be used for various timing functions. These timers are each | The PIC32 microcontroller provides five timers that can be used for various timing functions. These timers are each | ||
| - | 16 bits wide, although two pairs, TIMER2/ | + | 16 bits wide, although two pairs, TIMER2/ |
| - | timers. | + | |
| - | A timer consists of a control register, a counter register, and a period register. The control register is used to | + | A timer consists of a control register, a counter register, and a period register. The control register is used to configure the timer for various modes of operation. The count register counts cycles of the clock source selected via the control register. This clock source can be the peripheral bus clock or a division of the peripheral bus clock via a pre-scaler divider. The period register can be used to generate an interrupt and/or reset the count register when a pre-determined value is reached. |
| - | configure the timer for various modes of operation. The count register counts cycles of the clock source selected | + | |
| - | via the control register. This clock source can be the peripheral bus clock or a division of the peripheral bus clock | + | |
| - | via a pre-scaler divider. The period register can be used to generate an interrupt and/or reset the count register | + | |
| - | when a pre-determined value is reached. | + | |
| - | Each timer has an associated input pin. In some operating modes, this pin can be used as an external clock input to | + | Each timer has an associated input pin. In some operating modes, this pin can be used as an external clock input to the timer, or as a gate input to turn on/off incrementing of the counter register under control of an external signal. |
| - | the timer, or as a gate input to turn on/off incrementing of the counter register under control of an external signal. | + | |
| The following gives the Pmod connector position, chipKIT pin number, and microcontroller I/O port and bit number | The following gives the Pmod connector position, chipKIT pin number, and microcontroller I/O port and bit number | ||
| Line 786: | Line 730: | ||
| * TCK5 – JK-10, digital pin 71, RC04 | * TCK5 – JK-10, digital pin 71, RC04 | ||
| - | For detailed information on the operation of the PIC32 timers, refer to the PIC32 Family Reference Manual, Section | + | For detailed information on the operation of the PIC32 timers, refer to the PIC32 Family Reference Manual, Section 14, Timers. |
| - | 14, Timers. | + | |
| - | When using the MPIDE software, the symbols PIN_TCK2, PIN_TCK3, PIN_TCK4, and PIN_TCK5 can be used to access | + | When using the MPIDE software, the symbols PIN_TCK2, PIN_TCK3, PIN_TCK4, and PIN_TCK5 can be used to access the timer input pins. |
| - | the timer input pins. | + | |
| - | Control and operation of the timers is not explicitly provided in the current version of the MPIDE software. This | + | Control and operation of the timers is not explicitly provided in the current version of the MPIDE software. This capability will be added in a future version of the software. Timers are used implicitly by various core functions and libraries, however. |
| - | capability will be added in a future version of the software. Timers are used implicitly by various core functions and | + | |
| - | libraries, however. | + | |
| ---- | ---- | ||
| ===== 15 Output Compare ===== | ===== 15 Output Compare ===== | ||
| - | The PIC32 microcontroller provides five output compare units that can be used to control the timing of state | + | The PIC32 microcontroller provides five output compare units that can be used to control the timing of state changes on certain output pins or to generate pulse width modulated (PWM) outputs. |
| - | changes on certain output pins or to generate pulse width modulated (PWM) outputs. | + | |
| - | Each output compare unit works with a particular output pin (OC1-OC5). They can be programmed to control the | + | Each output compare unit works with a particular output pin (OC1-OC5). They can be programmed to control the pin in any of the following ways: |
| - | pin in any of the following ways: | + | |
| * PWM output | * PWM output | ||
| Line 812: | Line 750: | ||
| * Generate rising edge | * Generate rising edge | ||
| - | The output compare units work in conjunction with a timer. Either Timer2 or Timer3 can be used with any of the | + | The output compare units work in conjunction with a timer. Either Timer2 or Timer3 can be used with any of the five output compare units. |
| - | five output compare units. | + | |
| - | Refer to the PIC32 Family Reference Manual, Section 16, Output Compare for detailed information on the use of | + | Refer to the PIC32 Family Reference Manual, Section 16, Output Compare for detailed information on the use of the output compares units. |
| - | the output compares units. | + | |
| - | When using the MPIDE software, these are accessed using the analogWrite() function. The digital pin number, or | + | When using the MPIDE software, these are accessed using the analogWrite() function. The digital pin number, or preferably, the symbols PIN_OC1 through PIN_OC5 are used to specify the pin. The MPIDE software currently only supports using the output compare units to generate PWM outputs. It uses Timer2 to control the output compares. |
| - | preferably, the symbols PIN_OC1 through PIN_OC5 are used to specify the pin. The MPIDE software currently only | + | |
| - | supports using the output compare units to generate PWM outputs. It uses Timer2 to control the output | + | |
| - | compares. | + | |
| - | The following gives Pmod connector position, chipKIT pin number, and microcontroller I/O port and bit number for | + | The following gives Pmod connector position, chipKIT pin number, and microcontroller I/O port and bit number for the output compare unit’s output pins: |
| - | the output compare unit’s output pins: | + | |
| * OC1 – JH-08, digital pin 53, RD0 | * OC1 – JH-08, digital pin 53, RD0 | ||
| Line 835: | Line 767: | ||
| ===== 16 Input Capture ===== | ===== 16 Input Capture ===== | ||
| - | The PIC32 microcontroller provides five input capture units. An input capture unit works in conjunction with a | + | The PIC32 microcontroller provides five input capture units. An input capture unit works in conjunction with a timer and monitors the state of an associated pin. When the pin changes state, the current value of the timer is captured. The input capture units can be used with either Timer2 or Timer3. |
| - | timer and monitors the state of an associated pin. When the pin changes state, the current value of the timer is | + | |
| - | captured. The input capture units can be used with either Timer2 or Timer3. | + | |
| - | The input capture unit can be programmed to be sensitive to either a rising edge, a falling edge, or both edges on | + | The input capture unit can be programmed to be sensitive to either a rising edge, a falling edge, or both edges on the input pin. An interrupt can also be signaled when an input capture is triggered. Each input capture has a four level deep FIFO that can buffer up to four capture events. |
| - | the input pin. An interrupt can also be signaled when an input capture is triggered. Each input capture has a four | + | |
| - | level deep FIFO that can buffer up to four capture events. | + | |
| - | For detailed information on the operation and use of the input capture units, refer to the PIC32 Family Reference | + | For detailed information on the operation and use of the input capture units, refer to the PIC32 Family Reference Manual, Section 15, Input Capture. |
| - | Manual, Section 15, Input Capture. | + | |
| - | The following gives the Pmod connector position, chipKIT pin number, and microcontroller port and bit number for | + | The following gives the Pmod connector position, chipKIT pin number, and microcontroller port and bit number for the input capture units input pins: |
| - | the input capture units input pins: | + | |
| * IC1 – JH-09, digital pin 54, RD08 | * IC1 – JH-09, digital pin 54, RD08 | ||
| Line 856: | Line 782: | ||
| - | When using the MPIDE software, the symbols PIN_IC1, PIN_IC2, PIN_IC3, PIN_IC4, and PIN_IC5 can be used to | + | When using the MPIDE software, the symbols PIN_IC1, PIN_IC2, PIN_IC3, PIN_IC4, and PIN_IC5 can be used to access the capture input pins. |
| - | access the capture input pins. | + | |
| Use of the input capture units is not currently supported in the MPIDE software. This will be added in a future | Use of the input capture units is not currently supported in the MPIDE software. This will be added in a future | ||
| Line 866: | Line 791: | ||
| - | The PIC32 microcontroller provides five external interrupt inputs. An external interrupt input can be used to | + | The PIC32 microcontroller provides five external interrupt inputs. An external interrupt input can be used to generate an interrupt to the microprocessor CPU when the pin changes state. They can be programmed to interrupt on a rising edge or a falling edge on the pin. |
| - | generate an interrupt to the microprocessor CPU when the pin changes state. They can be programmed to | + | |
| - | interrupt on a rising edge or a falling edge on the pin. | + | |
| - | Refer to the PIC32 Family Reference Manual, Section 8, Interrupts for more information on the operation of the | + | Refer to the PIC32 Family Reference Manual, Section 8, Interrupts for more information on the operation of the external interrupts. |
| - | external interrupts. | + | |
| - | These are accessed using the attachInterrupt() and detachInterrupt() functions when using the MPIDE software,. | + | These are accessed using the attachInterrupt() and detachInterrupt() functions when using the MPIDE software. The interrupt number is specified using the numbers 0-4, or preferably, the symbols EXT_INT0 through EXT_INT4. |
| - | The interrupt number is specified using the numbers 0-4, or preferably, the symbols EXT_INT0 through EXT_INT4. | + | |
| The following gives Pmod connector position, chipKIT pin number, and microcontroller I/O port and bit number: | The following gives Pmod connector position, chipKIT pin number, and microcontroller I/O port and bit number: | ||
| Line 983: | Line 904: | ||
| ==== By Microcontroller Pin # ==== | ==== By Microcontroller Pin # ==== | ||
| ^ PIC32 Pin # ^ Connector Pin # ^ chipKIT Pin # ^ MCU Port & Bit ^ PIC32 Signal Name ^ Notes ^ | ^ PIC32 Pin # ^ Connector Pin # ^ chipKIT Pin # ^ MCU Port & Bit ^ PIC32 Signal Name ^ Notes ^ | ||
| - | | 1 | JC-04 | 19 | RG15 | RG15 | also servo S4 | | + | | 1* | JC-04 | 19 | RG15 | RG15 | also servo S4 | |
| - | | 3 | JA-08 | 5 | RE05 | PMD5/ | + | | 3* | JA-08 | 5 | RE05 | PMD5/ |
| - | | 4 | JA-09 | 6 | RE06 | PMD6/ | + | | 4* | JA-09 | 6 | RE06 | PMD6/ |
| - | | 5 | JA-10 | 7 | RE07 | PMD7/ | + | | 5* | JA-10 | 7 | RE07 | PMD7/ |
| - | | 6 | JD-04 | 27 | RC01 | T2CK/ | + | | 6* | JD-04 | 27 | RC01 | T2CK/ |
| - | | 7 | JD-10 | 31 | RC02 | T3CK/ | + | | 7* | JD-10 | 31 | RC02 | T3CK/ |
| - | | 8 | JE-10 | 39 | RC03 | T4CK/ | + | | 8* | JE-10 | 39 | RC03 | T4CK/ |
| - | | 9 | JK-10 | 71 | RC04 | SDI1/ | + | | 9* | JK-10 | 71 | RC04 | SDI1/ |
| - | | 10 | JB-04 | 11 | RG06 | PMA5/ | + | | 10* | JB-04 | 11 | RG06 | PMA5/ |
| - | | 11 | JB-03 | 10 | RG07 | PMA4/ | + | | 11* | JB-03 | 10 | RG07 | PMA4/ |
| - | | 12 | JB-02 | 9 | RG08 | PMA3/ | + | | 12* | JB-02 | 9 | RG08 | PMA3/ |
| - | | 14 | JB-01 | 8 | RG09 | PMA2/ | + | | 14* | JB-01 | 8 | RG09 | PMA2/ |
| - | | 17 | JF-07 | 44 | RA00 | TMS/ | + | | 17* | JF-07 | 44 | RA00 | TMS/ |
| - | | 18 | JH-07 | 52 | RE08 | INT1/ | + | | 18* | JH-07 | 52 | RE08 | INT1/ |
| - | | 19 | JE-07 | 36 | RE09 | INT2/ | + | | 19* | JE-07 | 36 | RE09 | INT2/ |
| | 20 | JJ-08 | 61 | RB05 | VBUSON/ | | 20 | JJ-08 | 61 | RB05 | VBUSON/ | ||
| | 21 | JJ-07 | 60 | RB04 | C1IN-/ | | 21 | JJ-07 | 60 | RB04 | C1IN-/ | ||
| Line 1012: | Line 933: | ||
| | 34 | JK-01 | 64 | RB10 | CVrefout/ | | 34 | JK-01 | 64 | RB10 | CVrefout/ | ||
| | 35 | JK-02 | 65 | RB11 | PMA12/ | | 35 | JK-02 | 65 | RB11 | PMA12/ | ||
| - | | 38 | JF-08 | 45 | RA01 | TCK/ | + | | 38* | JF-08 | 45 | RA01 | TCK/ |
| - | | 39 | JH-04 | 51 | RF13 | U2RTS/ | + | | 39* | JH-04 | 51 | RF13 | U2RTS/ |
| - | | 40 | JH-01 | 48 | RF12 | U2CTS/ | + | | 40* | JH-01 | 48 | RF12 | U2CTS/ |
| | 41 | JK-03 | 66 | RB12 | PMA11/ | | 41 | JK-03 | 66 | RB12 | PMA11/ | ||
| | 42 | JK-04 | 67 | RB13 | PMA10/ | | 42 | JK-04 | 67 | RB13 | PMA10/ | ||
| | 43 | JB-10 | 15 | RB14 | PMALH/ | | 43 | JB-10 | 15 | RB14 | PMALH/ | ||
| | 44 | JB-07 | 12 | RB15 | PMALL/ | | 44 | JB-07 | 12 | RB15 | PMALL/ | ||
| - | | 47 | JE-01 | 32 | RD14 | CN20/ | + | | 47* | JE-01 | 32 | RD14 | CN20/ |
| - | | 48 | JE-04 | 35 | RD15 | U1RTS/ | + | | 48* | JE-04 | 35 | RD15 | U1RTS/ |
| - | | 49 | JH-03 | 50 | RF04 | PMA9/ | + | | 49* | JH-03 | 50 | RF04 | PMA9/ |
| - | | 50 | JH-02 | 49 | RF05 | PMA8/ | + | | 50* | JH-02 | 49 | RF05 | PMA8/ |
| - | | 51 | N/A | N/A | RF03 | USBID/ | + | | 51* | N/A | N/A | RF03 | USBID/ |
| - | | 52 | JE-03 | 34 | RF02 | U1RX/ | + | | 52* | JE-03 | 34 | RF02 | U1RX/ |
| - | | 53 | JE-02 | 33 | RF08 | U1TX/ | + | | 53* | JE-02 | 33 | RF08 | U1TX/ |
| | 56 | N/A | N/A | RG03 | D-/ | | 56 | N/A | N/A | RG03 | D-/ | ||
| | 57 | N/A | N/A | RG02 | D+/ | | 57 | N/A | N/A | RG02 | D+/ | ||
| - | | 58 | J6-1, J6-2 | 72 | RA02 | SCL2/ | + | | 58* | J6-1, J6-2 | 72 | RA02 | SCL2/ |
| - | | 59 | J6-3, J6-4 | 73 | RA03 | SDA2/ | + | | 59* | J6-3, J6-4 | 73 | RA03 | SDA2/ |
| - | | 60 | JF-09 | 46 | RA04 | TDI/ | + | | 60* | JF-09 | 46 | RA04 | TDI/ |
| - | | 61 | JF-10 | 47 | RA05 | TDO/ | + | | 61* | JF-10 | 47 | RA05 | TDO/ |
| | 63 | N/A | N/A | RC12 | OSC1/ | | 63 | N/A | N/A | RC12 | OSC1/ | ||
| | 64 | N/A | N/A | RC15 | OSC2/ | | 64 | N/A | N/A | RC15 | OSC2/ | ||
| - | | 66 | JF-01 | 40 | RA14 | SCL1/ | + | | 66* | JF-01 | 40 | RA14 | SCL1/ |
| - | | 67 | JF-02 | 41 | RA15 | SDA1/ | + | | 67* | JF-02 | 41 | RA15 | SDA1/ |
| - | | 68 | JH-09 | 54 | RD08 | IC1/ | + | | 68* | JH-09 | 54 | RD08 | IC1/ |
| - | | 69 | JD-03 | 26 | RD09 | IC2/ | + | | 69* | JD-03 | 26 | RD09 | IC2/ |
| - | | 70 | JD-09 | 30 | RD10 | IC3/ | + | | 70* | JD-09 | 30 | RD10 | IC3/ |
| - | | 71 | JE-09 | 38 | RD11 | IC4/ | + | | 71* | JE-09 | 38 | RD11 | IC4/ |
| - | | 72 | JH-08 | 53 | RD00 | SDO1/ | + | | 72* | JH-08 | 53 | RD00 | SDO1/ |
| | 73 | N/A | N/A | RC13 | SOSCI/ | | 73 | N/A | N/A | RC13 | SOSCI/ | ||
| | 74 | N/A | N/A | RC14 | SOSCO/ | | 74 | N/A | N/A | RC14 | SOSCO/ | ||
| - | | 76 | JD-02 | 25 | RD01 | OC2/ | + | | 76* | JD-02 | 25 | RD01 | OC2/ |
| - | | 77 | JD-08 | 29 | RD02 | OC3/ | + | | 77* | JD-08 | 29 | RD02 | OC3/ |
| - | | 78 | JE--0 | 37 | RD03 | OC4/ | + | | 78* | JE--0 | 37 | RD03 | OC4/ |
| - | | 79 | JK-09 | 70 | RD12 | PMD12/ | + | | 79* | JK-09 | 70 | RD12 | PMD12/ |
| - | | 80 | JH-10 | 55 | RD13 | PMD13/ | + | | 80* | JH-10 | 55 | RD13 | PMD13/ |
| - | | 81 | JB-09 | 14 | RD04 | PMWR/ | + | | 81* | JB-09 | 14 | RD04 | PMWR/ |
| - | | 82 | JB-08 | 13 | RD05 | PMRD/ | + | | 82* | JB-08 | 13 | RD05 | PMRD/ |
| - | | 83 | JD-07 | 28 | RD06 | PMD14/ | + | | 83* | JD-07 | 28 | RD06 | PMD14/ |
| - | | 84 | JD-01 | 24 | RD07 | PMD15/ | + | | 84* | JD-01 | 24 | RD07 | PMD15/ |
| - | | 87 | JC-09 | 22 | RF00 | PMD11/ | + | | 87* | JC-09 | 22 | RF00 | PMD11/ |
| - | | 88 | JC-10 | 23 | RF01 | PMD10/ | + | | 88* | JC-10 | 23 | RF01 | PMD10/ |
| - | | 89 | JC-08 | 21 | RG01 | PMD9/ | + | | 89* | JC-08 | 21 | RG01 | PMD9/ |
| - | | 90 | JC-07 | 20 | RG00 | PMD8/ | + | | 90* | JC-07 | 20 | RG00 | PMD8/ |
| - | | 91 | JF-03 | 42 | RA06 | TRCLK/ | + | | 91* | JF-03 | 42 | RA06 | TRCLK/ |
| - | | 92 | JF-04 | 43 | RA07 | TRD3/ | + | | 92* | JF-04 | 43 | RA07 | TRD3/ |
| - | | 93 | JA-01 | 0 | RE00 | PMD0/ | + | | 93* | JA-01 | 0 | RE00 | PMD0/ |
| - | | 94 | JA-02 | 1 | RE01 | PMD1/ | + | | 94* | JA-02 | 1 | RE01 | PMD1/ |
| - | | 95 | JC-03 | 18 | RG14 | TRD2/ | + | | 95* | JC-03 | 18 | RG14 | TRD2/ |
| - | | 96 | JC-01 | 16 | RG12 | TRD1/ | + | | 96* | JC-01 | 16 | RG12 | TRD1/ |
| - | | 97 | JC-02 | 17 | RG13 | TRD0/ | + | | 97* | JC-02 | 17 | RG13 | TRD0/ |
| - | | 98 | JA-03 | 2 | RE02 | PMD2/ | + | | 98* | JA-03 | 2 | RE02 | PMD2/ |
| - | | 99 | JA-04 | 3 | RE03 | PMD3/ | + | | 99* | JA-04 | 3 | RE03 | PMD3/ |
| - | | 100 | JA-07 | 4 | RE04 | PMD4/ | + | | 100* | JA-07 | 4 | RE04 | PMD4/ |
| + | * indicates 5V tolerant PIC32 pin | ||
| ==== By Connector Pin # & Digital Pin # ==== | ==== By Connector Pin # & Digital Pin # ==== | ||
| ^ PIC32 Pin # ^ Connector Pin # ^ chipKIT Pin # ^ MCU Port & Bit ^ PIC32 Signal Name ^ Notes ^ | ^ PIC32 Pin # ^ Connector Pin # ^ chipKIT Pin # ^ MCU Port & Bit ^ PIC32 Signal Name ^ Notes ^ | ||
| - | | 93 | JA-01 | 0 | RE00 | PMD0/ | + | | 93* | JA-01 | 0 | RE00 | PMD0/ |
| - | | 94 | JA-02 | 1 | RE01 | PMD1/ | + | | 94* | JA-02 | 1 | RE01 | PMD1/ |
| - | | 98 | JA-03 | 2 | RE02 | PMD2/ | + | | 98* | JA-03 | 2 | RE02 | PMD2/ |
| - | | 99 | JA-04 | 3 | RE03 | PMD3/ | + | | 99* | JA-04 | 3 | RE03 | PMD3/ |
| - | | 100 | JA-07 | 4 | RE04 | PMD4/ | + | | 100* | JA-07 | 4 | RE04 | PMD4/ |
| - | | 3 | JA-08 | 5 | RE05 | PMD5/ | + | | 3* | JA-08 | 5 | RE05 | PMD5/ |
| - | | 4 | JA-09 | 6 | RE06 | PMD6/ | + | | 4* | JA-09 | 6 | RE06 | PMD6/ |
| - | | 5 | JA-10 | 7 | RE07 | PMD7/ | + | | 5* | JA-10 | 7 | RE07 | PMD7/ |
| - | | 14 | JB-01 | 8 | RG09 | PMA2/ | + | | 14* | JB-01 | 8 | RG09 | PMA2/ |
| - | | 12 | JB-02 | 9 | RG08 | PMA3/ | + | | 12* | JB-02 | 9 | RG08 | PMA3/ |
| - | | 11 | JB-03 | 10 | RG07 | PMA4/ | + | | 11* | JB-03 | 10 | RG07 | PMA4/ |
| - | | 10 | JB-04 | 11 | RG06 | PMA5/ | + | | 10* | JB-04 | 11 | RG06 | PMA5/ |
| | 44 | JB-07 | 12 | RB15 | PMALL/ | | 44 | JB-07 | 12 | RB15 | PMALL/ | ||
| - | | 82 | JB-08 | 13 | RD05 | PMRD/ | + | | 82* | JB-08 | 13 | RD05 | PMRD/ |
| - | | 81 | JB-09 | 14 | RD04 | PMWR/ | + | | 81* | JB-09 | 14 | RD04 | PMWR/ |
| | 43 | JB-10 | 15 | RB14 | PMALH/ | | 43 | JB-10 | 15 | RB14 | PMALH/ | ||
| - | | 96 | JC-01 | 16 | RG12 | TRD1/ | + | | 96* | JC-01 | 16 | RG12 | TRD1/ |
| - | | 97 | JC-02 | 17 | RG13 | TRD0/ | + | | 97* | JC-02 | 17 | RG13 | TRD0/ |
| - | | 95 | JC-03 | 18 | RG14 | TRD2/ | + | | 95* | JC-03 | 18 | RG14 | TRD2/ |
| - | | 1 | JC-04 | 19 | RG15 | RG15 | also servo S4 | | + | | 1* | JC-04 | 19 | RG15 | RG15 | also servo S4 | |
| - | | 90 | JC-07 | 20 | RG00 | PMD8/ | + | | 90* | JC-07 | 20 | RG00 | PMD8/ |
| - | | 89 | JC-08 | 21 | RG01 | PMD9/ | + | | 89* | JC-08 | 21 | RG01 | PMD9/ |
| - | | 87 | JC-09 | 22 | RF00 | PMD11/ | + | | 87* | JC-09 | 22 | RF00 | PMD11/ |
| - | | 88 | JC-10 | 23 | RF01 | PMD10/ | + | | 88* | JC-10 | 23 | RF01 | PMD10/ |
| - | | 84 | JD-01 | 24 | RD07 | PMD15/ | + | | 84* | JD-01 | 24 | RD07 | PMD15/ |
| - | | 76 | JD-02 | 25 | RD01 | OC2/ | + | | 76* | JD-02 | 25 | RD01 | OC2/ |
| - | | 69 | JD-03 | 26 | RD09 | IC2/ | + | | 69* | JD-03 | 26 | RD09 | IC2/ |
| - | | 6 | JD-04 | 27 | RC01 | T2CK/ | + | | 6* | JD-04 | 27 | RC01 | T2CK/ |
| - | | 83 | JD-07 | 28 | RD06 | PMD14/ | + | | 83* | JD-07 | 28 | RD06 | PMD14/ |
| - | | 77 | JD-08 | 29 | RD02 | OC3/ | + | | 77* | JD-08 | 29 | RD02 | OC3/ |
| - | | 70 | JD-09 | 30 | RD10 | IC3/ | + | | 70* | JD-09 | 30 | RD10 | IC3/ |
| - | | 7 | JD-10 | 31 | RC02 | T3CK/ | + | | 7* | JD-10 | 31 | RC02 | T3CK/ |
| - | | 47 | JE-01 | 32 | RD14 | CN20/ | + | | 47* | JE-01 | 32 | RD14 | CN20/ |
| - | | 53 | JE-02 | 33 | RF08 | U1TX/ | + | | 53* | JE-02 | 33 | RF08 | U1TX/ |
| - | | 52 | JE-03 | 34 | RF02 | U1RX/ | + | | 52* | JE-03 | 34 | RF02 | U1RX/ |
| - | | 48 | JE-04 | 35 | RD15 | U1RTS/ | + | | 48* | JE-04 | 35 | RD15 | U1RTS/ |
| - | | 19 | JE-07 | 36 | RE09 | INT2/ | + | | 19* | JE-07 | 36 | RE09 | INT2/ |
| - | | 78 | JE-08 | 37 | RD03 | OC4/ | + | | 78* | JE-08 | 37 | RD03 | OC4/ |
| - | | 71 | JE-09 | 38 | RD11 | IC4/ | + | | 71* | JE-09 | 38 | RD11 | IC4/ |
| - | | 8 | JE-10 | 39 | RC03 | T4CK/ | + | | 8* | JE-10 | 39 | RC03 | T4CK/ |
| - | | 66 | JF-01 | 40 | RA14 | SCL1/ | + | | 66* | JF-01 | 40 | RA14 | SCL1/ |
| - | | 67 | JF-02 | 41 | RA15 | SDA1/ | + | | 67* | JF-02 | 41 | RA15 | SDA1/ |
| - | | 91 | JF-03 | 42 | RA06 | TRCLK/ | + | | 91* | JF-03 | 42 | RA06 | TRCLK/ |
| - | | 92 | JF-04 | 43 | RA07 | TRD3/ | + | | 92* | JF-04 | 43 | RA07 | TRD3/ |
| - | | 17 | JF-07 | 44 | RA00 | TMS/ | + | | 17* | JF-07 | 44 | RA00 | TMS/ |
| - | | 38 | JF-08 | 45 | RA01 | TCK/ | + | | 38* | JF-08 | 45 | RA01 | TCK/ |
| - | | 60 | JF-09 | 46 | RA04 | TDI/ | + | | 60* | JF-09 | 46 | RA04 | TDI/ |
| - | | 61 | JF-10 | 47 | RA05 | TDO/ | + | | 61* | JF-10 | 47 | RA05 | TDO/ |
| - | | 40 | JH-01 | 48 | RF12 | U2CTS/ | + | | 40* | JH-01 | 48 | RF12 | U2CTS/ |
| - | | 50 | JH-02 | 49 | RF05 | PMA8/ | + | | 50* | JH-02 | 49 | RF05 | PMA8/ |
| - | | 49 | JH-03 | 50 | RF04 | PMA9/ | + | | 49* | JH-03 | 50 | RF04 | PMA9/ |
| - | | 39 | JH-04 | 51 | RF13 | U2RTS/ | + | | 39* | JH-04 | 51 | RF13 | U2RTS/ |
| - | | 18 | JH-07 | 52 | RE08 | INT1/ | + | | 18* | JH-07 | 52 | RE08 | INT1/ |
| - | | 72 | JH-08 | 53 | RD00 | SDO1/ | + | | 72* | JH-08 | 53 | RD00 | SDO1/ |
| - | | 68 | JH-09 | 54 | RD08 | IC1/ | + | | 68* | JH-09 | 54 | RD08 | IC1/ |
| - | | 80 | JH-10 | 55 | RD13 | PMD13/ | + | | 80* | JH-10 | 55 | RD13 | PMD13/ |
| | 25 | JJ-01 | 56 | RB00 | PGD1/ | | 25 | JJ-01 | 56 | RB00 | PGD1/ | ||
| | 24 | JJ-02 | 57 | RB01 | PGC1/ | | 24 | JJ-02 | 57 | RB01 | PGC1/ | ||
| Line 1139: | Line 1061: | ||
| | 28 | JK-07 | 68 | RA09 | PMA7/ | | 28 | JK-07 | 68 | RA09 | PMA7/ | ||
| | 29 | JK-08 | 69 | RA10 | PMA6/ | | 29 | JK-08 | 69 | RA10 | PMA6/ | ||
| - | | 79 | JK-09 | 70 | RD12 | PMD12/ | + | | 79* | JK-09 | 70 | RD12 | PMD12/ |
| - | | 9 | JK-10 | 71 | RC04 | SDI1/ | + | | 9* | JK-10 | 71 | RC04 | SDI1/ |
| - | | 58 | J6-1, J6-2 | 72 | RA02 | SCL2/ | + | | 58* | J6-1, J6-2 | 72 | RA02 | SCL2/ |
| - | | 59 | J6-3, J6-4 | 73 | RA03 | SDA2/ | + | | 59* | J6-3, J6-4 | 73 | RA03 | SDA2/ |
| | 26 | N/A | N/A | RB06 | PGC2/ | | 26 | N/A | N/A | RB06 | PGC2/ | ||
| | 27 | N/A | N/A | RB07 | PGD2/ | | 27 | N/A | N/A | RB07 | PGD2/ | ||
| - | | 51 | N/A | N/A | RF03 | USBID/ | + | | 51* | N/A | N/A | RF03 | USBID/ |
| | 56 | N/A | N/A | RG03 | D-/ | | 56 | N/A | N/A | RG03 | D-/ | ||
| | 57 | N/A | N/A | RG02 | D+/ | | 57 | N/A | N/A | RG02 | D+/ | ||
| Line 1152: | Line 1074: | ||
| | 73 | N/A | N/A | RC12 | SOSCI/ | | 73 | N/A | N/A | RC12 | SOSCI/ | ||
| | 74 | N/A | N/A | RC14 | SOSCO/ | | 74 | N/A | N/A | RC14 | SOSCO/ | ||
| + | *indicates 5V tolerant PIC32 pin | ||
| ==== By MCU Port and Bit # ==== | ==== By MCU Port and Bit # ==== | ||
| ^ PIC32 Pin # ^ Connector Pin # ^ chipKIT Pin # ^ MCU Port & Bit ^ PIC32 Signal Name ^ Notes ^ | ^ PIC32 Pin # ^ Connector Pin # ^ chipKIT Pin # ^ MCU Port & Bit ^ PIC32 Signal Name ^ Notes ^ | ||
| - | | 17 | JF-07 | 44 | RA00 | TMS/ | + | | 17* | JF-07 | 44 | RA00 | TMS/ |
| - | | 38 | JF-08 | 45 | RA01 | TCK/ | + | | 38* | JF-08 | 45 | RA01 | TCK/ |
| - | | 58 | J6-1, J6-2 | 72 | RA02 | SCL2/ | + | | 58* | J6-1, J6-2 | 72 | RA02 | SCL2/ |
| - | | 59 | J6-3, J6-4 | 73 | RA03 | SDA2/ | + | | 59* | J6-3, J6-4 | 73 | RA03 | SDA2/ |
| - | | 60 | JF-09 | 46 | RA04 | TDI/ | + | | 60* | JF-09 | 46 | RA04 | TDI/ |
| - | | 61 | JF-10 | 47 | RA05 | TDO/ | + | | 61* | JF-10 | 47 | RA05 | TDO/ |
| - | | 91 | JF-03 | 42 | RA06 | TRCLK/ | + | | 91* | JF-03 | 42 | RA06 | TRCLK/ |
| - | | 92 | JF-04 | 43 | RA07 | TRD3/ | + | | 92* | JF-04 | 43 | RA07 | TRD3/ |
| | 28 | JK-07 | 68 | RA09 | PMA7/ | | 28 | JK-07 | 68 | RA09 | PMA7/ | ||
| | 29 | JK-08 | 69 | RA10 | PMA6/ | | 29 | JK-08 | 69 | RA10 | PMA6/ | ||
| - | | 66 | JF-01 | 40 | RA14 | SCL1/ | + | | 66* | JF-01 | 40 | RA14 | SCL1/ |
| - | | 67 | JF-02 | 41 | RA15 | SDA1/ | + | | 67* | JF-02 | 41 | RA15 | SDA1/ |
| | 25 | JJ-01 | 56 | RB00 | PGD1/ | | 25 | JJ-01 | 56 | RB00 | PGD1/ | ||
| | 24 | JJ-02 | 57 | RB01 | PGC1/ | | 24 | JJ-02 | 57 | RB01 | PGC1/ | ||
| Line 1183: | Line 1106: | ||
| | 43 | JB-10 | 15 | RB14 | PMALH/ | | 43 | JB-10 | 15 | RB14 | PMALH/ | ||
| | 44 | JB-07 | 12 | RB15 | PMALL/ | | 44 | JB-07 | 12 | RB15 | PMALL/ | ||
| - | | 6 | JD-04 | 27 | RC01 | T2CK/ | + | | 6* | JD-04 | 27 | RC01 | T2CK/ |
| - | | 7 | JD-10 | 31 | RC02 | T3CK/ | + | | 7* | JD-10 | 31 | RC02 | T3CK/ |
| - | | 8 | JE-10 | 39 | RC03 | T4CK/ | + | | 8* | JE-10 | 39 | RC03 | T4CK/ |
| - | | 9 | JK-10 | 71 | RC04 | SDI1/ | + | | 9* | JK-10 | 71 | RC04 | SDI1/ |
| | 63 | N/A | N/A | RC12 | OSC1/ | | 63 | N/A | N/A | RC12 | OSC1/ | ||
| | 73 | N/A | N/A | RC13 | SOSCI/ | | 73 | N/A | N/A | RC13 | SOSCI/ | ||
| | 74 | N/A | N/A | RC14 | SOSCO/ | | 74 | N/A | N/A | RC14 | SOSCO/ | ||
| | 64 | N/A | N/A | RC15 | OSC2/ | | 64 | N/A | N/A | RC15 | OSC2/ | ||
| - | | 72 | JH-08 | 53 | RD00 | SDO1/ | + | | 72* | JH-08 | 53 | RD00 | SDO1/ |
| - | | 76 | JD-02 | 25 | RD01 | OC2/ | + | | 76* | JD-02 | 25 | RD01 | OC2/ |
| - | | 77 | JD-08 | 29 | RD02 | OC3/ | + | | 77* | JD-08 | 29 | RD02 | OC3/ |
| - | | 78 | JE-08 | 37 | RD03 | OC4/ | + | | 78* | JE-08 | 37 | RD03 | OC4/ |
| - | | 81 | JB-09 | 14 | RD04 | PMWR/ | + | | 81* | JB-09 | 14 | RD04 | PMWR/ |
| - | | 82 | JB08 | 13 | RD05 | PMRD/ | + | | 82* | JB08 | 13 | RD05 | PMRD/ |
| - | | 83 | JD-07 | 28 | RD06 | PMD14/ | + | | 83* | JD-07 | 28 | RD06 | PMD14/ |
| - | | 84 | JD-01 | 24 | RD07 | PMD15/ | + | | 84* | JD-01 | 24 | RD07 | PMD15/ |
| - | | 68 | JH-09 | 54 | RD08 | IC1/ | + | | 68* | JH-09 | 54 | RD08 | IC1/ |
| - | | 69 | JD-03 | 26 | RD09 | IC2/ | + | | 69* | JD-03 | 26 | RD09 | IC2/ |
| - | | 70 | JD-09 | 30 | RD10 | IC3/ | + | | 70* | JD-09 | 30 | RD10 | IC3/ |
| - | | 71 | JE-09 | 38 | RD11 | IC4/ | + | | 71* | JE-09 | 38 | RD11 | IC4/ |
| - | | 79 | JK-09 | 70 | RD12 | PMD12/ | + | | 79* | JK-09 | 70 | RD12 | PMD12/ |
| - | | 80 | JH-10 | 55 | RD13 | PMD13/ | + | | 80* | JH-10 | 55 | RD13 | PMD13/ |
| - | | 47 | JE-01 | 32 | RD14 | CN20/ | + | | 47* | JE-01 | 32 | RD14 | CN20/ |
| - | | 48 | JE-04 | 35 | RD15 | U1RTS/ | + | | 48* | JE-04 | 35 | RD15 | U1RTS/ |
| - | | 93 | JA-01 | 0 | RE00 | PMD0/ | + | | 93* | JA-01 | 0 | RE00 | PMD0/ |
| - | | 94 | JA-02 | 1 | RE01 | PMD1/ | + | | 94* | JA-02 | 1 | RE01 | PMD1/ |
| - | | 98 | JA-03 | 2 | RE02 | PMD2/ | + | | 98* | JA-03 | 2 | RE02 | PMD2/ |
| - | | 99 | JA-04 | 3 | RE03 | PMD3/ | + | | 99* | JA-04 | 3 | RE03 | PMD3/ |
| - | | 100 | JA-07 | 4 | RE04 | PMD4/ | + | | 100* | JA-07 | 4 | RE04 | PMD4/ |
| - | | 3 | JA-08 | 5 | RE05 | PMD5/ | + | | 3* | JA-08 | 5 | RE05 | PMD5/ |
| - | | 4 | JA-09 | 6 | RE06 | PMD6/ | + | | 4* | JA-09 | 6 | RE06 | PMD6/ |
| - | | 5 | JA-10 | 7 | RE07 | PMD7/ | + | | 5* | JA-10 | 7 | RE07 | PMD7/ |
| - | | 18 | JH-07 | 52 | RE08 | INT1/ | + | | 18* | JH-07 | 52 | RE08 | INT1/ |
| - | | 19 | JE-07 | 36 | RE09 | INT2/ | + | | 19* | JE-07 | 36 | RE09 | INT2/ |
| - | | 87 | JC-09 | 22 | RF00 | PMD11/ | + | | 87* | JC-09 | 22 | RF00 | PMD11/ |
| - | | 88 | JC-10 | 23 | RF01 | PMD10/ | + | | 88* | JC-10 | 23 | RF01 | PMD10/ |
| - | | 52 | JE-03 | 34 | RF02 | U1RX/ | + | | 52* | JE-03 | 34 | RF02 | U1RX/ |
| - | | 51 | N/A | N/A | RF03 | USBID/ | + | | 51* | N/A | N/A | RF03 | USBID/ |
| - | | 49 | JH-03 | 50 | RF04 | PMA9/ | + | | 49* | JH-03 | 50 | RF04 | PMA9/ |
| - | | 50 | JH-02 | 49 | RF05 | PMA8/ | + | | 50* | JH-02 | 49 | RF05 | PMA8/ |
| - | | 53 | JE-02 | 33 | RF08 | U1TX/ | + | | 53* | JE-02 | 33 | RF08 | U1TX/ |
| - | | 40 | JH-01 | 48 | RF12 | U2CTS/ | + | | 40* | JH-01 | 48 | RF12 | U2CTS/ |
| - | | 39 | JH-04 | 51 | RF13 | U2RTS/ | + | | 39* | JH-04 | 51 | RF13 | U2RTS/ |
| - | | 90 | JC-07 | 20 | RG00 | PMD8/ | + | | 90* | JC-07 | 20 | RG00 | PMD8/ |
| - | | 89 | JC-08 | 21 | RG01 | PMD9/ | + | | 89* | JC-08 | 21 | RG01 | PMD9/ |
| | 57 | N/A | N/A | RG02 | D+/ | | 57 | N/A | N/A | RG02 | D+/ | ||
| | 56 | N/A | N/A | RG03 | D-/ | | 56 | N/A | N/A | RG03 | D-/ | ||
| - | | 10 | JB-04 | 11 | RG06 | PMA5/ | + | | 10* | JB-04 | 11 | RG06 | PMA5/ |
| - | | 11 | JB-03 | 10 | RG07 | PMA4/ | + | | 11* | JB-03 | 10 | RG07 | PMA4/ |
| - | | 12 | JB-02 | 9 | RG08 | PMA3/ | + | | 12* | JB-02 | 9 | RG08 | PMA3/ |
| - | | 14 | JB-01 | 8 | RG09 | PMA2/ | + | | 14* | JB-01 | 8 | RG09 | PMA2/ |
| - | | 96 | JC-01 | 16 | RG12 | TRD1/ | + | | 96* | JC-01 | 16 | RG12 | TRD1/ |
| - | | 97 | JC-02 | 17 | RG13 | TRD0/ | + | | 97* | JC-02 | 17 | RG13 | TRD0/ |
| - | | 95 | JC-03 | 18 | RG14 | TRD2/ | + | | 95* | JC-03 | 18 | RG14 | TRD2/ |
| - | | 1 | JC-04 | 19 | RG15 | RG15 | also servo S4 | | + | | 1* | JC-04 | 19 | RG15 | RG15 | also servo S4 | |
| + | *indicates 5V tolerant pin | ||

