Instruction manual
Renesas USB MCU and USB ASSP USB Basic Host and Peripheral firmware
R01AN0512EJ0210 Rev.2.10 Page 6 of 157
Apr 1, 2013
2. Overview
2.1 Development Goals
USB-BASIC-FW was developed with the following goals in mind.
• To simplify the development of USB communication programs by customers using Renesas.
• To provide source code examples for hardware control of USB.
2.2 Features of USB-BASIC-FW
The main features of USB-BASIC-FW are as follows.
2.2.1 Overall
• Can control RX62N, RX63N, RX630, RX63T ,R8A66597 and R8A66593 by common source code.
• Can operate in either host or peripheral mode.
• Multiple device class drivers may be installed without the need to customize USB-BASIC-FW.
2.2.2 Host mode
• When a no-response condition is detected during data transfer to a USB Function, the user can specify the number of
retries per transfer.
• A single pipe can perform multiple exclusive data communication tasks.
• A common API for control transfer, bulk transfer and interrupt transfer is provided.
• The function R_usb_hstd_ChangeDeviceState for devices connect/disconnect processing is provided.
• The function R_usb_hstd_ChangeDeviceState for suspend/resume processing is provided.
• HUBCD sample program code is provided.
• Sample application for data transfer is added. (This application operates as Vendor class.)
• A single pipe can perform multiple exclusive data communication tasks in order to manage HDCD pipe information
tables.
2.2.3 Peripheral mode
• Operation can be confirmed by using USBCommandVerifier.exe.
(USBCV is available for download from http://www.usb.org/developers/developers/tools/.)
• API for control transfer is provided.
• Common API for bulk transfer and interrupt transfer is provided.
• An API function is provided for devices connect/disconnect processing is provided.
• An API function is provided for suspend/resume processing is provided.
• Sample application for data transfer is added. (This application operates as Vendor class.)
2.2.4 Function provided by user
The following functions must be provided by the customer to match the system under development.
• Overcurrent detection processing when connecting USB cables (Host mode).
• Descriptor analysis (Host mode).
• Descriptor and pipe data (Peripheral mode)
• Device class driver.Examples currently exist for HMSC, PMSC, HHID, PHID, HCDC, PCDC.