Renesas Electronics America Inc. © 2010 Renesas Electronics America Inc. All rights reserved. ID A11C: Hardware Design Fundamentals for MCU-based Embedded.

Slides:



Advertisements
Similar presentations
ID 311C:Utilizing JTAG / boundary scan and JTAG emulation for board and system level test and design verification Get the total Coverage ! GOEPEL Electronics.
Advertisements

Renesas Electronics America Inc. © 2012 Renesas Electronics America Inc. All rights reserved. Using a Renesas Code Generation Tool for RL78 Devices.
Engineering 1040: Mechanisms & Electric Circuits Fall 2011 Introduction to Embedded Systems.
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. © 2012 Renesas Electronics America Inc. All rights reserved. RL78 Ultra Low Power MCU Lab.
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. 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.
Renesas Electronics America Inc. © 2012 Renesas Electronics America Inc. All rights reserved. Sensorless Vector Control with RL78G14.
Renesas Electronics Europe GmbH A © 2010 Renesas Electronics Corporation. All rights reserved. RL78 Clock Generator.
Renesas Electronics America Inc. © 2010 Renesas Electronics America Inc. All rights reserved. ID A15C: Application Code Reprogramming Using Different Serial.
Renesas Electronics America Inc. © 2010 Renesas Electronics America Inc. All rights reserved. ID 320L: Rapid RX600 System Development Using the RPDL and.
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.
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.
Clock Options and Sleep Modes. Clock Sources Flash Fuse bits can be programmed to choose one of the following Clock sources: 1. External RC Osc. f = 1/(3RC).
Renesas Electronics America Inc. ID 322C:Using HEW's Many Capabilities to Boost Software Development Productivity Axel Wolf Marketing Manager, Development.
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. © 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.
RX Voltage Detection Circuit (LVD) and Power-On Reset (POR)
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 © 2011 Renesas Electronics Corporation. All rights reserved. V850/Jx4 Series Ultra Low Power 32 bit MCUs March 2012.
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.
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.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Module Introduction Purpose  This training module provides an overview of the analog interfaces.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Purpose  This course provides an detailed overview of the many R8C MCU product variations.
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. © 2010 Renesas Electronics America Inc. All rights reserved. ID 322L:Advanced Debugging on the RX600 Brandon Hussey Applications.
© 2009, Renesas Technology America, Inc., All Rights Reserved 1 Course Introduction  Purpose This course provides an introduction to the peripheral functions.
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.
Components of a typical full-featured microcontroller.
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
Getting the Most Out of Low Power MCUs
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 A11C: Hardware Design Fundamentals for MCU-based Embedded Systems Mitch Ferguson Manager, Application Engineering 12 October October 2010 Version 1.0

2 © 2010 Renesas Electronics America Inc. All rights reserved. Mr. Mitch Ferguson Applications Engineer Manager Specializes support design teams develop low-noise systems using MCUs. Over 15 years of system-level design experience Over 7 years of experience as an application engineer. As a hardware engineer and engineering manager, he has been involved in design in power distribution controls, automotive and fire alarm systems with focus on EMI/EMS issues. Bachelor of science in electrical engineering from Cleveland 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

7 © 2010 Renesas Electronics America Inc. All rights reserved. Innovation I-Cache32KBD-Cache32KB L2 Cache 256KB WDT USB-HS Host or Device w/PHY x2 CPG DMACx6 UBC H-UDI MMU 500MHz 900 MIPS FPUMAC TMUx3 TIMER MEMORY ANALOG CPU I/O TIMER MEMORY ANALOG CPU I/O Multi media Others SPU 24bit DSP JPEG INTC BSC(ROM/SRAM) DDR232/16bit MMC NAND KeyScan IrDA ATAPI SCIFx6 GPIO LCDC VOU 2DG I2Cx2 SDIOx2 10/100 Ethernet MAC w/DMA VPU5F H.264 CEU x2 (Camera I/F) BEU x2 (Blend) VEU x2 (Scaling) Integration

8 © 2010 Renesas Electronics America Inc. All rights reserved. Integration has made hardware easier but not something that can be ignored

9 © 2010 Renesas Electronics America Inc. All rights reserved. Agenda Selecting clock circuit Power-On Reset (POR) and Low Voltage Detect (LVD) Watch Dog Timer (WDT) requirements Input Circuits Output Circuits

10 © 2010 Renesas Electronics America Inc. All rights reserved. How much time do you spend designing hardware 1.Firmware Only 2.Both Hardware and Firmware 3.Hardware Engineer 4.Architecture Level only

