TMP92CF30
2009-06-12
92CF30-375
3.16.3.21 COMMAND Register
This register sets COMMAND at each endpoint. This register can be set to select of
endpoint in bit6 to bit4 and kind of COMMAND in bit3 to bit0.
COMMAND for endpoint that is supported is ignored.
7
6
5
4
3
2
1
0
bit Symbol
EP[2]
EP[1]
EP[0]
Command[3]
Command[2] Command[1]
Command[0]
Read/Write
W W W W W W W
COMMAND
(07D0H)
Reset State
0 0 0 0 0 0 0
Note: When writing to this register, a recovery time of 5clocks at 12MHz is needed. After writing this register, insert
dummy instruction of 420 ns or longer.
EP [2:0] (Bit6 to bit4)
000: Select endpoint 0
001: Select endpoint 1
010: Select endpoint 2
011: Select endpoint 3
COMMAND [3:0] (Bit3 to bit0)
0000:
Reserved
0001:
Reserved
0010: SET_DATA0
This COMMAND clear toggle sequence bit of corresponding endpoint (EP0 to EP3).
If this COMMAND is input, it sets toggle sequence bit of the corresponding endpoint to
“0”. Data toggle for transfer is renewed automatically by UDC. However, this
COMMAND execution is required if setting toggle sequence bit of endpoint to “0”.If
control transfer type and Isochronous transfer type, execution of this COMMAND is not
required because of hardware control.
0011: RESET
This COMMAND resets the corresponding endpoint (EP0 to EP3).
If this COMMAND is input, the corresponding endpoint is initialized. CLEAR_FEATURE
request stalls endpoint. When this stall is cleared, execute this COMMAND. (This
command does not affect transfer mode.)
This command initializes the following.
・
Clear toggle sequence bit of corresponding endpoint.
・
Clear STALL of corresponding endpoint.
・
Set to FIFO_ENABLE condition.
・
Clear the data in FIFO
0100: STALL
This COMMAND sets corresponding endpoint to STALL (EP0 to EP3).
If STALL handshake must be return as answer for device request, execute this
command.
0101: INVALID
This COMMAND sets condition to prohibition of use corresponding endpoint (EP1 to
EP3).
If UDC detects USB_RESET signal from USB host, it sets all endpoints (except
endpoint 0) to prohibition using it automatically. If Config and Interface are changed by
device request, set endpoint that is not used to prohibit use.
0110: CREATE_SOF
This COMMAND sets quasi-SOF generation function to enable (EP0).
Default is set to disable, it must be used for Isochronous transfer.
0111: FIFO_DISABLE
This COMMAND sets FIFO of corresponding endpoint to disable (EP1 to EP3).
If this command is set from external, all of transfers except for toggle error for
corresponding endpoint return NAK. When it is set externally while receiving packet,
this becomes valid from next token. This command does not affect the packet that is
transferring.
Summary of Contents for TLCS-900/H1 Series
Page 652: ...TMP92CF30 2009 06 12 92CF30 650 ...