USB DEVICE CONTROLLER
M66290AGP/FP
MITSUBISHI <DIGITAL ASSP>
23
Control
transf er
sequence
error
Control
write
status
stage
Control
write
data
stage
Setup
stage
Control
read
data
stage
Control
read
status
stage
Control
write
no data
stage
status
Receiv e short packet
or Receiv e IN token
(Control write transfer
status stage transition)
Transmit short packet
or Receiv e OUT token
(Control read transfer
status stage transition)
ACK transmit
(Setup stage complete)
ACK transmit
(Setup stage complete)
ACK receive
(Control transfer
complete)
ACK receive
(Control transfer
complete)
ACK receive
(Control transfer
complete)
Receive
Error detected
Figure 6. Stage shift of control transfer
Control transfer stage transition
M66290A manages control transf er sequence by H/W.
There are setup stage, data stage, and status stage in
control transf er stage, as shown in f igure 6. And when
stage shif ts, CTRT interrupt occurs.
There are f iv e f actors in CTRT interrupt, that is, setup
stage end, control write transf er status stage shif t,
control read transf er status stage shif t, control transf er
end, and control transf er sequence error. And there are
sev en errors as f ollows in control transf er sequence
error which can be detected by H/W.
If H/W detected control transf er sequence error,
response PID is set to STALL("1x") automatically.
1. IN token packet receiv e in control write data stage
(In token packet receiv e which did not do ACK
handshake once to OUT token packet in data stage)
2. OUT token packet receiv e in control write status stage
3. OUT token packet receiv e in control read data stage.
(OUT token packet receiv e which did not do data transf er
once to IN token packet in data stage).
4. IN token packet receiv e in control read status stage.
5. Data packet receiv e except f or Null data in control
read status stage.
6. OUT token packet receiv e in control write no data
status stage.
7. Data receiv e which exceeds maximum packet size.
In control write data stage, it can not be recognized as
sequence error when receiv ed data packet which exceeds
request wLength v alue.
setup packet
(Setup stage complete)