11 © 2010 Renesas Electronics America Inc. All rights reserved. Clock Circuit Selection Clocking circuit criteria Startup time Accuracy Reliability Cost Clock alternatives Crystal Ceramic Resonator On-Chip Oscillator Compensated External Oscillator (TXO)

12 © 2010 Renesas Electronics America Inc. All rights reserved. Clock Comparison – Arranged Best to Worst Rev AccuracyCostReliability Startup Time External (±25 ppm or better) On-Chip (<10 cycles) Crystal (± ppm) Resonator ($0.16) w/caps Resonator (100 uS) Resonator (>0.5% ) Crystal ($0.20) Crystal/ External Crystal (1-5 mSec) On-Chip (>2%) External ($2.91) External (10 mSec) 0.5% = 5000 ppm Best Worst

13 © 2010 Renesas Electronics America Inc. All rights reserved. Clock Requirements – A few points Accuracy of Clock 5%1%0.5% 5000ppm 0.1%0.05% 500 ppm 0.01% Uart USB- FS 0.005% 50 ppm USB- HS Power RF Clock 30 min lost/yr CAN Ethernet OCO Standard Resonator Special Resonator CrystalTXO Clock -3.6 hr lost/month

14 © 2010 Renesas Electronics America Inc. All rights reserved. Power On Reset (POR) Do we need a POR circuit ? YES – you always need some POR POR Options Simple RC Internal POR External POR

15 © 2010 Renesas Electronics America Inc. All rights reserved. Simple RC Power On Reset Advantages Inexpensive Simple Disadvantages Very dependent on Vcc rise time Not so simple Let’s look at an example Design an RC circuit for M16C/62P MCU Reset Vcc

16 © 2010 Renesas Electronics America Inc. All rights reserved. RC Power On Reset Example Requirements (M16C/62P example) Reset <0.2 * Vcc for 2 mSec after min operating voltage Difficult if Vcc rises slowly Assume Vcc “snaps” to V operating Vcc Reset 0.2 Vcc > 2mSec Vreset = Vcc (1-e -TC ) 1 TC = 0.63 Vcc 0.2 TC = 0.2 Vcc This means RC design must have 10 mSec TC Min Op Voltage 0V

17 © 2010 Renesas Electronics America Inc. All rights reserved. External Power On Reset Options Purchase a POR/Voltage Monitor Chip Design your own Purchased device Advantage – Simple – Reliable Disadvantage – Cost – Must match to the MCU

18 © 2010 Renesas Electronics America Inc. All rights reserved. External Power On Reset (Cont) Design your own Advantage – Cost ? Disadvantage Can be tricky to design Multiple components Zener set for MCU Vmin R3 >> R2 Reset Line slope dV/dT is approximately [(Vz-0.6)/R2)]/C1 Appendix has a full calculation 10K 47K 2.7V 100K 2.2 uF

19 © 2010 Renesas Electronics America Inc. All rights reserved. On-Chip Power On Reset Advantage Cost Already “tuned” to MCU Disadvantages MCU must have a POR May have rise time limitations on Vcc

20 © 2010 Renesas Electronics America Inc. All rights reserved. On-Chip Power On Reset - Example R8C/ mA will charge 100 uF of capacitance to 2.7V in less than 100 mSec

21 © 2010 Renesas Electronics America Inc. All rights reserved. Low Voltage Detector (LVD) - (Brown-out Detect) Do I need an LVD circuit? Probably Purpose of LVD Prevent operation of MCU with Voltage < Vcc min Anticipate loss of voltage – Save data – Place system in “safe” state LVD only monitor MCU Vcc Consider all system power sources

22 © 2010 Renesas Electronics America Inc. All rights reserved. An example of using Voltage Detect Vdet1 POR Vcc Restore Data, Run Full Speed Clock Power down mode entered Vdet2 Slow Clock, Save Data to EEPROM Exit power down mode Operating Range 3.0 – MHz 2.7 – MHz

23 © 2010 Renesas Electronics America Inc. All rights reserved. Ride Through Backup is not always Battery Example Ride through 30 seconds Do Not use Battery Allow Voltage drop 3.1 to 2.8 Icc at 2 MHz = 1.5 mA I = C dV/dT C = (I * dT)/dV C = 0.15 Farad * Above 3.3V not common

24 © 2010 Renesas Electronics America Inc. All rights reserved. Watchdog Timer – Internal or External The internal WDT Recovers from software errors Don’t expect recovery from noise External WDT Sometimes required by safety standard Better chance recovering from noise Contained in many Voltage Monitors

