PIC24FJ32GB002-E/ML MICROCHIP [Microchip Technology], PIC24FJ32GB002-E/ML Datasheet - Page 206

no-image

PIC24FJ32GB002-E/ML

Manufacturer Part Number
PIC24FJ32GB002-E/ML
Description
28/44-Pin, 16-Bit, Flash Microcontrollers with USB On-The-Go (OTG) and nanoWatt XLP Technology
Manufacturer
MICROCHIP [Microchip Technology]
Datasheet
PIC24FJ64GB004 FAMILY
18.3
The USB OTG module has many conditions that can
be configured to cause an interrupt. All interrupt
sources use the same interrupt vector.
Figure 18-9 shows the interrupt logic for the USB mod-
ule. There are two layers of interrupt registers in the
USB module. The top level consists of overall USB
status interrupts; these are enabled and flagged in the
U1IE and U1IR registers, respectively. The second
FIGURE 18-9:
DS39940D-page 206
USB Interrupts
CRC5EE (EOFEE)
CRC5EF (EOFEF)
Second Level (USB Error) Interrupts
CRC16EE
CRC16EF
DFN8EE
DFN8EF
DMAEE
DMAEF
BTOEE
BTSEE
BTOEF
BTSEF
PIDEF
PIDEE
Top Level (USB Status) Interrupts
USB OTG INTERRUPT FUNNEL
Top Level (USB OTG) Interrupts
URSTIE (DETACHIE)
URSTIF (DETACHIF)
level consists of USB error conditions, which are
enabled and flagged in the U1EIR and U1EIE registers.
An interrupt condition in any of these triggers a USB
Error Interrupt Flag (UERRIF) in the top level.
Interrupts may be used to trap routine events in a USB
transaction. Figure 18-10 provides some common
events within a USB frame and their corresponding
interrupts.
RESUMEIE
RESUMEIF
ATTACHIF
ATTACHIE
SESENDIE
VBUSVDIE
SESENDIF
VBUSVDIF
T1MSECIF
(UERRIF)
TIMSECIE
LSTATEIE
LSTATEIF
STALLIE
STALLIF
SESVDIF
SESVDIE
UERRIE
ACTVIE
IDLEIE
ACTVIF
IDLEIF
TRNIE
SOFIE
TRNIF
SOFIF
IDIE
IDIF
 2010 Microchip Technology Inc.
Set USB1IF

Related parts for PIC24FJ32GB002-E/ML