renesas ultra-low power 78k0 8-bit microcontroller family · pdf filerenesas ultra-low power...

26
Renesas Electronics America Inc. © 2010 Renesas Electronics America Inc. All rights reserved. Renesas Ultra-Low Power 78K0 8-bit Microcontroller Family 1-A July 2010

Upload: duongtruc

Post on 17-Mar-2018

244 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: Renesas Ultra-Low Power 78K0 8-bit Microcontroller Family · PDF fileRenesas Ultra-Low Power 78K0 8-bit Microcontroller Family 1-A ... Counter Stack Pointer Register Bank ... receiver

Renesas Electronics America Inc.

© 2010 Renesas Electronics America Inc. All rights reserved.

Renesas Ultra-Low Power 78K0 8-bit Microcontroller Family

1-A

July 2010

Page 2: Renesas Ultra-Low Power 78K0 8-bit Microcontroller Family · PDF fileRenesas Ultra-Low Power 78K0 8-bit Microcontroller Family 1-A ... Counter Stack Pointer Register Bank ... receiver

© 2010 Renesas Electronics America Inc. All rights reserved.2

Introduction

� Purpose� This course provides an introduction to the Ultra-Low Power 78K0 Family of microcontrollers (MCUs) designed and offered by Renesas Electronics Corporation for cost-sensitive, low power 8-bit embedded applications.

� Objectives� Review the requirements of low power 8-bit embedded system applications.

� Understand how the 78K0 Family of MCU addresses the requirements of low power applications.

� Learn about key features and benefits these MCUs provide and how they facilitate low power system development.

� Content� 29 pages

� 3 quiz questions

� Learning Time� 35 minutes

Page 3: Renesas Ultra-Low Power 78K0 8-bit Microcontroller Family · PDF fileRenesas Ultra-Low Power 78K0 8-bit Microcontroller Family 1-A ... Counter Stack Pointer Register Bank ... receiver

© 2010 Renesas Electronics America Inc. All rights reserved.3

Renesas MCU/MPU Portfolio

78K08-bit | 10MHz

Page 4: Renesas Ultra-Low Power 78K0 8-bit Microcontroller Family · PDF fileRenesas Ultra-Low Power 78K0 8-bit Microcontroller Family 1-A ... Counter Stack Pointer Register Bank ... receiver

© 2010 Renesas Electronics America Inc. All rights reserved.4

Low Power MCU Selection Criteria

� Power consumption in active and standby modes

� Multiple operating and standby modes

� Set to different operating and standby modes for optimization of current consumption based on required operations.

� High peripheral integration

� Peripherals built into chip to simplify designs and reduce leakage current draw from external devices.

� Current consumption can be optimized by enabling only required peripherals and disabling unused peripherals.

� Flexible clocking scheme and various selectable clock sources

� Using most efficient clock source for CPU and peripherals can optimize required performance, required operation and current consumption.

� Flexible wakeup schemes from standby to active modes

� Minimal wakeup time from standby to active can optimize current consumption based on required operation and performance.

Page 5: Renesas Ultra-Low Power 78K0 8-bit Microcontroller Family · PDF fileRenesas Ultra-Low Power 78K0 8-bit Microcontroller Family 1-A ... Counter Stack Pointer Register Bank ... receiver

© 2010 Renesas Electronics America Inc. All rights reserved.5

Top 8 Reasons to Select Ultra-Low Power 78K0 MCUs

Low current consumption in active and standby modes

Ultra-Low Power

2

Designed for Low Power

Multiple operating and standby modesRAM data retention in standbyFlexible clocking schemesFlexible wakeup schemes

3

Low-System Cost

High peripheral integration

4

Scalable Architecture

78K Platform

1

Reliability

Numerous fail-safe features

6

Advanced Analog

16-bit delta sigma ADCOp-amp and PGA

5

Robust and secured flash technologyVarious programming options

Trusted &Reliable

7

Short Time to Market

Renesas’ own outstanding development environment

8

Low Power 78K0

