Datasheet

chipKITWF32™ Board Reference Manual
Copyright Digilent, Inc. All rights reserved.
Other product and company names mentioned may be trademarks of their respective owners.
Page 8 of 24
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 <WiFiShieldOrPmodWiFi_G.h>
The Digilent chipKIT network libraries are available for download from the Digilent web site: www.digilentinc.com.
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
extensive examples available on the Digilent web site as well.
8 USB Interface
The PIC32MX695 microcontroller on the WF32 contains a USB 2.0 Compliant, Full Speed Device and On-The-Go
(OTG) controller. This controller provides the following features:
USB full speed host and device support.
Low speed host support.
USB OTG support.
Endpoint buffering anywhere in system RAM.
Integrated DMA to access system RAM and Flash memory.
Connector J13 on the top right side of the board is a standard USB type A receptacle. This connector will be used
when the WF32 has been programmed to operate as a USB embedded host. The USB device is connected either
directly to the WF32, or via cable to this connector.
Connector J12, on the bottom right side of the board is the Device/OTG connector. This is a standard USB micro-AB
connector. Connect a cable with a micro-A plug (optionally available from Digilent) from this connector to an
available USB port on a PC or USB hub for device operation.
The USB specification allows for two types of devices with regard to how they are powered: self-powered devices
and bus powered devices. A self-powered device is one that is powered from a separate power supply and does
not draw power from the USB bus. A bus powered device is one that draws power from the USB bus and does not
have a separate power supply.
The WF32 can be operated as a self-powered device or as a bus powered device from either the USB serial
connector (J1) or the USB OTG/device connector (J12). As described in the power supply section above, jumper
block (J15) is used to select the power source to be used to power the board.
For operation as a self-powered device, place a shorting block on the EXT position of J15 and connect a suitable
external power supply to either J14 or J17.
To operate the WF32 as a bus powered device powered from the USB serial connector (J1), place a shorting block
in the UART position of J15. To operate as a bus powered device powered from the OTG/device connector (J12),
place a shorting block in the USB position of J15.
Note that there are two completely independent USB interfaces on the WF32 board, and it is possible for the
WF32 to appear as two different USB devices at the same time. These two devices can be connected to two