English
Language : 

PIC24FJ128GC010 Datasheet, PDF (265/472 Pages) Microchip Technology – 16-Bit Flash Microcontrollers with 12-Bit Pipeline A/D, Sigma-Delta A/D, USB On-The-Go and XLP Technology
PIC24FJ128GC010 FAMILY
19.0 UNIVERSAL SERIAL BUS WITH
ON-THE-GO SUPPORT (USB
OTG)
Note:
This data sheet summarizes the features of
this group of PIC24F devices. It is not
intended to be a comprehensive reference
source. For more information, refer to the
“PIC24F Family Reference Manual”, “USB
On-The-Go (OTG)” (DS39721). The infor-
mation in this data sheet supersedes the
information in the FRM.
PIC24FJ128GC010 family devices contain a full-speed
and low-speed compatible, On-The-Go (OTG) USB
Serial Interface Engine (SIE). The OTG capability
allows the device to act as either a USB peripheral
device or as a USB embedded host with limited host
capabilities. The OTG capability allows the device to
dynamically switch from device to host operation using
OTG’s Host Negotiation Protocol (HNP).
For more details on OTG operation, refer to the
“On-The-Go Supplement” to the “USB 2.0 Specifica-
tion”, published by the USB-IF. For more details on
USB operation, refer to the “Universal Serial Bus
Specification”, v2.0.
The USB OTG module offers these features:
• USB functionality in Device and Host modes, and
OTG capabilities for Application-Controlled mode
switching
• Software-selectable module speeds of full speed
(12 Mbps) or low speed (1.5 Mbps, available in
Host mode only)
• Support for all four USB transfer types: control,
interrupt, bulk and isochronous
• 16 bidirectional endpoints for a total of 32 unique
endpoints
• DMA interface for data RAM access
• Queues up to sixteen unique endpoint transfers
without servicing
• Integrated, on-chip USB transceiver with support
for off-chip transceivers via a digital interface
• Integrated VBUS generation with on-chip
comparators and boost generation, and support of
external VBUS comparators and regulators
through a digital interface
• Configurations for on-chip bus pull-up and
pull-down resistors
A simplified block diagram of the USB OTG module is
shown in Figure 19-1.
The USB OTG module can function as a USB peripheral
device or as a USB host, and may dynamically switch
between Device and Host modes under software
control. In either mode, the same data paths and Buffer
Descriptors (BDs) are used for the transmission and
reception of data.
In discussing USB operation, this section will use a
controller-centric nomenclature for describing the direc-
tion of the data transfer between the microcontroller and
the USB. RX (Receive) will be used to describe transfers
that move data from the USB to the microcontroller and
TX (Transmit) will be used to describe transfers that
move data from the microcontroller to the USB.
Table 19-1 shows the relationship between data
direction in this nomenclature and the USB tokens
exchanged.
TABLE 19-1: CONTROLLER-CENTRIC
DATA DIRECTION FOR USB
HOST OR TARGET
USB Mode
Direction
RX
TX
Device
Host
OUT or SETUP
IN
IN
OUT or SETUP
This chapter presents the most basic operations
needed to implement USB OTG functionality in an
application. A complete and detailed discussion of the
USB protocol and its OTG supplement are beyond the
scope of this data sheet. It is assumed that the user
already has a basic understanding of USB architecture
and the latest version of the protocol.
Not all steps for proper USB operation (such as device
enumeration) are presented here. It is recommended
that application developers use an appropriate device
driver to implement all of the necessary features.
Microchip provides a number of application-specific
resources, such as USB firmware and driver support.
Refer to www.microchip.com/usb for the latest
firmware and driver support.
 2012-2013 Microchip Technology Inc.
DS30009312B-page 265