
USB on-the-go full-speed (OTG_FS)
RM0008
854/1096
Doc ID 13902 Rev 12
OTG_FS Host frame number/frame time remaining register (OTG_FS_HFNUM)
Address offset: 0x408
Reset value: 0x0000 3FFF
This register indicates the current frame number. It also indicates the time remaining (in
terms of the number of PHY clocks) in the current frame.
OTG_FS_Host periodic transmit FIFO/queue status register
(OTG_FS_HPTXSTS)
Address offset: 0x410
Reset value: 0x0008 0100
This read-only register contains the free space information for the periodic TxFIFO and the
periodic transmit request queue.
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
FTREM
FRNUM
r
r
r
r
r
r
r
r
r
r
r
r
r
r
r
r
r
r
r
r
r
r
r
r
r
r
r
r
r
r
r
r
Bits 31:16
FTREM:
Frame time remaining
Indicates the amount of time remaining in the current frame, in terms of PHY clocks. This field
decrements on each PHY clock. When it reaches zero, this field is reloaded with the value in
the Frame interval register and a new SOF is transmitted on the USB.
Bits 15:0
FRNUM:
Frame number
This field increments when a new SOF is transmitted on the USB, and is cleared to 0 when it
reaches 0x3FFF.
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
PTXQTOP
PTXQSAV
PTXFSAVL
r
r
r
r
r
r
r
r
r
r
r
r
r
r
r
r
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
Bits 31:24
PTXQTOP:
Top of the periodic transmit request queue
This indicates the entry in the periodic Tx request queue that is currently being processed by
the MAC.
This register is used for debugging.
Bit [31]: Odd/Even frame
–
0: send in even frame
–
1: send in odd frame
Bits [30:27]: Channel/endpoint number
Bits [26:25]: Type
–
00: IN/OUT
–
01: Zero-length packet
–
11: Disable channel command
Bit [24]: Terminate (last entry for the selected channel/endpoint)