Page 6: Renesas Ultra-Low Power 78K0 8-bit Microcontroller Family · PDF fileRenesas Ultra-Low Power 78K0 8-bit Microcontroller Family 1-A ... Counter Stack Pointer Register Bank ... receiver

© 2010 Renesas Electronics America Inc. All rights reserved.6

78K0 Ultra-Low Power 8-bit MCU Family Line-upGeneral Purpose

78K0/Kx2-L16- to 48-pin

Segment LCD

78K0/Lx348- to 80-pin

8 KB

4 KB

16 KB

32 KB

20SSOP 30SSOP 44/48LQFP16SSOP

24 KB

48 KB

60 KB

52LQFP 64LQFP 80LQFP

� Broad line-up

� From 4 KB to 60 KB Flash

� 16- to 80-pin packages

� Extensive product offering

� General purpose and LCD controllersScalable Architecture

1

Page 7: Renesas Ultra-Low Power 78K0 8-bit Microcontroller Family · PDF fileRenesas Ultra-Low Power 78K0 8-bit Microcontroller Family 1-A ... Counter Stack Pointer Register Bank ... receiver

© 2010 Renesas Electronics America Inc. All rights reserved.7

Ultra-Low Power 78K Platform

Scalable Architecture

1

78K08-bit

78K0R16-bit

� 16- to 80-pin� 4 to 60 KB flash� 10 MHz

� 1 MB space� 3-stage pipeline� 2-channel DMA� 16 to 128 KB flash� 20 MHz

Upward Compatibility

Common instructions

� 78K0 Family belongs to ’78K Platform’

� Common instructions

– 78K0 and 78K0R share common 53 instructions

– 78K0R have extended 16-bit instructions

� Multitude of options and levels of integration

� Common development environment

Page 8: Renesas Ultra-Low Power 78K0 8-bit Microcontroller Family · PDF fileRenesas Ultra-Low Power 78K0 8-bit Microcontroller Family 1-A ... Counter Stack Pointer Register Bank ... receiver

© 2010 Renesas Electronics America Inc. All rights reserved.8

ProgramStatus Word

Register Bank 3

Register Bank 2

78K0: 8-bit CPU Core

Core - 8-bit CISC Architecture

Fast Interrupt - Dedicated Interrupt Vector Table + 4 Priority Levels

ProgramCounter

Stack Pointer

Register Bank 1Address Bus

Address/Data Bus

Control SignalsALU

Bit

Register Bank 0

System Bus Interface

ProgramStatus Word

A X

B C

D E

H L

A X

B C

D E

H L

A X

B C

D E

H L

A X

B C

D E

H L

16-bit (Register Pair)

Bank 0Bank 1

Bank 2Bank 3

8-bit 8-bit

Interrupt Controller

Page 9: Renesas Ultra-Low Power 78K0 8-bit Microcontroller Family · PDF fileRenesas Ultra-Low Power 78K0 8-bit Microcontroller Family 1-A ... Counter Stack Pointer Register Bank ... receiver

© 2010 Renesas Electronics America Inc. All rights reserved.9

Ultra-Low Power Consumption

ActiveHigh Speed, 3V

HALT Mode(32kHz + RTC), 3V

STOP Mode, 3V

General-Purpose (78K0/Kx2-L)

General Purpose w/ LCD Controller (78K0/Lx3)

Kx2-L Kx2-L Lx3Lx3Kx2-L Lx3

220uA/ MHz

2.2mA@10MHz

1.13uA

0.3uA

1uA

220uA/ MHz

1.9mA @10MHz

2.41uA

Ultra-Low Power

2Typical current consumption values are shown

Page 10: Renesas Ultra-Low Power 78K0 8-bit Microcontroller Family · PDF fileRenesas Ultra-Low Power 78K0 8-bit Microcontroller Family 1-A ... Counter Stack Pointer Register Bank ... receiver

© 2010 Renesas Electronics America Inc. All rights reserved.10

Multiple Operating and Standby Modes

Designed for Low Power

3Stop peripherals that cannot operate in STOP,

STOP instruction

Active HALT STOPCPU

Port I/O

16-bit timer

Real-Time Counter

