Presentation is loading. Please wait.

Presentation is loading. Please wait.

David Hedley Staff AE, Applications Engineering 13 October 2010

Similar presentations


Presentation on theme: "David Hedley Staff AE, Applications Engineering 13 October 2010"— Presentation transcript:

1 ID 310L: Rapid Configuration of On-chip Peripherals using the I/O Wizard
David Hedley Staff AE, Applications Engineering 13 October 2010 Version: 1.1

2 David Hedley Staff Applications Engineer EXPERIENCE:
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 © 2010 Renesas Electronics America Inc. All rights reserved.

3 Renesas Technology and Solution Portfolio
Microcontrollers & Microprocessors #1 Market share worldwide * Solutions for Innovation Analog and Power Devices #1 Market share in low-voltage MOSFET** ASIC, ASSP & Memory Advanced and proven technologies In the session 110C, Renesas Next Generation Microcontroller and Microprocessor Technology Roadmap, Ritesh Tyagi introduces this high level image of where the Renesas Products fit. The big picture. * 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). © 2010 Renesas Electronics America Inc. All rights reserved.

4 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** This is where our session, ID 310L: ‘Rapid Configuration of On-chip Peripherals using the I/O Wizard’, is focused within the ‘Big picture of Renesas Products’ * 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). © 2010 Renesas Electronics America Inc. All rights reserved. 4

5 Microcontroller and Microprocessor Line-up
Up to 1200 DMIPS, 45, 65 & 90nm process Video and audio processing on Linux Server, Industrial & Automotive Superscalar, MMU, Multimedia Up to 500 DMIPS, 150 & 90nm process 600uA/MHz, 1.5 uA standby Medical, Automotive & Industrial High Performance CPU, Low Power Up to 165 DMIPS, 90nm process 500uA/MHz, 2.5 uA standby Ethernet, CAN, USB, Motor Control, TFT Display High Performance CPU, FPU, DSC Legacy Cores Next-generation migration to RX H8S H8SX M16C R32C Here are the MCU and MPU Product Lines, I am not going to cover any specific information on these families, but rather I want to show you where this session is focused General Purpose Ultra Low Power 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 © 2010 Renesas Electronics America Inc. All rights reserved. 5

6 Microcontroller and Microprocessor Line-up
Up to 1200 DMIPS, 45, 65 & 90nm process Video and audio processing on Linux Server, Industrial & Automotive Superscalar, MMU, Multimedia R8C 16 Bit CISC Superb Noise Performance Low Power Consumption Higher Functionality ASSP Lineup Low Pin Count Lineup Up to 500 DMIPS, 150 & 90nm process 600uA/MHz, 1.5 uA standby Medical, Automotive & Industrial High Performance CPU, Low Power Up to 165 DMIPS, 90nm process 500uA/MHz, 2.5 uA standby Ethernet, CAN, USB, Motor Control, TFT Display High Performance CPU, FPU, DSC Legacy Cores Next-generation migration to RX H8S H8SX M16C R32C These are the products where this presentation applies General Purpose Ultra Low Power 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 © 2010 Renesas Electronics America Inc. All rights reserved. 6

7 Innovation Modern Fast Design Cycle
© 2010 Renesas Electronics America Inc. All rights reserved.

8 Agenda Overview of I/O Wizard Q&A Labs Roadmap and Device Support
Peripheral Support Demo Q&A Labs © 2010 Renesas Electronics America Inc. All rights reserved.

9 IO Wizard Roadmap IO Wizard V.1.34.00 V.1.33.00 V.1.02.00 V.1.30.00
R8C/L35C,L36C,L38C,L3AC * GSCE Code Compliant IO Wizard V R8C/36A,38A V H8/38347 V Save & Load 32-bit Vista V R8C/22,23,24,25 V Bug Fix for R8C/LxA,LxB V R8C/2E,2F,2G, 2H,2J,2K,2L V M16C/26A,28,29 V R8C/MX V R8C/L35A,L36A,L38A,L3AA R8C/L35B,L36B,L38B,L3AB V Invoke HEW V R8C/1A,1B V R8C/LA8A, LA6A LA5A, LA3A V R8C/26,27,28,29 R8C/2A,2B,2C,2D V R8C/32A,33A,35A V R8C/10,11,12,13 Year < 08S 09K 09S 10K 10S 11K © 2010 Renesas Electronics America Inc. All rights reserved.

10 Where to get IO Wizard © 2010 Renesas Electronics America Inc. All rights reserved.

