Instruction manual

Renesas USB MCU and USB ASSP USB Basic Host and Peripheral firmware
R01AN0512EJ0210 Rev.2.10 Page 60 of 157
Apr 1, 2013
4.8 Peripheral sample program
4.8.1 Function
USB-BASIC-FW peripheral sample program is configured with a sample vendor class driver and sample application and
includes the following functions.
Operation confirmation is possible using “USBCommandVerifier.exe".
Data transfer with USB-BASIC-FW host sample program (see “
5.10 Host Sample Program).
Works with the new ANSI-type interface.
Operation confirmation with “USBCommandVerifier.exe"
The peripheral sample program operation can be confirmed based on the device framework test tool
“USBCommandVerifier.exe” (USBCVprovided by the USB Implementers Forum (USB-IF). Supported test items are
listed in Chapter 9.
Data communications with a host sample program
The peripheral sample program can communicate with a host running the USB-BASIC-F/W host sample program,
transferring bulk and interrupt data. This could even be run on one MCU if the board has two USB ports; an A-port
(host) and a B-port (peripheral).
4.8.2 Operation of a peripheral sample program
The following describes an example of the peripheral sample program in the non-OS configuration.
1. Initialization
When the device goes to the reset state, the PowerON_Reset_PC function in resetprg.c is called. The
PowerON_Reset_PC function initializes the MCU, sections, the scheduler, etc., and then calls the usb_cstd_main_task
function in main.c. After the USB module is set and tasks are registered in the usb_cstd_main_task function, the device
returns to the static state.