Flash Memory

Safety-FeaturesPOC, LVI

Watchdog Timer

CPU Clock

Ext. Interrupts

Sub-system Clock

RAM

8-bit timer

Analog Peripherals

UART

CSI

I2C

Retain

Retain

Retain

Retain

Retain

Retain

Count clock

w/ 32kHz clockw/ 32kHz clock w/ 32kHz clock

8-bit timer serial clock

Wakeup by addr match

w/ ext. clock

How to set modes HALT instruction

Retain

Page 11: Renesas Ultra-Low Power 78K0 8-bit Microcontroller Family · PDF fileRenesas Ultra-Low Power 78K0 8-bit Microcontroller Family 1-A ... Counter Stack Pointer Register Bank ... receiver

© 2010 Renesas Electronics America Inc. All rights reserved.11

Flexible Peripherals Enable/ Disable

� Peripherals - Enabled/ disabled by register settings

� Watchdog timer, int. low-speed oscillator, LVI default setting, on-chip debug – Enabled/ disabled by option bytes

16-bit Timer

8-bit Timer

Real-Time Counter

TMC00 register

TMC5x, TMHMDx registers

RTC00 register

Clock OutputCKS register

10-bit ADCADMx registers

16-bit ADCADDCTLx register

Op-AmpAMPxM register

UARTASIMx registers

CSI/ SPICSIMxx registers

I2CIICACTLx register

LCD ControllerLCDM register

LVILVIM registers

WDTOption byte (0080H)

OCDOption byte (0084H)

Int. low-speedoscillator

RCM register, Option byte (0080H)

Int. 4 or 8MHz oscillator

RCM register

Designed for Low Power

3

Page 12: Renesas Ultra-Low Power 78K0 8-bit Microcontroller Family · PDF fileRenesas Ultra-Low Power 78K0 8-bit Microcontroller Family 1-A ... Counter Stack Pointer Register Bank ... receiver

© 2010 Renesas Electronics America Inc. All rights reserved.12

Flexible Clocking Schemes

Ext. Crystal(X1, X2)

Ext. Clock(EXCLK)

Int. Oscillator

8MHz

4MHz

Subsystem 32kHz

Ext. 32kHz Crystal(XT1, XT2)

Ext. 32kHz Clock(EXCLKS)

1-10MHz

or32kHz

Real-time Counter,Clock Output,

Main SystemClock Switch

Peripheral Clock Switch

orPrescaler

fxp

fprs

fxp/16fxp/8

fxp/4

fxp/2

fxp

fsub/2

fsub

fcpu

fih

fxh

CPU

Peripheral

Int. Low-speed Oscillator

30kHz 240kHz

Select 8MHz or 4MHz by option byte

Watchdog Timer,8-bit Timer H1,

fil

LCD Driver

LCD Driver

LCD Driver

Designed for Low Power

3

Prescaler fprs

Selectorfprs/13

Selector

Page 13: Renesas Ultra-Low Power 78K0 8-bit Microcontroller Family · PDF fileRenesas Ultra-Low Power 78K0 8-bit Microcontroller Family 1-A ... Counter Stack Pointer Register Bank ... receiver

© 2010 Renesas Electronics America Inc. All rights reserved.13

Flexible Wakeup Schemes

Designed for Low Power

3

� Methods to Wakeup from Standby Modes (HALT, STOP)

� Interrupt

� Reset

– In reset, both CPU and subsystem clocks stop

– Reset released, CPU run with internal high-speed oscillator

– After reset, wakeup time dependent on external crystal, external clock or internal oscillator stabilization time.

� HALT mode� CPU clock (external system clock or internal oscillator) continue to run

� Subsystem clock continue to run

� STOP mode� CPU clock (external system clock or internal oscillator) stop

� Subsystem clock continue to run

Page 14: Renesas Ultra-Low Power 78K0 8-bit Microcontroller Family · PDF fileRenesas Ultra-Low Power 78K0 8-bit Microcontroller Family 1-A ... Counter Stack Pointer Register Bank ... receiver

© 2010 Renesas Electronics America Inc. All rights reserved.14

