Renesas CPU Board M3A-HS19 Instrukcja Użytkownika

Przeglądaj online lub pobierz Instrukcja Użytkownika dla Networking Renesas CPU Board M3A-HS19. SH7285/SH7286 USB function module Instrukcja obsługi

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 35
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 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
Przeglądanie stron 0
1 2 3 4 5 6 ... 34 35

Podsumowanie treści

Strona 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

Strona 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

Strona 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

Strona 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

Strona 5

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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 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-

Strona 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

Strona 24

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

Strona 25 - 3.2 Operation Flowchart

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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 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

Strona 31

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

Strona 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

Strona 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

Strona 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

Strona 35

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

Komentarze do niniejszej Instrukcji

Brak uwag