Presentation is loading. Please wait.

Presentation is loading. Please wait.

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

Similar presentations


Presentation on theme: "Renesas Electronics America Inc. © 2010 Renesas Electronics America Inc. All rights reserved. ID 320L: Rapid RX600 System Development Using the RPDL and."— Presentation transcript:

1 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: 1.0 12 & 13 October 2010

2 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 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 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 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 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 7 © 2010 Renesas Electronics America Inc. All rights reserved. Innovation Application Code (Portable) Driver Code (MCU specific)

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

9 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

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

11 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 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 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 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 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 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 17 © 2010 Renesas Electronics America Inc. All rights reserved. Full source code for RPDL is provided free of charge? 1.True 2.False ?

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

19 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 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 19200 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 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 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 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 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 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 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 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 28 © 2010 Renesas Electronics America Inc. All rights reserved. Questions?

29 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 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 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 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 33 © 2010 Renesas Electronics America Inc. All rights reserved. Questions?

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

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

36 Renesas Electronics America Inc.


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

Similar presentations


Ads by Google