Memory

Designed for Low-System Cost:High Peripheral Integrations

LCD Driver

Up to 288 segments

Flash size: 4 KB-60 KB

RAM size: 384B-2 KB

Communications

Remote controlreceiver

UART1 - 2 ch

CSI (SPI)0 - 2 ch

Multi-master I2C0 - 1 ch

Analog

10-bit SAR ADC0 - 11 ch

Op-amps0 - 2 ch

16-bit delta-sigma ADC0 - 3 ch

Clocks

Int. WDT OSC30 kHz or 240 kHz

Internal OSC4 MHz or 8 MHz

Sub-clock32.768 kHz

System

Low voltage indicator16 selectable voltages

On-chip debug/programming

Power-on-clear

External clock1 MHz to 10 MHz

Timers

Clock output31.25 kHz - 10 MHz

16-bit timer TM001 ch

Watch dog timer

8-bit timer TM5x 1 - 3 ch

8-bit timer TMHx1 - 3 ch

Real-time counterCalendar function

Buzzer output610 Hz – 9.77 kHz

Low-System Cost

4

78K0 8-bit CPU10 MHz

1.8V - 5.5V-40 to +85C

Page 15: Renesas Ultra-Low Power 78K0 8-bit Microcontroller Family · PDF fileRenesas Ultra-Low Power 78K0 8-bit Microcontroller Family 1-A ... Counter Stack Pointer Register Bank ... receiver

© 2010 Renesas Electronics America Inc. All rights reserved.15

78K0/Kx2-L Series Block Diagram

System

Timers

Clock output31.25 kHz - 10 MHz

16-bit timer TM001 ch

Watch dog timer

Clocks

Int. WDT OSC30 kHz

Internal OSC4 MHz or 8 MHz

Sub-clock32.768 kHz

78K0 8-bit CPU10 MHz

1.8V - 5.5V-40 to +85C

Low voltage indicator1.91V - 4.22V

On-chip debug/programming

Power-on-clear1.61V

Communications

UART 1 ch

Analog

10-bit SAR ADC4 - 11 ch

8-bit timer TM5x 1 - 2 ch

8-bit timer TMHx1 - 2 ch

Digital I/O

Key interrupt pins0 - 6 lines

GP I/O Pins12 - 42 I/O lines

External interrupt pins2 - 12 lines

CSI (SPI) 0 - 2 ch

Real-time counterCalendar function

Multi-master I2C1 ch

Op-amps1 - 2 ch

Memory

Flash size: 4 KB-32 KB

RAM size: 384B-1 KB

Low-System Cost

4

Page 16: Renesas Ultra-Low Power 78K0 8-bit Microcontroller Family · PDF fileRenesas Ultra-Low Power 78K0 8-bit Microcontroller Family 1-A ... Counter Stack Pointer Register Bank ... receiver

© 2010 Renesas Electronics America Inc. All rights reserved.16

78K0/Lx3 Series Block Diagram

Low-System Cost

4

Memory

System

Timers

Buzzer output610 Hz – 9.77 kHz

Real-time counterCalendar function

16-bit timer TM001 ch

Watch dog timer

Clocks

Int. WDT OSC240 kHz

Internal OSC8 MHz

Sub-clock32.768 kHz

78K0 8-bit CPU10 MHz

1.8V - 5.5V-40 to +85C

Low voltage indicator1.93V - 4.24V

On-chip debug/programming

Power-on-clear1.59V

Manchester codegenerator

Flash size: 8 KB-60 KB

RAM size: 512B-2 KBLCD Driver

Up to 288 segments

Analog10-bit SAR ADC

0 - 8 ch

16-bit delta-sigma ADC0 - 3 ch

8-bit timer TM5x 3 ch

8-bit timer TMHx 3 ch

Digital I/O

Key interrupt pins3 - 8 lines

GP I/O pins30 - 62 I/O lines

External interrupt pins5 - 7 lines

Communications

Remote controlreceiver

UART2 ch

CSI (SPI)1 - 2 ch

