RL78 Ultra Low Power MCU Lab Renesas Electronics America Inc.
Renesas Technology & Solution Portfolio 2
Renesas Technology & Solution Portfolio 3
Microcontroller and Microprocessor Line-up 2010 2012 32-bit 1200 DMIPS, Superscalar Automotive & Industrial, 65nm 600µA/MHz, 1.5µA standby 500 DMIPS, Low Power 8/16-Bit True Low Power High Efficiency & Integration Automotive & Industrial, 90nm 600µA/MHz, 1.5µA standby 165 DMIPS, FPU, DSC 1200 DMIPS, Performance Automotive, 40nm 500µA/MHz, 35µA deep standby 165 DMIPS, FPU, DSC Industrial, 40nm 200µA/MHz, 0.3µA deep standby 8/16-bit Industrial, 90nm 200µA/MHz, 1.6µA deep standby 25 DMIPS, Low Power Industrial & Automotive, 150nm 190µA/MHz, 0.3µA standby 10 DMIPS, Capacitive Touch Wide Industrial Format & LCDs Automotive, 130nm 350µA/MHz, 1µA standby Embedded Security, ASSP Industrial, 90nm 1mA/MHz, 100µA standby 44 DMIPS, True Low Power Industrial & Automotive, 130nm 144µA/MHz, 0.2µA standby 4
Enabling The Smart Society Challenge: In the smart society sensors and instruments are no longer tethered to power lines or network cables. Sensors will be on our bodies, our pets, in remote fields and they will have to run for years on small batteries or utilizing energy harvesting techniques. Solution: RL78 Ultra low power MCU family This lab will demonstrate the Ultra-low power RL78 MCU family and it s many on-chip low power peripherals, to create a more energy efficient embedded product, with longer battery life or capable of being powered from many different energy harvesting sources 5
Agenda (1) I. Intro to Renesas RL78 Ultra low power MCU main features/attributes II. Intro to Applilet for RL78/G14 - Device driver code generator III.Lab Objectives IV. Lab Materials V. Do the Lab VI. Recap what did we learn 6
Leading Edge - RL78 Low Power MCU Scalable Low Power Efficient Lower power technology CPU, flash, system Low active power As low as 66uA/MHz Low standby power 0.45uA (STOP + 32kHz + RTC) 0.23uA (STOP) Low power peripherals LVD, RTC, WDT Wake up from standby 19.1 usec Long interval capability 0.5 sec to 1 month SNOOZE mode ADC, UART/CSI(SPI) 7
RL78 Low Power Comparisons RL78 is dramatically better for all power modes! Micro-Amps/ MHz 400 350 300 250 200 150 100 50 Operating Mode 380 363 213 150 A B C D 66 144 RL78 Micro-Amps 14 12 10 8 6 4 2 Halt Mode: RTC + LVD 12.5 10.6 5.6 3.6 0.49 A B C D RL78 Micro-Amps 16 14 12 10 8 6 4 2 Stop Mode: LVD 14.3 10.3 5.1 3.4 0.23 A B C D RL78 RUN HALT STOP CPU Clock Peripheral CPU Clock Peripheral CPU Clock Peripheral* Note: 1: At 32MHz (NOP instructions) 2: At 32 MHz (Basic operation) Disabled Enabled 8
Lower Power With Configurable Peripherals Items CPU STOP + 32kHz Clock + Interval + RTC + WDT + LVD CPU STOP + 32kHz Clock + RTC CPU STOP + LOCO Clock + 12-bit Interval Timer CPU STOP + WDT (with LOCO Clk = 15KHz) CPU STOP + LVD CPU STOP RL78 0.81uA 0.49uA 0.45uA 0.45uA 0.31uA 0.23uA VDD=3V Note1:WDT includes LOCO current Note2: All the power consumptions above are typical values of RL78/G13(64KB) 9
System Low Power Technique ON/OF F ON/OF F ON/OF F Oscillators Clock lines Functions Int. Oscillator: Selectable 1,4,8,12,16,24,3 2 MHz Ext. Oscillator: 1-20 MHz *2 Ext. Oscillator: 32.768 khz Selector CPU *1, 2 Flash TAU0 *2 TAU1 *2 SAU0 *2 SAU1 *2 IICA0 *2 IICA1 *2 ADC *2 RTC Int. Oscillator: 15 khz ± 15% Sel ect or Interval Watchdog LVD *1 Operation stopped in Halt mode *2 Operation stopped in STOP mode 10
Using Internal Low Dropout Voltage Regulator to Minimize Current Drain Internal voltage regulator Ext. osc. block I/O Opamp Comparator Timers Serial MCU core Voltage reg. I/O CPU Low volt detect POR/ POC WDT RTC LCD C/D with booster Int. HS osc. Clock gen. stby control Voltage ref. I/O ADC DAC Supply Current, CPU and Core Peripherals MCUs with No Internal Voltage Reg; Current Drain Increases with Supply Voltage! MCUs with an Internal Voltage Reg; Current Drain Constant Over Supply Voltage! 1.8V 2.4V 3.0V 3.6V 4.2V 4.8V 5.5V Supply Voltage Internal core LDO voltage regulator - Keeps CPU and core function current drains constant Functions attached to I/O pins - Current drains rise proportionally to supply voltage 11
RL78 Operation modes User selects mode based on system max frequency and min VDD voltage LV (Low-voltage) mode: 1 to 4 MHz (VDD = 1.6 to 5.5 V) LS (Low-speed) mode: 1 to 8 MHz (VDD = 1.8 to 5.5 V) HS (High-speed) mode: 1 to 16 MHz (VDD = 2.4 to 5.5 V) HS (High-speed) mode: 1 to 32 MHz (VDD = 2.7 to 5.5 V) Regulator Output Voltage Conditions Mode Output voltage Conditions LV (low voltage) mode LS (low speed) mode HS (high-speed) mode 1.8V All 1.8V All 1.8V STOP 2.1V Active VDD VSS REGC Pin Reg CPU, Periphe rals RL78 I/O Etc. 12
Applilet device driver code generator Applilet is a software tool to generate device driver code to initialize and use on-chip peripherals Full code generation for IAR EWRL78 User application layer Applilet API specification CPU application layer Applilet Applilet configurator CPU device layer RL78 CPU core 13
Applilet device driver code generator Easy to use graphical user interface (GUI) Common API for easy code porting across families Integrated project wizard guides user through the creation of new project After peripheral configuration, C source code can be generated Configuration changes can be merged with existing user code User code in protected areas is saved during rebuild of the Applilet files No royalty fees 14
RL78 Ultra-Low Power Lab Lab Objectives Demonstrate the low power modes of the RL78 Generate IAR project using Applilet Edit/Compile/build/debug the project in IAR IDE Lab Materials Laptop PC with IAR/Applilet tools pre-installed IAR Kickstart V1.20.1 KS Applilet3 for RL78/G14 V1.01.01 Renesas flash programmer V1.03 YRPBRL78G14 target board USB cable Multimeter Skill Level New to RL78/ IAR Tools 15
Typical Lab Measurements Page 3, Step 1.7; With the program running in normal 32 MHz mode record the current on the multimeter. ma Page 4, Step 1.8; Now select the Halt button and record the multimeter current. ma Page 4, Step 1.10; Select the Stop button and record the multimeter current. ma Page 14, Step 4.3; With the program running in normal 32 MHz mode record the current on the multimeter ma Page 15, Step 4.7; Click Debug-> Go or press F5 to RUN the program and record the current. ma Page 16, Step 4.11; Click Debug-> Go or press F5 to RUN the program and record the current ma Page 18, Step 5.7; Now build and connect to the debugger. Run the program and note the stop current. ma Page 18, Step 5.8; Change the stop(); command to a halt(); command and compare the currents. ( ma) Page 24, Step 6:15; To run the program you just programmed, remove the four option jumpers and plug it back into the USB port. You should now see the low power current that was shown in the demo. ( ma) 16
RL78 Ultra Low power STOP Modes Items CPU STOP + 32kHz Clock + Interval + RTC + WDT + LVD CPU STOP + 32kHz Clock + RTC +WDT +LVD CPU STOP + LOCO Clock + Interval + WDT + LVD CPU STOP + WDT (with LOCO Clk) + LVD CPU STOP + LVD CPU STOP RL78 0.81uA 0.79uA 0.55uA 0.53uA 0.31uA 0.23uA VDD=3V Note1:WDT includes LOCO current Note2: All the power consumptions above are typical values of RL78/G13(64KB) 17
What have we learned? Turn off the OCD block TK-USB OCD/ Flash Programming Interface TK-USB or E1 Interface Turn Off On-Chip-Debug Interface Function for Release Code Bi-Directional data Mode Control Start OCD/Flash programming Tool0 Reset VDD Gnd RL78 MCU E1 OCD/ Flash Programming Interface 18
What have we learned? Avoid Sneak paths on I/O Lines I/O drive and loading Output Low Loading MCU General purpose I/O pin, Output = Low VDD = 3.0 Volts VOL IOL R Output High Loading Ext. Circuit Input Pull up/pull down Pin Loading Pull-up enable Output data VDD VDD P-ch P-ch Pull-Up Turned Turned On On Ext. Circuit MCU General purpose I/O pin, Output = High IOH VOH R Ext. Circuit Output disable Input data Input enable N-ch 19.
What have we learned? Avoid Floating Input Pins Phenomena of floating inputs (due to contaminated PCBs) 5.0V 5uA 4.0V 4uA 10 MegOhm? INPUT pin VDD Gate VDD P-ch IDD = On currents 3.0V 2.0V Vout 3uA IDD 2uA Leakage paths 10 MegOhm? 10 MegOhm? Gate N-ch To Internal MCU circuits 1.0V 0V 0V 1.0V 2.0V 3.0V 4.0V 5.0V Vin Side Bar: PCB cleanliness Board contaminants can often swamp out nano-amp standby currents 1uA 0uA 20
Questions? 21
Enabling The Smart Society in Review Challenge: In the smart society sensors and instruments are no longer tethered to power lines or network cables. Sensors will be on our bodies, our pets, in remote fields and they will have to run for years on small batteries or utilizing energy harvesting techniques. This lab will demonstrate the Ultra-low power RL78 MCU family and it s many on-chip low power peripherals, to create a more energy efficient embedded product, with longer battery life or capable of being powered from many different energy harvesting sources Do you agree that we accomplished the above statement? 22
Renesas Electronics America Inc.