Renesas Electronics America Inc. © 2010 Renesas Electronics America Inc. All rights reserved. ID 320L: Rapid RX600 System Development Using the RPDL and.

Slides:



Advertisements
Similar presentations
Using PDG with e2studio: Example
Advertisements

Renesas Electronics America Inc. ID A19C: Soup to Nuts with Free Software Innovation:New business models mean new opportunities DJ Delorie Senior Engineer,
ID 311C:Utilizing JTAG / boundary scan and JTAG emulation for board and system level test and design verification Get the total Coverage ! GOEPEL Electronics.
Renesas Electronics America Inc. © 2012 Renesas Electronics America Inc. All rights reserved. Using a Renesas Code Generation Tool for RL78 Devices.
ID 020C: Hardware-in-Loop: System Testing Without the System Marcella Haghgooie Sr. Field Applications Engineer Version: 1.2 Applied Dynamics International.
Renesas Electronics America Inc. © 2010 Renesas Electronics America Inc. All rights reserved. A13C: Performing Digital Filtering on an MCU Kevin P King.
ID 413C: Can Touch This: Designing Capacitive-Based Touch Solutions Mark F Rodriguez Senior Engineering 13 October 2010 Version: 1.0 Xaplos Inc.
Renesas Electronics America Inc. © 2010 Renesas Electronics America Inc. All rights reserved. ID B32L: Graphical Application Development under Linux/Implementing.
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. © 2012 Renesas Electronics America Inc. All rights reserved. Increase the Dynamic Range and Precision of Digital Filters.
422L:Introduction to the.NET Micro Framework Julie Trygstad Vice President and Principal Engineer Version: 1.1 TrygTech 13 October 2010.
Renesas Electronics America Inc. © 2012 Renesas Electronics America Inc. All rights reserved. Know your Precise Position with RX600 MCU.
Renesas Electronics America Inc. “© 2010 Renesas Electronics America Inc. All rights reserved.” ID 720L: Software Development with an Open Source Real-Time.
Huangsheng Xu Sr. Staff Engineer, Consumer & Industry BU
Renesas Electronics America Inc. © 2010 Renesas Electronics America Inc. All rights reserved. ID A15C: Application Code Reprogramming Using Different Serial.
Renesas Electronics America Inc. © 2012 Renesas Electronics America Inc. All rights reserved. Class ID: 3L13B David Hedley, Applications Engineer Advanced.
Renesas Electronics America Inc. “© 2010 Renesas Electronics America Inc. All rights reserved ID 220L: Hands-on Embedded Ethernet Design with an Open Source.
Renesas Electronics America Inc. © 2010 Renesas Electronics America Inc. All rights reserved. 431L: Using a Graphics API to Create User Interface Components—Advanced.
Renesas Electronics America Inc. © 2010 Renesas Electronics America Inc. All rights reserved. 020L: Superior SH2A Design Process using Model Based Design.
An Introduction to OSEK l JRD l ETAS-STV/PRM-E l 2010 © ETAS GmbH All rights reserved. The names and designations used in this document are trademarks.
© 2010 Renesas Electronics America Inc. All rights reserved. ID 411C: Capacitive Touch User Interfaces and Hardware- based Solutions Renesas Electronics.
Renesas Electronics America Inc. © 2010 Renesas Electronics America Inc. All rights reserved. ID 115C: Low Pin Count V850: Small but Powerful MCU for portable.
Renesas Electronics America Inc. ID 322C:Using HEW's Many Capabilities to Boost Software Development Productivity Axel Wolf Marketing Manager, Development.
© 2010 Renesas Electronics America Inc. All rights reserved. 131L: Optimizing RX Performance John Breitenbach President, Atlantex Corp. 14 October 2010.
ID 310C:Run-Time Visualization on Renesas MCUs Matt Gordon Sr. Applications Engineer Version: 1.2 Micriµm 12 October 2010.
Renesas Electronics America Inc. Jeremy Brodt
Renesas Electronics America Inc. © 2012 Renesas Electronics America Inc. All rights reserved. Migrating from CubeSuite+ to Eclipse.
Renesas Electronics America Inc. © 2010 Renesas Electronics America Inc. All rights reserved. ID A12C:Noise Fundamentals and Techniques for Minimizing.
Renesas Electronics America Inc. © 2010 Renesas Electronics America Inc. All rights reserved. ID 930L: Board ID Embedded Security Lab Shotaro Saito Application.
Renesas Electronics America Inc. © 2010 Renesas Electronics America Inc. All rights reserved. ID 410L: Low cost audio in 8/16 bit applications using ADPCM.
Renesas Electronics America Inc. © 2010 Renesas Electronics America Inc. All rights reserved. A11L: 78K0R Low Power MCU Hands-On Lab Bob Proctor Staff.
Renesas Electronics America Inc. © 2010 Renesas Electronics America Inc. All rights reserved. A30L: Increase the Dynamic Range and Precision of Digital.
ID A16C: Outfitting Embedded Devices with Low Power Wireless Communications Design considerations for adding wireless communications to low power embedded.
Renesas Electronics America Inc. © 2012 Renesas Electronics America Inc. All rights reserved. Class ID: Know your Precise Position with RX600 MCU Huangsheng.
Renesas Electronics America Inc. © 2010 Renesas Electronics America Inc. All rights reserved. ID A11C: Hardware Design Fundamentals for MCU-based Embedded.
Renesas Electronics America Inc. © 2010 Renesas Electronics America Inc. All rights reserved. 113C: Migration to the RX600 Made Easy Life in the fast lane.
Renesas Electronics America Inc. © 2010 Renesas Electronics America Inc. All rights reserved. ID630L: Becoming Familiar with Sensorless Vector Control.
Class ID: Renesas Electronics America Inc. © 2012 Renesas Electronics America Inc. All rights reserved. Class ID: Using Virtual EEPROM and Flash API for.
Renesas Electronics America Inc. © 2010 Renesas Electronics America Inc. All rights reserved. ID 011C: VELOCITY LAB TM Embedded Development Ecosystem Amrit.
IAR Systems, Inc. ID 323C:A High Performance Compiler Solution for the RX Platform Shawn A. Prestridge Senior Field Applications Engineer 12 October 2010.
Class ID: Renesas Electronics America Inc. © 2012 Renesas Electronics America Inc. All rights reserved. Implementing Bootloaders on Renesas MCUs.
2L01I Renesas Electronics America Inc. © 2012 Renesas Electronics America Inc. All rights reserved. Class ID: 2L02I CAN In A Day Carl Stenquist, Staff.
Renesas Electronics America Inc. © 2010 Renesas Electronics America Inc. All rights reserved. ID 434L: Incorporating a Capacitive Touch Interface into.
ID 415:Drive a Color TFT-LCD panel with Low-cost Flash MCUs Sridhar Lingam Product Marketing Manager 12 October 2010 Version: 06.
Renesas Electronics America Inc. © 2012 Renesas Electronics America Inc. All rights reserved. Class ID: Audio Solutions on the RX MCU Family Mitch Ferguson,
ATtiny23131 A SEMINAR ON AVR MICROCONTROLLER ATtiny2313.
Renesas Electronics America Inc. © 2012 Renesas Electronics America Inc. All rights reserved. Advanced Debugging on the RX600.
Renesas Electronics America Inc. © 2012 Renesas Electronics America Inc. All rights reserved. Advanced E 2 Studio Topics.
Renesas Electronics America Inc. © 2010 Renesas Electronics America Inc. All rights reserved. ID 411L:A Direct Drive LCD Software Solution for Driving.
Renesas Electronics America Inc. © 2012 Renesas Electronics America Inc. All rights reserved. Class ID: Low Power Design Michael Thomas, Applications Engineer.
ID 222L: Get Connected with USB on RX62N
ID 024C: Auto Code Generation: The Shortest Distance From Idea to Implementation Christopher Myers Director of Software Development 12 October 2010 Version:
Global Edge Ian Carvalho Architect 14 October 2010 Copyright © 2010, Global Edge Software Ltd., Bangalore, India Version 1.0 ID 730L: Getting Started with.
Renesas Electronics America Inc. © 2010 Renesas Electronics America Inc. All rights reserved. ID 230L: Simplify your Networked Application with CAN and.
Renesas Electronics America Inc. © 2010 Renesas Electronics America Inc. All rights reserved. ID 416C:SH-2A Graphics for Low- to Mid-level Graphics Applications.
Renesas Electronics America Inc. © 2012 Renesas Electronics America Inc. All rights reserved. Class ID: 3L05I Advanced Debugging on the RX600 Fatih Peksenar.
Renesas Electronics America Inc. © 2012 Renesas Electronics America Inc. All rights reserved. Class ID: 5L08I Using the Renesas Graphics API to Create.
© 2009, Renesas Technology America, Inc., All Rights Reserved 1 Course Introduction  Purpose:  This course provides an overview of the serial communication.
Renesas Electronics America Inc. © 2010 Renesas Electronics America Inc. All rights reserved. ID 322L:Advanced Debugging on the RX600 Brandon Hussey Applications.
IAR Systems, Inc. ID 324C:Introducing the Embedded Workbench for the Renesas SH Shawn A. Prestridge Senior Field Applications Engineer 12 October 2010.
Renesas Electronics America Inc. © 2010 Renesas Electronics America Inc. All rights reserved. ID 421L: R8C Segment-LCD API Lab Bob Proctor Staff Engineer.
Renesas Electronics America Inc. © 2010 Renesas Electronics America Inc. All rights reserved. ID A10L:A Flexible Flash Rewrite Application Brandon Hussey.
ID 021L: Model Based Control Design and Auto-Code Generation using the R8C Christopher Myers Director of Software Development 12 October 2010 Version:
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Course Introduction Purpose  This course provides an introduction to the peripheral functions.
Renesas Electronics America Inc. © 2010 Renesas Electronics America Inc. All rights reserved. ID 130L: Optimizing your SH2A Application Kevin P King Senior.
Class ID: Renesas Electronics America Inc. © 2012 Renesas Electronics America Inc. All rights reserved. Class ID: Using Software Building Blocks for Faster.
David Hedley Staff AE, Applications Engineering 12 Oct 2010
David Hedley Staff AE, Applications Engineering 13 October 2010
ID 325L: Getting Started with CubeSuite
Presentation transcript:

Renesas Electronics America Inc. © 2010 Renesas Electronics America Inc. All rights reserved. ID 320L: Rapid RX600 System Development Using the RPDL and PDG Brandon Hussey Applications Engineer Version: & 13 October 2010

2 © 2010 Renesas Electronics America Inc. All rights reserved. Brandon Hussey Applications Engineer RPDL & PDG RX support – Flash API & FlashLoader Compiler License Support PREVIOUS EXPERIENCE: Interned at Renesas for 3 years Joined on full-time after graduation I hold an MSCPE from North Carolina State University

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

6 © 2010 Renesas Electronics America Inc. All rights reserved. 6 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 Ethernet, CAN, USB, UART, SPI, IIC

7 © 2010 Renesas Electronics America Inc. All rights reserved. Innovation Application Code (Portable) Driver Code (MCU specific)

8 © 2010 Renesas Electronics America Inc. All rights reserved. Development in hours instead of days Driver Code (MCU specific)

9 © 2010 Renesas Electronics America Inc. All rights reserved. Agenda Overview of Renesas Peripheral Driver Library (RPDL) Overview of Peripheral Driver Generator 2 (PDG) Lab Use RPDL Use PDG “On your own” exercise

© 2010 Renesas Electronics America Inc. All rights reserved. 10 Overview of Renesas Peripheral Driver Library (RPDL)

