Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
chipkit_wf32:refmanual [2015/04/30 18:29] – [Board Reference Manual] Martha | chipkit_wf32:refmanual [2023/02/08 18:38] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== chipKIT™ WF32™ Board Reference Manual ====== | ====== chipKIT™ WF32™ Board Reference Manual ====== | ||
+ | {{: | ||
+ | |||
+ | |||
+ | ---- | ||
===== Revision History ===== | ===== Revision History ===== | ||
Line 8: | Line 12: | ||
- | ====== Overview | + | ---- |
+ | |||
+ | ===== Overview ===== | ||
The chipKIT WF32 is based on the popular Arduino™ open-source hardware prototyping platform and adds the performance of the Microchip PIC32 microcontroller. The WF32 is the first board from Digilent to have a WiFi MRF24 and SD card on the board both with dedicated signals. The WF32 board takes advantage of the powerful PIC32MX695F512L microcontroller. This microcontroller features a 32-bit MIPS processor core running at 80 MHz, 512K of flash program memory, and 128K of SRAM data memory. The WF32 can be programmed using the Multi-Platform Integrated Development Environment (MPIDE), an environment based on the original Arduino IDE, modified to support PIC32. It contains everything needed to start developing embedded applications. The WF32 features a USB serial port interface for connection to the MPIDE and can be powered via USB or by an external power supply. In addition, the WF32 is fully compatible with the advanced Microchip MPLAB® IDE and works with all MPLAB® compatible in-system programmer/ | The chipKIT WF32 is based on the popular Arduino™ open-source hardware prototyping platform and adds the performance of the Microchip PIC32 microcontroller. The WF32 is the first board from Digilent to have a WiFi MRF24 and SD card on the board both with dedicated signals. The WF32 board takes advantage of the powerful PIC32MX695F512L microcontroller. This microcontroller features a 32-bit MIPS processor core running at 80 MHz, 512K of flash program memory, and 128K of SRAM data memory. The WF32 can be programmed using the Multi-Platform Integrated Development Environment (MPIDE), an environment based on the original Arduino IDE, modified to support PIC32. It contains everything needed to start developing embedded applications. The WF32 features a USB serial port interface for connection to the MPIDE and can be powered via USB or by an external power supply. In addition, the WF32 is fully compatible with the advanced Microchip MPLAB® IDE and works with all MPLAB® compatible in-system programmer/ | ||
- | {{: | + | {{: |
* Microchip® PIC32MX695F512L microcontroller (80 Mhz 32-bit MIPS, 512K Flash, 128K SRAM) | * Microchip® PIC32MX695F512L microcontroller (80 Mhz 32-bit MIPS, 512K Flash, 128K SRAM) | ||
Line 33: | Line 39: | ||
---- | ---- | ||
- | ===== 1 ChipKIT | + | ===== 1 chipKIT |
The WF32 has the following hardware features: | The WF32 has the following hardware features: | ||
+ | {{ : | ||
+ | ^ Call Out ^ Component Description | ||
+ | | 1 | IC3- Microchip MRF24WG0MA WiFi Module | ||
+ | | 2 | User Buttons | ||
+ | | 3 | JP2- Microchip Debug Tool Connector | ||
+ | | 4 | J6- I2C Signals | ||
+ | | 5 | BTN1- Reset | 20 | JP5, JP4- Analog or I2C Select Jumper | ||
+ | | 6 | JP1- Reset Disable | ||
+ | | 7 | J7- Digital Signal Connector | ||
+ | | 8 | JP3- Pin 10 Signal Select Jumper | ||
+ | | 9 | PIC32 Microcontroller | ||
+ | | 10 | Potentiometer | ||
+ | | 11 | J9- Digital Signal Connector | ||
+ | | 12 | User LEDs | 27 | J2- USB- UART Handshaking Signals | ||
+ | | 13 | JP6,7- SPI Master/ SPI Slave Select | ||
+ | | 14 | J10- SPI Connector | ||
+ | | 15 | JP10- USB Host or OTG Select | ||
+ | |||
+ | |||
+ | ---- | ||
===== 2 MPIDE and USB Serial Communications ===== | ===== 2 MPIDE and USB Serial Communications ===== | ||
- | The WF32 board is designed to be used with the Multi-Platform IDE (MPIDE), the MPIDE development platform | + | The WF32 board is designed to be used with the Multi-Platform IDE (MPIDE), the MPIDE development platform was created by modifying the Arduino IDE. It is backwards-compatible with the Arduino IDE. Links for where to obtain the MPIDE installation files and instructions for installing MPIDE can be found at www.chipkit.net/ |
- | was created by modifying the Arduino™ IDE. It is backwards-compatible with the Arduino IDE. Links for where to | + | |
- | obtain the MPIDE installation files and instructions for installing MPIDE can be found at www.chipkit.net/ | + | |
- | The MPIDE uses a serial communications port to communicate with a boot loader running on the WF32 board. The | + | The MPIDE uses a serial communications port to communicate with a boot loader running on the WF32 board. The serial port on the WF32 board is implemented using an FTDI FT232RQ USB serial converter. Before attempting to use the MPIDE to communicate with the WF32, the appropriate USB device driver must be installed. |
- | serial port on the WF32 board is implemented using an FTDI FT232RQ USB serial converter. Before attempting to | + | |
- | use the MPIDE to communicate with the WF32, the appropriate USB device driver must be installed. | + | |
- | The WF32 board uses a standard mini-USB connector. Generally, a USB A to mini-B cable is used for connection to | + | The WF32 board uses a standard mini-USB connector. Generally, a USB A to mini-B cable is used for connection to a USB port on the PC. |
- | a USB port on the PC. | + | |
- | When the MPIDE needs to communicate with the WF32 board, the board is reset and starts running the boot | + | When the MPIDE needs to communicate with the WF32 board, the board is reset and starts running the boot loader. The MPIDE then establishes communications with the boot loader and uploads the program to the board. |
- | loader. The MPIDE then establishes communications with the boot loader and uploads the program to the board. | + | |
- | When the MPIDE opens the serial communications connection on the PC, the DTR pin on the FT232RQ chip is | + | When the MPIDE opens the serial communications connection on the PC, the DTR pin on the FT232RQ chip is driven low. This pin is coupled through a capacitor to the MCLR pin on the PIC32 microcontroller. Driving the MCLR line low resets the microcontroller, |
- | driven low. This pin is coupled through a capacitor to the MCLR pin on the PIC32 microcontroller. Driving the MCLR | + | |
- | line low resets the microcontroller, | + | |
- | This automatic reset action (when the serial communications connection is opened) can be disabled. To disable | + | This automatic reset action (when the serial communications connection is opened) can be disabled. To disable this operation, there is a jumper labeled JP1, which can be disconnected. JP1 is normally shorted, but if the shorting block is removed, the automatic reset operation will be disabled. |
- | this operation, there is a jumper labeled JP1, which can be disconnected. JP1 is normally shorted, but if the | + | |
- | shorting block is removed, the automatic reset operation will be disabled. | + | |
- | Two red LEDs (LD1 and LD2) will blink when data is being sent or received between the WF32 and the PC over the | + | Two red LEDs (LD1 and LD2) will blink when data is being sent or received between the WF32 and the PC over the serial connection. |
- | serial connection. | + | |
- | The header connector J2 provides access to the other serial handshaking signals provided by the FT232RQ. | + | The header connector J2 provides access to the other serial handshaking signals provided by the FT232RQ. Connector J2 is not loaded at the factory and can be installed by the user to access these signals. |
- | Connector J2 is not loaded at the factory and can be installed by the user to access these signals. | + | |
+ | |||
+ | ---- | ||
===== 3 Power Supply ===== | ===== 3 Power Supply ===== | ||
- | The WF32 is designed to be powered via USB (J1), from an external power supply (J14 or J17), or from the USB OTG | + | The WF32 is designed to be powered via USB (J1), from an external power supply (J14 or J17), or from the USB OTG receptacle (J12). Jumper block J15 is used to select which power supply is used. The power supply voltage selected by J15 is applied to the unregulated power bus, VU. |
- | receptacle (J12). Jumper block J15 is used to select which power supply is used. The power supply voltage selected | + | |
- | by J15 is applied to the unregulated power bus, VU. | + | |
- | In order to operate the WF32 as a USB device powered from the USB serial interface, connector J1, place a | + | In order to operate the WF32 as a USB device powered from the USB serial interface, connector J1, place a shorting block in the UART position of jumper block J15. To operate the WF32 from an external power supply, |
- | shorting block in the UART position of jumper block J15. To operate the WF32 from an external power supply, | + | |
- | observe correct polarity when connecting a power supply to J14, as a reversed connection could damage the | + | |
- | board. To operate the WF32 as a USB powered device from the USB OTG connector (J12) place a shorting block on | + | |
- | the USB position of J15. This will normally only be done when running a sketch on the board that programs it to | + | |
- | operate as a USB device. The power supply section in the WF32 provides two voltage regulators, a 3.3V regulator | + | |
- | and a 5V regulator. All systems on the WF32 board itself operate at 3.3V and are powered by the 3.3V regulator. | + | |
- | The 5V regulator is used to provide power for external circuits, such as shields, that require 5V for operation. The | + | |
5V regulator can be completely disabled if it is not needed for a given application. | 5V regulator can be completely disabled if it is not needed for a given application. | ||
- | The WF32 board is designed for low power operation and efficient use of battery power, as such a switch mode | + | The WF32 board is designed for low power operation and efficient use of battery power, as such a switch mode voltage regulator is used for the 3.3V power supply. This switch mode regulator is made up of a Microchip MCP16301 and associated circuitry. It can operate on input voltages from 4V to 30V with up to 96% efficiency, and is rated for 600mA total current output. The MCP16301 has internal short circuit protection and thermal protection. The 3.3V regulator takes its input from the unregulated power bus, VU, and produces its output on the VCC3V3 power bus. The VCC3V3 bus provides power to all on-board systems and is available at the shield power connector (J3) to provide 3.3V power to external circuitry, such as shields. |
- | voltage regulator is used for the 3.3V power supply. This switch mode regulator is made up of a Microchip | + | |
- | MCP16301 and associated circuitry. It can operate on input voltages from 4V to 30V with up to 96% efficiency, and | + | |
- | is rated for 600mA total current output. The MCP16301 has internal short circuit protection and thermal | + | |
- | protection. The 3.3V regulator takes its input from the unregulated power bus, VU, and produces its output on the | + | |
- | VCC3V3 power bus. The VCC3V3 bus provides power to all on-board systems and is available at the shield power | + | |
- | connector (J3) to provide 3.3V power to external circuitry, such as shields. | + | |
- | The 5V regulator section provides a low dropout linear regulator. No circuitry on the WF32 board uses the 5V | + | The 5V regulator section provides a low dropout linear regulator. No circuitry on the WF32 board uses the 5V supply. It is provided for powering external circuitry that needs a 5V power supply. This voltage regulator uses an On Semiconductor NCP1117LP. The NCP1117LP is rated for an output current of 1A. The dropout voltage of the NCP1117LP is a maximum of 1.4V at 1A output current. The maximum input voltage of the NCP1117LP is 18V. The recommended maximum operating voltage is 15V. |
- | supply. It is provided for powering external circuitry that needs a 5V power supply. This voltage regulator uses an | + | |
- | On Semiconductor NCP1117LP. The NCP1117LP is rated for an output current of 1A. The dropout voltage of the | + | |
- | NCP1117LP is a maximum of 1.4V at 1A output current. The maximum input voltage of the NCP1117LP is 18V. The | + | |
- | recommended maximum operating voltage is 15V. | + | |
- | The input voltage to the 5V regulator section is taken from the VU bus, and the output is placed on the VCC5V0 | + | The input voltage to the 5V regulator section is taken from the VU bus, and the output is placed on the VCC5V0 power bus. |
- | power bus. | + | |
- | There is a reverse polarity protection diode in the external power supply circuit. Considering the diode drop plus | + | There is a reverse polarity protection diode in the external power supply circuit. Considering the diode drop plus the forward drop across the regulator, the minimum input voltage to the regulator should be 7V to produce a reliable 5V output. |
- | the forward drop across the regulator, the minimum input voltage to the regulator should be 7V to produce a | + | |
- | reliable 5V output. | + | |
- | For input voltages above 9V, the regulator will get extremely hot when drawing high currents. The NCP1117LP has | + | For input voltages above 9V, the regulator will get extremely hot when drawing high currents. The NCP1117LP has output short circuit protection and internal thermal protection and will shut down automatically to prevent damage. |
- | output short circuit protection and internal thermal protection and will shut down automatically to prevent | + | |
- | damage. | + | |
The 5V regulator section actually provides four 5V power options: | The 5V regulator section actually provides four 5V power options: | ||
- | 1) 5V regulator completely disabled and no 5V power available; | + | - 5V regulator completely disabled and no 5V power available; |
- | + | | |
- | 2) 5V regulator bypassed and 5V provided from an external 5V power supply, such as USB; | + | |
- | + | | |
- | 3) on-board 5V regulator used to provide 5V power; | + | |
- | + | ||
- | 4) External 5V regulator used to regulate VU and provide 5V power. | + | |
Jumper block J16 is used to select these various options and the following diagrams describe the use of J16: | Jumper block J16 is used to select these various options and the following diagrams describe the use of J16: | ||
Line 127: | Line 116: | ||
This diagram shows the arrangement of the signals on J16: | This diagram shows the arrangement of the signals on J16: | ||
+ | {{ : | ||
LDO In is the input to the on-board linear regulator. | LDO In is the input to the on-board linear regulator. | ||
Line 137: | Line 127: | ||
5V0 is the connection to the VCC5V0 power bus on the WF32 board. | 5V0 is the connection to the VCC5V0 power bus on the WF32 board. | ||
- | EN Ext is a signal provided to enable an external voltage regulator if one is being used. This would allow the sketch | + | EN Ext is a signal provided to enable an external voltage regulator if one is being used. This would allow the sketch running on the WF32 to turn on/off the external voltage regulator. When used with an external voltage regulator, this allows the board to go into an extremely low power operating mode. This signal is connected to Port D, bit 13 (RD13) on the PIC32 microcontroller. This is accessible using digital pin 64. |
- | running on the WF32 to turn on/off the external voltage regulator. When used with an external voltage regulator, | + | |
- | this allows the board to go into an extremely low power operating mode. This signal is connected to Port D, bit 13 | + | |
- | (RD13) on the PIC32 microcontroller. This is accessible using digital pin 64. | + | |
GND is a connection to the digital ground bus on the WF32 board. | GND is a connection to the digital ground bus on the WF32 board. | ||
Line 146: | Line 133: | ||
To completely disable operation of the on-board linear regulator, remove all shorting blocks from J16. | To completely disable operation of the on-board linear regulator, remove all shorting blocks from J16. | ||
- | To use the on-board 5V regulator, use the provided shorting blocks to connect VU to LDO In, and to connect LDO | + | To use the on-board 5V regulator, use the provided shorting blocks to connect VU to LDO In, and to connect LDO Out to 5V0, as follows: |
- | Out to 5V0, as follows: | + | |
+ | {{ : | ||
- | Note: In this case, when J15 is in the EXT position, and J16 is jumpered to regulate the external input, do not apply | + | //Note:// In this case, when J15 is in the EXT position, and J16 is jumpered to regulate the external input, do not apply more than 18V. This can destroy the 5.0V regulator. |
- | more than 18V. This can destroy the 5.0V regulator. | + | |
- | To bypass the on-board 5V regulator when powering the board from an externally regulator 5V power supply, such | + | To bypass the on-board 5V regulator when powering the board from an externally regulator 5V power supply, such as USB, Use one of the provided shorting blocks to connect VU to 5V0, as follows: |
- | as USB, Use one of the provided shorting blocks to connect VU to 5V0, as follows: | + | |
- | An external 5V regulator can be used. This would be desirable, for example, when operating from batteries. An | + | {{ : |
- | external switch mode 5V regulator could be used to provide higher power efficiency than the on-board linear | + | |
- | regulator. In this case, use wires as appropriate to connect VU to the unregulated input of the external regulator. | + | |
- | Connect the regulated 5V output to 5V0. Connect GND to the ground connection of the external regulator. | + | |
- | Optionally, connect EN Ext to the enable input control of the external regulator, if available. This allows the | + | |
- | external regulator to be turned off for low power operation. Digital pin 64 is then used to turn on/off the external | + | |
- | regulator. | + | |
- | The PIC32MX695 microcontroller is rated to use a maximum of 98mA of current | + | An external 5V regulator can be used. This would be desirable, for example, |
- | MRF24WG0MA WiFi module typically consumes a maximum of 237mA when transmitting. This allows | + | |
- | approximately 265mA of current | + | |
- | all current | + | |
- | The POWER connector (J3) is used to power shields connected | + | The PIC32MX695 microcontroller |
- | following pins are provided on this connector: | + | approximately 265mA of current |
+ | The POWER connector (J3) is used to power shields connected to the WF32 board. Pin 1 is unconnected, | ||
**IOREF** (pin 2): This pin is tied to the VCC3V3 bus. | **IOREF** (pin 2): This pin is tied to the VCC3V3 bus. | ||
Line 189: | Line 166: | ||
the shield instead of from the external power connector. | the shield instead of from the external power connector. | ||
+ | |||
+ | ---- | ||
Line 197: | Line 176: | ||
shields. | shields. | ||
- | There are two issues to consider when dealing with 5V compatibility for 3.3V logic. The first is protection of 3.3V | + | There are two issues to consider when dealing with 5V compatibility for 3.3V logic. The first is protection of 3.3V inputs from damage caused by 5V signals. The second is whether the 3.3V output is high enough to be recognized as a logic high value by a 5V input. |
- | inputs from damage caused by 5V signals. The second is whether the 3.3V output is high enough to be recognized | + | |
- | as a logic high value by a 5V input. | + | |
- | The digital I/O pins on the PIC32 microcontroller are 5V tolerant. The analog capable I/O pins are not 5V tolerant. | + | The digital I/O pins on the PIC32 microcontroller are 5V tolerant. The analog capable I/O pins are not 5V tolerant. To provide 5V tolerance on those pins, the WF32 contains clamp diodes and current limiting resistors to protect them from 5V input voltages. |
- | To provide 5V tolerance on those pins, the WF32 contains clamp diodes and current limiting resistors to protect | + | |
- | them from 5V input voltages. | + | |
- | The fact that all I/O pins are 5V tolerant means that it is safe to apply 5V logic levels to any pins on the board | + | The fact that all I/O pins are 5V tolerant means that it is safe to apply 5V logic levels to any pins on the board without risk of damaging the PIC32 microcontroller. |
- | without risk of damaging the PIC32 microcontroller. | + | |
- | The minimum high-voltage output of the PIC32 microcontroller is rated at 2.4V when sourcing 12mA of current. | + | The minimum high-voltage output of the PIC32 microcontroller is rated at 2.4V when sourcing 12mA of current. When driving a high impedance input (typical of CMOS logic) the output high voltage will be close to 3.3V. Some 5V devices will recognize this voltage as a logic high input, and some won’t. Many 5V logic devices will work reliably with 3.3V inputs. |
- | When driving a high impedance input (typical of CMOS logic) the output high voltage will be close to 3.3V. Some 5V | + | |
- | devices will recognize this voltage as a logic high input, and some won’t. Many 5V logic devices will work reliably | + | ---- |
- | with 3.3V inputs. | + | |
Line 217: | Line 190: | ||
- | The WF32 board provides 43 of the I/O pins from the PIC32 microcontroller at pins on the input/ | + | The WF32 board provides 43 of the I/O pins from the PIC32 microcontroller at pins on the input/ |
- | J6, J7, J8, J9, and J10. | + | |
- | The PIC32 microcontroller can source or sink a maximum of 25mA on all digital I/O pins. However, to keep the | + | The PIC32 microcontroller can source or sink a maximum of 25mA on all digital I/O pins. However, to keep the output voltage within the specified output voltage range (VOL 0.4V, VOH 2.4V) the pin current must be restricted to +7/-12mA. The maximum current that can be sourced or sunk across all I/O pins simultaneously is +/-200mA. The maximum voltage that can be applied to any I/O pin is 5.5V although not all pins are 5V tolerant. For more detailed specifications, |
- | output voltage within the specified output voltage range (VOL 0.4V, VOH 2.4V) the pin current must be restricted to | + | |
- | +7/-12mA. The maximum current that can be sourced or sunk across all I/O pins simultaneously is +/-200mA. The | + | |
- | maximum voltage that can be applied to any I/O pin is 5.5V although not all pins are 5V tolerant. For more detailed | + | |
- | specifications, | + | |
- | Note that the series resistors that are part of the voltage clamp circuit to provide 5V tolerance on the analog | + | Note that the series resistors that are part of the voltage clamp circuit to provide 5V tolerance on the analog capable I/O pins, limiting the current that can be sourced or sunk by those pins. These resistors add 200 ohms of resistance to the input/ |
- | capable I/O pins, limiting the current that can be sourced or sunk by those pins. These resistors add 200 ohms of | + | |
- | resistance to the input/ | + | |
- | on the analog capable pins. | + | |
- | Connectors J7 and J9 are 2x8 female pin header connectors that provide digital I/O signals. The outer row of pins | + | Connectors J7 and J9 are 2x8 female pin header connectors that provide digital I/O signals. The outer row of pins (closer to the board edge) corresponds to the I/O connector pins on an Arduino Uno or Duemilanove board. The inner row of pins provides access to the extra I/O signals provided by the PIC32 microcontroller. |
- | (closer to the board edge) corresponds to the I/O connector pins on an Arduino Uno or Duemilanove board. The | + | |
- | inner row of pins provides access to the extra I/O signals provided by the PIC32 microcontroller. | + | |
- | Connector J8 is a 2x6 female pin header connector that provides access to the analog input pins on the | + | Connector J8 is a 2x6 female pin header connector that provides access to the analog input pins on the microcontroller. The outer row of pins corresponds to the six analog pins on an Arduino Uno or Duemilanove. The inner row of pins is for the additional I/O signals provided by the PIC32 microcontroller. The analog pins on J8 can |
- | microcontroller. The outer row of pins corresponds to the six analog pins on an Arduino Uno or Duemilanove. The | + | |
- | inner row of pins is for the additional I/O signals provided by the PIC32 microcontroller. The analog pins on J8 can | + | |
also be used as digital I/O pins. | also be used as digital I/O pins. | ||
- | The chipKIT/ | + | The chipKIT/ |
- | numbers for the I/O pins on the WF32 are 0-48. These pin numbers are labeled in the silk screen on the board. | + | |
- | Pin numbers 0-13 are the outer row of pins on J9 and J7, from right to left. Pin numbers 14-19 are the outer row of | + | Pin numbers 0-13 are the outer row of pins on J9 and J7, from right to left. Pin numbers 14-19 are the outer row of pins on J8 from left to right. Pins 20-25 are the inner row of pins on J8 from left to right. Pin numbers 26-41 are the inner row of pins on J9 and J7 from right to left. Pin 42 is the pin labeled A on J7. This pin is normally the reference voltage for the microcontroller’s A/D converter, but can also be used as a digital I/O pin. |
- | pins on J8 from left to right. Pins 20-25 are the inner row of pins on J8 from left to right. Pin numbers 26-41 are the | + | |
- | inner row of pins on J9 and J7 from right to left. Pin 42 is the pin labeled A on J7. This pin is normally the reference | + | |
- | voltage for the microcontroller’s A/D converter, but can also be used as a digital I/O pin. | + | |
- | In addition to the connector pin, Pin 13 also connects to the user LED LD3. Pin 43 connects to user LED LD5. Pin 43 | + | In addition to the connector pin, Pin 13 also connects to the user %%LED%% LD6. Pin 43 connects to user LED LD5. Pin 43 does not attach to any connector. Pin 44 is the SS signal for SPI port 2, and discussed more in the SPI section below. Pins 45 and 46 are intended to be used for I2C and are connected to the 2x1 female header connector, J6. Pins 47 and 48 connect to the user LEDs LD3 and LD4, respectively.***** |
- | does not attach to any connector. Pin 44 is the SS signal for SPI port 2, and discussed more in the SPI section | + | |
- | below. Pins 45 and 46 are intended to be used for I2C and are connected to the 2x1 female header connector, J6. | + | |
- | Pins 47 and 48 connect to the user LEDs LD5 and LD6. | + | |
- | The analog inputs on connector J8 are assigned pin numbers. The outer row of pins on J8 is analog inputs A0-A5. | + | The analog inputs on connector J8 are assigned pin numbers. The outer row of pins on J8 is analog inputs A0-A5. The inner row of pins is A6-A11. These pins are also assigned digital pin numbers; A0-A5 are digital pins 14-19, and A6-A11 are 20-25. |
- | The inner row of pins is A6-A11. These pins are also assigned digital pin numbers; A0-A5 are digital pins 14-19, and | + | |
- | A6-A11 are 20-25. | + | |
+ | **Note* ** //The board defs file for the WF32 on MPIDE currently has the user LEDs labeled as the following: | ||
+ | \\ | ||
+ | \\ | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | \\ | ||
+ | these should be corrected to:\\ | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | \\ | ||
+ | Users can access the board defs file by following the path C: | ||
+ | You can edit the file through a program such as notepad and find the appropriate lines starting on line #102 // | ||
+ | |||
+ | ---- | ||
Line 262: | Line 232: | ||
- | The 802.11b/g compatible WiFi interface on the WF32 is provided by a Microchip MRF24WG0MA WiFi module. | + | The 802.11b/g compatible WiFi interface on the WF32 is provided by a Microchip MRF24WG0MA WiFi module. This module provides the radio transceiver, |
- | This module provides the radio transceiver, | + | |
- | The MRF24WG0MA firmware provides the 802.11 network protocol | + | The MRF24WG0MA firmware provides the 802.11 network protocol |
- | software support. The DNETcK and DWIFIcK | + | |
- | libraries provide the TCP/IP network protocol support that works with the 802.11 protocol support provided by the | + | |
- | WiFi module. | + | |
- | The primary communications interface with the MRF24WG0MA WiFi module is a 4 wire SPI bus. This SPI bus uses | + | The primary communications interface with the MRF24WG0MA WiFi module is a 4 wire SPI bus. This SPI bus uses SPI4 in the PIC32 microcontroller, |
- | SPI4 in the PIC32 microcontroller, | + | |
- | module | + | |
- | The WiFi module supports SPI clock speeds up to 25MHz. In addition to the SPI interface, the interface to the WiFi | + | The WiFi module supports SPI clock speeds up to 25MHz. In addition to the SPI interface, the interface to the WiFi module also includes a reset signal, an interrupt signal and a hibernate signal. The active low RESET signal is used to reset the WiFi module The external interrupt signal, INT, is used by the module to signal to the host microcontroller that it needs servicing by the microcontroller software. The INT signal on the WiFi module is connected to external interrupt INT4 on the PIC32 microcontroller. The active low HIBERNATE signal is used to power the WiFi module down and put it into a low power state. |
- | module also includes a reset signal, an interrupt signal and a hibernate signal. The active low RESET signal is used | + | |
- | to reset the WiFi module The external interrupt signal, INT, is used by the module to signal to the host | + | |
- | microcontroller that it needs servicing by the microcontroller software. The INT signal on the WiFi module is | + | |
- | connected to external interrupt INT4 on the PIC32 microcontroller. The active low HIBERNATE signal is used to | + | |
- | power the WiFi module down and put it into a low power state. | + | |
- | The interface signals to the WiFi module are controlled by the network libraries and are not normally accessed by | + | The interface signals to the WiFi module are controlled by the network libraries and are not normally accessed by the user sketch. Refer to the schematic for the WF32 board for details on these connections. |
- | the user sketch. Refer to the schematic for the WF32 board for details on these connections. | + | |
More detailed information about the operation of the MRF24WG0MA can be obtained from the manufacturer | More detailed information about the operation of the MRF24WG0MA can be obtained from the manufacturer | ||
data sheet available from www.microchip.com. | data sheet available from www.microchip.com. | ||
+ | |||
+ | ---- | ||
Line 292: | Line 252: | ||
- | The WiFi module on the WF32 is intended for use with the Digilent chipKIT network libraries DNETcK and DWIFIcK. | + | The WiFi module on the WF32 is intended for use with the Digilent chipKIT network libraries DNETcK and DWIFIcK. The DNETcK library provides TCP/IP protocol support for all chipKIT compatible network interfaces supported by Digilent products, including the WF32. The DWIFIcK library provides the additional library support required for connecting to and operating with the Microchip MRF24WG0MA wireless network modules. |
- | The DNETcK library provides TCP/IP protocol support for all chipKIT compatible network interfaces supported by | + | |
- | Digilent products, including the WF32. The DWIFIcK library provides the additional library support required for | + | |
- | connecting to and operating with the Microchip MRF24WG0MA wireless network modules. | + | |
The DWIFIcK library supports both the MRF24WB0MA and MRF24WG0MA modules. The correct header file must | The DWIFIcK library supports both the MRF24WB0MA and MRF24WG0MA modules. The correct header file must | ||
- | be used to specify the network hardware being used by the sketch. When writing a network sketch on the WF32, | + | be used to specify the network hardware being used by the sketch. When writing a network sketch on the WF32, use the following hardware library: |
- | use the following hardware library: | + | |
+ | < | ||
#include < | #include < | ||
+ | </ | ||
- | The Digilent chipKIT network libraries are available | + | The Digilent chipKIT network libraries are available |
- | These libraries make use of a custom version of the Microchip Application Library. It is necessary to accept the | + | |
- | Microchip Application Library license agreement before downloading the library. | + | |
- | There are reference examples demonstrating the use of these libraries in the library download. There are more | + | There are reference examples demonstrating the use of these libraries in the library download. There are more extensive examples available on the Digilent web site as well. |
- | extensive examples available on the Digilent web site as well. | + | |
+ | |||
+ | ---- | ||
Line 380: | Line 336: | ||
specification requires that the host provide at least 100mA to the device. | specification requires that the host provide at least 100mA to the device. | ||
- | Jumper JP10 is used to route power to the host connector being used. Place the shorting block in the “A” position | + | Jumper JP10 is used to route power to the host connector being used. Place the shorting block in the "A" |
when using the standard USB type A (host) Connector (J13). Place the shorting block in the “AB” position for use | when using the standard USB type A (host) Connector (J13). Place the shorting block in the “AB” position for use | ||
with the USB micro-AB (OTG) connector (J12). | with the USB micro-AB (OTG) connector (J12). | ||
Line 398: | Line 354: | ||
Both the VBUSON and the INT3/RA14 signals connect to the TPS2051B through jumpers JP11, and JP9, | Both the VBUSON and the INT3/RA14 signals connect to the TPS2051B through jumpers JP11, and JP9, | ||
- | respectively. When operating as a USB host, both jumpers should be shorted with shorting blocks. Pin A7 will be | + | respectively. When operating as a USB host, both jumpers should be shorted with shorting blocks. Pin A7 will be unusable as an analog input and will be driven as an output. To monitor the over-current output pin of the TPS2051B, us the attachInterrupt() function to set INT3/RA14 (pin 8) as an external interrupt. |
- | unusable as an analog input and will be driven as an output. To monitor the over-current output pin of the | + | |
- | TPS2051B, us the attachInterrupt() function to set INT3/RA14 (pin 8) as an external interrupt. | + | |
The PIC32 USB controller can be accessed using the chipKIT USB libraries for use within the MPIDE environment. | The PIC32 USB controller can be accessed using the chipKIT USB libraries for use within the MPIDE environment. | ||
- | When using the WF32 outside the MPIDE environment, | + | When using the WF32 outside the MPIDE environment, |
- | that can be used with the board. There are reference designs available on the Microchip web site demonstrating | + | |
- | both device and host operation of PIC32 microcontrollers. These reference designs are suitable to use for | + | |
- | developing USB firmware for the WF32 Shield. | + | |
+ | |||
+ | ---- | ||
Line 414: | Line 367: | ||
- | The micro-SD | + | The microSD |
the SD card library provided as part of the MPIDE software system. | the SD card library provided as part of the MPIDE software system. | ||
The SD card is accessed using an SPI interface on PIC32 microcontroller pins dedicated to this purpose. The SD | The SD card is accessed using an SPI interface on PIC32 microcontroller pins dedicated to this purpose. The SD | ||
- | library uses a ‘bit-banged’ software SPI implementation to talk to SD cards. | + | library uses a 'bit-banged' |
On the WF32 board, the I/O pins used to communicate with the SD card are dedicated to that function and not | On the WF32 board, the I/O pins used to communicate with the SD card are dedicated to that function and not | ||
shared with other uses. | shared with other uses. | ||
+ | |||
+ | ---- | ||
Line 433: | Line 388: | ||
- | ==== 10.1 UART Ports ==== | + | ===== 10.1 UART Ports ===== |
Line 446: | Line 401: | ||
- | ==== 10.2 SPI ==== | + | ===== 10.2 SPI ===== |
Synchronous serial port. Pin 10 (SS), Pin 11 (MOSI), Pin 12 (MISO), Pin 13 (SCK).This can be accessed using the SPI | Synchronous serial port. Pin 10 (SS), Pin 11 (MOSI), Pin 12 (MISO), Pin 13 (SCK).This can be accessed using the SPI | ||
Line 457: | Line 412: | ||
Jumper JP3 is used to select PWM output or the SPI SS function on Pin 10. The shorting block on JP3 should be in | Jumper JP3 is used to select PWM output or the SPI SS function on Pin 10. The shorting block on JP3 should be in | ||
- | the PWM position to select PWM output. It should be in the SS position to select the SPI SS function. | + | the PWM position to select PWM output. It should be in the SS position to select the SPI SS function. |
normally be in the PWM position. In general, the only time it needs to be in the SS position is when the WF32 | normally be in the PWM position. In general, the only time it needs to be in the SS position is when the WF32 | ||
board is being used as an SPI slave device. | board is being used as an SPI slave device. | ||
Line 480: | Line 435: | ||
- | ==== 10.3 𝐈𝟐C | + | ===== 10.3 I2C ===== |
Line 491: | Line 446: | ||
Note: The I2C bus uses open collector drivers to allow multiple devices to drive the bus signals. This means that | Note: The I2C bus uses open collector drivers to allow multiple devices to drive the bus signals. This means that | ||
pull-up resistors must be provided to supply the logic high state for the signals. These pull-up resistors are labeled | pull-up resistors must be provided to supply the logic high state for the signals. These pull-up resistors are labeled | ||
- | R18 and R19 on the WF32 board, but they require that chipKIT pin numbers 62 and 63 are driven to a logic high | + | R18 and R19 on the WF32 board, but they require that chipKIT pin numbers 62 and 63 are driven to a logic high ('1') level. |
- | (‘1’) level. | + | |
+ | **In MPLAB X:** | ||
+ | < | ||
+ | //disables the jtag module | ||
+ | DDPCONbits.JTAGEN = 0; | ||
+ | //Drive RA2 and RA3 to digital high | ||
+ | TRISASET = 0xC; | ||
+ | PORTASET = 0xC; | ||
+ | </ | ||
+ | **In MPIDE:** | ||
+ | < | ||
+ | //the jtag module is disabled by default | ||
+ | pinMode(62, OUTPUT); | ||
+ | pinMode(63, OUTPUT); | ||
+ | digitalWrite(62, | ||
+ | digitalWrite(63, | ||
+ | </ | ||
- | ==== 10.4 PWM ==== | + | ===== 10.4 PWM ===== |
Line 504: | Line 474: | ||
- | ==== 10.5 External Interrupts ==== | + | ===== 10.5 External Interrupts |
Line 512: | Line 482: | ||
- | ==== 10.6 User LEDs ==== | + | ===== 10.6 User LEDs ===== |
- | Pin 13 (LD6), Pin 43 (LD5), Pin 47 (LD4), Pin 48 (LD3). Pin 13 is shared between a connector pin and the LED. Pin 43, | + | Pin 13 (LD6), Pin 43 (LD5), Pin 48 (LD4), Pin 47 (LD3). Pin 13 is shared between a connector pin and the LED. Pin 43, |
48, and 47 only goes to the LED and not to any connector pin. Driving the pin HIGH turns the LED on, driving it LOW | 48, and 47 only goes to the LED and not to any connector pin. Driving the pin HIGH turns the LED on, driving it LOW | ||
turns it off. | turns it off. | ||
- | ==== 10.7 User Push Buttons ==== | + | ===== 10.7 User Push Buttons |
Line 527: | Line 497: | ||
- | ==== 10.8 A/D Converter Reference ==== | + | ===== 10.8 A/D Converter Reference |
Labeled A, the left-most outer pin on connector J5. This is used to provide an external voltage reference to | Labeled A, the left-most outer pin on connector J5. This is used to provide an external voltage reference to | ||
Line 534: | Line 504: | ||
- | ==== 10.9 Potentiometer ==== | + | ===== 10.9 Potentiometer |
Line 542: | Line 512: | ||
- | ==== 10.10 RTCC ==== | + | ===== 10.10 RTCC ===== |
Real Time Clock Calendar. The PIC32 microcontroller contains an RTCC circuit that can be used to maintain time | Real Time Clock Calendar. The PIC32 microcontroller contains an RTCC circuit that can be used to maintain time | ||
Line 551: | Line 521: | ||
- | ==== 10.11 RESET ==== | + | ===== 10.11 RESET ===== |
The PIC32 microcontroller is reset by bringing its MCLR pin low. The MCLR pin is connected to the P32_RST net on | The PIC32 microcontroller is reset by bringing its MCLR pin low. The MCLR pin is connected to the P32_RST net on | ||
Line 579: | Line 549: | ||
microcontroller. | microcontroller. | ||
+ | |||
+ | ---- | ||
Line 606: | Line 578: | ||
loader source code and compiled image can be found at www.chipKIT.net. | loader source code and compiled image can be found at www.chipKIT.net. | ||
+ | |||
+ | ---- | ||
Line 618: | Line 592: | ||
For most pins, this pin number will agree with the pin number labeled on the board. For the pins whose function | For most pins, this pin number will agree with the pin number labeled on the board. For the pins whose function | ||
- | can be switched using jumpers, the pin number labeled on the board is correct when the jumper is in the “normal” | + | can be switched using jumpers, the pin number labeled on the board is correct when the jumper is in the "normal" |
position. | position. | ||
Line 629: | Line 603: | ||
The pin labeled 10 on the board is connected to connector J7 pin 5. This is shown as J5-05 in the following tables. | The pin labeled 10 on the board is connected to connector J7 pin 5. This is shown as J5-05 in the following tables. | ||
- | In the ‘Pinout Table by Shield Connector Pin’ table below, J5-05 is shown has being either chipKIT pin # 10 or 44. | + | In the 'Pinout Table by Shield Connector Pin' |
J5-04 is connected to chipKIT pin # 10 when JP3 is in the PWM position and is connected to chipKIT pin # 44 when | J5-04 is connected to chipKIT pin # 10 when JP3 is in the PWM position and is connected to chipKIT pin # 44 when | ||
in the SS position. | in the SS position. | ||
- | === Pinout Table by ChipKIT | + | ===== 12.1 Pinout Table by chipKIT |
- | + | ||
+ | ^ chipKIT Pin # ^ MCU Pin ^ Port Bit ^ PIC32 Signal Name ^ Function | ||
+ | | 0 | 52 | RF02 | SDA3/ | ||
+ | | 1 | 53 | RF08 | SCL3/ | ||
+ | | 2 | 18 | RE08 | AERXD0/ | ||
+ | | 3 | 72 | RD00 | SDO1/ | ||
+ | | 4 | 88 | RF01 | ETXD0/ | ||
+ | | 5 | 76 | RD01 | OC2/ | ||
+ | | 6 | 77 | RD02 | OC3/ | ||
+ | | 7 | 19 | RE09 | AERXD1/ | ||
+ | | 8 | 66 | RA14 | AETXCLK/ | ||
+ | | 9 | 78 | RD03 | OC4/ | ||
+ | | 10 | 81 | RD04 | OC5/ | ||
+ | | 11 | 12 | RG08 | ERXDV/ | ||
+ | | 12 | 11 | RG07 | ECRS/ | ||
+ | | 13 | 10 | RG06 | ECOL/ | ||
+ | | 14/A0 | 23 | RB02 | AN2/ | ||
+ | | 15/A1 | 21 | RB04 | AN4/ | ||
+ | | 16/A2 | 32 | RB08 | AN8/ | ||
+ | | 17/A3 | 25 | RB00 | PGED1/ | ||
+ | | 18/A4 | 34 | RB10 | AN10/ | ||
+ | | 19/A5 | 35 | RB11 | AN11/ | ||
+ | | 20/A6 | 22 | RB03 | AN3/ | ||
+ | | 21/A7 | 20 | RB05 | AN5/ | ||
+ | | 22/A8 | 33 | RB09 | AN9/ | ||
+ | | 23/A9 | 24 | RB01 | PGEC1/ | ||
+ | | 24/ | ||
+ | | 25/ | ||
+ | | 26 | 93 | RE00 | PMD0/ | ||
+ | | 27 | 94 | RE01 | PMD1/ | ||
+ | | 28 | 98 | RE02 | PMD2/ | ||
+ | | 29 | 99 | RE03 | PMD3/ | ||
+ | | 30 | 100 | RE04 | PMD4/ | ||
+ | | 31 | 3 | RE05 | PMD5/ | ||
+ | | 32 | 4 | RE06 | PMD6/ | ||
+ | | 33 | 5 | RE07 | PMD7/ | ||
+ | | 34 | 82 | RD05 | PMRD/ | ||
+ | | 35 | 71 | RD11 | EMDC/ | ||
+ | | 36 | 83 | RD06 | ETXEN/ | ||
+ | | 37 | 84 | RD07 | ETXCLK/ | ||
+ | | 38 | 9 | RC04 | T5CK/ | ||
+ | | 39 | 47 | RD14 | AETXD0/ | ||
+ | | 40 | 48 | RD15 | AETXD1/ | ||
+ | | 41 | 28 | RA09 | Vref-/ | ||
+ | | 42 | 29 | RA10 | Vref+/ | ||
+ | | 43 | 87 | RF00 | ETXD1/ | ||
+ | | 44 | 14 | RG09 | ERXCLK/ | ||
+ | | 45 | 58 | RA02 | SCL2/ | ||
+ | | 46 | 59 | RA03 | SDA2/ | ||
+ | | 47 | 17 | RA00 | TMS/ | ||
+ | | 48 | 38 | RA01 | TCK/ | ||
+ | | 49 | 1 | RG15 | AERXERR/ | ||
+ | | 50 | 95 | RG14 | TRD2/ | ||
+ | | 51 | 96 | RG12 | TRD1/ | ||
+ | | 52 | 97 | RG13 | TRD0/ | ||
+ | | 53 | 39 | RF13 | SCK4/ | ||
+ | | 54 | 40 | RF12 | SS4/ | ||
+ | | 55 | 49 | RF04 | SDA5/ | ||
+ | | 56 | 50 | RF05 | SCL5/ | ||
+ | | 57 | 67 | RA15 | AETXEN/ | ||
+ | | 58 | 89 | RG01 | ETXERR/ | ||
+ | | 59 | 90 | RG00 | PMD8/ | ||
+ | | 60 | 41 | RB12 | AN12/ | ||
+ | | 61 | 42 | RB13 | AN13/ | ||
+ | | 62 | 60 | RA04 | TDI/ | ||
+ | | 63 | 61 | RA05 | TDO/ | ||
+ | | 64 | 80 | RD13 | ETXD3/ | ||
+ | | 65 | 91 | RA06 | TRCLK/ | ||
+ | | 66 | 92 | RA07 | TRD3/ | ||
+ | | 67 | 6 | RC01 | T2CK/ | ||
+ | | 68 | 7 | RC02 | T3CK/ | ||
+ | | 69 | 8 | RC03 | T4CK/ | ||
+ | | 70 | 68 | RD08 | RTCC/ | ||
+ | | 71 | 69 | RD09 | SS1/ | ||
+ | | 72 | 70 | RD10 | SCK1/ | ||
+ | | 73 | 79 | RD12 | ETXD2/ | ||
+ | | N/A | 26 | RB06 | PGEC2/ | ||
+ | | N/A | 27 | RB07 | PGED2/ | ||
+ | | N/A | 63 | RC12 | OSC1/ | ||
+ | | N/A | 73 | RC13 | SOSCI/ | ||
+ | | N/A | 74 | RC14 | SOSCO/ | ||
+ | | N/A | 64 | RC15 | OSC2/ | ||
+ | | N/A | 51 | RF03 | USBID/ | ||
+ | | N/A | 57 | RG02 | D+/ | ||
+ | | N/A | 56 | RG03 | D-/ | ||
+ | | N/A | 2 | | VDD | POWER | | ||
+ | | N/A | 13 | ||
+ | | N/A | 15 | ||
+ | | N/A | 16 | ||
+ | | N/A | 30 | ||
+ | | N/A | 31 | ||
+ | | N/A | 36 | ||
+ | | N/A | 37 | ||
+ | | N/A | 45 | ||
+ | | N/A | 46 | ||
+ | | N/A | 54 | ||
+ | | N/A | 55 | ||
+ | | N/A | 62 | ||
+ | | N/A | 65 | ||
+ | | N/A | 75 | ||
+ | | N/A | 85 | ||
+ | | N/A | 86 | ||
+ | ===== 12.2 Pinout Table by MCU Port and Bit ===== | ||
+ | ^ Port Bit ^ MCU pin ^ chipKIT Pin # ^ PIC32 Signal Name ^ Function | ||
+ | | RA00 | 17 | 47 | TMS/ | ||
+ | | RA01 | 38 | 48 | TCK/ | ||
+ | | RA02 | 58 | 45 | SCL2/ | ||
+ | | RA03 | 59 | 46 | SDA2/ | ||
+ | | RA04 | 60 | 62 | TDI/ | ||
+ | | RA05 | 61 | 63 | TDO/ | ||
+ | | RA06 | 91 | 65 | TRCLK/ | ||
+ | | RA07 | 92 | 66 | TRD3/ | ||
+ | | RA09 | 28 | 41 | Vref-/ | ||
+ | | RA10 | 29 | 42 | Vref+/ | ||
+ | | RA14 | 66 | 8 | AETXCLK/ | ||
+ | | RA15 | 67 | 57 | AETXEN/ | ||
+ | | RB00 | 25 | 17/A3 | PGED1/ | ||
+ | | RB01 | 24 | 23/A9 | PGEC1/ | ||
+ | | RB02 | 23 | 14/A0 | AN2/ | ||
+ | | RB03 | 22 | 20/A6 | AN3/ | ||
+ | | RB04 | 21 | 15/A1 | AN4/ | ||
+ | | RB05 | 20 | 21/A7 | AN5/ | ||
+ | | RB06 | 26 | N/A | PGEC2/ | ||
+ | | RB07 | 27 | N/A | PGED2/ | ||
+ | | RB08 | 32 | 16/A2 | AN8/ | ||
+ | | RB09 | 33 | 22/A8 | AN9/ | ||
+ | | RB10 | 34 | 18/A4 | AN10/ | ||
+ | | RB11 | 35 | 19/A5 | AN11/ | ||
+ | | RB12 | 41 | 60 | AN12/ | ||
+ | | RB13 | 42 | 61 | AN13/ | ||
+ | | RB14 | 43 | 24/ | ||
+ | | RB15 | 44 | 25/ | ||
+ | | RC01 | 6 | 67 | T2CK/ | ||
+ | | RC02 | 7 | 68 | T3CK/ | ||
+ | | RC03 | 8 | 69 | T4CK/ | ||
+ | | RC04 | 9 | 38 | T5CK/ | ||
+ | | RC12 | 63 | N/A | OSC1/ | ||
+ | | RC13 | 73 | N/A | SOSCI/ | ||
+ | | RC14 | 74 | N/A | SOSCO/ | ||
+ | | RC15 | 64 | N/A | OSC2/ | ||
+ | | RD00 | 72 | 3 | SDO1/ | ||
+ | | RD01 | 76 | 5 | OC2/ | ||
+ | | RD02 | 77 | 6 | OC3/ | ||
+ | | RD03 | 78 | 9 | OC4/ | ||
+ | | RD04 | 81 | 10 | OC5/ | ||
+ | | RD05 | 82 | 34 | PMRD/ | ||
+ | | RD06 | 83 | 36 | ETXEN/ | ||
+ | | RD07 | 84 | 37 | ETXCLK/ | ||
+ | | RD08 | 68 | 70 | RTCC/ | ||
+ | | RD09 | 69 | 71 | SS1/ | ||
+ | | RD10 | 70 | 72 | SCK1/ | ||
+ | | RD11 | 71 | 35 | EMDC/ | ||
+ | | RD12 | 79 | 73 | ETXD2/ | ||
+ | | RD13 | 80 | 64 | ETXD3/ | ||
+ | | RD14 | 47 | 39 | AETXD0/ | ||
+ | | RD15 | 48 | 40 | AETXD1/ | ||
+ | | RE00 | 93 | 26 | PMD0/ | ||
+ | | RE01 | 94 | 27 | PMD1/ | ||
+ | | RE02 | 98 | 28 | PMD2/ | ||
+ | | RE03 | 99 | 29 | PMD3/ | ||
+ | | RE04 | 100 | 30 | PMD4/ | ||
+ | | RE05 | 3 | 31 | PMD5/ | ||
+ | | RE06 | 4 | 32 | PMD6/ | ||
+ | | RE07 | 5 | 33 | PMD7/ | ||
+ | | RE08 | 18 | 2 | AERXD0/ | ||
+ | | RE09 | 19 | 7 | AERXD1/ | ||
+ | | RF00 | 87 | 43 | ETXD1/ | ||
+ | | RF01 | 88 | 4 | ETXD0/ | ||
+ | | RF02 | 52 | 0 | SDA3/ | ||
+ | | RF03 | 51 | N/A | USBID/ | ||
+ | | RF04 | 49 | 55 | SDA5/ | ||
+ | | RF05 | 50 | 56 | SCL5/ | ||
+ | | RF08 | 53 | 1 | SCL3/ | ||
+ | | RF12 | 40 | 54 | SS4/ | ||
+ | | RF13 | 39 | 53 | SCK4/ | ||
+ | | RG00 | 90 | 59 | PMD8/ | ||
+ | | RG01 | 89 | 58 | ETXERR/ | ||
+ | | RG02 | 57 | N/A | D+/ | ||
+ | | RG03 | 56 | N/A | D-/ | ||
+ | | RG06 | 10 | 13 | ECOL/ | ||
+ | | RG07 | 11 | 12 | ECRS/ | ||
+ | | RG08 | 12 | 11 | ERXDV/ | ||
+ | | RG09 | 14 | 44 | ERXCLK/ | ||
+ | | RG12 | 96 | 51 | TRD1/ | ||
+ | | RG13 | 97 | 52 | TRD0/ | ||
+ | | RG14 | 95 | 50 | TRD2/ | ||
+ | | RG15 | 1 | 49 | AERXERR/ | ||
+ | | | 2 | N/A | VDD | POWER | | ||
+ | | | 13 | N/A | MCLR | ICSP | | ||
+ | | | 15 | N/A | VSS | POWER | | ||
+ | | | 16 | N/A | VDD | POWER | | ||
+ | | | 30 | N/A | AVDD | POWER | | ||
+ | | | 31 | N/A | AVSS | POWER | | ||
+ | | | 36 | N/A | VSS | POWER | | ||
+ | | | 37 | N/A | VDD | POWER | | ||
+ | | | 45 | N/A | VSS | POWER | | ||
+ | | | 46 | N/A | VDD | POWER | | ||
+ | | | 54 | N/A | VBUS | POWER | | ||
+ | | | 55 | N/A | VUSB | POWER | | ||
+ | | | 62 | N/A | VDD | POWER | | ||
+ | | | 65 | N/A | VSS | POWER | | ||
+ | | | 75 | N/A | VSS | POWER | | ||
+ | | | 85 | N/A | VCAP/ | ||
+ | | | 86 | N/A | VDD | POWER | | ||
+ | ===== 12.3 Pinout Table by PIC32 Microcontroller Pin ===== | ||
+ | ^ MCU Pin ^ Port Bit ^ chipKIT Pin # ^ PIC32 Signal Name ^ Function | ||
+ | | 1 | RG15 | 49 | AERXERR/ | ||
+ | | 2 | | N/A | VDD | POWER | | ||
+ | | 3 | RE05 | 31 | PMD5/ | ||
+ | | 4 | RE06 | 32 | PMD6/ | ||
+ | | 5 | RE07 | 33 | PMD7/ | ||
+ | | 6 | RC01 | 67 | T2CK/ | ||
+ | | 7 | RC02 | 68 | T3CK/ | ||
+ | | 8 | RC03 | 69 | T4CK/ | ||
+ | | 9 | RC04 | 38 | T5CK/ | ||
+ | | 10 | RG06 | 13 | ECOL/ | ||
+ | | 11 | RG07 | 12 | ECRS/ | ||
+ | | 12 | RG08 | 11 | ERXDV/ | ||
+ | | 13 | ||
+ | | 14 | RG09 | 44 | ERXCLK/ | ||
+ | | 15 | ||
+ | | 16 | ||
+ | | 17 | RA00 | 47 | TMS/ | ||
+ | | 18 | RE08 | 2 | AERXD0/ | ||
+ | | 19 | RE09 | 7 | AERXD1/ | ||
+ | | 20 | RB05 | 21/A7 | AN5/ | ||
+ | | 21 | RB04 | 15/A1 | AN4/ | ||
+ | | 22 | RB03 | 20/A6 | AN3/ | ||
+ | | 23 | RB02 | 14/A0 | AN2/ | ||
+ | | 24 | RB01 | 23/A9 | PGEC1/ | ||
+ | | 25 | RB00 | 17/A3 | PGED1/ | ||
+ | | 26 | RB06 | N/A | PGEC2/ | ||
+ | | 27 | RB07 | N/A | PGED2/ | ||
+ | | 28 | RA09 | 41 | Vref-/ | ||
+ | | 29 | RA10 | 42 | Vref+/ | ||
+ | | 30 | ||
+ | | 31 | ||
+ | | 32 | RB08 | 16/A2 | AN8/ | ||
+ | | 33 | RB09 | 22/A8 | AN9/ | ||
+ | | 34 | RB10 | 18/A4 | AN10/ | ||
+ | | 35 | RB11 | 19/A5 | AN11/ | ||
+ | | 36 | ||
+ | | 37 | ||
+ | | 38 | RA01 | 48 | TCK/ | ||
+ | | 39 | RF13 | 53 | SCK4/ | ||
+ | | 40 | RF12 | 54 | SS4/ | ||
+ | | 41 | RB12 | 60 | AN12/ | ||
+ | | 42 | RB13 | 61 | AN13/ | ||
+ | | 43 | RB14 | 24/ | ||
+ | | 44 | RB15 | 25/ | ||
+ | | 45 | ||
+ | | 46 | ||
+ | | 47 | RD14 | 39 | AETXD0/ | ||
+ | | 48 | RD15 | 40 | AETXD1/ | ||
+ | | 49 | RF04 | 55 | SDA5/ | ||
+ | | 50 | RF05 | 56 | SCL5/ | ||
+ | | 51 | RF03 | N/A | USBID/ | ||
+ | | 52 | RF02 | 0 | SDA3/ | ||
+ | | 53 | RF08 | 1 | SCL3/ | ||
+ | | 54 | ||
+ | | 55 | ||
+ | | 56 | RG03 | N/A | D-/ | ||
+ | | 57 | RG02 | N/A | D+/ | ||
+ | | 58 | RA02 | 45 | SCL2/ | ||
+ | | 59 | RA03 | 46 | SDA2/ | ||
+ | | 60 | RA04 | 62 | TDI/ | ||
+ | | 61 | RA05 | 63 | TDO/ | ||
+ | | 62 | ||
+ | | 63 | RC12 | N/A | OSC1/ | ||
+ | | 64 | RC15 | N/A | OSC2/ | ||
+ | | 65 | ||
+ | | 66 | RA14 | 8 | AETXCLK/ | ||
+ | | 67 | RA15 | 57 | AETXEN/ | ||
+ | | 68 | RD08 | 70 | RTCC/ | ||
+ | | 69 | RD09 | 71 | SS1/ | ||
+ | | 70 | RD10 | 72 | SCK1/ | ||
+ | | 71 | RD11 | 35 | EMDC/ | ||
+ | | 72 | RD00 | 3 | SDO1/ | ||
+ | | 73 | RC13 | N/A | SOSCI/ | ||
+ | | 74 | RC14 | N/A | SOSCO/ | ||
+ | | 75 | ||
+ | | 76 | RD01 | 5 | OC2/ | ||
+ | | 77 | RD02 | 6 | OC3/ | ||
+ | | 78 | RD03 | 9 | OC4/ | ||
+ | | 79 | RD12 | 73 | ETXD2/ | ||
+ | | 80 | RD13 | 64 | ETXD3/ | ||
+ | | 81 | RD04 | 10 | OC5/ | ||
+ | | 82 | RD05 | 34 | PMRD/ | ||
+ | | 83 | RD06 | 36 | ETXEN/ | ||
+ | | 84 | RD07 | 37 | ETXCLK/ | ||
+ | | 85 | ||
+ | | 86 | ||
+ | | 87 | RF00 | 43 | ETXD1/ | ||
+ | | 88 | RF01 | 4 | ETXD0/ | ||
+ | | 89 | RG01 | 58 | ETXERR/ | ||
+ | | 90 | RG00 | 59 | PMD8/ | ||
+ | | 91 | RA06 | 65 | TRCLK/ | ||
+ | | 92 | RA07 | 66 | TRD3/ | ||
+ | | 93 | RE00 | 26 | PMD0/ | ||
+ | | 94 | RE01 | 27 | PMD1/ | ||
+ | | 95 | RG14 | 50 | TRD2/ | ||
+ | | 96 | RG12 | 51 | TRD1/ | ||
+ | | 97 | RG13 | 52 | TRD0/ | ||
+ | | 98 | RE02 | 28 | PMD2/ | ||
+ | | 99 | RE03 | 29 | PMD3/ | ||
+ | | 10 | RE04 | 30 | PMD4/ | ||