English
Language : 

PIC24EP256GU810-I Datasheet, PDF (385/622 Pages) Electronic Film Capacitors, Inc. – 16-Bit Microcontrollers and Digital Signal Controllers with High-Speed PWM, USB and Advanced Analog
dsPIC33EPXXX(GP/MC/MU)806/810/814 and PIC24EPXXX(GP/GU)810/814
22.0 USB ON-THE-GO (OTG)
MODULE (dsPIC33EPXXXMU8XX
AND PIC24EPGU8XX DEVICES
ONLY)
Note 1: This data sheet is not intended to be a
comprehensive reference source. To com-
plement the information in this data sheet,
refer to Section 25. “USB On-The-Go
(OTG)” (DS70571) of the “dsPIC33E/
PIC24E Family Reference Manual”, which
is available from the Microchip web site
(www.microchip.com).
2: Some registers and associated bits
described in this section may not be
available on all devices. Refer to
Section 4.0 “Memory Organization” in
this data sheet for device-specific register
and bit information.
22.1 Overview
The Universal Serial Bus (USB) On-The-Go (OTG)
module includes the following features:
• USB Full-Speed Support for Host and Device
• Low-Speed Host Support
• USB On-The-Go Support
• Integrated Signaling Resistors
• Integrated Analog Comparators for VBUS
Monitoring
• Integrated USB Transceiver
• Hardware Performs Transaction Handshaking
• Endpoint Buffering Anywhere in System RAM
• Integrated DMA Controller to Access System
RAM
• Support for all four transfer types:
- Control
- Interrupt
- Bulk Data
- Isochronous
• Queueing of up to Four Endpoint Transfers
without Servicing
• USB 5V Charge Pump Controller
The USB module contains the analog and digital
components to provide a USB 2.0 full-speed and low-
speed embedded host, full-speed device or OTG
implementation with a minimum of external
components.
The USB module consists of the clock generator, the
USB voltage comparators, the transceiver, the Serial
Interface Engine (SIE), pull-up and pull-down resistors,
and the register interface. Figure 22-1 illustrates the
block diagram of the USB OTG module.
The device auxiliary clock generator provides the
48 MHz clock required for USB communication. The
voltage comparators monitor the voltage on the VBUS
pin to determine the state of the bus. The transceiver
provides the analog translation between the USB bus
and the digital logic. The SIE is a state machine that
transfers data to and from the endpoint buffers and
generates the protocol for data transfers. The
integrated pull-up and pull-down resistors eliminate the
need for external signaling components. The register
interface allows the CPU to configure and
communicate with the module.
Note:
The implementation and use of the USB
specifications and other third party
specifications or technology may require a
license from various entities, including,
but not limited to USB Implementers
Forum, Inc. (also referred to as USB-IF). It
is your responsibility to obtain more
information regarding any applicable
licensing obligations.
22.2 Clearing USB OTG Interrupts
Unlike device level interrupts, the USB OTG interrupt
status flags are not freely writable in software. All USB
OTG flag bits are implemented as hardware set-only
bits. Additionally, these bits can only be cleared in
software by writing a ‘1’ to their locations (i.e.,
performing a BSET instruction). Writing a ‘0’ to a flag bit
(i.e., a BCLR instruction) has no effect.
Note:
Throughout this section, a bit that can only
be cleared by writing a ‘1’ to its location is
referred to as “Write ‘1’ to clear bit”. In reg-
ister descriptions, this function is indicated
by the descriptor, “K”.
 2009-2012 Microchip Technology Inc.
DS70616G-page 385