Renesas Electronics America Inc. ID 311L: PIC to R8C Converter David Hedley Staff AE, Applications...

19
Renesas Electronics America Inc. ID 311L: PIC to R8C Converter David Hedley Staff AE, Applications Engineering 14 Oct 2010 Version: 1.1

Transcript of Renesas Electronics America Inc. ID 311L: PIC to R8C Converter David Hedley Staff AE, Applications...

Page 1: Renesas Electronics America Inc. ID 311L: PIC to R8C Converter David Hedley Staff AE, Applications Engineering 14 Oct 2010 Version: 1.1.

Renesas Electronics America Inc.

ID 311L: PIC to R8C Converter

David HedleyStaff AE, Applications Engineering

14 Oct 2010

Version: 1.1

Page 2: Renesas Electronics America Inc. ID 311L: PIC to R8C Converter David Hedley Staff AE, Applications Engineering 14 Oct 2010 Version: 1.1.

2 © 2010 Renesas Electronics America Inc. All rights reserved.

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

Page 3: Renesas Electronics America Inc. ID 311L: PIC to R8C Converter David Hedley Staff AE, Applications Engineering 14 Oct 2010 Version: 1.1.

3 © 2010 Renesas Electronics America Inc. All rights reserved.

Renesas Technology and Solution Portfolio

Microcontrollers& Microprocessors

#1 Market shareworldwide *

Analog andPower Devices#1 Market share

in low-voltageMOSFET**

Solutionsfor

Innovation

Solutionsfor

InnovationASIC, 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).

Page 4: Renesas Electronics America Inc. ID 311L: PIC to R8C Converter David Hedley Staff AE, Applications Engineering 14 Oct 2010 Version: 1.1.

4 © 2010 Renesas Electronics America Inc. All rights reserved.

4

Renesas Technology and Solution Portfolio

Microcontrollers& Microprocessors

#1 Market shareworldwide *

Analog andPower Devices#1 Market share

in low-voltageMOSFET**

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).

Solutionsfor

Innovation

Solutionsfor

Innovation

Page 5: Renesas Electronics America Inc. ID 311L: PIC to R8C Converter David Hedley Staff AE, Applications Engineering 14 Oct 2010 Version: 1.1.

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 process350 uA/MHz, 1uA standbyCapacitive touch

Up to 25 DMIPS, 150nm process190 uA/MHz, 0.3uA standbyApplication-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 PowerGeneral Purpose

Page 6: Renesas Electronics America Inc. ID 311L: PIC to R8C Converter David Hedley Staff AE, Applications Engineering 14 Oct 2010 Version: 1.1.

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 process350 uA/MHz, 1uA standbyCapacitive touch

Up to 25 DMIPS, 150nm process190 uA/MHz, 0.3uA standbyApplication-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 PowerGeneral Purpose

R8C

16 Bit CISC

Superb Noise Performance

Low Power Consumption

Higher Functionality

ASSP Lineup

Low Pin Count Lineup

Page 7: Renesas Electronics America Inc. ID 311L: PIC to R8C Converter David Hedley Staff AE, Applications Engineering 14 Oct 2010 Version: 1.1.

8 © 2010 Renesas Electronics America Inc. All rights reserved.

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!

Page 8: Renesas Electronics America Inc. ID 311L: PIC to R8C Converter David Hedley Staff AE, Applications Engineering 14 Oct 2010 Version: 1.1.

9 © 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

Page 9: Renesas Electronics America Inc. ID 311L: PIC to R8C Converter David Hedley Staff AE, Applications Engineering 14 Oct 2010 Version: 1.1.

10 © 2010 Renesas Electronics America Inc. All rights reserved.

Harvard vs Von Neumann (simplified)

PM RAM

PM

RAM

CPU CPU

Harvard (PIC)

Von Neumann (R8C)

Page 10: Renesas Electronics America Inc. ID 311L: PIC to R8C Converter David Hedley Staff AE, Applications Engineering 14 Oct 2010 Version: 1.1.

11 © 2010 Renesas Electronics America Inc. All rights reserved.

Manual and Getting Started Guide

Start > All Programs > RConvert

Page 11: Renesas Electronics America Inc. ID 311L: PIC to R8C Converter David Hedley Staff AE, Applications Engineering 14 Oct 2010 Version: 1.1.

12 © 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

Page 12: Renesas Electronics America Inc. ID 311L: PIC to R8C Converter David Hedley Staff AE, Applications Engineering 14 Oct 2010 Version: 1.1.

13 © 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

Page 13: Renesas Electronics America Inc. ID 311L: PIC to R8C Converter David Hedley Staff AE, Applications Engineering 14 Oct 2010 Version: 1.1.

14 © 2010 Renesas Electronics America Inc. All rights reserved.

PIC Converter for Windows

Convert! Input Device Output Device

PIC Source In R8C Source Out

Page 14: Renesas Electronics America Inc. ID 311L: PIC to R8C Converter David Hedley Staff AE, Applications Engineering 14 Oct 2010 Version: 1.1.

15 © 2010 Renesas Electronics America Inc. All rights reserved.

Demo

Page 15: Renesas Electronics America Inc. ID 311L: PIC to R8C Converter David Hedley Staff AE, Applications Engineering 14 Oct 2010 Version: 1.1.

16 © 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.

Page 16: Renesas Electronics America Inc. ID 311L: PIC to R8C Converter David Hedley Staff AE, Applications Engineering 14 Oct 2010 Version: 1.1.

17 © 2010 Renesas Electronics America Inc. All rights reserved.

Start the Lab

Keep your dice turned to the section of the lab you are on. (Instructionsare provided in the lab handout)

Please refer to the Lab Handout and let’s get started!

Page 17: Renesas Electronics America Inc. ID 311L: PIC to R8C Converter David Hedley Staff AE, Applications Engineering 14 Oct 2010 Version: 1.1.

18 © 2010 Renesas Electronics America Inc. All rights reserved.

Questions?

Page 18: Renesas Electronics America Inc. ID 311L: PIC to R8C Converter David Hedley Staff AE, Applications Engineering 14 Oct 2010 Version: 1.1.

© 2010 Renesas Electronics America Inc. All rights reserved.

19

Thank You!

Page 19: Renesas Electronics America Inc. ID 311L: PIC to R8C Converter David Hedley Staff AE, Applications Engineering 14 Oct 2010 Version: 1.1.

Renesas Electronics America Inc.