11 © 2010 Renesas Electronics America Inc. All rights reserved. What is Renesas Peripheral Driver Library? A library of functions for configuring and controlling the MCU’s on-chip peripherals. The goal is to make it easier to move to a new architecture. RX devices are supported with function compatibility RX610RX62xRX63xRX6xx Start_Timer();RPDL Timer Running

12 © 2010 Renesas Electronics America Inc. All rights reserved. What does RPDL do? It takes a set of parameters and configures the peripheral registers for the desired operation. Examples: Setting up a UART channel R_SCI_Create(1, PDL_SCI_8N1, 19200, 3); Configuring UART channel to receive 1 byte into variable ‘rx_char’ R_SCI_Receive(1, PDL_NO_DATA, &rx_char, 1, SCI_Rx_Callback, PDL_NO_FUNC);

13 © 2010 Renesas Electronics America Inc. All rights reserved. Why use RPDL? Speed of application development Minimum time Focus on your application, not your MCU Flexibility Changes are easy to make Code re-use Application code does not need to be re-written RPDL adapts to different clock frequencies Peripherals Used:  ADC 1  USB 0  Timer 1  UART 3  SPI 4  WDT  RTC Timer 2

14 © 2010 Renesas Electronics America Inc. All rights reserved. Is RPDL any good? High level of integration Application-level parameters I/O pins configured Interrupts with call-backs API is fully documented in RPDL User’s Manual. Because it is a library, the first use increases the ROM size but subsequent use does not. Documented source code

15 © 2010 Renesas Electronics America Inc. All rights reserved. How does RPDL Work? Add RPDL library, header files, and interrupt source files to your workspace Files are split by function to help when importing functions from library Project Workspace User Application Code RPDL +

16 © 2010 Renesas Electronics America Inc. All rights reserved. Yes, just change function parameters! Example of changing from using CMT channel 0 at 50Hz to using channel 1 at 100Hz Before – CMT channel 0 at 50Hz R_CMT_Create(0, PDL_CMT_FREQUENCY, 50, CMT_Callback, 4); After – CMT channel 1 at 100Hz R_CMT_Create(1, PDL_CMT_FREQUENCY, 100, CMT_Callback, 4); Is it easy to modify RPDL code later?

