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

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
Figure 18.3 Operation on Receiving a SETUP Token (When Decode by the Slave CPU Is
Notes: 1. Set the EP0OTC bit of USECSR0 to 1, initialize FVSR0I and FVSR0O, clear the EP0ITS and EP0OTS bits of TSFR0 to 0,
Send an OUT data
handshake packet
Receive an ACK
packet (8 bytes)
Send a SETUP
token packet
USB Host
2. Since a USBIA interrupt is only assigned to a SETUP interrupt, interrupt source determination process is not required.
clear the EP0ITF and EP0OTF bits of TFFR to 0, and clear the EP0STL bit of EPSTLR0 to 0.
Required and When SETICNT = 0)
Command data decode
USB Function Core
Receive an OUT data
Receive a SETUP
Check if decode by
the slave CPU is
to the host CPU
to the slave CPU
packet (8 bytes)
required or not
token packet
Send ACK
Send ACK
Section 18 Universal Serial Bus Interface (USB)
Clear EP0OTC bit of
Request an USBIA
Request an USBID
Write data to EP0O
interrupt (EP0OTF)
interrupt (SETUP)
Automatically set
Modify FVSR0O
Core Interface
USBCSR0 to 0
Rev. 3.00 Jan 25, 2006 page 607 of 872
Modify FVSR0O
each flag *
FIFO
1
Read TSFR0 and check
indicating that the decode
check the TS interrupt
Check if the command
the EP0OTS interrupt to
Clear the SETUPF bit
the stored information
Check the instruction
USBCSR0 to 1 (write 1
Read USBIFR0 and
the EP0OTS interrupt
EP0OTC = 1 was read)
Complete the USBID
REJ09B0286-0300
decode by the slave
check if the EP0 FIFO
Clear the EP0OTS bit
the following sequence
Complete the USBIA
must be performed by
interrupt processing
CPU is required by
Read USBIFR0 *
Store the information
interrupt processing
interrupt processing
interrupt processing
contains 8-byte data
Initiate the USBID
Read FVSR0O and
Initiate the USBIA
If the instruction is
the EP0OTC bit of
of USBIFR0 to 0
Slave CPU
Read EPDR0O
Control-OUT, set
by data decode
to EP0OTC after
be generated in
in user memory
of TSFR0 to 0
occurrence
occurrence
2

Related parts for h8s-2158