h8s-2158 Renesas Electronics Corporation., h8s-2158 Datasheet - Page 248

no-image

h8s-2158

Manufacturer Part Number
h8s-2158
Description
Renesas 16-bit Single-chip Microcomputer H8s Family/h8s/2100 Series
Manufacturer
Renesas Electronics Corporation.
Datasheet
Section 8 RAM-FIFO Unit (RFU)
Rev. 3.00 Jan 25, 2006 page 196 of 872
REJ09B0286-0300
End data reception from the host
End data transmission correctly
Set the EP5TS interrupt flag
Start data reception from
Receive OUT token from the host
Request USBID interrupt
Is receive buffer busy ?
Transmit ACK packet
Is EP5 receive buffer
Manipulate pointer
update to the RFU
Does received data
include any errors?
Is EP5 stalled?
Is EP5 receive
Does the EP5
receive buffer
buffer empty?
the host
overrun?
empty?
IDLE
IDLE
Yes
Yes
Yes
Yes
Yes
Yes
For instance, the RFU update processing of
previous data communication is not completed
No
No
No
No
No
No
Hardware (USB, RFU)
Write data to RFU/FIFO
From the device
Does RFU/FIFO
Figure 8.6 Operation Flow of USB OUT Transfer
To (B)
overrun?
Set the EP5UTDR interrupt flag
Yes
No
The host transmits
Transmit STALL
data but it is not
the device side
received by
packet
From the device
End data transmission abnormally
Set the EP5TF interrupt flag
The host transmits
Manipulate pointer
rewind to the RFU
during data phase?
data but it is not
the device side
Abnormally end
Transmit NAK
received by
packet
Yes
Read TSFR0 to confirm
From the device
the EP5TS interrupt
TS
No handshake
No
(timeout)
Start USBID interrupt handling
End USBID interrupt processing
Read from USBIFR0 and
Read TFFR0 to confirm
Firmware (CPU)
Clear interrupt flag
USBIFR1 to judge
an interrupt source
the EP5TF interrupt
Is it necessary to
Read data from
read data from
(MMC, etc.)
RFU/FIFO
RFU/FIFO?
(B)
TF
Yes
No
Read UDTRFR to confirm
the EP5UDTR interrupt
UDTR

Related parts for h8s-2158