Renesas USB Device
USB Host Mass Storage Class Driver(HMSC)
R01AN0513EJ0110 Rev.1.10
Page 42 of 55
Aug 10, 2011
8. Sample Application Program (APL)
8.1 Application
Overview
8.1.1 Operating
Environment
The figure below shows a sample operating environment for the software.
USB Commnnication
(BOT protocol)
Evaluation
Board
USB
PORT
Host Mass Storage
Device Class Driver (HMSC)
+
Renesas USB Device
USB Basic Firmware
Text Data file
Write "aaaaa"
Text Data file
Read "aaaaa"
USB mass storage device
USB
PORT
USB storage
device
(USB memory,
etc.)
Figure 8.1 Example Operating Environment
8.1.2
Overview of Application Program Functions
The HMSC bundles a sample application (APL) intended for switch operation on the board such as RX62N RSK.
After enumeration, the process executes the file Write/Read operation on the connected USB mass storage device
Explanations for APL processes are provided below.
•
Press SW on RX62N RSK after configuration is completed, to write 512-byte ‘a’ data to the “hmscdemo.txt” file
(Write process, 1 time).
•
Press SW after the above process, to read the data in” hmscdemo.txt” (Read process, loop). During the Read process,
each time the device is read 100 times, LED0~3 on RX62N RSK light up in sequence.
•
If an access error occurs on the connected device, the device will go to the SUSPEND state.
Summary of Contents for R8A66597
Page 56: ......