TMP92CF30
2009-06-12
92CF30-407
Stage change condition of control read transfer type
1. Receive SETUP token from host
•
Start setup stage in UDC.
•
Receive data in request normally and judge. And assert INT_SETUP
interrupt externally.
•
Change data stage in the UDC.
2. Receive IN token from host
•
The CPU receives a request from the request register every INT_SETUP
interrupt.
•
Judge request and access Setup Received register to inform the UDC that
INT_SETUP interrupt has been recognized.
•
According to Device request, monitor EP0 bit of DATASET register, and write
data to FIFO.
•
If the UDC is set data of payload to FIFO or CPU set short packet transfer in
EOP register, EP0 bit of DATASET register is set.
•
The UDC transfers data that is set to FIFO to host by IN token interrupts.
•
When the CPU finishes transaction, it writes “0” to EP0 bit of EOP register.
•
Change status stage in the UDC.
3. Receive OUT token from host.
•
Return ACK to OUT token, and change state to IDLE in the UDC.
•
Assert INT_STATUS interrupt externally.
These changing conditions are shown in Figure 3.16.6.
Figure 3.16.6 The Control Flow in UDC (Control Read Transfer Type)
SETUP DATA0 ACK
IN
NAK
DATA1
DATA0
DATA1
INT_SETUP
INT_ ENDPOINT0
INT_STATUS
REQUEST FLAG
DATASET register
BRD
BWR
bmRequestType register
bRequest register
wValue register
wIndex register
wLength register
Setup Received register
EP0_FIFO (WR of payload)
EP0_FIFO (Rest data)
EOP register
IN
ACK
IN
ACK
OUT
ACK
Summary of Contents for TLCS-900/H1 Series
Page 652: ...TMP92CF30 2009 06 12 92CF30 650 ...