English
Language : 

PIC32MX440F256H-80I Datasheet, PDF (246/646 Pages) Microchip Technology – 64/100-Pin General Purpose and USB 32-Bit Flash Microcontrollers
PIC32MX3XX/4XX
11.1.14 U1TOK REGISTER
U1TOK (Register 11-15) is a read/write register
required when the module operates as a host. It is used
to specify the token type, PID<3:0> (Packet ID), and
the endpoint, EP<3:0>, being addressed by the host
processor. Writing to this register triggers a host
transaction.
11.1.15 U1SOF REGISTER
U1SOF (Register 11-16) threshold is a read/write reg-
ister that contains the count bits of the Start-of-Frame
(SOF) threshold value, and are used in Host mode only.
To prevent colliding a packet data with the SOF token
that is sent every 1 ms, the USB module will not send
any new transactions within the last U1SOF byte times.
The USB module will complete any transactions that
are in progress. In Host mode, the SOF interrupt occurs
when this threshold is reached, not when the SOF
occurs. In Device mode, the interrupt occurs when a
SOF is received. Transactions started within the SOF
threshold are held by the USB module until after the
SOF token is sent.
11.1.16 U1BDTP1, U1BDTP2 AND U1BDTP3
REGISTERS
These registers (Register 11-17, Register 11-18 and
Register 11-19) are read/write registers that define the
upper 23 bits of the 32-bit base address of the Buffer
Descriptor Table (BDT) in the system memory. The
BDT is forced to be 512 byte-aligned. This register
allows relocation of the BDT in real time.
11.1.17 U1CNFG1 REGISTER
U1CNFG1 (Register 11-20) is a read/write register that
controls the Debug and Idle behavior of the module.
The register must be preprogrammed prior to enabling
the module.
11.1.18 U1EP0-U1EP15 REGISTERS
These registers control the behavior of the correspond-
ing endpoint.
11.1.19 ASSOCIATED REGISTERS
The following registers are not part of the USB module
but are associated with module operation.
• IEC1: Interrupt Enable Control Register
(Register 11-22)
• IFS1: Interrupt Flag Status Register
(Register 8-5)
• DEVCFG2: Device Configuration Word 2
(Register 27-3)
• OSCCON: Oscillator Control Register
(Register 4-1)
11.1.20 CLEARING USB OTG INTERRUPTS
Unlike other 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 bits. These bits can only be cleared in software by
writing a ‘1’ to their locations. Writing a ‘0’ to a flag bit
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’.
DS61143E-page 244
Preliminary
© 2008 Microchip Technology Inc.