Download Atheros AR9331

Transcript
PRELIMINARY
6.19.20 USB Frame Index (FRINDEX)
Offset: 0x1B00014C
Access: Read/Write (host mode)
Read-Only (device mode)
Reset Value: Undefined (free-running counter)
In device mode this register is read only and,
the device controller updates the FRINDEX
[13:3] register from the frame number indicated
by the SOF marker. Whenever a SOF is
received by the USB bus, FRINDEX [13:3] is
checked against the SOF marker. If FRINDEX
[13:3] is different from the SOF marker,
FRINDEX [13:3] is set to the SOF value and
FRINDEX [2:0] is set to 0 (i.e., SOF for 1 ms
frame). If FRINDEX [13:3] is equal to the SOF
value, FRINDEX [2:0] increments (i.e., SOF for
125-μs micro-frame.)
Used by the host controller to index the
periodic frame list. The register updates every
125 ms (once each micro-frame). Bits [N:3] are
used to select a particular entry in the periodic
frame list during periodic schedule execution.
The number of bits used for the index depends
on the size of the frame list as set by system
software in the frame list size field in the
register “USB Command (USBCMD)” on
page 239. This register must be written as a
DWord. Byte writes produce-undefined results.
This register cannot be written unless the Host
Controller is in the halted state. A write to this
register while the run/stop hit is set to a one
produces undefined results. Writes to this
register also affect the SOF value.
Bit
Name
31:14
RES
13:0
FRINDEX
246
246
•
•
Description
Reserved. Must be written to 0.
Frame index
The value, in this register, increments at the end of each time frame (micro-frame). Bits
[N:3] are used for the frame list current index, thus each location of the frame list is
accessed 8 times (frames or micro-frames) before moving to the next index.
In device mode the value is the current frame number of the last frame transmitted. It is
not used as an index.
In either mode bits 2:0 indicate the current micro-frame.
The values of N are based on the value of the frame list size field in the register “USB
Command (USBCMD)” when used in host mode:
USBCMD
[Frame Size List] Number
Elements N
00b
1024
12
001b
512
11
010b
256
10
011b
128
9
100b
64
8
101b
32
7
110b
16
6
111b
8
5
AR9331 802.11n 1x1 2.4 GHz SoC for AP and Router Platforms
December 2010
Atheros Communications, Inc.
COMPANY CONFIDENTIAL