11 Supported Devices Supported Devices Supported Peripherals R8C/10 R8C/11 R8C/12 R8C/13 I/O Ports, INT (external interrupt), Key input interrupt, Timers, Serial I/O and ADC. R8C/1A R8C/1B I/O Ports, INT (external interrupt), Key input interrupt, Timers, Serial I/O, SSU and ADC. R8C/22 R8C/23 R8C/24 R8C/25 I/O Ports, INT (external interrupt), Key input interrupt, Timers, Serial I/O, LIN, SSU, CAN and ADC. R8C/26 R8C/27 R8C/28 R8C/29 I/O Ports, INT (external interrupt), Key input interrupt, Timers, Serial I/O, LIN, SSU and ADC. R8C/2A R8C/2B R8C/2C R8C/2D I/O Ports, INT (external interrupt), Key input interrupt, Timers, Serial I/O, LIN, SSU, ADC and DAC. R8C/2E R8C/2F I/O Ports, INT (external interrupt), Key input interrupt, Timers, Serial I/O, LIN, ADC, DAC and Comparator. R8C/2G R8C/2H R8C/2L I/O Ports, INT (external interrupt), Key input interrupt, Timers, Serial I/O, LIN and Comparator. R8C/2K R8C/2L I/O Ports, INT (external interrupt), Key input interrupt, Timers, Serial I/O, LIN and ADC. R8C/32A R8C/33A R8C/35A I/O Ports, INT (external interrupt), Key input interrupt, Timers, Serial I/O, LIN, SSU, ADC, DAC, Comparators and DTC R8C/L35A R8C/L36A R8C/L38A R8C/L3AA I/O Ports, INT (external interrupt), Key input interrupt, Timers, Serial I/O, LIN, SSU, ADC, DAC, Comparators, DTC and LCD (with Data Flash) R8C/L35B R8C/L36B R8C/L38B R8C/L3AB I/O Ports, INT (external interrupt), Key input interrupt, Timers, Serial I/O, LIN, SSU, ADC, DAC, Comparators, DTC and LCD (without Data Flash) M16C/26A M16C/28 M16C/29 I/O Ports, INT (external interrupt), Key input interrupt, Timers, Timer S (M16C/28,M16C/29), DMAC, Serial I/O, Multi-master I2C, A/D and CAN (M16C/29). H8/38347 I/O Ports, INT (external interrupt), Timers, AEC, PWM, Serial I/O, ADC and LCD. © 2010 Renesas Electronics America Inc. All rights reserved.

12 We want to generate code for a R8C/23 to do the following:
Example Description We want to generate code for a R8C/23 to do the following: Setup UART0 to be in asynchronous mode where it sends 8 bits at a time, has 1 stop bit, no parity, baud, MSB first, interrupt on receive, and can transmit and receive © 2010 Renesas Electronics America Inc. All rights reserved.

13 Example Step 1 Start IO Wizard
The first thing we will do is start IO Wizard. The picture shown is what you will see once the application is running. As you can see from the picture, the interface is simple and easy to use while giving you all the information you need. © 2010 Renesas Electronics America Inc. All rights reserved.

14 Select part and choose which clock the MCU is going to use
Example Step 2 Select part and choose which clock the MCU is going to use The first thing that we will do with IO Wizard is set the MCU that we want to use. This is done by changing the settings in the top-left pane. I have enlarged this part of the window on the left. You start from the top by first selecting which series you want to use. In this case we are going to use a R8C/23 so we select the R8C series. Under group we select R8C/23 and finally under Part number we select the specific 23 part we are using. As you change these settings the information at the bottom of this pane will change. From this information you can see that we are using a part with 48KB of flash, 2.5K of RAM, and 2KB of data flash. After setting which part we are using we will proceed to choose the clock the MCU will use. For this example we are going to assume that we want to use an external 20MHZ crystal that is connected to XIN on the MCU. To do this we select the Main clock option under CPU clock and set the frequency value to 20MHZ. We also have the option to choose if the clock is divided or not. For this demonstration we will say no division so the MCU will be running at the full 20MHz. Notice that as these changes are made, the registers that are changing are shown in the bottom half of the window. As you select different options, the register values are instantaneously changed to reflect the new settings. © 2010 Renesas Electronics America Inc. All rights reserved.

15 Example Step 3 Configure UART0
After selecting the clock we click next and are now able to configure individual peripherals. Blah blah blah. © 2010 Renesas Electronics America Inc. All rights reserved.

16 Find UART0 pins in hardware manual
Example Step 4 Find UART0 pins in hardware manual © 2010 Renesas Electronics America Inc. All rights reserved.

17 Set TxD0 pin as output, RxD0 as input
Example Step 5 Set TxD0 pin as output, RxD0 as input Since all IO ports are by default set as inputs, we also need to set the transmit pin for UART0 as an output pin. From the hardware manual we can see that transmit pin for UART0 is pin 1_4. To set this pin as an output we simply click on Port1 in the left pane, or on the tabs in the middle, and then select the Ouput radio option beside Pin4. © 2010 Renesas Electronics America Inc. All rights reserved.

18 Example Step 6 Generate Code
© 2010 Renesas Electronics America Inc. All rights reserved.

19 Integrate Code into HEW Project
Add files to project © 2010 Renesas Electronics America Inc. All rights reserved.

20 Change the main() function name in the generated code
Notes with Adding Code The generated code will have a main() function in it, so if you already have an application with a main() then you will have to do the following: Change the main() function name in the generated code Remove the infinite loop at the bottom of the main() function © 2010 Renesas Electronics America Inc. All rights reserved.

21 Notes with Adding Code Cont’d
If you generated code that utilizes interrupts then you will have to add the ISR to the interrupt vector table. How to do this depends on what kind of project you have. If using C-startup application then find interrupt vector number in intprg.c Is using application with sect30 file then you will specify function in there © 2010 Renesas Electronics America Inc. All rights reserved.

22 The Benefits By accelerating peripheral code development using IO Wizard a programmer unfamiliar with Renesas parts can quickly develop an application using the MCUs without having to delve through the hardware manual © 2010 Renesas Electronics America Inc. All rights reserved.

23 IO Wizard Summary Available free from Renesas website
Supports certain R8C, M16C, H8 Tiny Has simple easy to use GUI interface Makes generating peripheral code easy Decreases time previously required to search through hardware manual Generates code that is easy to import into any HEW project © 2010 Renesas Electronics America Inc. All rights reserved.

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

25 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. © 2010 Renesas Electronics America Inc. All rights reserved.

26 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! © 2010 Renesas Electronics America Inc. All rights reserved.

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

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

29


Download ppt "David Hedley Staff AE, Applications Engineering 13 October 2010"

Similar presentations


Ads by Google