renesas electronics america inc. rx usb peripheral the renesas rx usb peripheral a.k.a....

18
Renesas Electronics America Inc. RX USB Peripheral The Renesas RX USB peripheral a.k.a. USBC_597IP_PP Ver. 1.00

Upload: laureen-roberts

Post on 16-Jan-2016

228 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Renesas Electronics America Inc. RX USB Peripheral The Renesas RX USB peripheral a.k.a. USBC_597IP_PP Ver. 1.00

Renesas Electronics America Inc.

RX USB PeripheralThe Renesas RX USB peripherala.k.a. USBC_597IP_PP

Ver. 1.00

Page 2: Renesas Electronics America Inc. RX USB Peripheral The Renesas RX USB peripheral a.k.a. USBC_597IP_PP Ver. 1.00

2

Course Introduction

Purpose Understand features of the RX USB peripheral “597”.

Objectives Learn some fundamental concepts and capabilities of

connecting and using this USB peripheral. Content

15 slides 5 questions

Learning Time 20 minutes

Page 3: Renesas Electronics America Inc. RX USB Peripheral The Renesas RX USB peripheral a.k.a. USBC_597IP_PP Ver. 1.00

3

RX USB Peripheral FeaturesThe 597 USB peripheral (USBC_597IP_PP) USB2.0 compliant Full-speed Can support two root hubs Includes transceiver with a hardware scheduler

FW need only do basic scheduling HW supports Host, Function, OTG Supports all transfer types

Control Bulk Interrupt Isochronous

MCU may have multiple USB blocks!

The R8A66597 USB external USB controller Two ports, High-Speed

Page 4: Renesas Electronics America Inc. RX USB Peripheral The Renesas RX USB peripheral a.k.a. USBC_597IP_PP Ver. 1.00

4

Features..

Page 5: Renesas Electronics America Inc. RX USB Peripheral The Renesas RX USB peripheral a.k.a. USBC_597IP_PP Ver. 1.00

5

Features…

HOST controller specialised to easily support subset of USB2.0.

More suited for embedded systems

Page 6: Renesas Electronics America Inc. RX USB Peripheral The Renesas RX USB peripheral a.k.a. USBC_597IP_PP Ver. 1.00

6

Features…

One or more USB ports may have selectable Host/Function/OTG

Example Two ports Both are selectable Host/Function/OTG

USB

RX

USB PHY

USB PHYUSB

Host

Device

OTG

Selectable per channel

Page 7: Renesas Electronics America Inc. RX USB Peripheral The Renesas RX USB peripheral a.k.a. USBC_597IP_PP Ver. 1.00

7

Pin Mode Host/Function/OTG Example

Page 8: Renesas Electronics America Inc. RX USB Peripheral The Renesas RX USB peripheral a.k.a. USBC_597IP_PP Ver. 1.00

8

USB Function Connection Example MCU can be bus or self powered

D+ pulled high when set to Function (to tell a Host it is connected)

Page 9: Renesas Electronics America Inc. RX USB Peripheral The Renesas RX USB peripheral a.k.a. USBC_597IP_PP Ver. 1.00

9

USB Host Connection Example

When Host, add weak pulldown resistors for D+ and D-

Page 10: Renesas Electronics America Inc. RX USB Peripheral The Renesas RX USB peripheral a.k.a. USBC_597IP_PP Ver. 1.00

10

USB OTG Connection Example

When Function, DPUPE will pull up D+

When Host, DPRPD and DPRD will provide pulldown of D+ and D-

Page 11: Renesas Electronics America Inc. RX USB Peripheral The Renesas RX USB peripheral a.k.a. USBC_597IP_PP Ver. 1.00

11

The Pipes

Pipe 0 is designated for Control transfers Default Control Pipe, 64-byte fixed single buffer.

Pipe 1-2: Bulk or Isochronous “Continuous transfers”, programmable buffer size.

(Up to 2-kbytes, double buffer can be specified) Pipe 3-5: Bulk

“Continuous transfers”, programmable buffer size.(Up to 2-kbytes, double buffer can be specified)

Pipe 6-9: Interrupt 64-byte fixed single buffer

Host FunctionEndpoint X

RAM ofendpoint X

Host uses a Function ‘device address’ and EP# associated with certain Pipe to access Function data.

To access EPx:Device Address + EP# = Pipe N Pipe N

Page 12: Renesas Electronics America Inc. RX USB Peripheral The Renesas RX USB peripheral a.k.a. USBC_597IP_PP Ver. 1.00

12

Setting Up a Pipe

Select the pipe PIPESEL register

Set pipe’s device address endpoint number

with the PIPECFG and PIPEMAXP registers

Later, transmit data by writing to the FIFO with pipe selected by “Curpipe”

Pipes can be used dynamically; only when data needs to be sent! Pipes are reused; not “locked” to certain address and endpoint

Page 13: Renesas Electronics America Inc. RX USB Peripheral The Renesas RX USB peripheral a.k.a. USBC_597IP_PP Ver. 1.00

13

Internal main bus 1

Internal main bus 2

Peripheral bus 3

Multi-layer internal bus Peripheral bus 3

Clocks

Page 14: Renesas Electronics America Inc. RX USB Peripheral The Renesas RX USB peripheral a.k.a. USBC_597IP_PP Ver. 1.00

14

PC

LK

PCLKPCLK ICLK

Clocks..

Page 15: Renesas Electronics America Inc. RX USB Peripheral The Renesas RX USB peripheral a.k.a. USBC_597IP_PP Ver. 1.00

15

Field Firmware Update over USB

See also “Device Firmware Upgrade” class, in RI tutorial IV; “USB Classes”.

Using USB Boot Mode MCU (RX) has built-in USB command set

– User mat (flash memory) programmed by commands from external USB host – The Renesas FDT PC-application.

Using proprietary loader Devote a block of user flash for bootloader Host:

– New application image retreived from e.g. USB stick– Stick image to contain header showing it is new application

Function:– Host to send code sequence and new download image

Reflash application blocks, and reboot

Page 16: Renesas Electronics America Inc. RX USB Peripheral The Renesas RX USB peripheral a.k.a. USBC_597IP_PP Ver. 1.00

16

Course Summary “RX USB Peripheral”

The USB Peripheral Features

Pin Modes and connections

Function

Host

OTG

The Pipes

Clocks

Update of Application In-field over USB

Page 17: Renesas Electronics America Inc. RX USB Peripheral The Renesas RX USB peripheral a.k.a. USBC_597IP_PP Ver. 1.00

PROPERTIES

On passing, 'Finish' button: Goes to Next SlideOn failing, 'Finish' button: Goes to Next SlideAllow user to leave quiz: At any timeUser may view slides after quiz: At any timeUser may attempt quiz: Unlimited times

Page 18: Renesas Electronics America Inc. RX USB Peripheral The Renesas RX USB peripheral a.k.a. USBC_597IP_PP Ver. 1.00

Renesas Electronics America Inc.

Thank You