Introduction Purpose This course provides an introduction to the R8C Family of microcontrollers (MCUs) designed and offered by Renesas Technology Corp. for cost-sensitive 8-bit embedded applications Objectives Review the requirements of 8-bit embedded system applications. Understand how the R8C Family of MCUs addresses the requirements of tomorrow s applications, and how the product line will evolve in the future. Learn about key features and benefits these MCUs provide and how they facilitate system development. Content 36 pages (including this page) 5 questions Learning Time 50 minutes 1
R8C Family in Renesas MCU/MPU Portfolio RISC 32-Bit Superscalar & MMU Video and audio processing SH-4A (600 MHz) SH-2, SH-2A (200 MHz) 32-Bit High Performance CISC with FPU R32C RX/600 (100 MHz) H8SX (50 MHz) RX/200 (50 MHz) (50 MHz) CISC 16-Bit Application specific integration Scalable solutions for general purpose M16C (32 MHz) H8S (35 MHz) 8-Bit R8C (20 MHz) R-Secure (20 MHz) H8 (20 MHz) Lowest cost MCUs 2
MCU Selection Criteria Efficient, scalable architecture Instruction and code compatibility to move up and down within a family that offers useful choices of memory size, performance, and peripheral integration High peripheral integration More resources built into the chip to simplify designs, save cost Reliable operation and EMC compliance Extended fail-safe mechanisms Low EMI and excellent EMS to satisfy stricter safety and environmental regulations Efficient system development environment Low-cost integrated development environment with comprehensive toolchain Optimized C compiler Efficient on-chip debug capability 3
Top 8 Reasons To Select R8C MCUs 1. Scalable Architecture 8. Short Time to Market Outstanding Development Environment 7. Trusted & Flexible Robust and Secured Flash Technology Various Reprogramming Options 6. Quiet Low EMI Low EMS 20 to 100 pins M16C Platform 5. Reliable Numerous Fail-Safe Features 2. Powerful 16-bit CPU Single-cycle Memory Access Optimized Code Generation 3. Efficient Low Power Consumption Flexible Clocking Scheme 4. Versatile Integration of System Components Rich Peripheral Set 1-wire Debugging 4
R8C Series R8C Line-up 128 LCD Microcontrollers GP & ASSP Microcontrollers R8C Series 1x LX (1.8 to 5.5V) 3x (1.8 to 5.5V) (2.7 to 5.5V) 2x (2.2 to 5.5V) Flash Size (KB) 96 64 48 32 24 16 8 4 2 20 24 32 36 48 52 64 80 100 Scalable Architecture Pin Count Broad Line-up From 2KB to 128KB Flash; 20 to 100-pin packages Extensive Product Offering General Purpose, Application Specific and LCD Controllers 5
R8C/3x Optimized Pin Configuration P1 52 64 80 Pin count 14.0 12.0 7.6 5.6 64-pin LQFP 80-pin LQFP 52-pin LQFP 24-pin LSSOP 32-pin LQFP 48-pin LQFP 20-pin LSSOP P0 20 32 24-pin QFN 6.5 7.8 P6 P2 System pin P3 4.0 4.4 6.4 7.0 9.0 10.0 12.0 14.0 16.0 Scalable Architecture No trace crossings Multiple Package Sizes 6
M16C Platform R8C Family belongs to the Extensive M16C Platform Compatible to an extensive number of microcontrollers Comprehensive scalability Multitude of options and levels of integration Common set of development tool environment Scalable Architecture 7
PROPERTIES On passing, 'Finish' button: On failing, 'Finish' button: Allow user to leave quiz: User may view slides after quiz: User may attempt quiz: Goes to Next Slide Goes to Slide At any time After passing quiz Unlimited times
16 Bit CPU Architecture R8C Family CPU Core 32-bit Configuration Two Stack Pointer Registers Static Base Configure/Status 15 USP ISP SB FLG Hardware Multiplier 0 15 R0H R0H R0L R0L R1H R1H R1L R1L R2 R2 R3 A0 A0 A1 FB FB 0 15 R0H R1H B0 R2 R3 A0 A1 FB R0L R1L 0 R2 R3 SWITCH 15 Dual Register Banks R0H R1H B1 R2 R3 A0 A1 FB R0L R1L 0 Data Address Frame Base 20 INTBL PC 0 Relocatable Interrupt Vector Table Fast 16-bit Multiplication Up to 1MB addressable Memory Space + Single-cycle Memory Access Powerful 9
Efficient Code Generation Versatile Instruction Set (89 instructions) Memory-to-memory, register-to-memory, and register-to-register operations Frequently used instructions (MOV, ADD, SUB, JMP) are 1-byte long Instructions suited for C language stack frame manipulation (ENTER, EXIT) 4-bit transfer instructions (MOVLL, MOVHL) Powerful Bit-manipulation Instructions BNOT, BTST, BSET, etc. Fast Instruction Execution Time 20 instructions execute in 1 cycle Powerful Mathematical Instructions (DSP functionality) RMPA performs sum of product calculations SMOVB moves string of data from one area to another in 5 cycles Eight General and Six Special Addressing Modes Immediate, Absolute, Static Base Relative, 32-bit Register Direct, etc. Efficient, Optimized C Compiler Powerful Fast and compact code Efficient, optimized C compiler Register architecture & Efficient instruction set R8C CPU Core 10
Data Transfer Controller (DTC) Activation sources: all peripheral interrupts, or software Interrupt generation Byte or Word transfers Transfer Modes: Normal and Repeat (fixed address or automatic address increment) Many virtual HW channels which can also be chained RAM for DTC DTC Source 1 DTC Source 2. DTC Source 64 3 Read DTC vector to determine control data 1 Interrupt (for Ch2) from peripheral etc. 2 Trigger Example: >60% Performance Increase Transfer of 4-channel A/D conversion results to RAM using single sweep mode Powerful Control file (for Ch1) Control file (for Ch2) Control file (for Ch24) 4 Load Control File to Control Register 7 Write back Control File after transferring DTC Control registers Data Buffer 5 Read Data from source 6 Write data to destination ROM/RAM source destination 11
Power-Reduction Techniques Flexible clocking scheme - 5 system clock sources - Programmable clock dividers - Independent module clocking Clock Configuration (Simplified) Module Standby - Independent shut off of peripheral module - A/D Vref cut-off option On-chip power management - Three main operating modes: Normal, Wait, Stop Vref Off AVss Analog input Efficient Vref Cut-Off Resistor Ladder A/D Converter Power can be reduced by up to 1/12,500 of full-speed level 1 1/4 1/77 1/33 3 1/4,500 1/12,500 Normalized Power Levels High Speed: 20MHz (XIN) High speed: 10MHz/8 (HS OCO) Low speed: 125kHz/8 (LS OCO) Low speed: 32kHz (XCIN) Wait: 32kHz (XCIN) Wait: 32kHz (XCIN) Stop Mode 12
Integration of System Components Data Flash Data Flash with Back Ground Operation (BGO) LVCMP2 pin Power-On Reset & Low- Voltage Detection Circuit VCC Temp (C) -20-10 0 +25 +40 +85 % Accurac y 5 1-1 - 5 +/- 2 % 2.2 3.3 4.5 5.5 Vcc (V) R8C Typical MCU High Accuracy 40MHz On-chip Oscillator Level Selection Circuit (16 Levels) Level Selection Circuit (4 Levels) Comparator & Voltage Detection Logic Reset / Interrupt Versatile Internal Voltage Reference 13
PROPERTIES On passing, 'Finish' button: On failing, 'Finish' button: Allow user to leave quiz: User may view slides after quiz: User may attempt quiz: Goes to Next Slide Goes to Slide At any time After passing quiz Unlimited times
Rich Functionality Communication Communication I/O I/O Direct LED Drive Internal pull-ups UART, Clock Synchronous I 2 C, SSU Analog Analog Processing Processing Comparators ADC DAC Display Display Peripherals Timing Timing Control Control Segment and Dot matrix LCD Controller Networking Networking Signal Signal Generation Generation 8-, 16-bit Multifunction Timers RTC Versatile LIN CAN PWM Signals One-shot pulses 15
CAN (Control Area Network) FullCAN (Extended CAN) controller compatible with CAN 2.0A and 2.0B specifications Supports 11- or 29-bit message identifiers for over 500 million unique ID s Re-transmission Abort function prevents a message that is lost during arbitration Listen-Only mode to reuduce bus congestion 16 configurable buffers for efficient data management Acceptance filter hardware provides message pre-screening mechanism for increased network reliability and decreased CPU overhead Forced Bus-Off Restore function for quick state recovery Versatile 16
Hardware LIN (Local Interconnect Network) Generates the Synch Break pulse Measures the Synch Field duration Controls Synch Break and Synch Field signal inputs to the UART Detects bus collisions and can respond in a single bit time and back off without corrupting data Example Application Building Automation Versatile 17
Advanced Analog Functions 2.2uS conversion times at 10-bit resolution Up to eight conversion result registers Advanced operation modes: Repeat and Sweep (automatic scan) Software and Hardware triggers (Timers, external, DTC) Internal voltage reference available as input Mode No. of Channels How often Generate INT On One Shot Any one channel Once Complete Repeat Mode 0 Any one channel Repeatedly Never Repeat Mode 1 Any one channel Repeatedly Complete Single Sweep Mode 2/4/6/8 channels Once Complete Repeat Sweep Mode 2/4/6/8 channels Repeatedly Complete Versatile ANI 0 1 2 3 ANI n. ADC Internal Voltage Reference (1.34V +/- 0.1V) Buffer 10-bit x 8 ch 18
Powerful Timer Array Example Application: Brushless DC Motor Control 7 different types of 8-bit and 16-bit timers Functions include waveform generation, PWM, time measurement, Real-time clock and more R8C Timers (8- and 16-bit) 40 MHz 16-bit CPU On-chip + Oscillator HW Multiplier Program Flash RAM Other Peripherals ADC Motor Current Power Module CLK Trig U U 16-bit Motor V Timer V (RD) W W Shut-off Over-current BLDC M Timer Operating Modes Timer RG Timer RF Timer RE Timer RD Timer RC Timer RB Timer RA Timer Mode X X X X Pulse Output Mode X Event Counter Mode X Pulse Width Measurement Mode X Pulse Period Measurement Mode X Programmable Waveform Generation Mode X Programmable One-shot Generation Mode X Programmable Wait One-shot Generation Mode X Input Capture Mode X X X X Debug Unit CLK 16-bit Timer (RC) comparator Output Compare Mode X X X X X PWM Mode X X X Reset Synchronous PWM Mode X Complementary PWM Mode X PWM2 Mode X X PWM3 Mode X Real-time Clock Mode X Phase Counting Mode X X Input Capture channels 1-4 8-1 2 Versatile Output Compare channels 1-4 8 1 6 2 Hardware PWM channels - 1 3 6 - - 1 19
LCD Controller Internal LCD voltage booster capable of driving 3V or 5V glass with 1.8V supply Up to 52 Segment lines and 8 Common lines for a maximum of 416 LCD segments 1/2, 1/3 and 1/4 Bias options (internal or external configuration) Automatic Blink Function for each segment independently Multiple clock sources including 32kHz Sub-clock Dedicated LCD RAM area for display and control of each segment All SEG and COM pins are multiplexed with GPIO Versatile 20
Interactive I/O Configuration Read actual pin state even when pin is in output mode High/Low Drive Capacity Balance EMI and Drive Requirements Output Latches Avoid Read-Modify-Write Issues Three Input Thresholds 0.5Vcc, 0.35Vcc, 0.7Vcc Minimize ground bounce impact Individually controlled Pull-ups on all ports Pin State Detection Drive Capacity Selection Output Latch Input Level Switch Pull-up Selection Output Driver Pin Input Versatile 21
PROPERTIES On passing, 'Finish' button: On failing, 'Finish' button: Allow user to leave quiz: User may view slides after quiz: User may attempt quiz: Goes to Next Slide Goes to Slide At any time After passing quiz Unlimited times
1-Wire On-Chip Debugging Interface True 1-Wire Communication I/F Real-time memory access via Debug DMA Dedicated Clock for Debug Engine On-chip Trace 8 Instructions and 1 Data Breakpoint Up to 255 SW Breakpoints when using HEW R8C/2x R8C/3xA, Lx Break Before execution Data break Address match: 4/2 1 Address match: 8 1 Trace mode On-chip trace On-chip trace Break Trace info Branch destination: 4 Branch destination/data access: 8 Trace condition No Combination of 2 points RAM memory reference/change Refer by monitor program during non-run Refer during user program execution (run) (RAM trace) Versatile 23
Fail-Safe Features Oscillator Stop Detection Enhanced Watchdog Timer System Operation Access Control Reliable 24
Power Supply Monitoring Internal status VCC [V] Vdet2 Vdet1 Vdet0 0 In reset Power-On Reset Program execution Interrupt Interrupt Low-voltage Detection In reset POR Features R8C/2x R8C/3x, Lx Comparator Circuit 1 unit: LVD0 1 unit: LVD0 (2 options) (16 options) (4 options) Built-in POR & LVD - Power-On Reset circuit can be configured to detect four different voltage levels - Low-Voltage Detect circuit can generate interrupts at 16 different levels set via software - Power supply can also be monitored externally through a pin to trigger LVD interrupts 1 4 Detection Voltage 2.4V 1.9V, 2.35V, 2.85V, 3.8V Accuracy +/- 0.1V +/- 0.1V Minimum Voltage Rise Time 20mV / ms none Reliable 25
Excellent Electromagnetic Performance Techniques to reduce EMI and EMS: Careful Vcc and Vss layout Protection circuits and filters to provide enhanced tolerance for static electricity and help prevent circuit latch-ups Oscillator switching circuits to reduce noise radiated from clock driver Advanced chip layout techniques Careful Vcc and Vss Layout Noise Filters on Input Signals Advanced chip layout techniques Quiet 26
Advanced Flash Memory Technology ROM Code Protect bits prevent reading or rewriting of the on-chip flash memory when using a parallel programmer. Flash Memory ID Code protection feature prevents unauthorized access. The multi-byte ID sent by the serial programmer must match the ID previously set by the user in order to access the flash memory. Data Protect Function to enable and disable programming or erasing of each flash memory block. Trusted & Flexible Programmer Mode: MCUs can be programmed using an external box such as a parallel programmer or debug emulator. Boot Mode: Built-in boot loader program allows PC connection through RS232 interface for easy programming. CPU/User Mode: Customer can develop custom bootloader program to rewrite the flash memory. The rewrite program can be transferred to RAM when all flash memory contents need to be changed. 27
PROPERTIES On passing, 'Finish' button: On failing, 'Finish' button: Allow user to leave quiz: User may view slides after quiz: User may attempt quiz: Goes to Next Slide Goes to Slide At any time After passing quiz Unlimited times
Revolutionary Evaluation Platform Short Time to Market 29
Outstanding Development Environment Evaluation Development Production Code Generator and Evaluation / Starter Kits Short Time to Market Renesas HEW (High Performance Embedded Workshop) and Advanced Debugging Hardware Production Programming using Renesas own Factory Programming Services, or 3 rd -party tools 30
R8C (non-lcd) Line-up Pins Motor Timers, LIN, CAN, 40MHz OCO * Expanded Line-up, D/A, ASSP s R8C/3x Enhanced Performance And Features 80 64 52 48 Low-end R8C s New ASSP s Automotive Grade Avail. 16KB-64KB R8C/24,25 32KB-128KB 48KB-128KB R8C/22,23 R8C/20,21 R8C/2C,2D R8C/2A,2B CAN 20-ch ADC D/A 32KB-128KB 16KB-128KB 16KB-32KB R8C/38x R8C/36x 16KB-128KB R8C/35x R8C/34x 64KB-128KB 64KB-128KB R8C/38x R8C/38x R8C/36x R8C/36x R8C/34x R8C/34x CAN CAN CAN 32KB- 128KB 32 24 8KB-32KB R8C/26,27 8KB-16KB 8KB-16KB R8C/2K,2L R8C/2E,2F D/A Motor Lighting 16KB-32KB R8C/2G 4KB-32KB 8KB-32KB R8C/33x R8C/3Gx 20 R8C/28,29 4KB-8KB 2KB-4KB R8C/2H R8C/2J R8C/32x 4KB-16KB * On-chip Oscillator Contact Renesas for latest R8C Line-up 31
R8C/Lx (LCD Controller) Series Line-up Pins 100 R8C/L3A7 R8C/L3A8 R8C/L3AA R8C/L3AC 56 Seg x 4 Com 52 Seg x 8 Com 80 R8C/L387 R8C/L388 R8C/L38A R8C/L38CA 48 Seg x 4 Com 44 Seg x 8 Com 64 R8C/L367 R8C/L368 R8C/L36A R8C/L36C 32 Seg x 4 Com 28 Seg x 8 Com 52 R8C/L357 R8C/L358 R8C/L35A R8C/L35C 24 Seg x 4 Com 48 64 96 Flash Size (KB) 128 Contact Renesas for latest R8C Line-up 32
R8C Family Roadmap In Production Function / Performance Introduction in 2009-2010 R8C/1x-2x General Purpose, R8C/Lx High Performance, LCD Controller R8C/3x High Performance Next: Super Low Power Low-Power, ASSP s Low pin Count More ASSP s 33
Building Automation R8C s Possibilities Medical Devices Fertility probes, glucose meters, blood pressure monitor, thermometers White Goods / Appliance HVAC, Lighting, AMR, Security, Elevators/Escalators Industrial Control R8C Solutions Motor Control, User Interface, Temperature Control Transportation / Automotive Sensors, Pumps, Conveyor Belts, Fans, Actuators Computing & Networking Monitoring, Fan control, Power Supply, User Interface, COM I/Fs Automotive, Industrial & Recreation Vehicles 34
PROPERTIES On passing, 'Finish' button: On failing, 'Finish' button: Allow user to leave quiz: User may view slides after quiz: User may attempt quiz: Goes to Next Slide Goes to Slide At any time After passing quiz Unlimited times
Course Summary Key requirements of 8-bit applications How R8C Family MCUs fit in the Renesas product portfolio Top 8 Reasons favoring the use of these MCUs for new 8-bit embedded system designs Introduction to R8C Line-up and Groups Future of the R8C Family and Possibilities For more information, please visit our Web site: http://america.renesas.com 36