17 © 2010 Renesas Electronics America Inc. All rights reserved. Full source code for RPDL is provided free of charge? 1.True 2.False ?

© 2010 Renesas Electronics America Inc. All rights reserved. 18 Overview of Peripheral Driver Generator (PDG)

19 © 2010 Renesas Electronics America Inc. All rights reserved. What is Peripheral Driver Generator (PDG)? A GUI that users can use to setup their peripherals Generates source files that can be added to HEW project

20 © 2010 Renesas Electronics America Inc. All rights reserved. Why use PDG? Essentially, PDG just puts parameters in RPDL function calls Even speedier application development! No having to look through the RPDL User’s Manual What parameters to setup SCI channel 1 at baud with 8 data bits, no parity, and 1 stop bit? = R_SCI_Create(1, PDL_SCI_8N1, 19200, 3); RPDL R_SCI_Create(???) PDG +

21 © 2010 Renesas Electronics America Inc. All rights reserved. How does PDG work? PDG provides a GUI front-end to RPDL PDG functions call RPDL functions Basic Operation: 1.Pick your device 2.Setup the system clocks 3.Choose individual peripherals and configure 4.Generate source files 5.Automatically integrate into your HEW project PDG Source File (R_PG_SCI_C0.c) R_PG_SCI_Set_C0 R_PG_SCI_Start Receiving_C0 R_PG_SCI_SendAll Data_C0 …

22 © 2010 Renesas Electronics America Inc. All rights reserved. What do PDG generated files look like? Unlike RPDL, function call is specific for one task. Example: bool R_PG_Timer_Start_TMR_U0(void) { return R_TMR_CreateUnit( 0, PDL_TMR_CLK_PCLK_DIV_8192 | PDL_TMR_CLEAR_CM_A | PDL_TMR_ADC_TRIGGER_ENABLE, PDL_TMR_OUTPUT_IGNORE_CM_A | PDL_TMR_OUTPUT_IGNORE_CM_B, 0,... ); }

23 © 2010 Renesas Electronics America Inc. All rights reserved. Is it easy to modify a PDG project later? Yes. After making your changes just save and regenerate the source files. Newly added peripherals need to be readded to HEW. PDGHEW

24 © 2010 Renesas Electronics America Inc. All rights reserved. PDG Helps with Choosing Pins Shows what functions are on what pins Gives warning on conflicts

25 © 2010 Renesas Electronics America Inc. All rights reserved. RPDL and PDG are not compatible and therefore cannot be used together? 1.True 2.False ?

26 © 2010 Renesas Electronics America Inc. All rights reserved. What do you think of RPDL & PDG? 1.Great! Can’t wait to try them out. 2.Sounds good, I may try them. 3.RPDL sounds good, not PDG though. 4.PDG sounds good, not RPDL though. 5.Both are bad ideas. ?

27 © 2010 Renesas Electronics America Inc. All rights reserved. If you had to choose… RPDL or PDG? 1.RPDL, I like writing the code myself. 2.RPDL, other reason. 3.PDG, I can always go back and modify it later. 4.PDG, other reason. 5.No preference. 6.I would not use either. ?

28 © 2010 Renesas Electronics America Inc. All rights reserved. Questions?

29 © 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!

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

31 © 2010 Renesas Electronics America Inc. All rights reserved. Lab Question 1 Question: The RX62N has USB and needs a 48MHz Peripheral Module Clock. What would the parameters be to the R_CGC_Set() function to setup the system clocks with the following settings: Input Frequency = 12MHz, System Clock = 96MHz, Peripheral Clock = 48MHz, External Bus Clock = 24MHz, and no BCLK output? Answer: R_CGC_Set(12E6, 96E6, 48E6, 24E6, PDL_CGC_BCLK_DISABLE); ?

32 © 2010 Renesas Electronics America Inc. All rights reserved. Lab Question 2 Question: If you decided that instead of triggering the ADC every 250ms, you wanted to trigger it every 100ms, what would do using PDG? Answer: You would change the ‘Timer operating period’ in PDG for the appropriate timer to 100ms. ?

33 © 2010 Renesas Electronics America Inc. All rights reserved. Questions?

34 © 2010 Renesas Electronics America Inc. All rights reserved. Innovation Application Code (Portable) Driver Code (MCU specific)

© 2010 Renesas Electronics America Inc. All rights reserved. 35 Thank You!

Renesas Electronics America Inc.