DR
AFT
DR
AFT
DRAFT
DR
D
RAFT
DRAFT
DRA
FT DRAF
D
RAFT DRAFT DRAFT DRAFT DRAFT D
DRAFT
D
RAFT DRA
FT DRAFT DRAFT DRAFT DRA
UM10316_0
© NXP B.V. 2008. All rights reserved.
User manual
Rev. 00.06 — 17 December 2008
221 of 571
NXP Semiconductors
UM10316
Chapter 15: LPC29xx USB OTG interface
6.3 OTG Interrupt Enable Register (OTGIntEn - 0xE010 C104)
Writing a one to a bit in this register enables the corresponding bit in OTGIntSt to generate
an interrupt on one of the interrupt lines. The interrupt is routed to the USB_OTG_INT
interrupt line in the USBIntSt register.
The bit allocation and reset value of OTGIntEn is the same as OTGIntSt.
6.4 OTG Interrupt Set Register (OTGIntSet - 0xE010 C20C)
Writing a one to a bit in this register will set the corresponding bit in the OTGIntSt register.
Writing a zero has no effect. The bit allocation of OTGIntSet is the same as in OTGIntSt.
6.5 OTG Interrupt Clear Register (OTGIntClr - 0xE010 C10C)
Writing a one to a bit in this register will clear the corresponding bit in the OTGIntSt
register. Writing a zero has no effect. The bit allocation of OTGIntClr is the same as in
OTGIntSt.
6.6 OTG Status and Control Register (OTGStCtrl - 0xE010 C110)
The OTGStCtrl register allows enabling hardware tracking during the HNP hand over
sequence, controlling the OTG timer, monitoring the timer count, and controlling the
functions mapped to port U1 and U2.
Time critical events during the switching sequence are controlled by the OTG timer. The
timer can operate in two modes:
1. Monoshot mode: an interrupt is generated at the end of TIMEOUT_CNT (see
15–6.7 “OTG Timer Register (OTGTmr - 0xE010 C114)”
), the TMR bit is set in
OTGIntSt, and the timer will be disabled.
2. Free running mode: an interrupt is generated at the end of TIMEOUT_CNT (see
Section 15–6.7 “OTG Timer Register (OTGTmr - 0xE010 C114)”
), the TMR bit is set,
and the timer value is reloaded into the counter. The timer is not disabled in this
mode.
Table 188. OTG Interrupt Status register (OTGIntSt - address 0xE01F C100) bit description
Bit
Symbol
Description
Reset
Value
0
TMR
Timer time-out.
0
1
REMOVE_PU
Remove pull-up.
This bit is set by hardware to indicate that software
needs to disable the D+ pull-up resistor.
0
2
HNP_FAILURE
HNP failed.
This bit is set by hardware to indicate that the HNP
switching has failed.
0
3
HNP_SUCCESS
HNP succeeded.
This bit is set by hardware to indicate that the HNP
switching has succeeded.
0
31:4
-
Reserved, user software should not write ones to
reserved bits. The value read from a reserved bit is not
defined.
NA