Using Open-Source TCP/IP Stacks - Renesas e

Download Report

Transcript Using Open-Source TCP/IP Stacks - Renesas e

ID 311L: PIC to R8C Converter
Renesas Electronics America Inc.
David Hedley
Staff AE, Applications Engineering
14 Oct 2010
Version: 1.1
David Hedley
 Staff Applications Engineer
 Primary Technical Support Engineer
 Americas Technical Tools Support Lead
 Experience
 12 years with major semiconductor manufacturers
 Microchip, ZiLOG, Renesas, Renesas
 Holds a BEng.(Honors) from Leeds in the UK
 2 Patents in MCU Applications and Tools
 North Carolina Youth Soccer Certified Coach
2
© 2010 Renesas Electronics America Inc.
All rights reserved.
Renesas Technology and Solution Portfolio
Microcontrollers
& Microprocessors
#1 Market share
worldwide *
ASIC, ASSP
& Memory
Advanced and
proven technologies
Solutions
for
Innovation
Analog and
Power Devices
#1 Market share
in low-voltage
MOSFET**
* 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).
3
© 2010 Renesas Electronics America Inc.
All rights reserved.
Renesas Technology and Solution Portfolio
Microcontrollers
& Microprocessors
#1 Market share
worldwide *
Solutions
for
Innovation
ASIC, ASSP
& Memory
Advanced and
proven technologies
Analog and
Power Devices
#1 Market share
in low-voltage
MOSFET**
* 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.
Microcontroller and Microprocessor Line-up
Superscalar, MMU, Multimedia
High Performance CPU, Low Power
High Performance CPU, FPU, DSC
 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
 Up to 165 DMIPS, 90nm process
 500uA/MHz, 2.5 uA standby
 Ethernet, CAN, USB, Motor Control, TFT Display
 Legacy Cores
 Next-generation migration to RX
General Purpose
 Up to 10 DMIPS, 130nm process
 350 uA/MHz, 1uA standby
 Capacitive touch
5
© 2010 Renesas Electronics America Inc.
All rights reserved.
Ultra Low Power
Embedded Security
 Up to 25 DMIPS, 150nm process  Up to 25 DMIPS, 180, 90nm process
 190 uA/MHz, 0.3uA standby
 1mA/MHz, 100uA standby
 Application-specific integration  Crypto engine, Hardware security
Microcontroller and Microprocessor Line-up
Superscalar, MMU, Multimedia
 Up to 1200 DMIPS, 45, 65 & 90nm process
and audio processing on Linux
R8C Video
Server, Industrial & Automotive
16 Bit CISC
 Up to 500 DMIPS, 150 & 90nm process
High Performance
CPU,Noise
Low Power
Superb
Performance 600uA/MHz, 1.5 uA standby
Low Power Consumption  Medical, Automotive & Industrial
Higher Functionality
 Up to 165 DMIPS, 90nm process
ASSP
High Performance CPU,
FPU,Lineup
DSC
 500uA/MHz, 2.5 uA standby
Low Pin Count Lineup  Ethernet, CAN, USB, Motor Control, TFT Display
 Legacy Cores
 Next-generation migration to RX
General Purpose
 Up to 10 DMIPS, 130nm process
 350 uA/MHz, 1uA standby
 Capacitive touch
7
© 2010 Renesas Electronics America Inc.
All rights reserved.
Ultra Low Power
Embedded Security
 Up to 25 DMIPS, 150nm process  Up to 25 DMIPS, 180, 90nm process
 190 uA/MHz, 0.3uA standby
 1mA/MHz, 100uA standby
 Application-specific integration  Crypto engine, Hardware security
