欢迎访问ic37.com |
会员登录 免费注册
发布采购

L-USS820FD-DB 参数 Datasheet PDF下载

L-USS820FD-DB图片预览
型号: L-USS820FD-DB
PDF下载: 下载PDF文件 查看货源
内容描述: USB设备控制器 [USB Device Controller]
分类和应用: 外围集成电路控制器时钟
文件页数/大小: 56 页 / 846 K
品牌: AGERE [ AGERE SYSTEMS ]
 浏览型号L-USS820FD-DB的Datasheet PDF文件第9页浏览型号L-USS820FD-DB的Datasheet PDF文件第10页浏览型号L-USS820FD-DB的Datasheet PDF文件第11页浏览型号L-USS820FD-DB的Datasheet PDF文件第12页浏览型号L-USS820FD-DB的Datasheet PDF文件第14页浏览型号L-USS820FD-DB的Datasheet PDF文件第15页浏览型号L-USS820FD-DB的Datasheet PDF文件第16页浏览型号L-USS820FD-DB的Datasheet PDF文件第17页  
Data Sheet, Rev. 1
August 2004
USS-820FD
USB Device Controller
Table 9. Shared Register Bit Update Behavior
(ASOF Example)
Bit
Update
Behavior
While
PEND = 0
Update
Behavior
While
PEND = 1
Update
Behavior
When
Firmware
Resets
PEND to 0
Register Interface
(continued)
Special Firmware Action for Shared Register
Bits
Since the USS-820FD registers are not bit-address-
able and contain several bits that may be written by
either firmware or hardware (shared bits), special care
must be taken to avoid incorrect behavior. In particular,
firmware must be careful not to write a bit after hard-
ware has updated the bit, but before firmware has
recognized the hardware update of the bit.
There are two general cases where this may occur:
1. Direct collision—Firmware does a read-modify-write
sequence to update a register bit, but between the
firmware read and firmware write, hardware
updates the bit. For example, in dual-packet mode,
hardware could update an SBI/SBI1 bit while firm-
ware is simultaneously resetting the same SBI/SBI1
bit. This would cause firmware to miss the fact that
a new transfer has completed.
2. Indirect collision—Firmware does a read-modify-
write sequence to update a register bit, but between
the firmware read and firmware write, hardware
updates a different bit in the same register. For
example, firmware could do a read-modify-write to
update the SOFODIS bit of the SOFH register, but
at the same time, hardware could be updating the
ASOF status bit. Firmware would inadvertently
reset the ASOF bit without being aware of the hard-
ware update.
These problems can be avoided through the use of the
PEND register, which can only be written by firmware.
Firmware must ensure that the PEND register bit is set
before writing any registers that contain shared bits.
All shared register bits have two copies: a standard
copy and a pended copy. The manner in which these
register bits are updated varies depending on the value
of the PEND register bit, as described in Table 9. The
standard copy is the bit that is read and written during
normal operation (PEND = 0). While PEND = 1, hard-
ware updates only affect the pended copy, and firm-
ware updates only affect the standard copy. When
firmware resets the PEND bit, the pended copies of the
shared bits are used to update the standard copies of
the shared bits as described in Table 10. Through
these means, hardware updates during a firmware
read-modify-write sequence will not be missed.
ASOF
Updated by
(standard hardware
(firmware
copy)
must not write
this register)
Not used
ASOF
(pended
copy)
Updated by Updated as
firmware
docu-
mented in
Updated by No longer
hardware
used
Firmware must execute the following sequence when
processing a shared bit (to avoid the direct collision
case), or when writing a bit which resides in a register
that contains shared bits (to avoid the indirect collision
case):
Set the PEND bit.
Read the register with the shared bit [Read].
If processing a shared bit, respond to the shared bit.
For example, for an SBI/SBI1 bit, process any data
sets present for that endpoint.
Update the bit [Modify].
Write the register with the shared bit with the modi-
fied data [Write].
Reset the PEND bit.
When a data set is written to a receive FIFO, that
FIFO’s SBI/SBI1 register bit will set. Firmware must
process the indicated receive data set and, in doing so,
manage that FIFO’s SBI/SBI1 bit according to the
sequence described in this section. In dual-packet
mode, it is possible that a second data set will be
written to a receive FIFO before firmware has
completed processing of the initial data set. This
second data set could have been written either before
or after firmware set the PEND bit to 1. Therefore, firm-
ware cannot determine whether or not this second
receive done indication was saved in the pended copy
of the SBI/SBI1 bit. Because of this uncertainty, firm-
ware must process all receive data sets which are
present in the indicated FIFO before resetting the
PEND bit to 0. If the receive done indication of the
second data set was in fact saved in the pended SBI/
SBI1 register, then the standard copy of the SBI/SBI1
bit will be set when firmware resets the PEND bit to 0.
13
Agere Systems Inc.