Semiconductor Group
6-69
1999-04-01
On-Chip Peripheral Components
C541U
SETWRn
Set direction of USB memory buffer to write
Bit SETWRn is used to predict the direction of the next USB access for endpoint
n as an USB write access. A faulty prediction causes no errors since the USB
module determines the real direction. A change in the data direction is only
executed, if both USB memory buffers are empty. SETWR cannot be set together
with CLREPn because a change of bit DIRn during a transfer is not allowed.
Note : bits SETWRn and SETRDn must not be set at a time.
CLREPn
Clear endpoint
Setting bit CLREPn will set the address offset register for a CPU access to USB
memory to 0. The bits CBFn and UBFn will be reset when CLREPn is set.
Bit CLREPn is reset by hardware. A read operation on this bit will always deliver
0. Setting of CLREPn does not change the direction of endpoint n. This means, bit
DIRn is not changed.
Note: When bits CLREPn and ESPn are set simultaneously with one instruction,
bit ESPn remains set and the next status phase is enabled. If only CLREPn
is set, bit ESPn is reset and the status phase is disabled.
Setting bits CLREPn and SETRDn or SETWRn simultaneously with one
instruction is not allowed. This means that the information of SETRDn or
SETWRn is ignored in this case.
DONEn
Buffer done by CPU
If bit DONE is set, the current USB memory buffer assigned to CPU is
automatically tagged full (data flow from the CPU to the USB) or empty (data flow
from the USB to the CPU). This bit is reset by hardware after it has been set. A
read operation on this bit will deliver always 0.
Note: If the direction of endpoint n is read (USB read access) and auto-increment
is enabled (INCEn=1) and DONEn is set the content of register ADROFF
is copied automatically to register EPLENn of the actual endpoint. Register
EPLENn is not changed if the auto-increment capability is disabled
(INCEn=0).
Bit
Function
Содержание C541U
Страница 1: ... 8 LW 026 0LFURFRQWUROOHU 8VHU V 0DQXDO http www siem ens d Sem iconductor ...
Страница 7: ......
Страница 21: ...Semiconductor Group 2 6 1997 10 01 Fundamental Structure C541U ...
Страница 37: ...Semiconductor Group 4 6 1997 10 01 External Bus Interface C541U ...
Страница 133: ...Semiconductor Group 6 88 1999 04 01 On Chip Peripheral Components C541U ...
Страница 163: ...Semiconductor Group 8 8 1997 10 01 Fail Safe Mechanisms C541U ...
Страница 185: ...Semiconductor Group 10 14 1997 10 01 OTP Memory Operation C541U ...
Страница 192: ...Semiconductor Group 12 7 Index C541U ...