Datasheet

Table Of Contents
Section 15 Universal Serial Bus Interface (USB)
Page 572 of 846 REJ09B0140-0900 Rev. 9.00
Sep 16, 2010
H8S/2215 Group
15.5.10 Processing of USB Standard Commands and Class/Vendor Commands
(1) Processing of Commands Transmitted by Control Transfer
A command transmitted from the host by control transfer may require decoding and execution of
command processing by the firmware. Whether or not command decoding is required by the
firmware is indicated in table 15.6 below.
Table 15.6 Command Decoding on Firmware
Decoding not Necessary on Firmware Decoding Necessary on Firmware
Clear Feature
Get Configuration
Get Interface
Get Status
Set Address
Set Configuration
Set Feature
Set Interface
Get Descriptor
Synch Frame
Set Descriptor
Class/Vendor command
If decoding is not necessary on the firmware, command decoding and data stage and status
stage processing are performed automatically. No processing is necessary by the user. An interrupt
is not generated in this case.
If decoding is necessary on the firmware, the USB function module stores the command in
the EP0sFIFO. After normal reception is completed, the SetupTS flag of UIER0 is set and an
interrupt request is generated from the EXIRQx. In the interrupt routine, eight bytes of data must
be read from the EP0s data register (UEDR0s) and decoded by firmware. The necessary data stage
and status stage processing should then be carried out according to the result of the decoding
operation.