CHAPTER 8 USB FUNCTION
User’s Manual U12978EJ3V0UD
133
(4) Control transfer (IN) (Transfer byte count: 9 bytes or more)
Request
Operation of host
controller
IN packet
SETUP
DATA0
ACK
Packet from
host controller
Packet from
PD789800
Setup
stage
Data
stage IN
reception
ACK
IN
DATA1
• ACK transmission
• DATA1 transmission
reservation
Operation of USB
function of PD789800
ACK transmission
reservation
• DATA1 transmission
• NAK transmission
reservation
• ACK transmission
• USB communication
completion timer start
IN packet
NAK transmission
reservation clear
NAK transmission
reservation
OUT
reception
wait
Status
stage OUT
reception
Packet flow
ACK packet
ACK
IN
DATA0
ACK
IN packet
NAK transmission
reservation clear
• NAK transmission
• DATA0 transmission
reservation
ACK packet
• DATA0 transmission
• NAK transmission
reservation
NAK transmission
reservation clear
OUT
DATA1
OUT packet
• DATA0/1 transmission
• NAK transmission
reservation
ACK transmission
reservation
NAK
IN
IN
DATA0/1
ACK
NAK
IN
IN packet
IN packet
• NAK transmission
• DATA1 transmission
reservation
USB communication
completion timer
timeout
Note
µ
µ
Note
If the ACK from the device cannot be received normally, the host transmits OUT again. Therefore, set
the OUT receive wait state for a period so that the OUT can be received. Use a normal 8-bit timer for
counting during this period.