113c: migration to the rx600 made easy - renesas …* power mosfet: 17.1% on unit basis from...
TRANSCRIPT
Renesas Electronics America Inc.
© 2010 Renesas Electronics America Inc. All rights reserved.
113C: Migration to the RX600 Made Easy
Life in the fast lane
Version: 1.1
Jon Brabender Senior Staff Engineer
13 & 14 October 2010
2 © 2010 Renesas Electronics America Inc. All rights reserved.
Jon Brabender
Sr. Engineering Manager
9 years with Renesas Electronics
Technical Lead for RX MCU Family
Closely work with global RX design and applications teams
25 years experience in embedded product development
Mostly industrial controls
3 © 2010 Renesas Electronics America Inc. All rights reserved.
Renesas Technology and Solution Portfolio
Microcontrollers
& Microprocessors #1 Market share
worldwide *
Analog and
Power Devices #1 Market share
in low-voltage
MOSFET**
Solutions
for
Innovation ASIC, ASSP
& Memory Advanced and
proven technologies
* MCU: 31% revenue
basis from Gartner
"Semiconductor
Applications Worldwide
Annual Market Share:
Database" 25
March 2010
** Power MOSFET: 17.1%
on unit basis from
Marketing Eye 2009
(17.1% on unit basis).
4 © 2010 Renesas Electronics America Inc. All rights reserved.
4
Renesas Technology and Solution Portfolio
Microcontrollers
& Microprocessors #1 Market share
worldwide *
Analog and
Power Devices #1 Market share
in low-voltage
MOSFET**
ASIC, ASSP
& Memory Advanced and
proven technologies
* MCU: 31% revenue
basis from Gartner
"Semiconductor
Applications Worldwide
Annual Market Share:
Database" 25
March 2010
** Power MOSFET: 17.1%
on unit basis from
Marketing Eye 2009
(17.1% on unit basis).
Solutions
for
Innovation
5 © 2010 Renesas Electronics America Inc. All rights reserved.
5
Microcontroller and Microprocessor Line-up
Superscalar, MMU, Multimedia Up to 1200 DMIPS, 45, 65 & 90nm process
Video and audio processing on Linux
Server, Industrial & Automotive
Up to 500 DMIPS, 150 & 90nm process
600uA/MHz, 1.5 uA standby
Medical, Automotive & Industrial
Legacy Cores
Next-generation migration to RX
High Performance CPU, FPU, DSC
Embedded Security
Up to 10 DMIPS, 130nm process
350 uA/MHz, 1uA standby
Capacitive touch
Up to 25 DMIPS, 150nm process
190 uA/MHz, 0.3uA standby
Application-specific integration
Up to 25 DMIPS, 180, 90nm process
1mA/MHz, 100uA standby
Crypto engine, Hardware security
Up to 165 DMIPS, 90nm process
500uA/MHz, 2.5 uA standby
Ethernet, CAN, USB, Motor Control, TFT Display
High Performance CPU, Low Power
Ultra Low Power General Purpose
7 © 2010 Renesas Electronics America Inc. All rights reserved.
7
Microcontroller and Microprocessor Line-up
Superscalar, MMU, Multimedia Up to 1200 DMIPS, 45, 65 & 90nm process
Video and audio processing on Linux
Server, Industrial & Automotive
Up to 500 DMIPS, 150 & 90nm process
600uA/MHz, 1.5 uA standby
Medical, Automotive & Industrial
Legacy Cores
Next-generation migration to RX
High Performance CPU, FPU, DSC
Embedded Security
Up to 10 DMIPS, 130nm process
350 uA/MHz, 1uA standby
Capacitive touch
Up to 25 DMIPS, 150nm process
190 uA/MHz, 0.3uA standby
Application-specific integration
Up to 25 DMIPS, 180, 90nm process
1mA/MHz, 100uA standby
Crypto engine, Hardware security
Up to 165 DMIPS, 90nm process
500uA/MHz, 2.5 uA standby
Ethernet, CAN, USB, Motor Control, TFT Display
High Performance CPU, Low Power
Ultra Low Power General Purpose
RX
Migrating from M16C and H8 MCUs
8 © 2010 Renesas Electronics America Inc. All rights reserved.
Innovation
The RX Microcontroller is a new and powerful architecture.
9 © 2010 Renesas Electronics America Inc. All rights reserved.
Position Statement
Migrating to RX is greatly simplified.
10 © 2010 Renesas Electronics America Inc. All rights reserved.
Agenda
RX Overview
Peripherals
IDEs, Compilers and Debuggers
Quick Design Guide and Migration Application Notes
Middleware
© 2010 Renesas Electronics America Inc. All rights reserved.
11
RX Overview – Similarities with H8 and M16C
12 © 2010 Renesas Electronics America Inc. All rights reserved.
ISP
USP
R0 (SP)
R1
R2
R3
R4
R5
R6
R7
R8
R9
R10
R11
R12
R13
R14
R15
PC
PSW
FPSW
INTB
BPC
BPSW
FINTV
ACC
ISP
USP
SP
R3H R3L
R2H R2L
A3
A2
A1
R7 R5
R6 R4
R1H R1L
R0H R0L
SB
FB
A0
E7 (SP) R7H R7L
E6 R6H R6L
E5 R5H R5L
E4 R4H R4L
E3 R3H R3L
E2 R2H R2L
E1 R1H R1L
E0 R0H R0L
SBR
PC
FLG EXR
PC
CCR
INTB
SVP
SVF
VCT
VBR
MAC
13 © 2010 Renesas Electronics America Inc. All rights reserved.
Key RX Core Improvements
Harvard Architecture
Floating Point Instructions
DSP Instructions
Orthogonal Register Set
Memory Protection Unit
Debug Unit
© 2010 Renesas Electronics America Inc. All rights reserved.
14
Peripherals
15 © 2010 Renesas Electronics America Inc. All rights reserved.
RX Peripheral Inheritance
RX600 CISC CPU 100MHz, 165 DMIPS, 2.7V to 3.6V
Inte
rna
l M
ain
Bu
s 1
Inte
rna
l M
ain
Bu
s 2
In
str
uc
tio
ns
BU
S
Flash Memory
100 MHz
DTC
DMAC
EXDMAC
SRAM
100 MHz
External Bus Cntrl:
Async, SDRAM
Bus Bridge
Bus Bridge
FPU
Instruction Interface
MAC ICU MUL DIV
Operand Interface
JTAG Debug
Hi Speed Trace
Bus Bridge
CAN 12-bit DAC
SCI SCI
I2C
CMT
RTC
USB Host/Device
12-bit ADC
10-bit ADC
RSPI
MTU3
TPU
PHY
POR / LVD
Power Regulator
RX630 System Clocks
50 MHz RC OSC 125 KHz RC OSC 8 – 100 MHz PLL 4 – 25 MHz OSC
32 KHz OSC Clock Monitor
Op
era
nd
s
BU
S
Internal Peripheral Bus 1 to 6
GPIO
CRC
MPU RX
SH RX
RX
SH RX
H8SX
RX
H8SX
RX
H8SX
SH SH
RX
SH H8SX
SH LSI
M16C
SH
SH RX SH
H8SX H8SX
H8SX RX
16 © 2010 Renesas Electronics America Inc. All rights reserved.
IODEFINE.h
RX Utilizes “IODEFINE” style peripheral access files
This should be familiar to H8 and SH users
ANSI C compatible method using typedef’d structures
Facilitates generic peripheral drivers
#define SYSTEM (*(volatile struct st_system __evenaccess *)0x80000)
#define BSC (*(volatile struct st_bsc __evenaccess *)0x81300)
#define SCI0 (*(volatile struct st_sci __evenaccess *)0x88240)
#define SCI1 (*(volatile struct st_sci __evenaccess *)0x88248)
#define SCI2 (*(volatile struct st_sci __evenaccess *)0x88250)
#define SCI3 (*(volatile struct st_sci __evenaccess *)0x88258)
#define DMAC (*(volatile struct st_dmac __evenaccess *)0x82200)
#define DTC (*(volatile struct st_dtc __evenaccess *)0x82400)
(struct st_sci *)pSCI = &SCI0
…pSCI->BRR = 720-1; /* set baudrate to 720 clocks */
17 © 2010 Renesas Electronics America Inc. All rights reserved.
Renesas Peripheral Driver Library (RPDL)
Target MCU
User Application
Renesas Peripheral Driver Library Middleware, including drivers
CPU Peripherals Supported by the RPDL USB, Ethernet, CAN
Callback Functions
Low level library to configure and control peripherals.
Common API calls to facilitate easy coding
R_BSC_Control, R_TPU_Control, R_SCI_Control, etc
Configuration and access to interrupt events via callbacks
• Menu driven selection of pin functions
• Makes calls to Renesas Peripheral Driver Library
• Generates specific C code for device drivers
© 2010 Renesas Electronics America Inc. All rights reserved.
18
IDEs, Compilers and Debuggers
19 © 2010 Renesas Electronics America Inc. All rights reserved.
Familiar HEW IDE
C/C++ Variable Watch
Local Watch
Stack Trace
Memory View
Virtual Desktop
Full Bus Trace
Output Window
High-performance Embedded Workshop (HEW)
Project Manager
20 © 2010 Renesas Electronics America Inc. All rights reserved.
Continuity in supported Compilers
Renesas GCC IARHEW HEW Eclipse Embedded Workbench
M16C
H8
RX
21 © 2010 Renesas Electronics America Inc. All rights reserved.
Enhanced Renesas Debuggers
Full In-circuit Emulator (RX610 only) Trace (4 M cycle) RAM monitor (16 KB) Hardware breakpoints (16) Real-time profile C0/C1 coverage
E100
Low cost In-circuit Emulator All pins available for customer use
On-chip Debugging Emulator Trace (2M branches or cycle) RAM monitor (4 KB)
E20
E20 with Debug MCU board
Functionality
Small / medium scale development Large scale development
On-Chip Debug Downloading a program GO/ BREAK Single step execution Software break points Hardware break points Reading / Writing of memory Reading / Writing of C variable On chip trace (RX610:256 branches/cycles)
E1
© 2010 Renesas Electronics America Inc. All rights reserved.
22
Quick Design Guide, Migration Application Notes and Middleware
23 © 2010 Renesas Electronics America Inc. All rights reserved.
The buffers are controlled using the Input Buffer
Control Registers (ICR). After reset the default
value for the register is “0” which means there is
no connection between the peripheral and the
pin on the MCU.
Quick Design Guide
Answers common questions
Highlights unique features
Warns of common mistakes
Emphasizes critical notes
“After writing to the SCKCR, further writing to the
same register before completion of the change in
frequency is ignored. In the case of continued writing
to the SCKCR, confirm that values read from the
SCKCR are actually the most recently written
values.”
24 © 2010 Renesas Electronics America Inc. All rights reserved.
Migration Application Notes
M16C to RX
H8SX to RX
Peripherals including
A/D Converter
Data Transfer Controller
Serial Interfaces
Timer units
Watchdog Timer
25 © 2010 Renesas Electronics America Inc. All rights reserved.
Innovation
The RX Microcontroller is a new and powerful architecture.
26 © 2010 Renesas Electronics America Inc. All rights reserved.
Questions?
27 © 2010 Renesas Electronics America Inc. All rights reserved.
Feedback Form
Please fill out the feedback form!
If you do not have one, please raise your hand
Renesas Electronics America Inc.