300 Henley Court Pullman, WA 99163 509.334.6306 www.digilentinc.com chipKIT™ WF32™ Board Reference Manual Revised October 9, 2015 This manual applies to the chipKIT WF32 rev. B 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.
chipKIT™ WF32™ Board Reference Manual 1 ChipKIT WF32 Hardware Overview The WF32 has the following hardware features: 3 2 5 6 4 8 7 9 10 12 11 13 1 29 14 28 27 26 15 16 17 25 18 24 21 23 22 19 20 Call Out Component Description Call Out Component Description 1 IC3- Microchip MRF24WG0MA WiFi Module 16 J13- USB Connectors 2 User Buttons 17 JP9- USB Overcurrent Detect 3 JP3- Microchip Debug Tool Connector 18 JP11- Hos USB Bus Power Enable 19 J8- Analog and Digital Signal
chipKIT™ WF32™ Board Reference Manual 12 13 14 15 2 User LEDs JP6,7- SPI Master/ SPI Slave Select J10- SPI Connector 27 J2- USB- UART Handshaking Signals 28 USB connector for USB Serial Converter 29 Serial Communication LEDs JP10- USB Host or OTG Select MPIDE and USB Serial Communications 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.
chipKIT™ WF32™ Board Reference Manual attach the power supply to either J14 or J17 and place a shorting block in the EXT position of J15. Be sure to 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.
chipKIT™ WF32™ Board Reference Manual VU is the unregulated input voltage selected by the jumper setting jumper block J15. 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 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.
chipKIT™ WF32™ Board Reference Manual GND (pin 6, 7): This provides a common ground connection between the WF32 and the shields. This common ground is also accessible on connectors J4 and J5. VEXT (pin 8): This connects to the voltage provided at the external power supply connectors (J14 and J17). This can be used to provide unregulated input power to the shield. It can also be used to power the WF32 board from the shield instead of from the external power connector.
chipKIT™ WF32™ Board Reference Manual The chipKIT/Arduino system uses logical pin numbers to identify digital I/O pins on the connectors. The logical pin 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 pins on J8 from left to right. Pins 20-25 are the inner row of pins on J8 from left to right.
chipKIT™ WF32™ Board Reference Manual 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, use the following hardware library: #include The Digilent chipKIT network libraries are available for download from the Digilent web site: www.digilentinc.com.
chipKIT™ WF32™ Board Reference Manual different USB ports on the same host, or to USB ports on two different hosts. If the WF32 board is connected to two different USB hosts simultaneously, there will be a common ground connection between these two hosts through the WF32 board. In this case, it is possible for ground current to flow through the WF32 board, possibly damaging one or the other USB host if they do not share a common earth ground connection.
chipKIT™ WF32™ Board Reference Manual When using the WF32 outside the MPIDE environment, the Microchip Application Library provides USB stack code 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.
chipKIT™ WF32™ Board Reference Manual 15, the connector location for digital pin 7, via a 1K ohm resistor. This signal is accessed via digital pin number 71. SDO1 is accessed via digital pin 3. This conflicts with one of the PWM outputs accessed using analogWrite(). SDI1 is accessed via digital pin 38. SCK1 is connected to connector J7, pin 1, the connector location for digital pin 8, via a 1K ohm resistor. This conflicts with external interrupt INT3. This signal can be accessed via digital pin number 72.
chipKIT™ WF32™ Board Reference Manual 10.5 External Interrupts Pin 3 (INT0), Pin 2 (INT1), Pin 7 (INT2), Pin 8 (INT3), Pin 57 (INT4). Note that the pin numbers for INT0 and INT4 are different than on some other chipKIT boards. INT4 is dedicated for use with the MRF24WG0MA WiFi module and is not brought out to a connector pin. 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.
chipKIT™ WF32™ Board Reference Manual Some Arduino shields, most notably the Ethernet shield, connect pin 5 to the reset net on pin 3 of connector J3. This causes the processor to be reset each time an attempt is made to access the SPI port. Jumper JP8 can be used to break the connection between J10 pin 5 and reset when using Arduino shields that make this connection. JP8 has a cut-able trace on the top of the board that can be cut to break the connection between SPI SS and reset.
chipKIT™ WF32™ Board Reference Manual 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. 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. 12.
chipKIT™ WF32™ Board Reference Manual 26 93 RE00 PMD0/RE0 GPIO 27 94 RE01 PMD1/RE1 GPIO 28 98 RE02 PMD2/RE2 GPIO 29 99 RE03 PMD3/RE3 GPIO 30 100 RE04 PMD4/RE4 GPIO 31 3 RE05 PMD5/RE5 GPIO 32 4 RE06 PMD6/RE6 GPIO 33 5 RE07 PMD7/RE7 GPIO 34 82 RD05 PMRD/CN14/RD5 GPIO 35 71 RD11 EMDC/AEMDC/IC4/PMCS1/PMA14/RD11 GPIO 36 83 RD06 ETXEN/PMD14/CN15/RD6 GPIO 37 84 RD07 ETXCLK/PMD15/CN16/RD7 GPIO 38 9 RC04 T5CK/SDI1/RC4 GPIO 39 47 RD14 AETXD0/SS3/U4RX
chipKIT™ WF32™ Board Reference Manual power supply input voltage monitor 60 41 RB12 AN12/ERXD0/AECRS/PMA11/RB12 61 42 RB13 AN13/ERXD1/AECOL/PMA10/RB13 62 60 RA04 TDI/RA4 I2C Pullup (SDA) 63 61 RA05 TDO/RA5 I2C Pullup (SCL) 64 80 RD13 ETXD3/PMD13/CN19/RD13 5V Power Enable 65 91 RA06 TRCLK/RA6 BTN1 66 92 RA07 TRD3/RA7 BTN2 67 6 RC01 T2CK/RC1 68 7 RC02 T3CK/RC2 69 8 RC03 T4CK/RC3 70 68 RD08 RTCC/EMDIO/AEMDIO/IC1/RD8 71 69 RD09 SS1/IC2/RD9 72 70 RD10 SCK1
chipKIT™ WF32™ Board Reference Manual N/A 54 VBUS POWER N/A 55 VUSB POWER N/A 62 VDD POWER N/A 65 VSS POWER N/A 75 VSS POWER N/A 85 VCAP/VDDCORE POWER N/A 86 VDD POWER 12.
chipKIT™ WF32™ Board Reference Manual RB09 33 22/A8 AN9/C2OUT/RB9 AIN8, GPIO RB10 34 18/A4 AN10/CVrefout/PMA13/RB10 AIN4, GPIO RB11 35 19/A5 AN11/ERXERR/AETXERR/PMA12/RB11 AIN5, GPIO RB12 41 60 AN12/ERXD0/AECRS/PMA11/RB12 power supply input voltage monitor RB13 42 61 AN13/ERXD1/AECOL/PMA10/RB13 RB14 43 24/A10 AN14/ERXD2/AETXD3/PMALH/PMA1/RB14 AIN10, GPIO RB15 44 25/A11 AN15/ERXD3/AETXD2/OCFB/PMALL/PMA0/CN12/RB15 AIN11, GPIO RC01 6 67 T2CK/RC1 RC02 7 68 T3CK/RC2 RC03
chipKIT™ WF32™ Board Reference Manual RE01 94 27 PMD1/RE1 GPIO RE02 98 28 PMD2/RE2 GPIO RE03 99 29 PMD3/RE3 GPIO RE04 100 30 PMD4/RE4 GPIO RE05 3 31 PMD5/RE5 GPIO RE06 4 32 PMD6/RE6 GPIO RE07 5 33 PMD7/RE7 GPIO RE08 18 2 AERXD0/INT1/RE8 GPIO, external INT RE09 19 7 AERXD1/INT2/RE9 GPIO, external INT, USBOC INT RF00 87 43 ETXD1/PMD11/RF0 User LED LD5 RF01 88 4 ETXD0/PMD10/RF1 GPIO RF02 52 0 SDA3/SDI3/U1RX/RF2 GPIO, UART RF03 51 N/A USBID/RF3 P32
chipKIT™ WF32™ Board Reference Manual 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/VDDCORE POWER 86 N/A VDD POWER 12.
chipKIT™ WF32™ Board Reference Manual 16 N/A VDD POWER 17 RA00 47 TMS/RA0 User LED LD3 18 RE08 2 AERXD0/INT1/RE8 GPIO, external INT 19 RE09 7 AERXD1/INT2/RE9 20 RB05 21/A7 AN5/C1IN+/VBUSON/CN7/RB5 21 RB04 15/A1 AN4/C1IN-/CN6/RB4 AIN1, GPIO 22 RB03 20/A6 AN3/C2IN+/CN5/RB3 AIN6, GPIO 23 RB02 14/A0 AN2/C2IN-/CN4/RB2 AIN0, GPIO 24 RB01 23/A9 PGEC1/AN1/CN3/RB1 AIN9, GPIO 25 RB00 17/A3 PGED1/AN0/CN2/RB0 AIN3, GPIO 26 RB06 N/A PGEC2/AN6/OCFA/RB6 ICSP 27 RB07 N/
chipKIT™ WF32™ Board Reference Manual 51 RF03 N/A USBID/RF3 P32_USBID 52 RF02 0 SDA3/SDI3/U1RX/RF2 GPIO, UART 53 RF08 1 SCL3/SDO3/U1TX/RF8 GPIO, UART 54 N/A VBUS POWER 55 N/A VUSB POWER 56 RG03 N/A D-/RG3 P32_USBD- 57 RG02 N/A D+/RG2 P32_USBD+ 58 RA02 45 SCL2/RA2 59 RA03 46 SDA2/RA3 60 RA04 62 TDI/RA4 I2C Pullup (SDA) 61 RA05 63 TDO/RA5 I2C Pullup (SCL) N/A VDD POWER 62 I2C, wire (jumper to A5) I2C, wire (jumper to A4) 63 RC12 N/A OSC1/CLKI/RC12 XT
chipKIT™ WF32™ Board Reference Manual 82 RD05 34 PMRD/CN14/RD5 GPIO 83 RD06 36 ETXEN/PMD14/CN15/RD6 GPIO 84 RD07 37 ETXCLK/PMD15/CN16/RD7 GPIO 85 N/A VCAP/VDDCORE POWER 86 N/A VDD POWER 87 RF00 43 ETXD1/PMD11/RF0 User LED LD5 88 RF01 4 ETXD0/PMD10/RF1 GPIO 89 RG01 58 ETXERR/PMD9/RG1 MRF24 HIBERNATE 90 RG00 59 PMD8/RG0 MRF24 RESET 91 RA06 65 TRCLK/RA6 BTN1 92 RA07 66 TRD3/RA7 BTN2 93 RE00 26 PMD0/RE0 GPIO 94 RE01 27 PMD1/RE1 GPIO 95 RG14 50 TR
chipKIT™ WF32™ Board Reference Manual Declaration of Conformity In accordance with EN ISO/IEC 17050-1:2010 Manufacturers Name: Digilent, Inc. Manufacturers Address: 1300 NE Henley Court Pullman, WA 99163 U.S.A.