Renesas CPU Board M3A-HS19 User Manual

Browse online or download User Manual for Networking Renesas CPU Board M3A-HS19. SH7285/SH7286 USB function module

  • Download
  • Add to my manuals
  • Print
  • Page
    / 35
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 0
SH7285/SH7286 USB Function Module
USB to Serial Conversion Application Note
REJ05B1152-0100/Rev.1.00 May 2008 Page 1 of 35
SH7285/SH7286 USB Function Module
USB to Serial Conversion Application Note
Preface
This document describes how to implement USB to serial conversion system as an application example for the SH7285
and SH7286 MCU’s USB function module. This document and the sample program described are examples of the USB
function module, and are therefore not guaranteed by Renesas.
Target Devices
SH7285 and SH7286 MCUs
1. Introduction........................................................................................................................................ 2
1.1 Specifications ....................................................................................................................................2
1.2 Functions...........................................................................................................................................2
1.3 Applicable Conditions........................................................................................................................ 2
2. Applications.......................................................................................................................................3
2.1 Features ............................................................................................................................................ 3
2.2 USB Communication via the USB Function Module......................................................................... 3
2.3 Detecting a Connection to the USB Host.......................................................................................... 4
2.4 Control Transfer ................................................................................................................................6
2.4.1 Setup Stage.......................................................................................................................................8
2.4.2 Data Stage ...................................................................................................................................... 10
2.4.3 Status Stage....................................................................................................................................14
2.5 Bulk Transfer................................................................................................................................... 16
2.5.1 Bulk OUT Transfer .......................................................................................................................... 17
2.5.2 Bulk IN Transfer ..............................................................................................................................19
3. USB to Serial Conversion System Using the USB Function Module.............................................. 21
3.1 Overview .........................................................................................................................................21
3.2 Operation Flowchart........................................................................................................................ 25
3.3 Serial Communication..................................................................................................................... 27
3.3.1 Serial OUT Communication ............................................................................................................27
3.3.2 Serial IN Communication ................................................................................................................ 28
3.4 Setting Environment........................................................................................................................ 29
3.4.1 USB Host Computer Setting ...........................................................................................................29
3.4.2 PC-PC Communication Settings..................................................................................................... 32
4. References......................................................................................................................................33
Page view 0
1 2 3 4 5 6 ... 34 35

Summary of Contents

Page 1 - Target Devices

SH7285/SH7286 USB Function Module USB to Serial Conversion Application Note REJ05B1152-0100/Rev.1.00 May 2008 Page 1 of 35 SH7285/SH7286 USB Funct

Page 2

SH7285/SH7286 USB Function Module USB to Serial Conversion Application Note 2.4.2 Data Stage The Data stage of the control IN transfer is composed of

Page 3 - 2.1 Features

SH7285/SH7286 USB Function Module USB to Serial Conversion Application Note Figure 2.8 Data IN Stage (Control IN Transfer) REJ05B1152-0100/Rev.1.0

Page 4 - Connects a cable

SH7285/SH7286 USB Function Module USB to Serial Conversion Application Note (2) Data OUT Stage The USB host sends an OUT token and a data packet. The

Page 5

SH7285/SH7286 USB Function Module USB to Serial Conversion Application Note Figure 2.10 Data OUT Stage (Control OUT Transfer) REJ05B1152-0100/Rev.

Page 6 - 2.4 Control Transfer

SH7285/SH7286 USB Function Module USB to Serial Conversion Application Note 2.4.3 Status Stage The direction of the data transaction in the Status sta

Page 7

SH7285/SH7286 USB Function Module USB to Serial Conversion Application Note (2) Status Stage of the Control OUT Transfer The USB host sends an IN toke

Page 8 - 2.4.1 Setup Stage

SH7285/SH7286 USB Function Module USB to Serial Conversion Application Note 2.5 Bulk Transfer A bulk transfer is used to communicate large amounts o

Page 9 - Figure 2.6 Setup Stage

SH7285/SH7286 USB Function Module USB to Serial Conversion Application Note 2.5.1 Bulk OUT Transfer A bulk OUT transfer is composed of single or mult

Page 10 - 2.4.2 Data Stage

SH7285/SH7286 USB Function Module USB to Serial Conversion Application Note Figure 2.15 Bulk OUT Transfer REJ05B1152-0100/Rev.1.00 May 2008 Page

Page 11

SH7285/SH7286 USB Function Module USB to Serial Conversion Application Note 2.5.2 Bulk IN Transfer A bulk IN transfer consists of single or multiple

Page 12 - Packet issued by the device