25 © 2010 Renesas Electronics America Inc. All rights reserved. Input Circuits – Connecting Switches Physical connection, pull-up or pull-down Internal Pull-ups ? Interrupt or no Interrupt MCU Input R Vcc V+ MCU Input Vcc V+ R

26 © 2010 Renesas Electronics America Inc. All rights reserved. Pull–ups – How large can they be? Assume GPIO requires 0.8 Vcc for Vih Use Vcc 3.0V for battery Pin leakage current 1.0 uA max Max resistance for pullup = 600 K (.6V/.1uA) Typically use between 10K and 68K MCU Input R Vcc V+

27 © 2010 Renesas Electronics America Inc. All rights reserved. Pull–ups when power is critical S1 causes power loss when closed 3V/600K = 5 uA Use port pin to drive pull-up Drive pin low once S1 active Poll status of S1 when active MCU Input R Vcc V+ Output S1

28 © 2010 Renesas Electronics America Inc. All rights reserved. Level Translation Problem - Interfacing a 3V micro design to 5V LCD Writing to LCD R8C Voh is (Vcc – 5 mA No Problem

29 © 2010 Renesas Electronics America Inc. All rights reserved. Level Translation - Reading Unfortunately, R8C inputs are not 5V tolerant MCULCD R1 R2 +3.3V+5V R1 = 30K R2 = 20K

30 © 2010 Renesas Electronics America Inc. All rights reserved. What about the other way It is a little different when MCU voltage is higher MCU requires 0.8 * Vcc (this is standard CMOS) Sensor Switch +5V +3V R1 R2 10K 4.7K MCU GPIO

31 © 2010 Renesas Electronics America Inc. All rights reserved. A Power Output Designing a simple power drive Get Load requirement Divide by port output current This gives minimum hFE or Beta R2 = (Vout - 0.6)/(rated output current of port pin) D1 rated at load current MCU +3V R2 Load V D1

32 © 2010 Renesas Electronics America Inc. All rights reserved. Unused Inputs Options Check HW manual Pull up or down – Preferable to pull low Set to output – Set output and low – Vulnerable until set – Draws power until set

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

34 © 2010 Renesas Electronics America Inc. All rights reserved. Summary Selecting clock circuit POR/LVD WDT requirements Input Circuits Output Circuits

35 © 2010 Renesas Electronics America Inc. All rights reserved. Innovation I-Cache32KBD-Cache32KB L2 Cache 256KB WDT USB-HS Host or Device w/PHY x2 CPG DMACx6 UBC H-UDI MMU 500MHz 900 MIPS FPUMAC TMUx3 TIMER MEMORY ANALOG CPU I/O TIMER MEMORY ANALOG CPU I/O Multi media Others SPU 24bit DSP JPEG INTC BSC(ROM/SRAM) DDR232/16bit MMC NAND KeyScan IrDA ATAPI SCIFx6 GPIO LCDC VOU 2DG I2Cx2 SDIOx2 10/100 Ethernet MAC w/DMA VPU5F H.264 CEU x2 (Camera I/F) BEU x2 (Blend) VEU x2 (Scaling) Integration

© 2010 Renesas Electronics America Inc. All rights reserved. 36 Appendix -

37 © 2010 Renesas Electronics America Inc. All rights reserved. To Interrupt or Not Probably Not Switches – except for low power wake-up A/D SPI Probably UART Receive/Transmit Timers Pulse counting or edge detection

38 © 2010 Renesas Electronics America Inc. All rights reserved. Polled Switch Routine Use Timer Tick for scheduling Setup below for 1 mSec tick Samples switch every 5 mSec if ((tick_timer - last_sample_time)>4)){ if (SW1 ) SW1_count++; else SW1_count = 0; if (SW1_count > 5){ SW1_state = ACTIVE;. last_switch_sample = tick_timer;

39 © 2010 Renesas Electronics America Inc. All rights reserved. External Power On Reset (Cont) Assume Q beta = 75 Vcc = 5V, Vmin = 2.7V Set C1 to 0.22 uF Charge time 10 mSec for 2.7V charge I= C dv/dt = 0.22 uF * 0.5V/2mS = 50 uA R1 sets zener current. Typical 0.5 ma current would need 10K R2 = (2.7V – 0.6)/50 uA = 42K R3 just a discharge path 100K Zener set for MCU Vmin R3 >> R2 Reset Line slope dV/dT is approximately [(Vz-0.6)/R2)]/C1

Renesas Electronics America Inc.