Page 17: Renesas Ultra-Low Power 78K0 8-bit Microcontroller Family · PDF fileRenesas Ultra-Low Power 78K0 8-bit Microcontroller Family 1-A ... Counter Stack Pointer Register Bank ... receiver

© 2010 Renesas Electronics America Inc. All rights reserved.17

Real-Time Counter (Calendar Function)

� Free running in STOP mode without CPU intervention

� Consumes 0.15 uA

� Counters for year, month, week, day, hour, minute and second. Counting up to 99 years.

� AM/PM setting function

� Alarm interrupt function: week, hour or minute

� Clock outputs of 1 Hz, 512 Hz, 16.384 kHz or 32.768 kHz

� Constant-period interrupt function (0.5 seconds to 1 month)

RTCC0

RTCC2

Year

32 kHz Clock

Month

Day

Week

Hour

Min

Sec

RTCC1

Week Alarm

Hour Alarm

Min Alarm

1 Hz

512 Hz/16 kHz/32 kHz

INT

Low-System Cost

4

Page 18: Renesas Ultra-Low Power 78K0 8-bit Microcontroller Family · PDF fileRenesas Ultra-Low Power 78K0 8-bit Microcontroller Family 1-A ... Counter Stack Pointer Register Bank ... receiver

© 2010 Renesas Electronics America Inc. All rights reserved.18

Advanced Analog

� 16-bit delta-sigma ADC (78K0/Lx3)

� Op-Amp and Programmable Gain Amplifier (78K0/Kx2-L)

Low-System Cost

4 Advanced Analog

5

625 kHz/ 104.85 ms min.2.7V – 3.5V

525 kHz/ 124.83 ms min.2.7V – 2.85V

625 kHz/ 104.85 ms min.2.85V – 5.5VSingle Input

1.25 MHz / 52.42 ms min.3.5V – 5.5VDifferential Input

Sampling Clock/ Conversion Time 16-bit

AVref

DifferentialADC Input

ADC reference16-bit

delta-sigmaADC

3-ch

10-bit ADC

4 to 11-ch

PGA (x4 – x32 gain)

ADC Inputs

Op-AmporADC Inputs

Op-AmporADC Inputs

Page 19: Renesas Ultra-Low Power 78K0 8-bit Microcontroller Family · PDF fileRenesas Ultra-Low Power 78K0 8-bit Microcontroller Family 1-A ... Counter Stack Pointer Register Bank ... receiver

© 2010 Renesas Electronics America Inc. All rights reserved.19

Reliable: Safety Features

Reliable6

Page 20: Renesas Ultra-Low Power 78K0 8-bit Microcontroller Family · PDF fileRenesas Ultra-Low Power 78K0 8-bit Microcontroller Family 1-A ... Counter Stack Pointer Register Bank ... receiver

© 2010 Renesas Electronics America Inc. All rights reserved.20

Block 2

Secure and Reliable Flash Features

Flash Security Setting Bits

Boot Swap: Secure Self-Flash Programming

Error Correction Code (ECC)

Individually Selectable by Security Set Command

� Disable batch erase (chip erase) *cannot be changed

� Disable block erase

� Disable write

� Disable rewriting to boot cluster 0

……

Block 8

Block 5

Block 4

Block 0

Program Area

Boot Cluster 0

Boot Cluster 1

Block 7Block 6

Block 3

Block 1Each Block = 1 KBBoot Size = 4 KB

Block n

Boot0

New Boot

New Boot

Boot0

New BootNew Boot

Boot0

Boot0Boot Cluster 0

Boot Cluster 1

Set Boot Flag

Boot0

New Boot

New Boot

New BootNew Boot

Boot0

Erase Boot0

Boot0

New Boot

New Boot

New BootNew Boot

Boot0

Power Loss

New Boot

New Boot

Boot0Boot0

New Boot

New Boot

Boot Swap

Reset

� 6-bit ECC on every 32-bit word

� Correct 1-bit error out of every 32-bit word

� Data write and read

� No impact on read/ write performanceTrusted &Reliable

7

