Toshiba TLCS-900/H1 Series Manual page 377

Original cmos 32-bit microcontroller
Hide thumbs Also See for TLCS-900/H1 Series:
Table of Contents

Advertisement

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.
COMMAND
bit Symbol
(07D0H)
Read/Write
Reset State
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
0011: RESET
0100: STALL
0101: INVALID
0110: CREATE_SOF
0111: FIFO_DISABLE
7
6
5
EP[2]
EP[1]
W
W
0
0
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.
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
This COMMAND sets corresponding endpoint to STALL (EP0 to EP3).
If STALL handshake must be return as answer for device request, execute this
command.
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.
This COMMAND sets quasi-SOF generation function to enable (EP0).
Default is set to disable, it must be used for Isochronous transfer.
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.
92CF30-375
4
3
EP[0]
Command[3]
Command[2]
W
W
W
0
0
TMP92CF30
2
1
0
Command[1]
Command[0]
W
W
0
0
0
2009-06-12

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tmp92cf30fg

Table of Contents