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
222 of 571
NXP Semiconductors
UM10316
Chapter 15: LPC29xx USB OTG interface
6.7 OTG Timer Register (OTGTmr - 0xE010 C114)
Table 189. OTG Status Control register (OTGStCtrl - address 0xE010 C110) bit description
Bit
Symbol
Description
Reset
Value
1:0
PORT_FUNC
Controls port function. Bit 0 is set or cleared by hardware
when B_HNP_TRACK or A_HNP_TRACK is set and
HNP succeeds. See
. Bit 1 is reserved.
-
3:2
TMR_SCALE
Timer scale selection. This field determines the duration
of each timer count.
00: 10
μ
s (100 KHz)
01: 100
μ
s (10 KHz)
10: 1000
μ
s (1 KHz)
11: Reserved
0x0
4
TMR_MODE
Timer mode selection.
0: monoshot
1: free running
0
5
TMR_EN
Timer enable. When set, TMR_CNT increments. When
cleared, TMR_CNT is reset to 0.
0
6
TMR_RST
Timer reset. Writing one to this bit resets TMR_CNT to 0.
This provides a single bit control for the software to
restart the timer when the timer is enabled.
0
7
-
Reserved, user software should not write ones to
reserved bits. The value read from a reserved bit is not
defined.
NA
8
B_HNP_TRACK
Enable HNP tracking for B-device (peripheral), see
. Hardware clears this bit when
HNP_SUCCESS or HNP_FAILURE is set.
0
9
A_HNP_TRACK
Enable HNP tracking for A-device (host), see
. Hardware clears this bit when
HNP_SUCCESS or HNP_FAILURE is set.
0
10
PU_REMOVED
When the B-device changes its role from peripheral to
host, software sets this bit when it removes the D+
pull-up, see
. Hardware clears this bit when
HNP_SUCCESS or HNP_FAILURE is set.
0
15:11 -
Reserved, user software should not write ones to
reserved bits. The value read from a reserved bit is not
defined.
NA
31:16 TMR_CNT
Current timer count value.
0x0
Table 190. OTG Timer register (OTGTmr - address 0xE010 C114) bit description
Bit
Symbol
Description
Reset
Value
15:0
TIMEOUT_CNT The TMR interrupt is set when TMR_CNT reaches this value.
0xFFFF
31:16 -
Reserved, user software should not write ones to reserved
bits. The value read from a reserved bit is not defined.
NA