Page 21: Renesas Ultra-Low Power 78K0 8-bit Microcontroller Family · PDF fileRenesas Ultra-Low Power 78K0 8-bit Microcontroller Family 1-A ... Counter Stack Pointer Register Bank ... receiver

© 2010 Renesas Electronics America Inc. All rights reserved.21

General 78K0 MCU Software and Hardware Tools

Integrated Development(Free up to 32KB)

Compiler, AssemblerDebuggerFlash WriterCode GeneratorPin Configurator

On-ChipDebug Emulator

CubeSuite

MINICUBE2

IECUBE IECUBE Adapters and Sockets

Evaluation/Demonstration/ TargetBoards

In-CircuitEmulator

Target Board(different target board for different MCU device family)

Eval/ Demo Board(different eval/ demo board for different MCU device family)

Flash Programmer

PG-FP5 MINICUBE2

Software

Hardware

Short Time to Market

8

Page 22: Renesas Ultra-Low Power 78K0 8-bit Microcontroller Family · PDF fileRenesas Ultra-Low Power 78K0 8-bit Microcontroller Family 1-A ... Counter Stack Pointer Register Bank ... receiver

© 2010 Renesas Electronics America Inc. All rights reserved.22

Ultra-Low Power 78K0/Kx2-L Line-Up

General Purpose:78K0/Kx2-L

78K0/KB2-L30-pin

78K0/KC2-L44-/48-pin

78K0/KA2-L20-pin

78K0/KY2-L16-pin

8 KB

4 KB

16 KB

32 KB

20SSOP 30SSOP 44/48LQFP16SSOP

UPD78F0550

UPD78F0551

UPD78F0555*

78K0/KA2-L

UPD78F0556*

UPD78F0552

UPD78F0557*

78K0/KY2-L

UPD78F0560

UPD78F0561

UPD78F0565*

UPD78F0566*

UPD78F0562

UPD78F0567*

78K0/KB2-L

UPD78F0571

UPD78F0572

UPD78F0576*

UPD78F0577*

UPD78F0573

UPD78F0578*

78K0/KC2-L

UPD78F0581

UPD78F0582

UPD78F0586*

UPD78F0587*

UPD78F0583

UPD78F0588*

*with op-amp included

78K0/Kx2-L Line-Up

Page 23: Renesas Ultra-Low Power 78K0 8-bit Microcontroller Family · PDF fileRenesas Ultra-Low Power 78K0 8-bit Microcontroller Family 1-A ... Counter Stack Pointer Register Bank ... receiver

© 2010 Renesas Electronics America Inc. All rights reserved.23

Ultra-Low Power 78K0/Lx3 Line-Up

Segment LCD:78K0/Lx3

78K0/LE364-pin

78K0/LF380-pin

78K0/LD352-pin

78K0/LC348-pin

78K0/Lx3 Line-Up

Page 24: Renesas Ultra-Low Power 78K0 8-bit Microcontroller Family · PDF fileRenesas Ultra-Low Power 78K0 8-bit Microcontroller Family 1-A ... Counter Stack Pointer Register Bank ... receiver

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

Ultra-Low Power 78K0’s Possibilities

Battery-Powered

CO2 Sensor

Smoke Detector

Ear Thermometer

Blood Pressure Monitor

LED Flashlight (Ambient Sensor)

Thermostat

Irrigation Control

Blood Glucose Meter

Page 25: Renesas Ultra-Low Power 78K0 8-bit Microcontroller Family · PDF fileRenesas Ultra-Low Power 78K0 8-bit Microcontroller Family 1-A ... Counter Stack Pointer Register Bank ... receiver

© 2010 Renesas Electronics America Inc. All rights reserved.25

Renesas Resources

Online Design Community

Tool downloads, e-mail alerts, and more

Online Training.com

Page 26: Renesas Ultra-Low Power 78K0 8-bit Microcontroller Family · PDF fileRenesas Ultra-Low Power 78K0 8-bit Microcontroller Family 1-A ... Counter Stack Pointer Register Bank ... receiver

Renesas Electronics America Inc.© 2010 Renesas Electronics America Inc. All rights reserved.

Thank You