renesas electronics america inc. rx usb peripheral the renesas rx usb peripheral a.k.a....
TRANSCRIPT
Renesas Electronics America Inc.
RX USB PeripheralThe Renesas RX USB peripherala.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
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
4
Features..
5
Features…
HOST controller specialised to easily support subset of USB2.0.
More suited for embedded systems
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
7
Pin Mode Host/Function/OTG Example
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)
9
USB Host Connection Example
When Host, add weak pulldown resistors for D+ and D-
10
USB OTG Connection Example
When Function, DPUPE will pull up D+
When Host, DPRPD and DPRD will provide pulldown of D+ and D-
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
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
13
Internal main bus 1
Internal main bus 2
Peripheral bus 3
Multi-layer internal bus Peripheral bus 3
Clocks
14
PC
LK
PCLKPCLK ICLK
Clocks..
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
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
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
Renesas Electronics America Inc.
Thank You