Innovation
rconvert: [R8CBackend.translateOperation] 'k' <AsmToken identifier '_initialize'>
rconvert: [R8CBackend.translateComment] comment {'comment': '; send out hello message', 'source': '; send out hello message',
'location': u'C:\\RConvert\\examples\\pic16_uart.asm:113', 'learned_w': None}
rconvert: [R8CBackend.translateOperation] OP ['call', [['k', <AsmToken identifier '_hello'>]]]
rconvert: [R8CBackend.translateOperation] 'k' <AsmToken identifier '_hello'>
rconvert: [R8CBackend.translateComment] comment {'comment': ';', 'source': ';', 'location':
u'C:\\RConvert\\examples\\pic16_uart.asm:115', 'learned_w': None}
rconvert: [R8CBackend.translateComment] comment {'comment': '; loop forever doing nothing', 'source': '; loop forever doing
nothing', 'location': u'C:\\RConvert\\examples\\pic16_uart.asm:116', 'learned_w': None}
rconvert: [R8CBackend.translateLabel] label {'source': 'loop:', 'location': u'C:\\RConvert\\examples\\pic16_uart.asm:117', 'learned_w':
None, 'label': '_loop'}
rconvert: [R8CBackend.translateOperation] OP ['nop', []]
rconvert: [R8CBackend.translateOperation] OP ['goto', [['k', <AsmToken identifier '_loop'>]]]
rconvert: [R8CBackend.translateOperation] 'k' <AsmToken identifier '_loop'>
rconvert: DONE!
8
© 2010 Renesas Electronics America Inc.
All rights reserved.
Agenda
 Architectures
 Harvard 8bit RAM with 35 instructions
 Von Neumann 16bit RAM with 89 instructions
 Features
 Description of Features and Limitations
 PIC Converter for Windows
 Advanced UART Demo Conversion
 Download to board and run
 Hands-On Labs on RSKR8C25
9
© 2010 Renesas Electronics America Inc.
All rights reserved.
Harvard vs Von Neumann (simplified)
PM
PM
CPU
RAM
CPU
RAM
Harvard (PIC)
Von Neumann (R8C)
10
© 2010 Renesas Electronics America Inc.
All rights reserved.
Manual and Getting Started Guide
Start > All Programs > RConvert
11
© 2010 Renesas Electronics America Inc.
All rights reserved.
Main Features
 Converts PIC16 Assembly Code to R8C/2X or R8C/3X
Assembly Code
 Multi-layer converter includes:
 Literal Translation Layer – line by line pass
 Inline Macro Parsing
 Parameter Macro Parsing
 Intelligent Peripheral Setup Recognition (UART, ADC, I/O)
 Intelligent Peripheral Code Generation (UART, ADC, I/O)
 Customizable SFR Mapping (e.g PORTA -> any R8C Port)
 Recognizes Interrupt Routines and Separates them
 Flash Tables supported
 All Radix coding styles supported (e.g 0x00 H’00’)
 Single or Multiple Files converted in a single pass
 Intuitive Windows GUI
12
© 2010 Renesas Electronics America Inc.
All rights reserved.
Additional Features
 Example Code
 Project save feature
 Custom include, output and SFR map paths
 Command Line available
 Verbose mode for debugging
 R8C output default (*.a30 output)
 GNU output option (*.s output)
 Comment Disable Option
 Patent Pending
13
© 2010 Renesas Electronics America Inc.
All rights reserved.
PIC Converter for Windows
Convert!
Input Device
PIC Source In
14
© 2010 Renesas Electronics America Inc.
All rights reserved.
Output Device
R8C Source Out
Demo
15
© 2010 Renesas Electronics America Inc.
All rights reserved.
Checking Progress
 We are using the die to keep track of where everyone is in
the lab. Make sure to update it as you change sections.
 When done with the lab, your die will have the 6 pointing up
as shown here.
16
© 2010 Renesas Electronics America Inc.
All rights reserved.
Start the Lab
 Keep your dice turned to the section
of the lab you are on. (Instructions
are provided in the lab handout)
 Please refer to the Lab Handout and let’s get started!
17
© 2010 Renesas Electronics America Inc.
All rights reserved.
Questions?
18
© 2010 Renesas Electronics America Inc.
All rights reserved.
Thank You!
19
© 2010 Renesas Electronics America Inc.
All rights reserved.
Renesas Electronics America Inc.