Toshiba H1 Series Data Book page 404

32bit micro controller tlcs-900/h1 series
Table of Contents

Advertisement

3.16.3.21 COMMAND Register
endpoint in bit6 to bit4 and kind of COMMAND in bit3 to bit0.
COMMAND
bit Symbol
(07D0H)
Read/Write
After reset
Note: When writing to this register, the recovery time of 2clock at 12MHz is needed. If writing continuously, insert
dummy instruction more than 250 ns.
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
This register sets COMMAND at each endpoint. This register can be set selection of
COMMAND for endpoint that is supported is ignored.
7
6
EP[2]
W
0
This COMMAND clear toggle sequence bit of applicable endpoint (EP0 to EP3).
If this COMMAND is inputted, it set toggle sequence bit of applicable endpoint to "0"
compulsively. Data toggle for transfer is renewed automatically by UDC. However, if
setting toggle sequence bit of endpoint to "0" compulsively, this COMMAND execution
need. If control transfer type and Isochronous transfer type, execution this COMMND
don't need because of controlling in hardware.
This COMMAND reset applicable endpoint (EP0 to EP3).
If this COMMAND is inputted, applicable endpoint is initialized. CLEAR_FEATURE
request stall endpoint. When this stall is cleared, execute this COMMAND. (This
command doesn't affect to transfer mode.)
This command Initialize following item.
・Clear toggle sequence bit of applicable endpoint.
・Clear STALL of applicable endpoint.
・Set to FIFO_ENABLE condition.
This COMMAND set applicable endpoint to STALL (EP0 to EP3).
If STALL handshake must be return as answer for device request, execute this
command.
This COMMAND set condition to prohibition using applicable endpoint (EP1 to EP3).
If UDC detect USB_RESET signal from USB host, it set all endpoint (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 using.
This COMMAND set quasi-SOF generation function to enable (EP0).
Default is set to disable, it need using for Isochronous transfer.
This COMMAND set FIFO of applicable endpoint to disable (EP1 to EP3).
If this command is set from external, all of transfer for applicable endpoint returns NAK.
When it is set from external if during receiving packet, this becomes valid from next
token. This command doesn't affect packet that is transferring.
5
4
EP[1]
EP[0]
Command[3]
W
W
0
0
92CZ26A-401
TMP92CZ26A
3
2
1
Command[2]
Command[1]
W
W
W
0
0
0
0
Command[0]
W
0

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tlcs-900Tmp92cz26axbg

Table of Contents