SH7285/SH7286 USB Function Module USB to Serial Conversion Application Note REJ05B1152-0100/Rev.1.00 May 2008 Page 2 of 35 1. Introduction 1.1 Spe

Page 13

SH7285/SH7286 USB Function Module USB to Serial Conversion Application Note Figure 2.17 Bulk IN Transfer REJ05B1152-0100/Rev.1.00 May 2008 Page 2

Page 14 - 2.4.3 Status Stage

SH7285/SH7286 USB Function Module USB to Serial Conversion Application Note 3. USB to Serial Conversion System Using the USB Function Module 3.1 Over

Page 15 - (USBIFR0 interrupt)

SH7285/SH7286 USB Function Module USB to Serial Conversion Application Note Table 3.1 Specifications Features Description Detect a connection to the U

Page 16 - 2.5 Bulk Transfer

SH7285/SH7286 USB Function Module USB to Serial Conversion Application Note REJ05B1152-0100/Rev.1.00 May 2008 Page 23 of 35

Page 17 - 2.5.1 Bulk OUT Transfer

SH7285/SH7286 USB Function Module USB to Serial Conversion Application Note /* Interface Descriptor 1-1-0 [Data Class Inter

Page 18

SH7285/SH7286 USB Function Module USB to Serial Conversion Application Note 3.2 Operation Flowchart The sample program enters the main loop after init

Page 19 - 2.5.2 Bulk IN Transfer

SH7285/SH7286 USB Function Module USB to Serial Conversion Application Note USB hostBulk OUT transferM3A-HS85sample programBulk OUT transfer RAM 256

Page 20

SH7285/SH7286 USB Function Module USB to Serial Conversion Application Note 3.3 Serial Communication The sample program uses a SCIF module1 for serial

Page 21 - 3.1 Overview

SH7285/SH7286 USB Function Module USB to Serial Conversion Application Note 3.3.2 Serial IN Communication Serial IN communication is activated by th

Page 22

SH7285/SH7286 USB Function Module USB to Serial Conversion Application Note 3.4 Setting Environment Use an RS-232C serial cable to connect the M3A-

Page 23

SH7285/SH7286 USB Function Module USB to Serial Conversion Application Note REJ05B1152-0100/Rev.1.00 May 2008 Page 3 of 35 2. Applications This sa

Page 24

SH7285/SH7286 USB Function Module USB to Serial Conversion Application Note [PortsClass.AddReg] HKR,,,,%PortsClassName% [ClassInstall32.NT] AddReg=

Page 25 - 3.2 Operation Flowchart

SH7285/SH7286 USB Function Module USB to Serial Conversion Application Note [Serial_EventLog_AddReg] HKR,,EventMessageFile,0x00020000,"%%SystemR

Page 26 - Bulk IN transfer RAM

SH7285/SH7286 USB Function Module USB to Serial Conversion Application Note REJ05B1152-0100/Rev.1.00 May 2008 Page 32 of 35 3.4.2 PC-PC Communica

Page 27 - 3.3 Serial Communication

SH7285/SH7286 USB Function Module USB to Serial Conversion Application Note REJ05B1152-0100/Rev.1.00 May 2008 Page 33 of 35 4. References Software

Page 28

SH7285/SH7286 USB Function Module USB to Serial Conversion Application Note REJ05B1152-0100/Rev.1.00 May 2008 Page 34 of 35 Website and Support Re

Page 29 - 3.4 Setting Environment

SH7285/SH7286 USB Function Module USB to Serial Conversion Application Note © 2008. Renesas Technology Corp., All rights reserved. REJ05B1152-0100/Re

Page 30

SH7285/SH7286 USB Function Module USB to Serial Conversion Application Note 2.3 Detecting a Connection to the USB Host A connection to the USB host i

Page 31

SH7285/SH7286 USB Function Module USB to Serial Conversion Application Note Figure 2.2 USB Function Module Peripheral Block Circuit REJ05B1152-0100/

Page 32

SH7285/SH7286 USB Function Module USB to Serial Conversion Application Note 2.4 Control Transfer A control transfer is a USB transfer that uses the en

Page 33 - 4. References

SH7285/SH7286 USB Function Module USB to Serial Conversion Application Note REJ05B1152-0100/Rev.1.00 May 2008 Page 7 of 35 The USB function module

Page 34 - Revision History

SH7285/SH7286 USB Function Module USB to Serial Conversion Application Note 2.4.1 Setup Stage The Setup stage is composed of one setup transaction. Th

Page 35

SH7285/SH7286 USB Function Module USB to Serial Conversion Application Note USB Function (Hardware)Receives a command in EP0SProcessed by hardware aut

Comments to this Manuals

No comments