DataSheet.es    


PDF SH7216 Data sheet ( Hoja de datos )

Número de pieza SH7216
Descripción USB Mass Storage Class
Fabricantes Renesas Technology 
Logotipo Renesas Technology Logotipo



Hay una vista previa y un enlace de descarga de SH7216 (archivo pdf) en la parte inferior de esta página.


Total 30 Páginas

No Preview Available ! SH7216 Hoja de datos, Descripción, Manual

APPLICATION NOTE
SH7216 Group
USB Function Module: USB Mass Storage Class
Introduction
This application note describes how to use the USB function module of the SH7216 and examples of creation of
firmware conforming to USB Mass Storage Class.
The contents of this application note and the software are provided for describing application examples of the USB
function module, but not for ensuring the contents.
Target Device
SH7216
Contents
1. Preface .............................................................................................................................................. 2
2. Overview ........................................................................................................................................... 3
3. Overview of the USB Mass Storage Class (Bulk-Only Transport).................................................... 5
4. Development Environment.............................................................................................................. 10
5. Overview of the Sample Program ................................................................................................... 14
6. Documents for Reference ............................................................................................................... 30
www.DataSheet4U.com
REJ06B0897-0100/Rev.1.00
July 2009
Page 1 of 32

1 page




SH7216 pdf
SH7216 Group
USB Function Module: USB Mass Storage Class
3. Overview of the USB Mass Storage Class (Bulk-Only Transport)
This section describes the USB Mass Storage Class (Bulk-Only Transport).
We hope that it will provide a convenient reference for use when developing USB storage-related systems. For more
detailed information on standards, please see (3) and (4) of the section 6 "Documents for Reference".
3.1 USB Mass Storage Class
USB Mass Storage Class is a class of standards that apply to large-scale memory (storage) devices that are connected to
a host PC and handle reading and writing of data.
In order to let the PC know that a function is in this class, a value of H'08 must be entered in the bInterface Class field
of the Interface Descriptor. Furthermore, USB Mass Storage Class must tell the host the serial number using the String
Descriptor. Unicode 000000000001 is returned in this sample program.
When transferring data between the host PC and the function, four transport methods defined by the USB are used
(control transfer, bulk transport, interrupt transfer, and isochronous transfer).
Protocol codes determine the transport method and how it is used.
In USB Mass Storage Class, there are two types of data transport protocols:
USB Mass Storage Class Bulk-Only Transport
USB Mass Storage Class Control/Bulk/Interrupt (CBI) Transport
As its name indicates, USB Mass Storage Class Bulk-Only Transport is a data transport protocol that only uses bulk
transport.
USB Mass Storage Class Control/Bulk/Interrupt (CBI) Transport is a data transport protocol that uses control transfer,
bulk transport, and interrupt transfer. CBI Transport is further subdivided into a data transport protocol that uses
interrupt transfer, and one that does not use interrupt transfer.
The sample programs provided here use USB Mass Storage Class Bulk-Only Transport as the data transport protocol.
When the host PC uses a device in order to load and save data, instructions (commands) are provided by the host PC to
the function. The function then executes those commands to load and save data. The commands sent by the host PC to
the function are defined in the form of sub-class code.
3.2 Sub-Class Code
Sub-class codes are values that indicate the command format sent from the host PC to a function by means of command
transport. There are seven types of command formats, described in table 2.
Table 2 Sub-Class Code
Sub-Class Code
H'01
H'02
H'03
H'04
H'05
H'06
Command Standards
Reduced Block Commands (RBC), T10/1240-D
Attachment Packet Interface (ATAPI) for CD-ROMs. SFF-8020i,
Multi-Media Command Set 2 (MMC-2)
Attachment Packet Interface (ATAPI) for Tape. QIC-157
USB Mass Storage Class UFI Command Specification
Attachment Packet Interface (ATAPI) for Floppies. SFF-8070i
SCSI Primary Commands –2 (SPC-2), Revision 3 or later
www.DataSheet4U.com
In order to tell the host PC the command format supported by the device, a sub-class code value must be entered in the
bINterface SubClass field of the Interface Descriptor.
The sample programs used here use a sub-class code value of H'06, which indicates the SCSI Primary Commands.
REJ06B0897-0100/Rev.1.00
July 2009
Page 5 of 32

5 Page





SH7216 arduino
SH7216 Group
USB Function Module: USB Mass Storage Class
4.2 Software Environment
Compile, link, and debug the source code with HEW4. To start HEW4, double-click "MSC.hws" in this folder.
4.2.1 Sample Program
Files required for the sample program are all stored in the MSC folder. When this entire folder with its contents is
moved to a PC on which HEW4 have been installed, the sample program can be used immediately. Files included in the
folder are indicated in figure 4 below.
C_Source (folder)
DoBOT MSCClass.c
DoBulk.c
DoRequest.c
DoSCSICommand.c
DoRequestBOT_StorangeClass.c
Startup.c
CatBOTTypedef.h
CatProType.h
CatTypedef.h
SetBOTInfo.h
SetSCSIInfo.h
SetSystemSwitch.h
SetUsbInfo.h
SysMemMap.h
DoControl.c
UsbMain.c
CatSCSITypedef.h
SetMacro.h
iodef.ine.h
sct.src
MSClass (folder)
MSC.Hbp
MSC.hws
MSC.tws
Figure 4 Files Included in the Folder
4.2.2 Compiling and Linking
Compile the source code with HEW4.
www.DataSheet4U.com
REJ06B0897-0100/Rev.1.00
July 2009
Page 11 of 32

11 Page







PáginasTotal 30 Páginas
PDF Descargar[ Datasheet SH7216.PDF ]




Hoja de datos destacado

Número de piezaDescripciónFabricantes
SH721132-Bit RISC MicrocomputerRenesas Technology
Renesas Technology
SH7216USB Mass Storage ClassRenesas Technology
Renesas Technology

Número de piezaDescripciónFabricantes
SLA6805M

High Voltage 3 phase Motor Driver IC.

Sanken
Sanken
SDC1742

12- and 14-Bit Hybrid Synchro / Resolver-to-Digital Converters.

Analog Devices
Analog Devices


DataSheet.es es una pagina web que funciona como un repositorio de manuales o hoja de datos de muchos de los productos más populares,
permitiéndote verlos en linea o descargarlos en PDF.


DataSheet.es    |   2020   |  Privacy Policy  |  Contacto  |  Buscar