CHAPTER 14 USB Mini-HOST
14.4.1
Host Control Register 0,1(HCNT0/HCNT1)
Host control registers 0,1(HCNT0/HCNT1) specify the USB operation mode and the
settings of an interrupt.
Host Control Register 0,1(HCNT0/HCNT1)
Figure 14.4-1 Bit Configuration of Host Control Register 0, 1 (HCNT0/HCNT1)
Host control register 0
Address: 0000C0
Read/Write
Initial value
Reset On/Off at UDCC RST bit→
Host control register 1
Address: 0000C1
Read/Write
Initial value
Reset On/Off at UDCC RST bit →
[bit 15 to bit 11] Reserved
It is reserved bit.
Be sure to set this bit to "0".
[bit 10] SOFSTEP: SOF interrupt condition selection
It sets whether an interrupt due to SOF is generated every time SOF is executed. The interrupt is
enabled when the SOFIRE bit in host control register 0 (HCNT0) is "1".
When it is "0", the interrupt is generated via the setting of the SOF interrupt FRAME comparison
register (HFCOMP), and when it is "1", the interrupt is unconditionally generated every time SOF is
executed. However, the interruption is not generated at the first SOF token. It is not initialized with the
RST bit in the UDC control register (UDCC).
SOFSTEP
316
7
6
RWKIRE
URIRE
CMPIRE
H
→
(R/W)
(R/W)
→
(0)
(0)
( )
( )
15
14
Reserved
Reserved
Reserved
H
→
(R/W)
(R/W)
→
(0)
(0)
( )
( )
0
Interrupt is generated due to the setting of HFCOMP.
1
Interruption generation
5
4
3
CNNIRE
DIRE
(R/W)
(R/W)
(R/W)
(0)
(0)
(0)
( )
( )
( )
13
12
11
Reserved
Reserved SOFSTEP
(R/W)
(R/W)
(R/W)
(0)
(0)
(0)
( )
( )
( )
Operation mode
2
1
0
SOFIRE
URST
HOST
(R/W)
(R/W)
(R/W)
(0)
(0)
(0)
( )
( )
(
)
10
9
8
CANCEL
RETRY
(R/W)
(R/W)
(R/W)
(0)
(0)
(1)
( )
( )
( )
←
bit number
HCNT0
←
bit number
HCNT1