Download Print this page

Usb Interface - Digilent Wi-FIRE Reference Manual

Advertisement

 
7. Network Library Software
The WiFi module on the WiFire is intended for use with the Digilent Embedded chipKIT network
libraries, DEIPcK and DEWFcK. The DEIPcK library provides TCP/UDP/IP protocol support for all
chipKIT compatible network interfaces supported by Digilent products, including the WiFire. The
DEWFcK library provides the additional library support required for connecting to and operating with
the Microchip MRF24WG0MA wireless network modules. Caution should be used in understanding
that the DEIPcK library is different than the DNETcK network libraries. DEIPcK is the Digilent
Embedded Open Source IP stack that supports both the MX and MZ processor lines, while the
DNETcK IP stack is built on top of the Microchip MLA proprietary stack and only supports the MX
processor line, and will not work with the WiFire.
The DEWFcK library supports the MRF24WG0MA WiFi module as loaded on the WiFire. The correct
header file must be used to specify the network hardware being used by the sketch. When writing a
network sketch on the WiFire, use the following hardware library:
#include <MRF24G.h>
The Digilent Embedded chipKIT network libraries are available as part of the chipKIT core (MPIDE)
download at:
 http://chipkit.net/started/install‐chipkit‐software.
Digilent Network Stack as a 3rd party library, you will need to delete the Network libraries from your
3rd party sketchbook\libraries subdirectory and use the one installed with the chipKIT core (MPIDE).
Having both libraries installed will cause compile time errors.
There are reference examples demonstrating the use of these libraries as part of the examples code
downloaded with the chipKIT core (MPIDE).

8. USB Interface

The PIC32MZ microcontroller on the WiFire contains a USB 2.0 Compliant, Hi/Full-Speed Device
and On-The-Go (OTG) controller. This controller provides the following features:
USB Hi or 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 J12 is a standard USB type A receptacle. This connector will be used when the WiFire
has been programmed to operate as a USB embedded host. The USB device is connected either
directly to the WiFire, or via cable to this connector.
Connector J11, on the bottom 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.
 
If you have previously installed the

Advertisement

loading
Need help?

Need help?

Do you have a question about the Wi-FIRE and is the answer not in the manual?