Epmc Pu 0114 1.0
Epmc Pu 0114 1.0
Epmc Pu 0114 1.0
Disclaimer
The information in this document is current as of January, 2009. The information is subject to change without notice. For actual design-in, refer to the latest publications of NEC Electronics data sheets or data books, etc., for the most up-todate specifications of NEC Electronics products. Not all products and/or types are available in every country. Please check with an NEC Electronics sales representative for availability and additional information. No part of this document may be copied or reproduced in any form or by any means without the prior written consent of NEC Electronics. NEC Electronics assumes no responsibility for any errors that may appear in this document.
NEC Electronics does not assume any liability for infringement of patents, copyrights or other intellectual property rights of third parties by or arising from the use of NEC Electronics products listed in this document or any other liability arising from the use of such products. No license, express, implied or otherwise, is granted under any patents, copyrights or other intellectual property rights of NEC Electronics or others. Descriptions of circuits, software and other related information in this document are provided for illustrative purposes in semiconductor product operation and application examples. The incorporation of these circuits, software and information in the design of a customer's equipment shall be done under the full responsibility of the customer. NEC Electronics assumes no responsibility for any losses incurred by customers or third parties arising from the use of these circuits, software and information. While NEC Electronics endeavors to enhance the quality, reliability and safety of NEC Electronics products, customers agree and acknowledge that the possibility of defects thereof cannot be eliminated entirely. To minimize risks of damage to property or injury (including death) to persons arising from defects in NEC Electronics products, customers must incorporate sufficient safety measures in their design, such as redundancy, fire-containment and anti-failure features. NEC Electronics products are classified into the following three quality grades: "Standard", "Special" and "Specific". The "Specific" quality grade applies only to NEC Electronics products developed based on a customer-designated "quality assurance program" for a specific application. The recommended applications of an NEC Electronics product depend on its quality grade, as indicated below. Customers must check the quality grade of each NEC Electronics product before using it in a particular application. "Standard": Computers, office equipment, communications equipment, test and measurement equipment, audio and visual equipment, home electronic appliances, machine tools, personal electronic equipment and industrial robots. "Special": Transportation equipment (automobiles, trains, ships, etc.), traffic control systems, anti-disaster systems, anti-crime systems, safety equipment and medical equipment (not specifically designed for life support). "Specific": Aircraft, aerospace equipment, submersible repeaters, nuclear reactor control systems, life support systems and medical equipment for life support, etc.
The quality grade of NEC Electronics products is "Standard" unless otherwise expressly specified in NEC Electronics data sheets or data books, etc. If customers wish to use NEC Electronics products in applications not intended by NEC Electronics, they must contact an NEC Electronics sales representative in advance to determine NEC Electronics' willingness to support a given application.
(Note) (1) "NEC Electronics" as used in this statement means NEC Electronics Corporation and also includes its majority-owned subsidiaries. (2) "NEC Electronics products" means any product developed or manufactured by or for NEC Electronics (as defined above).
This kit has been created to help and educate newcomers to get started quickly and easily with 78K Microcontrollers, both 78K0 8-bit and 78K0R 16-bit.
This is ideal for Engineers and Students new to NECs Microcontrollers
Contents
1. Introduction 2. 3. 4. 5. 6. 7.
General Purpose & Industrial MCU Roadmap Industrial Applications Focus Industrial Application Examples NEC Microcontroller Nick-Naming 8/16-bit NEC Microcontroller Nomenclature Quality Grades
Clock generator, Ports, Power-On Clear, Low-Voltage Indicator, Timers, Comparators/Operational Amplifiers, RealTime Clock, Window Watchdog Timer, Option Byte, A/D Converter, D/A Converter, Multiplier/Divider, Serial Interfaces, Interrupt Functions, Key Interrupt Functions, LCD Controller/Driver, DMA Controller, External Bus Interface
General Purpose Microcontroller Motor Control Microcontroller Microcontroller with LCD C/D
13. Support
1. Introduction
All of our Multi Market Microcontrollers employ reliable Flash memory
All Flash continues to evolve, contributing to the success of customers
Answering ever more specific needs, contributing to cost cutting, delivering peace of mind that can be relied on. This lineup comprises the V850E and V850ES 32-bit microcontrollers delivering high performance for system control, and the 78K0 and 78K0S 8-bit microcontrollers, which boast a small size and low power consumption making them ideal as subcontrollers. A truly diversified lineup of 8-bit devices that offers a full range of products, which are available with 10 to 100 pins and ROM capacity of 1 KB to 128 KB; cuts total cost by allowing program changes, the incorporation of peripheral functions, and lower power consumption; as well as providing a full range of development tools that dramatically enhance ease of use. NEC Electronics' All Flash lineup is completed by the 78K0R 16-bit microcontrollers, positioned between 8-bit and 32-bit microcontrollers. These microcontrollers achieve a low power consumption on a par with that of 8-bit microcontrollers while delivering the performance of 16bit microcontrollers. NEC Electronics' All Flash lineup supports from 30 to 144 pins and ROM capacities of 16 to 512 KB. The lineup also inherits the existing 78K0 and 78K0S 8-bit microcontrollers. Should 8-bit microcontrollers fall short in terms of performance and ROM capacity for the intended application, smooth migration to 16-bit microcontrollers is possible. More than just providing its devices with sophisticated functions, NEC Electronics has also created an entire infrastructure that ranges from the development of flash microcontrollers to their delivery and that enables more effective and simple use of All Flash. Our products and environment, which make the most of the merits of flash memory products, work for the success of our customers everywhere.
16-bit
8-bit
Motor Control
Major Appliances
Building Management
HVAC
Industrial Automation
Control Systems Sensors Operator Panels (HMI) Instrumentation Industrial Networking
Healthcare
Diagnostic Imaging
Electric Drills
Electric shavers
Thermostats Programmable Logic Controller (PLC) Patient Monitors Blood Glucose Meter
8
78K0/Kx2 - L
Extension L -> Low Power Device generation (1st, 2nd, etc.) Device package information A: 20 pins G: 100 pins Device family name (K, F, L , etc.)
8-bit; 78K0R
16-bit)
8-bit CPU, K Series (General Purpose) 2nd generation, 64 pin package 16-bit CPU, K Series (General Purpose) 100 pin package
9
PD78F0547GK-8EU-A
Package + Lead Frame + Lead free Series & ROM size Core (0: 78K0, 1: 78K0R, 9: 78K0S) Memory (no: ROM, F: Flash) Member of the 78K MCU family Microcontroller CMOS
10
7. Quality grades
PD78F0547GK(A)-8EU-A PD78F0547GK(A)-8EU-A
= Ta : - 40C + 85C (A) = Ta : - 40C + 85C (A2)= Ta : - 40C + 125C NECs standard quality NECs automotive quality
All A grades get an additional burnin and are tested at high temperature.
11
V850E
High-End 32-bit
V850ES
Low-End 32-bit
78K0R
16-bit
78K0
78K0S
Low-End 8-bit
12
V850E
High-End 32-bit
78K0S Core
8-bit CISC CPU core
200ns min. instruct. exec. time 8 and 16-bit data transfers 8x8-bit or 4x16-bit registers
V850ES
Low-End 32-bit
47 assembler instructions
1 register bank organized as Free configurable software stack Vectorized interrupts for each source
78K0R
16-bit
78K0
78K0S
Low-End 8-bit
13
V850E
High-End 32-bit
78K0 Core
8-bit CISC CPU core
V850ES
Low-End 32-bit
100ns min. instruct. exec. Time Code banking for > 60k 8 and 16-bit data transfers mul/div instruction (8x8, 16/8-bit) 8x8-bit or 4x16-bit registers fast interrupt handling
63 assembler instructions
78K0R
High-End 16-bit
78K0
Selectable priority
78K0S
Low-End 8-bit
14
V850E
High-End 32-bit
78K0R Core
16-bit CISC CPU core
V850ES
Low-End 32-bit
50ns min. instruct. exec. Time Up to 512kB ROM 16-bit shift instructions
71 assembler instructions 3-stage pipeline 2 DMA channels Ultra low power consumption
78K0R
16-bit
4mA @10MHz 3V
78K0
78K0S
Low-End 8-bit
15
16
V850E
High-End 32-bit
V850ES
Low-End 32-bit
10 to 100 pins 8- and 16-bit Timers 10-bit A/D Converter 8-bit D/A Converter Serial Interfaces
UART with LIN Functionality 3-wire (SPI) I2C
78K0R
16-bit
78K0
78K0S
Low-End 8-bit
S AS
Devices
Internal Oscillators Secure Watchdog POC / LVI Circuit Wide Operating Voltage Range Wide Package Variety RoHS Compliant
17
78K0S/Kx1+
V850E
High-End 32-bit
V850ES
Low-End 32-bit
78K0R
16-bit
78K0
78K0S
Low-End 8-bit
S AS
Devices
18
19
8K
256 128 128 128 128 128 128 128 128 128 128 128 128 20-pin KA1+
x RAM size with AD conv.
Flash (Byte)
4K 2K 1K
256 128
256
10-pin KU1+
x
16-pin KY1+
RAM size w/o AD conv.
30-pin KB1+
20
78K0S Core
200 ns @ 10MHz 2 to 5.5V -40 to +85C
Flash
1 KB Flash 2 KB Flash 4 KB Flash 128 B RAM 128 B RAM 128 B RAM 78F9500 78F9501 78F9502
On-chip Oscillator
8 MHz (2%), 240kHz Single Voltage Flash Secure Self-Programming
78K0S Core
200 ns @ 10MHz 2 to 5.5V -40 to +85C
A/D Converter
4 x 10-bit
Flash
1 KB Flash 2 KB Flash 4 KB Flash 128 B RAM 128 B RAM 128 B RAM 78F9200 78F9201 78F9202
On-chip Oscillator
8 MHz (3%), 240kHz
16-Pin Package
GR (SSOP 0.65 mm pin pitch, 225 mil) FH ( WCSP 2.2 x 1.9 mm2) CS (SDIP)
Interrupt Controller
2 external / 8 internal
78K0S Core
200 ns @ 10MHz 2 to 5.5V -40 to +125C
Flash
1 KB Flash 2 KB Flash 4 KB Flash 128 B RAM 128 B RAM 128 B RAM 78F9510 78F9511 78F9512
On-chip Oscillator
8 MHz (3%), 240kHz
16-Pin Package
GR (SSOP 0.65 mm pin pitch, 225 mil) FH ( WCSP 2.2 x 1.9 mm2) CS (SDIP)
Interrupt Controller
2 external / 8 internal
78K0S Core
200 ns @ 10MHz 2 to 5.5V -40 to +125C
A/D Converter
4 x 10-bit
Flash
1 KB Flash 2 KB Flash 4 KB Flash 128 B RAM 128 B RAM 128 B RAM 78F9210 78F9211 78F9212
On-chip Oscillator
8 MHz (3%), 240kHz
20-Pin Package
MC ( SSOP 0.65 mm pin pitch, 300 mil) FH ( WLBGA, 2.03 x 2.55 mm2) CS (SDIP)
Interrupt Controller
4 external / 10 internal
Serial Interface
78K0S Core
200 ns @ 10MHz 2 to 5.5V -40 to +125C
Flash
2 KB Flash 4 KB Flash 128 B RAM 256 B RAM 78F9521 78F9522
On-chip Oscillator
8 MHz (3%), 240kHz
Serial Interface
78K0S Core
200 ns @ 10MHz 2 to 5.5V -40 to +125C
Flash
4 KB Flash 8 KB Flash 256 B RAM 256 B RAM 78F9532 78F9534
HW Multiplier
(8x8)
On-chip Oscillator
8 MHz (3%), 240kHz
78K0S/Kx1+ - Peripherals
KU1+
Pin count Flash [KB] RAM [Bytes] Main Clock Clock Subclock Sources Watchdog 16-bit Memory Timers 8-bit RTC Watchdog 10
KY1+
16
KA1+
20
KB1+
30
1/2/4 1/2/4 2/4 4/8 128 128 128 / 256 256 Note1 and 8 MHz (+/- 3%) on-chip 1 to 10 MHz extern 240 kHz (+/- 50%) on-chip 1 channelNote1 1 channels 1 channel 1channel (supporting LIN) Power-On-Reset: 2.1V0.1V, LVI: 2.35V to 4.30V 4 channels Up to 8 I/O Up to 14I/O
Note2
2 channels
Serial UART Interface POC / LVI 10-bit A/D-Converter Operational AmplifierNote 2 Ports InterruptsNote 3
Note 1: external osc not on 78F950x devices
Up to 17 I/O
Up to 26 I/O
2 ext./ 8 int.
Note 2: only 78F92xx
4 ext./ 10 int.
27
28
78K0/Kx2
General purpose peripherals & scalability at its best
29
78K0/Kx2
V850E
High-End 32-bit
V850ES
Low-End 32-bit
78K0R
16-bit
78K0/Kx2
78K0
78K0S
Low-End 8-bit
S AS
Devices
30
31
7K 7K 5K 3K 3K 2K 1K 1K 768
7K 7K 5K 3K 2K 1K 1K 768
7K 7K 5K 3K 2K 1K 1K 768
7K 7K 5K 3K 2K
Flash (Byte)
30-pin 36-pin 38-pin 44-pin 48-pin 52-pin 64-pin 80-pin KB2 KC2 KF2 KD2 KE2 x
RAM size 78K0/Kx2
Improvements on A version
Extended portfolio
Up to 128 KB Flash in 30-pin SSOP and 48-pin LQFP 38-pin SSOP Qualified for up to 140 C
Code: Data:
1000 (instead of 100) W/E cycles, 15 years data retention 10000 (instead of 100) W/E cycles, 3 years data retention
Increased accuracy with noisy signals Higher flexibility to adapt the conversion time to the frequency
33
IECube
No Update
(K Series: control code F or higher, F Series: control code "C" or higher)
PG-FP5-EE
34
30/36-Pin Package
MC ( SSOP, 300 mil, 0.65 mm pin pitch) FC(LGA, 4 x 4 mm2, 0.5mm pin pitch)
Interrupt Controller
6 external / 14 internal
Serial Interface
Serial Interface
78K0 Core
100 ns @ 20MHz 1.8 to 5.5V -40 to +125C
1 x CSI (SPI)
Serial Interface
1-ch, I2C
Ext. Multiplier
(from 48KB onwards)
On-chip Oscillator
8 MHz (5%), 240kHz (10%)
Single Voltage Flash Secure Self-Programming On-Chip Debugging 78F0503D,78F0507D * Only 30 pin version
38/44/48-Pin Package
MC ( SSOP, 300 mil, 0.65 mm pin pitch) GB (QFP, 10 x 10 mm2, 0.8 mm pin pitch) GA (QFP, 7 x 7 mm2, 0.50 mm pin pitch)
Interrupt Controller
7/8 external / 16 internal
Serial Interface
Serial Interface
Window Watchdog Timer Clock / Buzzer Output Flash Watch Timer Subclock Oscillator
32.768 kHz
78K0 Core
100 ns @ 20MHz 1.8 to 5.5V -40 to +125C
1 x CSI (SPI)
Serial Interface
1-ch, I2C
A/D Converter
8 x 10-bit
On-chip Oscillator
8 MHz (5%), 240kHz (10%)
Single Voltage Flash Secure Self-Programming On-Chip Debugging 78F0513D/5D/7D * Only 48 pin version
Serial Interface
Serial Interface
Window Watchdog Timer Clock / Buzzer Output Flash Watch Timer Subclock Oscillator
32.768 kHz
78K0 Core
100 ns @ 20MHz 1.8 to 5.5V -40 to +125C
1 x CSI (SPI)
Serial Interface
1-ch, I2C
A/D Converter
8 x 10-bit
On-chip Oscillator
8 MHz (5%), 240kHz (10%)
78F0527D
Up to 45 I/O lines
37
Interrupt Controller
9 external / 16 (19) internal
Window Watchdog Timer Clock / Buzzer Output Flash Watch Timer Subclock Oscillator
32.768 kHz
78K0 Core
100 ns @ 20MHz 1.8 to 5.5V -40 to +125C
Up to 2 x CSI (SPI)
Serial Interface
1-ch, I2C
A/D Converter
8 x 10-bit
On-chip Oscillator
8 MHz (5%), 240kHz (10%)
78F0537D
Up to 55 I/O lines
38
Interrupt Controller
9 external / 20 internal
Serial Interface
78K0 Core
100 ns @ 20MHz 1.8 to 5.5V -40 to +125C
Serial Interface
3-ch, 2 x CSI (SPI) 1 x Auto CSI
Window Watchdog Timer Clock / Buzzer Output Flash Watch Timer Subclock Oscillator
32.768 kHz 48 KB Flash 60 KB Flash 96 KB Flash 128 KB Flash
Serial Interface
1-ch, I2C
A/D Converter
8 x 10-bit 2 KB RAM 3 KB RAM 5 KB RAM 7 KB RAM 78F0544A 78F0545A 78F0546A 78F0547A
On-chip Oscillator
8 MHz (5%), 240kHz (10%)
Voltage Regulator
78F0547D
Up to 71 I/O lines
39
78K0/Kx2 - Peripherals
KB2
Pin count Flash [KB] RAM [KBytes] Main Clock Clock Subclock Sources Watchdog 16-bit Memory Timers 8-bit Watch timer Watchdog 30 / 36 8 to 128 0. 5 to 7
KC2
38 / 44 /48
KD2
52
KE2
64
KF2
80
16 to 128 16 to 128 16 to 128 48 to 128 0.75 to 7 0.75 to 7 0.75 to 7 2 to 7 1 to 20 MHz extern and 8 MHz ( 5%) on-chip 32.768 kHz 240 kHz (10 %) on-chip 2 channel Note1 1 channel 4 channels 1 channel 1 channel 2/1/1 channel 2/2 8 channels 1 channel
Note1 Note1
Serial UART/CSI/I2c Interface POC / LVI 10-bit A/D-Converter HW-multiplier Ports Interrupts
Note 1:
(16x16,32/16)
/1 ch.
2/3/1 channel
23 6 ext. / 14 int.
31 / 37 / 41 7 ext. / 16 int.
45
55 7 ext. / 19 int.
71 7 ext. / 20 int.
40
Introducing 78K0/Kx2-L
Industry Leading Low Power 8-bit MCUs
41
78K0/Kx2-L
V850E
High-End 32-bit
V850ES
Low-End 32-bit
78K0R
16-bit
78K0
78K0/Kx2-L
P
78K0S
Low-End 8-bit
S AS
Devices
42
Pin count
78K0R/Next
16-bit
78K0R/Kx3
16-bit 64-144pin
78K0R/Kx3-L
44-100pin
1.8V to 5.5V
78K0/Kx2
8-bit 30-80pin
78K0/Kx2-L
16-48pin
Analog function
78K0S/Kx1+
8-bit 10-30pin
43
78K0/KC2-L
PD78F058x 8/16-Bit Timer Comparator 8/11 x 10-Bit A/D 8 - 32 KB Flash 512B 1KB RAM 44/48-pin QFP
78K/KB2-L
PD78F057x 8/16-Bit Timer Comparator 4/7 x 10-Bit A/D 8 - 32 KB Flash 512B - 1KB RAM 30-pin SSOP
78K0/KA2-L
PD78F056x 8/16-Bit Timer Comparator 6 x 10-Bit A/D 4 - 16 KB Flash 384B - 768B RAM 20-pin SSOP
78K0/KY2-L
PD78F055x 8/16-Bit Timer Comparator 4 x 10-Bit A/D 4 - 16 KB Flash 384B - 768B RAM 16-pin SSOP
44
32K
1K 768 512
1K 768 512
1K 768 512
Flash (Byte)
16K 8K 4K
768 512
30-pin KB2-L
x RAM size w/ Op. Amp.
45
Interrupt Controller
2 external / 10 internal
Serial Interface
78K0 Core
200 ns @ 10MHz 1.8 to 5.5V -40 to +85C
Serial Interface
1-ch, I2C
On-chip Oscillator
Interrupt Controller
2 external / 10 internal
Serial Interface
78K0 Core
200 ns @ 10MHz 1.8 to 5.5V -40 to +85C
Serial Interface
1-ch, I2C
On-chip Oscillator
Interrupt Controller
4 external / 10 internal
Serial Interface
78K0 Core
200 ns @ 10MHz 1.8 to 5.5V -40 to +85C
Serial Interface
1-ch, I2C
On-chip Oscillator
Interrupt Controller
4 external / 10 internal
Serial Interface
78K0 Core
200 ns @ 10MHz 1.8 to 5.5V -40 to +85C
Serial Interface
1-ch, I2C
On-chip Oscillator
Interrupt Controller
8 external / 12 internal
Serial Interface
78K0 Core
200 ns @ 10MHz 1.8 to 5.5V -40 to +85C
Serial Interface
1-ch, I2C
On-chip Oscillator
Interrupt Controller
8 external / 13 internal
Serial Interface
78K0 Core
200 ns @ 10MHz 1.8 to 5.5V -40 to +85C
Serial Interface
1-ch, CSI (SPI)
Serial Interface
1-ch, I2C
On-chip Oscillator
Interrupt Controller
10-12 external / 16 internal
mm2,
Serial Interface
78K0 Core
200 ns @ 10MHz 1.8 to 5.5V -40 to +85C
Serial Interface
1-ch, CSI (SPI)
Window Watchdog Timer Clock / Buzzer Output Flash Real Time Clock Unit Subclock Oscillator
32.768 kHz 8 KB Flash 16 KB Flash 32 KB Flash
Serial Interface
1-ch, I2C
A/D Converter
11 x 10-bit
On-chip Oscillator
Interrupt Controller
10-12 external / 17 internal
mm2,
Serial Interface
78K0 Core
200 ns @ 10MHz 1.8 to 5.5V -40 to +85C
Serial Interface
2-ch, CSI (SPI)
Window Watchdog Timer Clock / Buzzer Output Flash Real Time Clock Unit Subclock Oscillator
32.768 kHz 8 KB Flash 16 KB Flash 32 KB Flash
Serial Interface
1-ch, I2C
A/D Converter
8 x 10-bit
On-chip Oscillator
78K0/Kx2-L - Peripherals
KY2-L
Pin count Flash [KB] RAM [Bytes] Main Clock Clock Subclock Sources Watchdog 16-bit Memory Timers 8-bit RTC Watchdog 16 4 / 8 / 16 384 / 512 / 768
KA2-L
20
KB2-L
30 44
KC2-L
48
4 / 8 / 16 8 / 16 / 32 8 / 16 / 32 8 / 16 / 32 384 / 512 / 768 512 / 768 / 1024 512 / 768 / 1024 512 / 768 / 1024 1 to 10 MHz extern and 4/8 MHz on-chip 32.768 kHz 30 kHz10 % on-chip 1 channel 3 channels 4 channels 1 channel 1 channel 1/-/1 channel 1/1Note 1/1 channel 1/2Note 1/1 channel(s)
Power-On-Reset: 1.61V0.1V, LVI: 2.35V to 4.30V 6 channels 7 ch. with Op.Amp. 11 channels with Op. Amp. 7 channels 10-bit A/D-Converter 4 ch. without Op.Amp. 8 channels without Op. Amp. 0 channels / 1 channel 0 channels / 2 channels Operational AmplifierNote 2 10 I/O / 2 Inputs 14 I/O / 2 Inputs 21 I/O / 3 Inputs 33 I/O / 5 Inputs 37 I/O / 5 Inputs Ports InterruptsNote 3 On-chip debug interface
Note 1: CSI is not supported on 78K0/KB2-L with Op. Ampl. Only 1 CSI is supported on 78K0/KC2-L with Op. Ampl. Note 2:
2 ext./10 int.
4 ext./10 int.
4uA
4MHz
1.2uA
1 0
0.9uA
0.8uA 0.8
1MHz
Sub clock HALT mode
K0 Kx2-L
30KHz 0.8uA
RTC Running
0.2uA
55
56
V850E
High-End 32-bit
78K0 L Series
48 to 100 pins 8- and 16-bit Timers 10-bit A/D Converter Serial Interfaces
UART with LIN Functionality 3-wire (SPI) I2C
V850ES
Low-End 32-bit
78K0R
16-bit
78K0
78K0S
Low-End 8-bit
S AS
Devices
LCD Controller / Driver Up to 288 segments Internal Oscillators Secure Watchdog POC / LVI Circuit Wide Operating Voltage Range RoHS Compliant
57
L Series - Roadmap
Wide LCD application range
78K0/Lx2: up to 40x4 seg., Booster, 128K Flash, 20MHz 78K0/Lx3: up to 36x8 seg., A/D-Conv., 60K Flash, 20MHz 78K0R/Lx3 up to 50x8 seg., 12-Bit A/D-Converter, 128K Flash, 20MHz
78K0R / LF3 (128pin) 78K0R / LG3 (100pin) 78K0R / LH3 (80pin) 78K0 / LG2 (100pin) 78K0 / LF2 (80pin) 78K0 / LE2 (64pin) 78K0 / LF3 (80pin) 78K0 / LE3 (64pin) 78K0 / LD3 (52pin) 78K0 / LC3 (48pin)
* under planning 58
78K0/Lx2
V850E
High-End 32-bit
V850ES
Low-End 32-bit
78K0R
16-bit
78K0
78K0/Lx2
P
78K0S
Low-End 8-bit
S AS
Devices
59
128K 96K 5K 5K 3K 2K 1K 1K
5K 3K 2K 1K
Flash (Byte)
1K 1K
80-pin LF2
100-pin LG2
x x RAM size with AD conv. RAM size with AD conv. and OCD interface
60
RAM size w/o AD conv. RAM size w/o AD conv. and OCD interface
K _ L I N E P I N S
LCD
IC
controller/ driver
L C D P I N S
IC
LCD
controller/driver
main clock
32.768 kHz
61
Interrupt Controller
7 external / 16 internal
78K0 Core
100 ns @ 20MHz 1.8 to 5.5V -40 to +85C
Window Watchdog Timer Clock / Buzzer Output Flash Watch Timer Subclock Oscillator
32.768 kHz 16 KB Flash 24 KB Flash 32 KB Flash
Serial Interface
1-ch, I2C
A/D Converter
5 x 10-bit
LCD controller/driver
20 seg x 4 com 768 B RAM 1 KB RAM 1 KB RAM 78F0361 78F0362 78F0363
On-chip Oscillator
8 MHz (5%), 240kHz (10%)
Voltage Regulator
78F0363D
Up to 34 I/O lines
62
2 x Capture/Compare
Interrupt Controller
7 external / 19 internal
Serial Interface
Serial Interface
78K0 Core
100 ns @ 20MHz 1.8 to 5.5V -40 to +85C
Window Watchdog Timer Clock / Buzzer Output Flash Watch Timer Subclock Oscillator
32.768 kHz 24 32 48 60 96 KB KB KB KB KB Flash Flash Flash Flash Flash
Serial Interface
1-ch, I2C
A/D Converter
8 x 10-bit
LCD controller/driver
26 seg x 4 com 1 1 2 3 5 KB KB KB KB KB RAM RAM RAM RAM RAM 78F0372 78F0373 78F0374 78F0375 78F0376
On-chip Oscillator
8 MHz (5%), 240kHz (10%)
Voltage Regulator
78F0376D
Up to 34 I/O lines
63
2 x Capture/Compare
Interrupt Controller
7 external / 19 internal
78K0 Core
100 ns @ 20MHz 1.8 to 5.5V -40 to +85C
Window Watchdog Timer Clock / Buzzer Output Flash Watch Timer Subclock Oscillator
32.768 kHz 24 32 48 60 96 KB KB KB KB KB Flash Flash Flash Flash Flash
Serial Interface
1-ch, I2C
LCD controller/driver
36 seg x 4 com 1 1 2 3 5 KB KB KB KB KB RAM RAM RAM RAM RAM 78F0382 78F0383 78F0384 78F0385 78F0386
On-chip Oscillator
8 MHz (5%), 240kHz (10%)
Voltage Regulator
78F0386D
Up to 26 I/O lines
64
2 x Capture/Compare
Interrupt Controller
7 external / 19 internal
78K0 Core
100 ns @ 20MHz 1.8 to 5.5V -40 to +85C
2-ch
Note1,
CSI (SPI)
Window Watchdog Timer Clock / Buzzer Output Flash Watch Timer Subclock Oscillator
32.768 kHz 32 KB Flash 48 KB Flash 60 KB Flash 96 KB Flash 128 KB Flash
Serial Interface
1-ch, I2C
A/D Converter
8 x 10-bit
LCD controller/driver
40 seg x 4 com 1 KB RAM 2 KB RAM 3 KB RAM 5 KB RAM 7 KB RAM 78F0393 78F0394 78F0395 78F0396 78F0397
On-chip Oscillator
8 MHz (5%), 240kHz (10%)
Voltage Regulator
78F0397D
Up to 40 I/O lines
65
78K0/Lx2 - Peripherals
LE2
Pin count Flash [KB] RAM [KBytes] Main Clock Clock Subclock Sources Watchdog 16-bit Memory Timers 8-bit Watch timer Watchdog 64
LF2
80
LG2
80
16/24/32 24/32/48/60/96 48/60/96/128 1/1/2/3/5 0.75/1/1 2/3/5/7 1 to 20 MHz extern and 8 MHz ( 5%) on-chip 32.768 kHz 240 kHz (10 %) on-chip 1 channel 2 channel Note1 4 channels 1 channel 1 channel 2/1 channel 20 x 4 5 channels 1 channel 24 7 ext. / 16 int. 26
Note1
Serial UART(LIN)/CSI Interface LCD controller/driver 10-bit A/D-Converter POC / LVI HW-multiplier Ports Interrupts
Note 1: versions >=48K
36 x 4
40 7 ext. / 19 int.
66
78K0/Lx3
V850E
High-End 32-bit
V850ES
Low-End 32-bit
78K0R
16-bit
78K0
78K0/Lx3
P
78K0S
Low-End 8-bit
S AS
Devices
67
68
Interrupt Controller
5 external / 17 internal
Serial Interface
Window Watchdog Timer Clock / Buzzer Output Real Time Clock Manchester Code Gener. Subclock Oscillator
32.768 kHz
78K0 Core
200 ns @ 10MHz 1.8 to 5.5V -40 to +85C
Flash
8 KB Flash 16 KB Flash 24 KB Flash 32 KB Flash 512 B RAM 768 B RAM 1 KB RAM 1 KB RAM 78F0400 78F0401 78F0402 78F0403
LCD controller/driver
18 seg x 8 com 22 seg x 4 com
On-chip Oscillator
8 MHz (5%), 240kHz (10%)
Interrupt Controller
5 external / 18 internal
Serial Interface
78K0 Core
200 ns @ 10MHz 1.8 to 5.5V -40 to +85C
Window Watchdog Timer Clock / Buzzer Output Real Time Clock Manchester Code Gener. Subclock Oscillator
32.768 kHz
A/D Converter
6 x 10-bit
Flash
8 KB Flash 16 KB Flash 24 KB Flash 32 KB Flash 512 B RAM 768 B RAM 1 KB RAM 1 KB RAM 78F0410 78F0411 78F0412 78F0413
LCD controller/driver
18 seg x 8 com 22 seg x 4 com
On-chip Oscillator
8 MHz (5%), 240kHz (10%)
Interrupt Controller
5 external / 19 internal
78K0 Core
200 ns @ 10MHz 1.8 to 5.5V -40 to +85C
1-ch, 1x CSI(SPI)
Window Watchdog Timer Clock / Buzzer Output Real Time Clock Manchester Code Gener. Remote Control Receiver Subclock Oscillator
32.768 kHz
Flash
8 KB Flash 16 KB Flash 24 KB Flash 32 KB Flash 512 B RAM 768 B RAM 1 KB RAM 1 KB RAM 78F0420 78F0421 78F0422 78F0423
LCD controller/driver
20 seg x 8 com 24 seg x 4 com
On-chip Oscillator
8 MHz (5%), 240kHz (10%)
Interrupt Controller
5 external / 20 internal
78K0 Core
200 ns @ 10MHz 1.8 to 5.5V -40 to +85C
1-ch, 1x CSI(SPI)
Window Watchdog Timer Clock / Buzzer Output Real Time Clock Manchester Code Gener. Remote Control Receiver Subclock Oscillator
32.768 kHz
A/D Converter
6 x 10-bit
Flash
8 KB Flash 16 KB Flash 24 KB Flash 32 KB Flash 512 B RAM 768 B RAM 1 KB RAM 1 KB RAM 78F0430 78F0431 78F0432 78F0433
LCD controller/driver
20 seg x 8 com 24 seg x 4 com
On-chip Oscillator
8 MHz (5%), 240kHz (10%)
Interrupt Controller
6 external / 20 internal
78K0 Core
200 ns @ 10MHz 1.8 to 5.5V -40 to +85C
1-ch, 1x CSI(SPI)
Window Watchdog Timer Clock / Buzzer Output Real Time Clock Manchester Code Gener. Remote Control Receiver Subclock Oscillator
32.768 kHz
Flash
16 24 32 48 60 KB KB KB KB KB Flash Flash Flash Flash Flash 768 B RAM 1 KB RAM 1 KB RAM 2 KB RAM 2 KB RAM 78F0441 78F0442 78F0443 78F0444 78F0445
LCD controller/driver
28 seg x 8 com 32 seg x 4 com
On-chip Oscillator
8 MHz (5%), 240kHz (10%)
Interrupt Controller
6 external / 20 internal
78K0 Core
200 ns @ 10MHz 1.8 to 5.5V -40 to +85C
1-ch, 1x CSI(SPI)
Window Watchdog Timer Clock / Buzzer Output Real Time Clock Manchester Code Gener. Remote Control Receiver Subclock Oscillator
32.768 kHz
A/D Converter
8 x 10-bit
Flash
16 24 32 48 60 KB KB KB KB KB Flash Flash Flash Flash Flash 768 B RAM 1 KB RAM 1 KB RAM 2 KB RAM 2 KB RAM 78F0451 78F0452 78F0453 78F0454 78F0455
LCD controller/driver
28 seg x 8 com 32 seg x 4 com
On-chip Oscillator
8 MHz (5%), 240kHz (10%)
Interrupt Controller
6 external / 20 internal
78K0 Core
200 ns @ 10MHz 1.8 to 5.5V -40 to +85C
1-ch, 1x CSI(SPI)
Window Watchdog Timer Clock / Buzzer Output Real Time Clock Manchester Code Gener. Remote Control Receiver Subclock Oscillator
32.768 kHz
A/D Converter
8 x 10-bit
A/D-Converter
3 x 16-bit
Flash
16 24 32 48 60 KB KB KB KB KB Flash Flash Flash Flash Flash 768 B RAM 1 KB RAM 1 KB RAM 2 KB RAM 2 KB RAM 78F0461 78F0462 78F0463 78F0464 78F0465
LCD controller/driver
20 seg x 8 com 24 seg x 4 com
On-chip Oscillator
8 MHz (5%), 240kHz (10%)
Interrupt Controller
6 external / 20 internal
Serial Interface
Serial Interface
78K0 Core
200 ns @ 10MHz 1.8 to 5.5V -40 to +85C
1-ch, 1x CSI(SPI)
Window Watchdog Timer Clock / Buzzer Output Real Time Clock Manchester Code Gener. Remote Control Receiver Subclock Oscillator
32.768 kHz
A/D Converter
8 x 10-bit
A/D-Converter
3 x 16-bit
Flash
16 24 32 48 60 KB KB KB KB KB Flash Flash Flash Flash Flash 768 B RAM 1 KB RAM 1 KB RAM 2 KB RAM 2 KB RAM 78F0461 78F0462 78F0463 78F0464 78F0465
LCD controller/driver
20 seg x 8 com 24 seg x 4 com
On-chip Oscillator
8 MHz (5%), 240kHz (10%)
Interrupt Controller
7 external / 22 internal
78K0 Core
200 ns @ 10MHz 1.8 to 5.5V -40 to +85C
Window Watchdog Timer Clock / Buzzer Output Real Time Clock Manchester Code Gener. Remote Control Receiver Subclock Oscillator
32.768 kHz
Flash
16 24 32 48 60 KB KB KB KB KB Flash Flash Flash Flash Flash 768 B RAM 1 KB RAM 1 KB RAM 2 KB RAM 2 KB RAM 78F0471 78F0472 78F0473 78F0474 78F0475
LCD controller/driver
36 seg x 8 com 40 seg x 4 com
On-chip Oscillator
8 MHz (5%), 240kHz (10%)
Interrupt Controller
7 external / 21 internal
78K0 Core
200 ns @ 10MHz 1.8 to 5.5V -40 to +85C
Window Watchdog Timer Clock / Buzzer Output Real Time Clock Manchester Code Gener. Remote Control Receiver Subclock Oscillator
32.768 kHz
Flash
16 24 32 48 60 KB KB KB KB KB Flash Flash Flash Flash Flash 768 B RAM 1 KB RAM 1 KB RAM 2 KB RAM 2 KB RAM 78F0481 78F0482 78F0483 78F0484 78F0485
LCD controller/driver
36 seg x 8 com 40 seg x 4 com
On-chip Oscillator
8 MHz (5%), 240kHz (10%)
Interrupt Controller
7 external / 22 internal
78K0 Core
200 ns @ 10MHz 1.8 to 5.5V -40 to +85C
Window Watchdog Timer Clock / Buzzer Output Real Time Clock Manchester Code Gener. Remote Control Receiver Subclock Oscillator
32.768 kHz
A/D-Converter
3 x 16-bit
Flash
16 24 32 48 60 KB KB KB KB KB Flash Flash Flash Flash Flash 768 B RAM 1 KB RAM 1 KB RAM 2 KB RAM 2 KB RAM 78F0491 78F0492 78F0493 78F0494 78F0495
LCD controller/driver
28 seg x 8 com 32 seg x 4 com
On-chip Oscillator
8 MHz (5%), 240kHz (10%)
78K0/Lx3 - Peripherals
LC3
Pin count Flash [KB] RAM [KBytes] Main Clock Clock Subclock Sources Watchdog 16-bit Memory Timers 8-bit Real Time Clock Watchdog 48 8/16/24/32 0.5/0.75/1/1
LD3
52
LF3
64
LF3
80
8/16/24/32 16/24/32/48/60 16/32/48/60 0.5/0.75/1/1 0.75/1/1/2/2 0.75/1/1/2/2 1 to 10 MHz extern and 8 MHz ( 5%) trimmable on-chip 32.768 kHz 240 kHz (10 %) on-chip 1 channel 6 channels 1 channel 1 channel 2/1 channel 24 x 4 / 20 x 8 6 ch 32x4/28x8 24x4/20x8 8 ch 3 ch 2/2 channel 40x4/36x8 32x4/28x8 8 ch 3 ch
2 channel Serial UART(LIN)/CSI Interface LCD controller/driver 22 x 4 / 18 x 8 10-bit SAR 6 ch A/D Converter16-bit Manchester Code Gener. Remote Control Receiver POC / LVI 30 Ports Interrupts On- chip debug interface 5 ext. / 18 int.
1 channel 1 channel Power-On-Reset: 1.59V0.15V, LVI: 2.35V to 4.30V 34 5 ext. / 20 int. 46 6 ext. / 20int. 1 channel
80
62 7 ext. / 22int.
V850E
High-End 32-bit
78K0 I Series
16 to 30 pins 8- and 16-bit Timers 10-bit A/D Converter Serial Interfaces
I2C Interface UART/Manchester
V850ES
Low-End 32-bit
78K0R
16-bit
78K0
78K0S
Low-End 8-bit
S AS
Devices
Cpmparators Op. Amps. / PGA Internal Oscillators Secure Watchdog POC / LVI Circuit Wide Operating Voltage Range On Chip Debug Interface
81
78K0/Ix2
V850E
High-End 32-bit
V850ES
Low-End 32-bit
78K0R
16-bit
78K0
78K0/Ix2
P
78K0S
Low-End 8-bit
S AS
Devices
82
78K/IB2
PD781223/4/5 8/16-Bit Timer Comparator
78K0/IA2
PD781211/3/4/5 8/16-Bit Timer Comparator 6 x 10-Bit A/D 4 - 16 KB Flash 384B - 768B RAM 20-pin SSOP
78K0/IY2
PD781201/3 8/16-Bit Timer Comparator 5 x 10-Bit A/D 4 - 16 KB Flash 384B - 768B RAM 16-pin SSOP
83
16K 8K 4K
768 512
768 512
Flash (Byte)
16-pin IY2
x
20-pin IA2
RAM size w/o Op. Amp. x
30-pin IB2
RAM size with Op. Amp.
84
Interrupt Controller
4 external / 10 internal
78K0 Core
100 ns @ 20MHz 2.7V to 5.5V -40 to +85C
A/D Converter
5 x 10-bit
Flash
4 KB Flash 8 KB Flash 16 KB Flash 384 B RAM 512 B RAM 512 B RAM 78F0750 78F0751 78F0752
Comparator
3-ch
On-chip Oscillator
4 MHz (2%), 30 kHz (10%)
Interrupt Controller
4 external / 10 internal
78K0 Core
100 ns @ 20MHz 2.7V to 5.5V -40 to +85C
A/D Converter
5 x 10-bit
Flash
4 KB Flash 8 KB Flash 16 KB Flash 384 B RAM 512 B RAM 512 B RAM 78F0740 78F0741 78F0742
Comparator
3-ch
On-chip Oscillator
4 MHz (2%), 30 kHz (10%)
Interrupt Controller
4 external / 10 internal
Serial Interface
78K0 Core
100 ns @ 20MHz 2.7V to 5.5V -40 to +85C
Serial Interface
1-ch, I2C
A/D Converter
6 x 10-bit
Flash
8 KB Flash 16 KB Flash 512 B RAM 512 B RAM 78F0753 78F0754
Comparator
3-ch
On-chip Oscillator
4 MHz (2%), 30 kHz (10%)
Interrupt Controller
4 external / 10 internal
Serial Interface
78K0 Core
100 ns @ 20MHz 2.7V to 5.5V -40 to +85C
Serial Interface
1-ch, I2C
A/D Converter
6 x 10-bit
Flash
8 KB Flash 16 KB Flash 512 B RAM 512 B RAM 78F0743 78F0744
Comparator
3-ch
On-chip Oscillator
4 MHz (2%), 30 kHz (10%)
Interrupt Controller
6 external / 10 internal
Serial Interface
78K0 Core
100 ns @ 20MHz 2.7V to 5.5V -40 to +85C
Serial Interface
1-ch I2C / 1-ch CSI
A/D Converter
9 x 10-bit
Flash
8 KB Flash 16 KB Flash 512 B RAM 512 B RAM 78F0755 78F0756
Comparator
3-ch
On-chip Oscillator
4 MHz (2%), 30 kHz (10%)
Interrupt Controller
6 external / 10 internal
Serial Interface
78K0 Core
100 ns @ 20MHz 2.7V to 5.5V -40 to +85C
Serial Interface
1-ch I2C / 1-ch CSI
A/D Converter
9 x 10-bit
Flash
8 KB Flash 16 KB Flash 512 B RAM 512 B RAM 78F0745 78F0746
Comparator
3-ch
On-chip Oscillator
4 MHz (2%), 30 kHz (10%)
78K0/Ix2 - Peripherals
IY2
Pin count Memory 16
IA2
20
IB2
30
Flash [KB] 4 / 8 / 16 8 / 16 8 / 16 RAM [Bytes] 384 / 512 / 512 512 / 512 512 / 512 Main Clock Up to 20 MHz and 4 MHz (2%) on-chip with PLL Clock Subclock Sources 30 kHz10 % on-chip Watchdog 2 channel 16-bit timer X 1 channel 16-bit timer0 Timers 2 channels 8-bit 1 channel Watchdog 1/1/- channel Serial UART/I2c/CSI 1/1/1 channel Interface POC / LVI Power-On-Reset: 1.61V0.1V, LVI: 2.35V to 4.30V 5 channels 6 channels 9 ch. with Op.Amp. 10-bit A/D-Converter Op. Amp./PGANote 1 Comparators Ports InterruptsNote 3 On- chip debug interface
Note 1: Only available on devices with OpAmp. (78F075x) 91
12
25 6 ext.
92
78K0R
Super low-power high performance 16-bit MCUs
93
V850E
High-End 32-bit
78K0R K Series
44 to 144 pins 16-bit Timers 10-bit A/D Converter 8-bit D/A Converter Serial Interfaces
V850ES
Low-End 32-bit
LIN Functionality
78K0R
16-bit
78K0
78K0S
Low-End 8-bit
S AS
Internal Oscillators Secure Watchdog Wide Operating Voltage Range POC / LVI Circuit RoHS Compliant Wide Package Variety
Devices
94
78K0R/Kx3
V850E
High-End 32-bit
V850ES
Low-End 32-bit
78K0R
16-bit
78K0
78K0R/Kx3
P
78K0S
Low-End 8-bit
S AS
Devices
95
78K0R/KJ3
PD78F1184A8A 16-Bit Timer Unit 16 x 10-Bit A/D 128-512 KB Flash 8-30 KB RAM 144-pin QFP
78K0R/KH3
PD78F1174A8A 16-Bit Timer Unit 16 x 10-Bit A/D 128-512 KB Flash 8-30 KB RAM 128-pin QFP
78K0R/KG3
PD78F1162A8A 16-Bit Timer Unit 16 x 10-Bit A/D 64-512 KB Flash 4-30 KB RAM 100-pin QFP
78K0R/KF3
PD78F1152A6A 16-Bit Timer Unit 8 x 10-Bit A/D 64-256 KB Flash 4-12 KB RAM 80-pin QFP
78K0R/KE3
PD781142A6A 16-Bit Timer Unit 8 x 10-Bit A/D 64-256 KB Flash 4-12 KB RAM 64-pin QFP
96
Flash (Byte)
128-pin KH3
144-pin KJ3
Interrupt Controller
13 external / 25 internal
Window Watchdog Timer Clock / Buzzer Output Real Time Clock Unit 16 x 16-bit Multiplier DMA Controller
2-ch
78K0R Core
50 ns @ 20MHz (13 MIPS) 1.8 to 5.5V -40 to +85C
Flash
64 KB Flash 96 KB Flash 128 KB Flash 196 KB Flash 256 KB Flash 4.0 6.0 8.0 10.0 12.0 KB KB KB KB KB RAM RAM RAM RAM RAM 78F1142A 78F1143A 78F1144A 78F1145A 78F1146A
8 x 10-bit
Subclock Oscillator
32.768 kHz
On-chip Oscillator
8 MHz (5%), 240 kHz (10%)
Up to 55 I/O lines
98
Interrupt Controller
13 external / 28 internal
Window Watchdog Timer Clock / Buzzer Output Real Time Clock Unit 16 x 16-bit Multiplier DMA Controller
2-ch
78K0R Core
50 ns @ 20MHz (13 MIPS) 1.8 to 5.5V -40 to +85C
Flash
64 KB Flash 96 KB Flash 128 KB Flash 196 KB Flash 256 KB Flash 4.0 6.0 8.0 10.0 12.0 KB KB KB KB KB RAM RAM RAM RAM RAM 78F1152A 78F1153A 78F1154A 78F1155A 78F1156A
8 x 10-bit
D/A Converter
2 x 8-bit
Subclock Oscillator
32.768 kHz
On-chip Oscillator
8 MHz (5%), 240 kHz (10%)
Up to 70 I/O lines
99
Interrupt Controller
13 external / 28 internal
Window Watchdog Timer Clock / Buzzer Output Real Time Clock Unit 16 x 16-bit Multiplier DMA Controller
2-ch
78K0R Core
50 ns @ 20MHz (13 MIPS) 1.8 to 5.5V -40 to +85C
Flash
64 KB Flash 96 KB Flash 128 KB Flash 196 KB Flash 256 KB Flash 384 KB Flash 512 KB Flash 4.0 6.0 8.0 10.0 12.0 24.0 30.0 KB KB KB KB KB KB KB RAM RAM RAM RAM RAM RAM RAM 78F1162A 78F1163A 78F1164A 78F1165A 78F1166A 78F1167A 78F1168A
16 x 10-bit
D/A Converter
2 x 8-bit
On-chip Oscillator
8 MHz (5%), 240 kHz (10%)
Up to 88 I/O lines
100
Interrupt Controller
13 external / 32 internal
Window Watchdog Timer Clock / Buzzer Output Real Time Clock Unit 16 x 16-bit Multiplier DMA Controller
2-ch
78K0R Core
50 ns @ 20MHz (13 MIPS) 1.8 to 5.5V -40 to +85C
Flash
128 192 256 384 512 KB KB KB KB KB Flash Flash Flash Flash Flash 8.0 10.0 12.0 24.0 30.0 KB KB KB KB KB RAM RAM RAM RAM RAM 78F1174A 78F1175A 78F1176A 78F1177A 78F1178A
16 x 10-bit
D/A Converter
2 x 8-bit
On-chip Oscillator
8 MHz (5%), 240 kHz (10%)
101
Interrupt Controller
13 external / 32 internal
Window Watchdog Timer Clock / Buzzer Output Real Time Clock Unit 16 x 16-bit Multiplier DMA Controller
2-ch
78K0R Core
50 ns @ 20MHz (13 MIPS) 1.8 to 5.5V -40 to +85C
Flash
128 192 256 384 512 KB KB KB KB KB Flash Flash Flash Flash Flash 8.0 10.0 12.0 24.0 30.0 KB KB KB KB KB RAM RAM RAM RAM RAM 78F1184A 78F1185A 78F1186A 78F1187A 78F1188A
16 x 10-bit
D/A Converter
2 x 8-bit
On-chip Oscillator
8 MHz (5%), 240 kHz (10%)
102
78K0R/Kx3 Peripherals
KE3
Pin count Memory Flash [KB] 64 64 / 96 / 128 / 192 / 256 4/6/8/10/12
KF3
80
KG3
100
KH3
128
KJ3
144
RAM [KB] Main Clock Clock Subclock Sources Watchdog 16-bit Timers RTC Watchdog
64 / 96 / 128 / 64/96/128/192/ 128 / 192 / 256 128 / 192 / 256 256/384/512 / 384 / 512 / 384 / 512 192 / 256 4/6/8/10/12/24/30 4/6/8/10/12 8/10/12/24/30 8/10/12/24/30 2 to 20 MHz extern and 8 MHz on-chip 32.768 kHz 240 kHz10 % on-chip 8 channels 12 channels 1 channel 1 channel 4/4/2 channel(s) 4/6/4 channel(s)
UART/CSI/I2C 3/2/1 channel(s) Serial Interface I2C POC / LVI 10-bit A/D-Converter 8-bit D/A-Converter Ports Interrupts DMA-Controller HW Multiplier
1 channel Power-On-Reset: 1.61V0.09V, Power-Down-Reset: 1.59V0.09V / LVI: 1.91V to 4.22V 8 channels 16 channels 51 2-channels 70 88 116 132
13 ext. / 25 int.
13 ext. / 32 int.
103
Introducing 78K0R/Kx3-L
Industry Leading Low Power 16-bit MCUs
104
V850E
High-End 32-bit
V850ES
Low-End 32-bit
Analog Functions
78K0R
16-bit
78K0
78K0S
Low-End 8-bit
S AS
Internal Oscillators Low power consumption Secure Watchdog POC / LVI Circuit Wide Package Variety RoHS Compliant
Devices
105
78K0R/Kx3-L
V850E
High-End 32-bit
V850ES
Low-End 32-bit
78K0R
16-bit
78K0
78K0R/Kx3-L
P
78K0S
Low-End 8-bit
S AS
Devices
106
Pin count
78K0R/Next
16-bit
78K0R/Kx3
16-bit 64-144pin
78K0R/Kx3-L
44-100pin
1.8V to 5.5V
78K0/Kx2
8-bit 30-80pin
78K0/Kx2-L
16-48pin
Analog function
78K0S/Kx1+
8-bit 10-30pin
107
78K0R/Kx3-L Concept
High Performance
16.9DMIPS @ 20MHz 0.94mW/MIPS (@ 3V)
1MHz 8MHz/20MHz
Selectable Clock
for low-power system for high-speed system (+/-1% accuracy)
12 channels 10bit A/D converter with 3us conversion x1 to x12 Programmable Gain Amplifier 2 Comparator channels
Rich Analog
1.8V Programming
108
78K0R/KE3-L
PD78F10079 16-Bit Timer Unit 12 x 10-Bit A/D 128-512 KB Flash 1.5-3 KB RAM 64-pin QFP/BGA
78K0R/KC3-L
PD78F1000...3 16-Bit Timer Unit 10/11 x 10-Bit A/D 16-64 KB Flash 1-3 KB RAM 44-pin/48-pin QFP
109
8K 6K 4K
Flash (Byte)
3K 2K 1.5K
3K 2K 1.5K
3K 2K 1.5K
4K
52-pin KD3-L
RAM size
64-pin KE3-L
80-pin KF3-L
100-pin KG3-L
Interrupt Controller
9 external / 25 internal
Window Watchdog Timer Clock / Buzzer Output Real Time Clock Unit 16 x 16-bit Multiplier 32 / 32-bit Divider DMA Controller
2-ch
78K0R Core
50 ns @ 20MHz (13 MIPS) 1.8 to 5.5V -40 to +85C
Subclock Oscillator
32.768 kHz
On-chip Oscillator
1/8/20 MHz, 30 kHz
Up to 37 I/O lines
111
Interrupt Controller
9 external / 25 internal
Window Watchdog Timer Clock / Buzzer Output Real Time Clock Unit 16 x 16-bit Multiplier 32 / 32-bit Divider DMA Controller
2-ch
78K0R Core
50 ns @ 20MHz (13 MIPS) 1.8 to 5.5V -40 to +85C
Subclock Oscillator
32.768 kHz
On-chip Oscillator
1/8/20 MHz, 30 kHz
Up to 41 I/O lines
112
Interrupt Controller
9 external / 25 internal
Window Watchdog Timer Clock / Buzzer Output Real Time Clock Unit 16 x 16-bit Multiplier 32 / 32-bit Divider DMA Controller
2-ch
78K0R Core
50 ns @ 20MHz (13 MIPS) 1.8 to 5.5V -40 to +85C
Subclock Oscillator
32.768 kHz
On-chip Oscillator
1/8/20 MHz, 30 kHz
Up to 45 I/O lines
113
Interrupt Controller
9 external / 25 internal
Window Watchdog Timer Clock / Buzzer Output Real Time Clock Unit 16 x 16-bit Multiplier 32 / 32-bit Divider DMA Controller
2-ch
78K0R Core
50 ns @ 20MHz (13 MIPS) 1.8 to 5.5V -40 to +85C
Subclock Oscillator
32.768 kHz
On-chip Oscillator
1/8/20 MHz, 30 kHz
Up to 55 I/O lines
114
78K0R/Kx3-L Peripherals
KC3-L
Pin count Memory 44 48
KD3-L
52
KE3-L
64
Flash [KB] 32 / 48 / 64 32 / 48 / 64 32 / 48 / 64 16 / 32 / 48 / 64 1.5 / 2 / 3 1.5 / 2 / 3 RAM [KB] 1.5 / 2 / 3 1 / 1.5 / 2 / 3 Main Clock 2 to 20 MHz extern and 1/8/20 MHz on-chip Clock Subclock 32.768 MHz Sources Watchdog 30 kHz10 % on-chip 16-bit 8 channels Timers RTC 1 channel Watchdog 1 channel 2C UART/CSI/I 3/2/1 channel(s) Serial 2C Interface I 1 channel Comparator 2 channels Analog Op. Amplifier 1 channel POC / LVI Power-On-Reset: 1.61V0.09V, Power-Down-Reset: 1.59V0.09V / LVI: 1.91V to 4.22V 10 channels 11 channels A/D-Converter 12 channels Ports Interrupts DMA-Controller 37 9 ext. / 24 int. 41 45 9 ext. /25 int. 2 channels 55
115
78K0R/Lx3
High performance, super-low power, enhanced analog
116
V850E
High-End 32-bit
V850ES
Low-End 32-bit
78K0R
16-bit
78K0
78K0S
Low-End 8-bit
S AS
Devices
80 to 128 pins 16-bit Timers 12-bit A/D Converter 12-bit D/A Converter LCD Controller/Driver Voltage boosting method, capacitor split method and resistance splitting method supported Six different display modes Up to 400 segments (50 x 8) Analog Functions Comparator Operational Amplifier Serial Interfaces LIN Functionality Internal Oscillators Secure Watchdog Wide Operating Voltage Range POC / LVI Circuit RoHS Compliant Wide Package Variety
117
78K0R/Lx3
V850E
High-End 32-bit
V850ES
Low-End 32-bit
78K0R
16-bit
78K0
78K0R/Lx3
P
78K0S
Low-End 8-bit
S AS
Devices
118
L Series - Roadmap
Wide LCD application range
78K0/Lx2: up to 40x4 seg., Booster, 128K Flash, 20MHz 78K0/Lx3: up to 36x8 seg., A/D-Conv., 60K Flash, 20MHz 78K0R/Lx3 up to 50x8 seg., 12-Bit A/D-Converter, 128K Flash, 20MHz
78K0R / LF3 (128pin) 78K0R / LG3 (100pin) 78K0R / LH3 (80pin) 78K0 / LG2 (100pin) 78K0 / LF2 (80pin) 78K0 / LE2 (64pin) 78K0 / LF3 (80pin) 78K0 / LE3 (64pin) 78K0 / LD3 (52pin) 78K0 / LC3 (48pin)
78K0R/LH3
PD78F1506..8 400 seg. (50x8) 12-Bit A/D 96-128 KB Flash 4-7 KB RAM 128-pin QFP
78K0R/LF3
PD78F1500..2 216 seg. (27x8) 12-Bit A/D 64-128 KB Flash 4-7 KB RAM 80-pin QFP
120
7K 6K 4K 80-pin LF3
x
7K 6K 4K
7K 6K 4K
Flash (Byte)
121
Interrupt Controller
8 external / 24 internal 2-ch/4-ch, up to 2 CSI (SPI), up to 2 simplified I2C, up to 3 UART
Window Watchdog Timer Clock / Buzzer Output Real Time Clock Unit 16 x 16-bit Multiplier 32 / 32-bit Divider DMA Controller
2-ch
78K0R Core
50 ns @ 20MHz (13 MIPS) 1.8 to 5.5V -40 to +85C
Flash
64 KB Flash 96 KB Flash 128 KB Flash 4.0 KB RAM 6.0 KB RAM 7.0 KB RAM 78F1500 78F1501 78F1502
D/A Converter
2 x 12-bit
Subclock Oscillator
32.768 kHz
Operational Amplifier
2-ch
On-chip Oscillator
8 MHz (1%), 30 kHz (10%)
Window Watchdog Timer Clock / Buzzer Output Real Time Clock Unit 16 x 16-bit Multiplier 32 / 32-bit Divider DMA Controller
2-ch
78K0R Core
50 ns @ 20MHz (13 MIPS) 1.8 to 5.5V -40 to +85C
Flash
64 KB Flash 96 KB Flash 128 KB Flash 4.0 KB RAM 6.0 KB RAM 7.0 KB RAM 78F1503 78F1504 78F1505
D/A Converter
2 x 12-bit
Subclock Oscillator
32.768 kHz
Operational Amplifier
3-ch
On-chip Oscillator
8 MHz (1%), 30 kHz (10%)
Window Watchdog Timer Clock / Buzzer Output Real Time Clock Unit 16 x 16-bit Multiplier 32 / 32-bit Divider DMA Controller
2-ch
78K0R Core
50 ns @ 20MHz (13 MIPS) 1.8 to 5.5V -40 to +85C
Flash
64 KB Flash 96 KB Flash 128 KB Flash 4.0 KB RAM 6.0 KB RAM 7.0 KB RAM 78F1506 78F1507 78F1508
D/A Converter
2 x 12-bit
Subclock Oscillator
32.768 kHz
Operational Amplifier
3-ch
On-chip Oscillator
8 MHz (1%), 30 kHz (10%)
78K0R/Lx3 Peripherals
LF3
Pin count Flash [KB] RAM [KB] Main Clock Clock Subclock Sources Watchdog 16-bit Timers RTC Watchdog Memory UART/CSI/I2C Serial Interface I2C LCD Controller / Driver POC / LVI 12-bit A/D-Converter 12-bit D/A-Converter Ports Interrupts DMA-Controller 80
LG3
100
LH3
128
64 / 96 / 128 64 / 96 / 128 64 / 96 / 128 4/6/7 4/6/7 4/6/7 2 to 20 MHz extern and 8 MHz on-chip 32.768 kHz 30 kHz10 % on-chip 6 channels 8 channels 1 channel 1 channel 3/2/2 channel(s) 4/3/2 channel(s) 4/4/2 channel(s) 1 channel 36 x 8 segments 47 x 8 segments 50 x 8 segments Power-On-Reset: 1.61V0.09V, Power-Down-Reset: 1.59V0.09V LVI: 1.91V to 4.22V 8 channels 12 channels 2-channels 51 67 83 8 ext. / 24 int. 12 ext. / 29 int. 2 channels 13 ext. / 29 int.
125
78K0R/Lx3 Performance
126
127
V850E
High-End 32-bit
78K0R I Series
30 to 64 pins 16-bit Timers
V850ES
Low-End 32-bit
78K0R
16-bit
Inverter Timer with Motor Control Functionality PWM Output Operation with a max. resolution of 40MHz Dead-Time Generation
Serial Interfaces
High - End 8-bit
Fail-Safe Application to set PWM output to high-impedance in case of overcurrent LIN Functionality
78K0
78K0S
Low-End 8-bit
S AS
Devices
Internal Oscillators Secure Watchdog POC / LVI Circuit RoHS Compliant Wide Package Variety
128
78K0R/Ix3
V850E
High-End 32-bit
V850ES
Low-End 32-bit
78K0R
16-bit
78K0
78K0R/Ix3
P
78K0S
Low-End 8-bit
S AS
Devices
129
78K0R/Ix3
130
78K0R/IE3
PD781233/4/5 16-Bit Timer Unit Comparator 12 x 10-Bit A/D 32-64 KB Flash 1.5-3 KB RAM 64-pin QFP
78K0R/ID3
PD781223/4/5 16-Bit Timer Unit Comparator 12 x 10-Bit A/D 32-64 KB Flash 1.5-3 KB RAM 52-pin QFP
78K0R/IC3
PD781211/3/4/5 16-Bit Timer Unit Comparator 8 - 11 x 10-Bit A/D 16-64 KB Flash 1-3 KB RAM
38-p. SSOP 44-/48-p. QFP
78K0R/IB3
PD781201/3 16-Bit Timer Unit Comparator 6 x 10-Bit A/D 16-32 KB Flash 1-1.5 KB RAM 30-pin SSOP
131
64K
3K 2K 1.5K
3K 2K 1.5K
Flash (Byte)
1.5K 1K 48-pin
52-pin ID3
64-pin IE3
132
Interrupt Controller
6 external / 31 internal
78K0R Core
Real Time Clock Unit 16 x 16-bit Multiplier 32 / 32-bit Divider DMA Controller
2-ch 50 ns @ 20MHz (13 MIPS) 2.7 to 5.5V -40 to +85C
Subclock Oscillator
32.768 kHz
On-chip Oscillator
8 MHz/40 MHz, 30 kHz
Up to 23 I/O lines
133
38-Pin MC Package
MC (7.62 (300 mil), 0.65 mm pin pitch)
Interrupt Controller
8 external / 33 internal
78K0R Core
Real Time Clock Unit 16 x 16-bit Multiplier 32 / 32-bit Divider DMA Controller
2-ch 50 ns @ 20MHz (13 MIPS) 2.7 to 5.5V -40 to +85C
Subclock Oscillator
32.768 kHz
On-chip Oscillator
8 MHz/40 MHz, 30 kHz
Up to 31 I/O lines
134
Interrupt Controller
8 external / 33 internal
78K0R Core
Real Time Clock Unit 16 x 16-bit Multiplier 32 / 32-bit Divider DMA Controller
2-ch 50 ns @ 20MHz (13 MIPS) 2.7 to 5.5V -40 to +85C
Subclock Oscillator
32.768 kHz
On-chip Oscillator
8 MHz/40 MHz, 30 kHz
Up to 37 I/O lines
135
16-bit Timer Array Unit Window Watchdog Timer Clock / Buzzer Output Real Time Clock Unit 16 x 16-bit Multiplier 32 / 32-bit Divider DMA Controller
2-ch
Interrupt Controller
8 external / 34 internal
78K0R Core
50 ns @ 20MHz (13 MIPS) 2.7 to 5.5V -40 to +85C
Subclock Oscillator
32.768 kHz
On-chip Oscillator
8 MHz/40 MHz, 30 kHz
Up to 41 I/O lines
136
16-bit Timer Array Unit Window Watchdog Timer Clock / Buzzer Output Real Time Clock Unit 16 x 16-bit Multiplier 32 / 32-bit Divider DMA Controller
2-ch
Interrupt Controller
8 external / 34 internal
78K0R Core
50 ns @ 20MHz (13 MIPS) 2.7 to 5.5V -40 to +85C
Subclock Oscillator
32.768 kHz
On-chip Oscillator
8 MHz/40 MHz, 30 kHz
Up to 47 I/O lines
137
16-bit Timer Array Unit Window Watchdog Timer Clock / Buzzer Output Real Time Clock Unit 16 x 16-bit Multiplier 32 / 32-bit Divider DMA Controller
2-ch
Interrupt Controller
8 external / 34 internal
78K0R Core
50 ns @ 20MHz (13 MIPS) 2.7 to 5.5V -40 to +85C
Subclock Oscillator
32.768 kHz
On-chip Oscillator
8 MHz/40 MHz, 30 kHz
Up to 55 I/O lines
138
78K0R/Ix3 Peripherals
IB3
Pin count Memory 30
IC3
38 / 44 / 48
ID3
52
IE3
64
Flash [KB] 16 / 32 / 48 / 64 32 / 48 / 64 32 / 48 / 64 16 / 32 1 / 1.5 / 2 / 3 1.5 / 2 / 3 RAM [KB] 1.5 / 2 / 3 1 / 1.5 Main Clock 2 to 20 MHz extern, 8/40 MHz on-chip (CPU max. 20 MHz) Clock Subclock 32.768 kHz Sources Watchdog 30 kHz10 % on-chip 16-bit 12 channels (incl. Motor Control Feat.: 6-phase PWM with Dead Time, A/D Timer Trigger) Timers RTC 1 channel Watchdog 1 channel UART/CSI/I2C 2/1/1 channel(s) 2/1-3/1 channel(s) 2/3/1 channel(s) Serial Interface I2C 1 channel 1 ch (48-pin) Comparator 2 channels Analog Op. Amplifier 1 channel POC / LVI Power-On-Reset: 1.61V0.09V, Power-Down-Reset: 1.59V0.09V / LVI: 1.91V to 4.22V 6 channels 8-11 channels 11 channels A/D-Converter 12 channels Ports Interrupts DMA-Controller 23 6 ext. / 31 int. 31 / 37 / 41 8 ext. / 33-34 int. 2 channels 47 8 ext. / 34 int. 55
139
140
Linear addressing
141
Up to 7 KB on-chip RAM
Short address area 256 byte Less opcode Fast memory access
Flash memory segmented in 1KByte blocks 32 x 8-Bit register area Code execution possible in Internal Expansion RAM
142
143
Linear addressing
144
Processor Registers
Program Counter
16-bit / 20-bit register that holds the address information of the next instruction to be executed PC is automatically incremented according to the number of bytes of the instruction to be fetched Reset signal generation sets the reset vector table values at addresses 0000H and 0001H to the program counter
78K0S, 78K0:
15
78K0R:
145
Processor Registers
Program Status Word
8-bit register consisting of various flags set/reset by instruction execution Program status word contents are stored in the stack area upon interrupt request generation or PUSH PSW instruction execution and are restored upon execution of the RETB, RETI and POP PSW instructions
Interrupt enable flag Zero Flag Register bank select flags Interrupt service priority flag
AC: CY:
146
Processor Registers
General Purpose Registers (78K0, 78K0R)
8 x 8-bit or 4 x 16-bit register Flexible use 4 register banks (For 78K0S is only register bank 0 available.) switch by software no push / pop flexible use by interrupts
F
147
Processor Registers
Special Function Registers
Registers to control the peripheral hardware, e.g. ports, timers, etc. Delivering status information of the peripheral hardware Located in the address area 0xFFF00 to 0xFFFFF (K0R) Located in the address area 0xFF00 to 0xFFFF (K0 and K0S)
148
Processor Registers
IMS Register (78K0)
Used to adapt the internal Flash ROM and high-speed RAM Adaptation of the OCD device to the corresponding mass product
149
Mirror Area
Purpose
(78K0R only)
Mirror area allows a near access to constant data located in ROM (For devices with >64KB Flash memory only)
150
Mirror Area
(78K0R only)
Reading data from F0000H to FFFFFH can be done by an instruction without using the ES registers as an operand E.g. Data move instruction MOV A, !addr16 instead of MOV ES, #byte MOV A, ES:!addr16
Instruction Group 8-bit data transfer Mnemonic Operands Bytes Clocks Note 1 MOV A, !addr16 ES, #byte A, ES:!addr16 Notes 3 2 4 1 1 2 Note 2 4 5 A ES A (addr16) byte (ES, addr16) Operation
1. When the internal RAM area, SFR area, or extended SFR area is accessed, or for an instruction with no data access. 2. When the program memory area is accessed.
151
Mirror Area
(78K0R only)
PMC register is written in CSTARTUP routine according to the settings in the Project>Options of the IAR Embedded Workbench
152
Pipeline Structure
Features
(78K0R only)
Three-stage pipeline control is used to enable single-cycle execution of almost all instructions Instructions are executed in three stages: instruction fetch (IF), instruction decode (ID), and memory access (MEM)
t = 1 clock
typical instructions
153
Pipeline Structure
(78K0R only)
154
Pipeline Structure
(78K0R only)
Instruction queue becomes empty because reading from RAM takes more time. CPU waits until the data is set to the instruction queue.
CPU is set to wait mode during data access from external memory.
155
RAM 12 KB
156
Internal Structure
8-Bit (78K0) / 16-bit (78K0R) CPU core
Operates at up to 20MHz [@ VDD = 4.0V-5.5V (78K0), @ VDD = 2.7V-5.5V (78K0R)] Minimum instruction cycle time 100ns (78K0) , 50ns (78K0R)
2.5V
CPU Flash RAM Peripherals LVI
Oscillation circuit
Port
VSS
157
Clock Generator
Up to four different oscillators
Main system clock oscillator up to 10 MHz (78K0S, 78K0/Kx2-L) 20 MHz (others 78K0, 78K0R) Internal high speed on-chip oscillator (typ. 1/4/8/20 MHz) Internal low speed on-chip oscillator (typ. 30/240 kHz) Subsystem clock oscillator (32.768 kHz) (78K0, 78K0R)
CPU core operation on all clocks possible (except 240 kHz on-chip osc.)
Speed can be selected by software Reduces power consumption Adaptation to VDD level Best speed / IDD relation
158
Clock Generator
Selector
CPU
2 - 10 MHz
Selector
Peripherals
Watchdog
Clock Generator
Possible chip operation
Main system clock and high-speed on-chip oscillator Operation mode Different speed selections by software are possible
Halt mode Oscillator is operating, CPU core is stopped, peripherals are active Halt mode release possible with interrupts, reset, by subsystem clock supplied peripherals or watchdog timer Stop mode Oscillator is stopped, CPU core is stopped, peripherals are not active Stop mode release possible with external interrupts, reset, by subsystem clock supplied peripherals or watchdog timer
Low-speed on-chip oscillator Operation mode Only the watchdog timer can operate with the low-speed on-chip oscillator For 78K0S and 78K0 also Timer H1 can operate with the low-speed onchip oscillator
160
Clock Generator
Possible chip operation
Subsystem clock Operation mode CPU core and peripherals are using subsystem clock
Halt mode CPU core is stopped, peripherals are using subsystem clock Halt mode release possible with external interrupts, reset, peripherals supplied by subsystem clock or watchdog timer
161
162
Clock Generator
Start-up behaviour of the oscillators (78K0, 78K0R)
The CPU core is operating from here onwards The switch over of the CPU clock must be done by software, if necessary
Stabilisation time
163
(78K0)
Osc > 10 MHz Setup the oscillators External quartz / resonator on X1,X2 No subclock XT1, XT2 used as ports Start oscillator
High speed mode no internal prescaler is used Provide ext. clock to peripherals and core Wait for internal switch form internal osc. to external osc.
164
(78K0R)
Set up the operation mode of the X1/P121, X2/EXCLK/P122, XT1/P123, and XT2/P124 pins Select the required oscillator stabilization time Select the CPU and the peripheral hardware clock and the prescaler. Enable X1 input clock operation Set operation speed mode control, if fX1 > 10MHz
while (OSTC < 0xFF) { __no_operation(); } do { MCM0 = 1; } while (MCS != 1); // // HIOSTOP = 1; XTSTOP = 1; PER0 = 0xFF; PER1 = 0x01; }
// Switch CPU clock to fX1 input clock and // check, if CPU is operating on fX1 input clock // If not, switch CPU clock again to fX1 input clock and check again
// Switch off the high-speed on-chip oscillator and // the subclock if not needed // Switch on the peripheral clock supply
165
Clock Generator
Definition of instruction cycle time
One instruction clock cycle (TCYCL) is one cycle of the CPU clock (fCPU) selected by the processor clock control register (PCC). Example (for 78K0):
fX = 20MHz, PCC = 0x00 => fCPU = 20MHz => TCYCL = 1/ fCPU = 50ns (78K0)
e.g.
MOV r,#byte : TINST = 4 clocks * TCYCL => TINST = 4 * 50ns = 200ns (78K0)
166
Clock Generator
Definition of instruction cycle time
One instruction clock cycle (TCYCL) is one cycle of the CPU clock (fCPU) selected by the processor clock control register (CKC). Example (for 78K0R):
fX = 20MHz, CKC = 0x18 => fCPU = 20MHz => TCYCL = 1/ fCPU = 50ns
e.g.
Clock Generator
(78K0)
168
Clock Generator
(78K0R)
169
Clock Generator
Low current consumption (78K0/Kx2)
78F0533 current consumption 8MHz intern
100 PCC=0 RUN PCC=0 per. on RUN PCC=4 HALT 1 Idd / mA main stopped LSR and TMH1 RUN fxt/2 CPU RUN 0.1 CPU with fxt/2 into HALT mode 0.01
10
Note: The above measured IDD data are only characteristic data and cannot be guaranteed.
170
Clock Generator
Low current consumption (78K0/Kx2)
Current Consumption 78F0533 20MHz
10.0
1.0 PCC = 0 RUN IDD / mA PCC=0/ per. ON/ RUN 0.1 PCC=4 / HALT Main stopped/ LSR & TMH1 RUN CPU RUN with fxt/2 into HALT mode fxt/2 CPU RUN 0.0
0.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0 5.5 6.0 Vdd / V
Note: The above measured IDD data are only characteristic data and cannot be guaranteed.
171
Clock Generator
Low current consumption (78K0R/Kx3)
Note: The above measured IDD data are only characteristic data and cannot be guaranteed.
172
Clock Generator
Low current consumption (78K0R/Kx3)
5 4 3 2 1 0 0
3 VDD(V)
Note: The above measured IDD data are only characteristic data and cannot be guaranteed.
173
Clock Generator
Low current consumption
174
Ports
Pin I/O Circuit Types
CMOS I port (2) Schmitt-trigger behavior CMOS O ports (3-C) Output only CMOS I/O port (5-AG) Switchable between in- and output Internal pull-up settable by software CMOS I/O port (5-AN) Switchable between in- and output Internal pull-up settable by software Switchable CMOS or TTL input characteristic CMOS I/O port (8-R) Switchable between in- and output Internal pull-up settable by software Schmitt-trigger behavior CMOS I/O port (11-G) Switchable between A/D converter, logical input and output
175
Ports
Pin I/O Circuit Types
CMOS I port (12D) Switchable between A/D converter, logical input and output CMOS I/O port (13-P) Switchable between input and N-ch open-drain output CMOS I/O port (13-R) Schmitt-trigger behaviour Switchable between in- and Nch open-drain output CMOS I/O port (37-A) Switchable between in- and output Selectable oscillator input function CMOS I/O port (39) Operation mode input Programming Mode or Normal operation mode selectable
176
Ports
Example for shared function
Alternate function could be either wired-OR or wired-AND No port function control registers
177
Power-On-Clear Circuit
Functions
Generates internal reset signal at power on Compares supply voltage VDD and detection voltage VPOC = 1.59 0.09VNote (2.1V @ K0S) and generates internal reset signal when VDD < VPOC CPU can be also released by LVI, selectable by option byte
Block Diagram
Power-On-Clear Circuit
Operation
(78K0)
Reset not used Option byte: POCMODE = 0 Advantage: Can be used in 1.8 V applications!
(3) Start CPU operation Assumed, that VDD exceeds 1.8V after 3.6ms
.5 .0 in m
m V/
t 3.6ms
179
Power-On-Clear Circuit
Operation
(78K0)
Reset used or unused Option byte: POCMODE = 1 Can be used in applications with VDD 2.7V
t 4.14ms
180
Power-On-Clear Circuit
Operation
(78K0R)
Reset not used Option byte: LVIOFF = 1 Advantage: Can be used in 1.8V applications!
(1) Internal reset release
.5 .0 in m
m V/
t 3.6ms
181
Power-On-Clear Circuit
Operation
(78K0R)
Reset used Option byte: LVIOFF = 1 Advantage: Can be used in 1.8V applications!
(1) Internal reset release
.5 .0 in m
m V/
t 3.6ms 1.9ms
Reset t
182
Power-On-Clear Circuit
Operation
(78K0R)
Reset used or unused Option byte: LVIOFF = 0 Advantage: Can be used in applications with VDD 2.07V
(1) Internal reset release
t 4.14ms
183
Low-Voltage Indicator
Functions
Compares supply voltage VDD and detection voltage VLVI, and generates an internal interrupt signal or internal reset signal when VDD < VLVI 16 internal detection levels of supply voltage or 1 external level (1.21V) can be selected by software Changeable between interrupt or reset function Operable in STOP mode
Block Diagram
184
Low-Voltage Indicator
Detection voltage levels (for 78K0S)
185
Low-Voltage Indicator
Detection voltage levels (for 78K0R)
(78K0S, 78K0)
Interval Timer External event counter Square-wave output PPG output Pulse width measurement Timer output
Features
Selectable clock sources 1 shared timer input/output port 1 timer input port 16-bit capture/compare
187
(78K0S, 78K0)
188
(78K0S, 78K0)
78K0/Kx CR000
INTTM000
TM00
INTTM010
CR010
input signal
189
(78K0S, 78K0)
Interval timer Interrupt request generation at preset time interval External event counter Counting of pulses of an external input signal Square wave output Output of square wave signal with any selected frequency PWM output PWM output with 8-bit resolution is possible Periode defined by overflow
190
(78K0S, 78K0)
191
(78K0S, 78K0)
N = 01H to FFh TCE50 = 1 Note The initial value of TO50 is low at output enable (TOE50=1) Caution Do not set CR50 to 00H in PWM output mode. Otherwise, PWM may not be output normally.
192
(78K0S, 78K0)
193
(78K0S, 78K0)
194
(78K0S, 78K0)
Countclock CMP0 value CMP1 value1 CMP1 value2 0 CMP1 value T0O (TOLEV0=0) T0O (TOLEV0=1) value 1 value 2
t
195
(78K0R)
Eight 16-bit timers per Timer Array Unit Each 16-bit Timer is called a channel Each 16-bit Timer can be used as an independent timer 16-bit Timers can be used in combination with a second timer
Operation Modes
Independent Operation Mode Interval timer Square wave output External event counter Divider function Input pulse interval measurement Input signal high-/low level width measurement
196
(78K0R)
Combined Operation Mode PWM output One-shot pulse output Multiple PWM output LIN-bus Supporting Function (channel 7 only) used for Detection of wakeup signal Detection of sync break field Measurement of pulse width of sync field
197
(78K0R)
198
(78K0R)
199
(78K0R)
200
(78K0R)
(2) Status Timer operation enabled (4) Timer counts down to 0000H
(3) Load content of Timer Data Register TDR0 to Timer Count Register TCR0
(5) When Timer Count Register TCR0 reaches 0000H, an interrupt will be generated and the timer output toggles. 201
(78K0R)
TDR00 = 0x7FFF;
TS0 }
|= 0x0001;
TAU initialization for interval timer operation Channel 0 is used. Power on Timer Array Unit Select clock frequencies CK00 and CK01 CK00 = fCLK/2 and CK01 = fCLK/2 CK00 is timer input clock Software trigger is used to start count operation Interval timer mode is selected Select interval time tINT = (0x7FFF + 1) * 1 / (fCLK / 2) tINT = (0x7FFF + 1) * 1 / (20MHz / 2) tINT = 3.2768 ms Start timer count operation
202
(78K0R)
Master channel operates in interval timer mode and counts the period Slave channel operates in one-count mode and outputs the PWM waveform The pulse period and the duty factor can be calculated as follows:
Pulse period = Period of count clock x ( Set value of TDR0nMASTER + 1 ) Duty Factor = [ Set value of TDR0mSLAVE / ( Set value of TDR0nMASTER + 1 )] x 100% 100% output = Set value of TDR0mSLAVE = 0000H 100% output = Set value of TDR0mSLAVE {Set value of TDR0nMASTER + 1}
203
(78K0R)
204
(78K0R)
205
(78K0R/Ix3)
12 x 16-bit timers Each 16-bit Timer is called a channel Each 16-bit Timer can be used as an independent timer 16-bit Timers can be used in combination with one or more timers
Operation Modes
Independent Operation Mode Interval timer Square wave output External event counter Divider function Input pulse interval measurement Input signal high-/low level width measurement
206
(78K0R/Ix3)
Combined Operation Mode PWM output One-shot pulse output Multiple PWM output PWM output with dead-time generation 6-phase PWM output generation (Triangle) A/D Trigger on triangle wave LIN-bus Supporting Function (channel 7 only) used for Detection of wakeup signal Detection of sync break field Measurement of pulse width of sync field
207
(78K0R/Ix3)
208
(78K0R/Ix3)
209
Complementary PWM output function 6-phase PWM output function (triangular wave modulation, upper arm, lower arm, six outputs) A waveform of an arbitrary period, the duty, and the dead time can be generated by using channel 7 of the TAUS in combination.
Half-bridge output function (two outputs 2) A waveform of an arbitrary period, the duty, and the dead time can be generated by using channel 4 of the TAUS in combination. Full-bridge output function (four outputs) This function uses the above-mentioned half-bridge output.
210
Non-complementary PWM output function 6-phase PWM output function (sawtooth wave modulation or triangular wave modulation, six outputs) A waveform of an arbitrary frequency, the duty, and one without dead time can be generated by using channel 7 of the TAUS in combination. Interrupt-thinning function The interrupts of channels 0 and 4 that are used for setting the period can be thinned.
211
Arbitrary dead time setting function A/D converter start timing setting function (Four types of timings can be generated.) The A/D converter start timing can be output by using channels 8 and 9 of the TAUS. 0% and 100% output can be performed both with the complementary PWM output function and noncomplementary Forward and reverse settings of the timer output can be performed for each pin
212
Real-time output function (PWM modulation can be performed with this function) Forcible output stop function The outputs of TO02 to TO07 can be set to high impedance during detection of the valid edge by the internal comparator or by an external pin input (TMOFF0).
213
180 degrees sinusoidal wave generation 0%, 100% duty for Space Vector Modulation 120 degrees sinusoidal wave generation Complementary PWM for brake torque generation PWM forward/backward chopping with any timing 6-step block control wave generation BLDC motors
PMAC
AC Induction
SR
78K0R/Ix3
BLDC
Universal
DC
214
Comparators/Operational Amplifiers
Comparator Operation
The output signal of an operational amplifier can be used as the positive-side input signal of a comparator An interrupt request is generated when an overvoltage is detected (INTCMP0 and INTCMP1) The output signal of a comparator is connected to the timer array unit and sets the timer output pin (TOn) to a Hi-Z state
215
Comparators/Operational Amplifiers
Operational Amplifiers Operation
An operational amplifier amplifies and outputs an analog voltage that is input. Eight amplification factors can be selected The output signal of an operational amplifier can be used as the positive-side input signal of a comparator. (In this case, the output signal is simultaneously input to both channels of comparators 0 and 1) The output signal of an operational amplifier can be selected as the analog input of an A/D converter
216
Comparators/Operational Amplifiers
Over-voltage Detection Function
The timer output pin (TOn) can be set to a Hi-Z state while an overcurrent flows by using an operational amplifier and a comparator. A function to set the pin to a Hi-Z state can be selected from the following two functions 2-stage over-current detection function Reference voltage of comparator 0 < input signal voltage < reference voltage of comparator 1 Sets the TOn pin to a Hi-Z state Reference voltage of comparator 1 < input signal voltage Sets the TOn pin to a Hi-Z state.
Over-current/electromotive force detection function Input signal voltage (electromotive force) < comparator 0, or comparator 1 < input signal voltage overcurrent) Sets the TOn pin to a Hi-Z state.
217
Comparators/Operational Amplifiers
Block Diagram of Operational Amplifier (for 78K0/Kx2-L)
Two Operational Amplifier channels One Prog. Gain amplifier channel
218
Comparators/Operational Amplifiers
Block Diagram of Comparator and Programmable Gain Amplifier (for 78K0R)
219
Real-Time Counter
Operation Modes
Counting year, month, week, day, hour, minute and second Counts up to 99 years Constant period interrupt function Period: 1 month to 0.5 seconds Alarm interrupt function Alarm: week, hour, minute
Interval interrupt function Pin output function 1Hz 512 Hz 16.384 kHz 32kHz
220
Real-Time Counter
Block Diagram
221
Real-Time Counter
Basic operation
Sub-count Register (RSUBC) Counts reference time of 1 second 0000H7FFFH corresponding to 1 second @ 32.768 kHz If RSUBC reaches 8000H, the second count register (SEC) will be incremented by 1
Watch Error Correction Register (SUBCUD) Correction of the count value of the Sub-count register (RSUBC) Improves the accuracy of the real-time counter due to inaccuracy of the subclock
222
Real-Time Counter
Example for Watch Error Correction
( 1 / fSUB ) x 8000H = ( 1 / 32.768 kHz ) x 32768 clks = 1 sec ( 1 / fSUB ) x 8000H = ( 1 / 32.780 kHz ) x 32768 clks = 0.9996 sec clocks = ( fCLK / 32.768 kHz 1 ) x 32768 clks = 12 clks clocks = [(F5...F0) - 1] * 2 (F5...F0) = clocks / 2 + 1 = 12 / 2 + 1 = 7 => SUBCUD = 10000111b = 87H ( 1 / 32.780 kHz ) x ( 32768 + 12) clks = 1 sec
223
Watchdog Timer
Function
(78K0S)
Writing ACH to WDTE clears the watchdog timer and starts counting again
Option byte
224
Watchdog Timer
Block Diagram
(78K0S)
225
Watchdog Timer
Operation
(78K0S)
Cannot be stopped
Cannot be changed
Cannot be changed
The watchdog timer triggers a hard reset, The watchdog timer triggers a hard reset,
if the watchdog timer counter overflows if the watchdog timer counter overflows If WDTM register is written a second time If WDTM register is written a second time if a wrong value is written into WDTE if a wrong value is written into WDTE if the WDTE register is accessed by a 1-bit manipulation instruction if the WDTE register is accessed by a 1-bit manipulation instruction
226
Watchdog Timer
Operation
(78K0S)
Cannot be stopped
Cannot be changed
Cannot be changed
The watchdog timer triggers a hard reset, The watchdog timer triggers a hard reset,
if the watchdog timer counter overflows if the watchdog timer counter overflows If WDTM register is written a second time If WDTM register is written a second time if a wrong value is written into WDTE if a wrong value is written into WDTE if the WDTE register is accessed by a 1-bit manipulation instruction if the WDTE register is accessed by a 1-bit manipulation instruction
227
Watchdog timer interval interrupt (K0R only) Enable/Disable Window Watchdog Timer operation Select overflow time Select window size Window Watchdog timer operation in HALT/STOP mode
Writing ACH to WDTE clears the watchdog timer and starts counting again
228
229
(0%) open *
RESET!
25% 50%
closed
75% 100%
The watchdog timer triggers a hard reset, The watchdog timer triggers a hard reset,
if the watchdog timer counter overflows if the watchdog timer counter overflows if, the magic word is written into WDTE register when window is closed if, the magic word is written into WDTE register when window is closed if a wrong value is written into WDTE if a wrong value is written into WDTE if the WDTE register is accessed by a 1-bit manipulation instruction if the WDTE register is accessed by a 1-bit manipulation instruction
230
Option Byte
(78K0S)
Address 0080H User option byte area 0080H 0080H: Selection of system clock source Enable/Disable internal on-chip low-speed oscillator can be stopped by software Control of RESET pin Oscillation stabilization time on power application or after reset release
231
Option Byte
(78K0)
Address range 0080H to 0084H User option byte area 0080H to 0083H 0080H: Enable/Disable watchdog timer operation Enable/Disable watchdog timer operation in HALT/STOP mode Interval time setting Select window time Enable/Disable internal on-chip low-speed oscillator can be stopped by software 0081H: Enable/Disable LVI operation at start-up 0082H: Reserved area, set to 0x00 0083H: Reserved area, set to 0x00
On-chip debug option byte 0084H 0084H: Enable/Disable on-chip debug function Flash memory handling in case of failure in on-chip debug security ID authentication-
232
Force the compiler to set this constant even if not used from code
233
Option Byte
(78K0R/Kx3)
234
Option Byte
(78K0R/Kx3)
#pragma constseg = OPTBYTE __root const char option[4] = { 0x10, // // // // // // // // // // // // // // // // // // // // 00010000 |||||||| |||||||+-- Watchdog timer operation stopped ||||||| in HALT/STOP mode ||||+++--- Watchdog timer overflow time is |||| 2^10 / fIL = 3.88ms @ fIL = 264kHz(Max.) |||+------ Watchdog timer operation disabled |++------- 25% window open period +--------- Interval interrupt is not used 11111111 | +-- LVI off !!!!! ALWAYS SET TO 0xFF !!!!! 10000101 | | | | | +-- Does not erase flash memory | | in case of wrong security ID | | authentication | +---- Must be set to 1 +--------- Enable on-chip debug operation
0xFF,
0xFF, 0x85
235
A/D Converter
Operating Mode
10-bit A/D Conversion Channel selection from 4 to 16 channels Each time an A/D conversion operation ends, an interrupt request (INTAD) is generated The minimum conversion time becomes 4s (78K0S) , 6.6us (78K0, 78K0R) Unused A/D Inputs can be set as I/O ports
Note: Current consumption will increase about 1 mA, when A/D conversion operation is enabled.
236
A/D Converter
Block Diagram
(78K0, 78K0R)
237
A/D Converter
void ADInit(void) { PER0_bit.no5 = 1; ADCE = 1; ADPC = 0x0F; PM15_bit.no7 = 1; ADM &= 0x01; ADM |= 0x10; ADS = 0x0F; } void ADStart(void) { ADPR0 = 1; ADPR1 = 1; ADIF = 0; ADMK = 0; ADCS = 1; } // #pragma bank = 0 (optional) #pragma vector = INTAD_vect __interrupt void IsrAD(void) { ADResult = ADCR;
(78K0R)
// Switch on A/D Converter input clock // Start A/D Converter comparator operation (ADCE-bit of ADM register) // P15_bit.no7 is used as analog input // P15_bit.no7 is set to input // ADCE-bit of ADM register (ADM_bit.no0)is already set and must remain set // A/D Conversion time is 6.6s@AVREF0=4.0...5.5V // P15_bit.no7 is used as analog input = ANI15
// Select A/D Converter interrupt default priority // Clear A/D Converter interrupt request flag // Unmask A/D Converter interrupt // Start A/D Converter operation (ADCS-bit of ADM register)
// Read conversion result // Store conversion result as value ADResult = (ADResult >> 6) & 0x03FF;
} 238
D/A Converter
Operating Mode
(78K0R)
8-bit D/A Conversion 2 channels can be selected R-2R ladder method The minimum conversion time becomes 3 s Unused A/D Inputs can be set as I/O ports
Normal Mode Write operation to the DACSn register triggers the D/A Conversion Previous D/A conversion result is held until the next D/A conversion is performed Real-time Output Mode Interrupt request signals (INTTM04 and INTTM05) triggers the D/A Conversion Value set in the DACSn register is output every time the INTTM04 and INTTM05 signals are generated
239
D/A Converter
Block Diagram
(78K0R)
240
(78K0R/Lx3 only)
AVDD0 AVDD1 AVDD0 AVDD0 AVDD1 Analog In ADREFP :Control by register
ANI9-10 AVREFM/ANI15 AVDD0 OPAMP0 AMP0-/ANI0 AMP0O/ANI1 AMP0+/ANI2 AVSS0 AVDD0 OPAMP1 AMP1-/ANI3 AMP1O/ANI4 AMP1+/ANI5 AVSS0 AVDD0 OPAMP2 AMP2-/ANI6 AMP2O/ANI7 AMP2+/ANI8 AVSS0
12bit ADC
AMP0
AVSS AVREFM
+ + +
AMP1
AVDD1
12bit DAC
AMP
DAREFP
ANO0
AVDD0
AVSS1 AVDD1
AMP2
(2.0V) or (2.5V)
12bit DAC
AMP
AVDD1
Voltage Reference
AVSS0 AVSS0, AVSS1
DAREFP
ANO1
AVSS
Multiplier
(78K0S)
Operation Mode
Multiplication of 8 bits 8 bits = 16 bits Multiplication result is available after 16 CPU clocks
242
Multiplier
(78K0)
Operating Modes
Available on all 78K0/Kx2, Lx2 with >= 48K and for all 78K0/Fx2 products Multiplication of 16 bits 16 bits = 32 bits Division of 32 bits / 16 bits = 32 bits and 16-bit remainder Multiplication result is available after 16 CPU clocks Division result is available after 32 CPU clocks An interrupt can be generated Remark: 8 x 8 bit Multiplication and 16 / 8 bit Division are part of the instruction set
243
Multiplier/Divider
Block Diagram
(78K0)
244
Multiplier
(78K0R)
Operation Mode
Multiplication of 16 bits 16 bits = 32 bits Multiplication result is available after 1 CPU clock
Remark: 8 x 8 bit = 16 bit Multiplication is part of the instruction set (1 CPU clock)
MOVW MOVW NOP MOVW PUSH MOVW MULA, #1234H MULB, #5678H AX, MULOH AX AX, MULOL ; 1 clock wait. Doesnt have to be NOP ; The result obtained on upper side ; The result obtained on lower side
245
Multiplier
(78K0R)
For use of the Multiplier instead of library software multiplication functions add the following lines to the *.XCL file:
-eNewFktName=LibFktName e.g. eHW_I_MUL_L02=?I_MUL_L02 -eHW_L_MUL_L03=?L_MUL_L03
Add the lines above to the extra options of the linker options:
Select the project folder icon projectname - Debug in the workspace window and choose Project>Options. Select Linker in the Category list to display the XLINK option pages Then select the Extra Options.
246
Multiplier
(78K0R)
Block Diagram
247
Multiplier/Divider
Operation Mode
Multiplication of 16 bits 16 bits = 32 bits Multiplication result is available after 1 CPU clock
Remark: 8 x 8 bit = 16 bit Multiplication is part of the instruction set (1 CPU clock)
Division of 32 bits / 32 bits = 32 bits, 32 bits remainder Division result is available after 16 CPU clocks
248
Multiplier/Divider
Block Diagram
249
(78K0)
Operation stop mode This mode is used when serial transfer is not performed Reduces power consumption 3-wire serial I/O mode (MSB/LSB first selectable) 8-bit data transfer mode using three lines: a serial clock line (SCK1n), a serial output line (SO1n), and a serial input line (SI1n) The first bit of the serial transfer 8-bit data can be selected as the MSB or LSB The serial clock and the data phase/polarity can be selected The 3-wire serial I/O mode is useful for connection to devices such as peripheral I/O and display controllers which incorporate a clocked serial interface
250
(78K0)
251
(78K0S, 78K0)
Operation stop mode This mode is used when serial transfer is not performed to reduce power consumption Asynchronous serial interface (UART) mode Full-duplex operation is possible A UART-dedicated baud rate generator is incorporated, allowing communication over a wide range of baud rates Full buffered UART for continuous transmission / reception Three interrupts provided (Receive, Transmit, Error) Three error flags (Framing, Parity, Overrun) Asynchronous serial interface (UART) mode with LIN bus support Synchronous break field transmission from 13 to 20 bits More than 11 bits can be identified for synchronous break field reception
252
(78K0S, 78K0)
Baud rate calibration 16 bit timer to measure the sync-field Fine tunable baud rate generator to fit master baud rate even with RC or internal oscillator
78K0/Kx
TI000
ISC
INTP0
ISC
RxD6
UART6
Message Response
Message Header Sleep Bus Wake-Up Signal Frame Synch Break Field Synch Field Ident Field DATA Field
DATA Field
Check SUMField
253
(78K0S, 78K0)
254
(78K0R)
Two Serial Array Units available Four serial channels per Serial Array Unit available Two or more of various serial interfaces (3-wire serial (CSI), UART, and simplified IIC) can be used in combination
255
(78K0R)
3-wire serial I/O Data transmission/reception Data length of 7 or 8 bits Phase control of transmit/receive data MSB/LSB first selectable Level setting of transmit/receive data
Clock control Master/slave selection Phase control of I/O clock Setting of transfer period by prescaler and internal counter of each channel Interrupt function Transfer end interrupt/buffer empty interrupt Error detection flag Overrun error
256
(78K0R)
UART Full-duplex UART communication can be realized by using two channels, one dedicated to transmission (even channel) and the other to reception (odd channel) Data transmission/reception Data length of 5, 7, or 8 bits Select the MSB/LSB first Level setting of transmit/receive data and select of reverse Parity bit appending and parity check functions Stop bit appending
Interrupt function Transfer end interrupt/buffer empty interrupt Error interrupt in case of framing error, parity error, or overrun error
257
(78K0R)
UART Error detection flag Framing error, parity error, or overrun error
LIN-bus functions UART3 (ch-2 and ch-3 of unit 1 only) Wakeup signal detection Sync break field (SBF) External interrupt (INTP0) or detection timer array unit (TAU) is used Sync field measurement for baud rate calculation
258
(78K0R)
Simplified I2C Designed for single communication with a device such as EEPROM, flash memory, or A/D converter Master mode only No wait state detection
Data transmission/reception Master transmission, master reception (only master function with a single master) ACK output and ACK detection functions Data length of 8 bits (When an address is transmitted, the address is specified by the higher 7 bits, and the least significant bit is used for R/W control.) Manual generation of start condition and stop condition
259
(78K0R)
260
(78K0R)
261
(78K0R)
// Switch on serial arry unit 1 input clock // If fCLK = Internal high-speed osc. clock (20MHz (max.) // fCK10 and fCK11 = fCLK/2^4 = 20MHz (max.) / 16 =1.25MHz
Setting Serial Array Unit 1 channel 2 and 3(UART3): Transmit and Receive Mode only mode, Baud rate: 9600 Bd @ fCLK=20MHz, Data bits: 8, Parity: No, Stop bits: 1, Transmit LSB first = = = = = = INT[1/2 * ( INT[1/2 * ( INT[1/2 * ( INT[1/2 * ( INT[64.6] * 128 = 0x80 fCLK/(2^SPS[3...0] * Baud rate) - 1 )] * 2 20MHz/(2^4 * 9600Bd) - 1)] * 2 20MHz/153600Bd - 1)] * 2 130.2MHz/Bd - 1)] * 2 2 = 64 * 2
262
(78K0R)
// Communication data is output as is. // Serial data output of channel 0 and 2 is 1 // Enables output by serial communication operation. // // // // // // // // // // // // // // // // // // Clear SAU1 ch-2 UART transmit interrupt request flag (Transmit path of UART3) Clear SAU1 ch-3 UART receive interrupt request flag (Receive path of UART3) Clear SAU1 ch-3 UART receive error interrupt request flag (Receive path of UART3 not used) Unmask SAU1 ch-2 UART transmit interrupt (Transmit path of UART3) Unmask SAU1 ch-3 UART receive interrupt (Receive path of UART3) Mask SAU1 ch-3 UART receive error interrupt (Receive path of UART3) Default priority for SAU1 ch-2 UART transmit interrupt (Transmit path of UART3 not used) Default priority for SAU1 ch-3 UART receive interrupt (Receive path of UART3) Default priority for UART receive error interrupt (Receive path of UART3)
// Set port bit direction of TxD3 to output // Set port bit direction of RxD3 to input // Set port latch of TxD3 to 0 // Start Serial Array Unit 1 channel 2 and 3 operation
263
(78K0R)
void SendByte(unsigned char TxByte_u08)// Transmit one byte { STIF3 = 0; // Clear Uart3 transmit interrupt request STMK3 = 0; // Enable Uart3 transmit interrupt request SDR12 = TxByte_u08; } #pragma bank = 0 (optional) #pragma vector = INTST3_vect __interrupt void IsrUart3Tx(void) { STMK3 = 0; Efsm1_Active_u01 = 1; } // Send byte
// UART3 transmission interrupt service // Enable Uart3 transmit interrupt request // Inform state machine Efsm1
#pragma bank = 0 (optional) #pragma vector = INTSR3_vect __interrupt void IsrUart3Rx(void) // UART3 reception interrupt service { RxByte_u08 = (unsigned char)SDR13; // copy (overwrite) received byte into buffer if (!TxBusy_u01) Efsm0_Active_u01 = 1; // Inform state machine Efsm0 }
264
I2C Interface
Operation Modes
Operation stop mode No serial transfers performed Used to reduce power consumption I2C bus mode Supports Multi-master mode Compliant to I2C-bus specification Since the SCL0 and SDA0 pins are used for open drain outputs, IIC0 requires pull-up resistors for the serial clock line and the serial data bus line.
265
I2C Interface
Block Diagram
266
I2C Interface
Since the SCL0 and SDA0 pins are open drain outputs, IIC0 requires pull-up resistors for the serial clock line and the serial data bus line
267
Interrupt Functions
Fast interrupt service handling Interrupt function can be controlled by
Interrupt Mask Flag Registers MKx Interrupt Request Flag Register IFx Can be set / cleared by software polling or vector service routine
Each source has its own set of flags Standby release possible by each source
268
Interrupt Functions
Fast interrupt service handling
78K0S:
78K0:
78K0R:
269
Interrupt Functions
(78K0S)
270
Interrupt Functions
(78K0)
Software interrupt
271
Interrupt Functions
(78K0R)
Software interrupt
272
Interrupt Functions
(78K0S)
Interrupt request INTyy issued during servicing of interrupt INTxx is not acknowledged, because its priority is lower than that of INTxx, and multiple interrupt servicing does not take place. The INTyy interrupt request is held pending, and is acknowledged following execution of one main processing instruction. During servicing of interrupt INTxx, two interrupt requests, INTyy and INTzz, are acknowledged, and multiple interrupt servicing takes place. Before each interrupt request is acknowledged, the EI instruction must always be issued to enable interrupt request acknowledgment.
273
Interrupt Functions
(78K0)
Interrupt request INTyy issued during servicing of interrupt INTxx is not acknowledged, because its priority is lower than that of INTxx, and multiple interrupt servicing does not take place. The INTyy interrupt request is held pending, and is acknowledged following execution of one main processing instruction. During servicing of interrupt INTxx, two interrupt requests, INTyy and INTzz, are acknowledged, and multiple interrupt servicing takes place. Before each interrupt request is acknowledged, the EI instruction must always be issued to enable interrupt request acknowledgment.
274
(78K0, 78K0R)
One port can be used as Key-Return port Falling edge detection Easy keyboard realization Standby release
275
PD78F0533
V DD off on
PD78F0533
V DD
P10 P11
V DD
off on
P10 P11
V DD
P12 P13
off on
P12 P13
off on
V DD >1
H
KR0 KR1 KR2 KR3
V DD
L
KR0 KR1 KR2 KR3
INTKR > 1
276
(78K0/78K0R)
Display data is read by DMA operation, segment and common signals are generated automatically. From static up to 8 times division mode. Frame frequencies can be adapted to each glass type. Up to 400 segments (for 78K0R/Lx3) can be driven. LCD controller operates based on subsystem clock, even in HALT mode. Different ways to generate LCD voltages Resistor ladder type (Internal / External) Booster type (only for 78K0/Lx2 & 78K0R/Lx3)
277
(78K0/78K0R)
LCD voltage level drive with external resistors (resistor ladder type)
Static mode bias mode bias mode
278
(78K0/78K0R)
External capacitors are used to generate LCD voltage Advantage: Stable display contrast quality against supply voltage LCD voltage is independent from Vdd Recommended Capacitors: 4 * 0.47F Small LCD can use smaller capacitors at VLCx
279
S S S S 27 26 25 24
S S S S 23 22 21 20 19 18 17 16 15 14 13 12 S S S S S S S S 11 10 9 8 7 6 5 4 S S S S S S S S
0111 0010 xxxx xxxx 0101 1110 xxxx xxxx 1101 1111 xxxx xxxx 0111 0100 xxxx xxxx 1111 1110 xxxx xxxx
13 H 12 H 11 H 10 H 0F H 0E H 0D H 0C H 0B H 0A H 09 H 08 H 07 H 06 H 05 H 04 H
(78K0/78K0R)
Open Open
S S S S
3 2 1 0
03 H 02 H 01 H 00 H
0 1 2 3
Timing
280
(78K0/78K0R)
COM 1
V DD 1/2 V DD V ss
Sn
V DD 1/2 V DD V ss
COM 0 - S n
segment off
COM 1 - S n
segment on
281
282
Glass:
Segment Lines
out port out port
uPD78xxxx
4 tri-state ports
Common Lines
283
DMA Controller
Data can be automatically transferred between the peripheral hardware supporting DMA, SFRs, and internal RAM without CPU load Functions
Number of DMA channels: 2 Transfer unit: 8 or 16 bits Maximum transfer unit: 1024 times Transfer type: 2-cycle transfer (One transfer is processed in 2 clocks and the CPU stops during that processing) Transfer mode: Single-transfer mode Transfer request: Selectable from the following peripheral hardware interrupts A/D converter Serial interface (CIS00, CSI01, CSI10, UART0, UART1, UART3, or IIC10) Timer (channel 0, 1, 4, or 5)
284
(78K0R/Kx3)
The external bus interface function is used to connect an external device to an area other than the internal ROM, RAM, and SFR areas Functions
The number of address bits can be selected from 8, 12, 16, and 20 Data bus supporting 8 bits and 16 bits Multiplexed bus and separate bus are supported
285
(78K0R/Kx3)
286
(78K0R/Kx3)
287
(78K0R/Kx3)
288
289
Core Voltages
2.5V
CZ6
CZ6H
UC1
UC2
MF2
UX4
UX5
UX6
290
Security
Chip erase protection Write protection flag Block erase protection flag Block protection
Single voltage Self-Programming Supply voltage: 2.0V ~ 5.5V Prog. 2.7V ~ 5.5V 0.35m process density Ta(prog): -40C ~ +105C Ta(read): -40C ~ +125C Max. 10 MHz Operation speed 256 bytes block size 1byte write unit
291
0.15m process density TA, prog: -40C ~ +85C TA, read: -40C ~ +85C Max. 20MHz Operation speed Block size 1K blocks (78K0R/Ix3/Kx3-L/Fx3) 2K blocks (78K0R/Kx3) 4 byte write unit
292
low
293
294
x.xV
Power supply
is required for programming via UART
UART
USB PG-FP5-EE
Flash-Programming Adapter
USB
Stand alone
295
(78K0S)
Special single wire UART (78K0S/Kx1+ only) 8 MHz from programmer is used Fixed baud rate (115200baud)
296
(78K0)
297
(78K0R)
298
Self-Programming General
Ability to reprogram the flash contents without a dedicated external programming tool => Self-Programming is performed by the application All single voltage flash devices will support Self-Programming User defined programming interface
Even if the boot loader has to be updated, it is ensured, that always a valid boot loader (two boot blocks) is available during Self-Programming
The device is never rendered useless even if a failure occurs during writing the new boot block! If the boot block should not be updated the Boot cluster protection flag can be used to secure the Boot cluster 0 against erasing or writing
300
RD = 20 k (typ.)
VDD VSS
301
Normal mode
Self-Programming Mode A1
Used to set up Self-Programming During this mode the firmware can be called
Self-Programming mode A2
302
NEC supports EEPROM Emulation by providing an EEPROM emulation library free of charge
303
Typ. 1000 erase cycles Min. write unit 1 byte Only one data set of 4 bytes should be written One data set (4 bytes) can be written 64 times until the block is full and must be erased This erase can be done 1000 times To secure the data during erase a second block must be used Finally we reach 64 x 1000 x 2 = 128000 write cycles for a data set of 4 byte
304
305
Overview
(78K0S, 78K0)
PG-FP5-EE
Flash Programmer for all NEC singlevoltage flash devices
EW78K-FULL-EE
Compiler, Assembler, Linker, C-Spy Debugger
ID78K0-QB
Integrated Debugger
QB-MINI2-EE
On-Chip Debug Emulator for all 78K0S, 78K0 and 78K0R devices Low-Cost Programmer
QB-78K0SKX1-ZZZ-EE
In-Circuit Emulator for all 78K0S/Kx1+ devices
QB-78K0KX2-ZZZ-EE QB-78K0LX2-ZZZ-EE
In-Circuit Emulators for all 78K0 devices
306
Hardware Tools
(78K0)
LPC-DOIT
Low Pin Count 78K0S/Kx1+ Do it! Starter Kit
78K0LX3-SEEIT
78K0/Lx3 See it! Starter Kit
78K0SAVEIT
78K0/Kx2-L Save it! Starter Kit
78K0-USB
78K0/USB Starter Kit
307
Overview
(78K0R)
AP-78K0RKX3-EE
Device Driver Configurator
PG-FP5-EE
Flash Programmer for all NEC singlevoltage flash devices
EW78K-FULL-EE
Compiler, Assembler, Linker, C-Spy Debugger
ID78K0R-QB
Integrated Debugger
QB-MINI2-EE
On-Chip Debug Emulator for all 78K0S, 78K0 and 78K0R devices Low-Cost Programmer
Hardware Tools
(78K0R)
78K0R-COOLIT
78K0R/Kx3 Cool it! Starter Kit
78K0R-SAYIT
78K0R/Kx3 Say it! Starter Kit for Voice Synthesis
78K0RSAVEIT
78K0R/Kx3-L Save it! Starter Kit
78K0RIX3-SPINIT
78K0R/Ix3 Starter Kit for Motor Control
78K0RLX3SENSEIT
78K0R/Lx3 Sense it! Starter Kit
309
Performance
(78K0R)
QB-78K0RKX3-ZZZ-EE QB-78K0RIX3-ZZZ-EE QB-78K0RLX3-ZZZ-EE In-Circuit Emulator PG-FP5-EE Flash Programmer QB-MINI2-EE On-Chip Debug Mode QB-MINI2-EE Programming Mode
UNDER DEVELOPMENT
Price Performance
78K0R Save it! 78K0R Cool it! 78K0R Cool it! 78K0R/Kx3-L Starter Kit 78K0R/Lx3 Starter Kit 78K0R/Kx3 Starter Kit
78K0R/Kx3 Starter Kit 78K0R/Ix3 Starter Kit for Motor Control for Voice Synthesis
310
Target Board
Features
Flash programming via On-Chip Debug Connector for MINICUBE2 Universal Patch area Allows simple interface circuitry to be added
All pins of the microcontroller are available Allows use as daughter board for initial product evaluation or development Main clock Full speed resonator (i.e. 78K0) Max. input (resonator) (i.e. V850 with PLL)
Test switch VSS and VDD pins Power LED Universal area Main clock
QB-78K0RKG3-TB
Power supply LED (red) User function LEDs (2 x yellow) User switch
Target Board
Possible Uses
Designed as a MINICUBE diagnostic tool Test PC installation and Driver Test USB interface Test MINICUBE2 functions Simple evaluation board for 78K and V850ES devices Download, Run and Evaluation of sample programs Daughter board Connection to target system through CN1 and CN2 connectors Reference design (Hardware and Schematic) Basic CPU configuration Basic external functions, such as RESET, OCD/Programming interface, Crystal
312
XLINK
Linker
C-SPY Debugger
QB-78K0MINI-EE QB-MINI-EE
A78K/A78K0R
Assembler
C-SPY Debugger
313
One version with GUI and DOS Interface DOS interface: useful for various project management tools Win interface: compiler, assembler, linker, simulator and debugger included in the Embedded Workbench Editor and a project management tool is also included Intuitive user interface The Make Utility recompiles, reassembles, and links files only if necessary Full integration between Workbench tools and editor Support of 78K0S, 78K0 and 78K0R microcontrollers Embedded C++ support A #pragma directive to maintain portability while using processor specific extensions Central Device Selection
314
Stack contents are displayed as raw data, C/C++ variables and function frames
Current and maximum stack consumption is displayed graphically Warnings can be issued, if the stack exceeds a certain level or if the stack pointer points outside the stack memory
315
Function Trace Displays a subset of the trace data corresponding to calls to and returns from functions Find In Trace Shows the same columns and data as full trace but only those rows which matches a certain search criteria Trace Expressions Possibility to enter expressions that appears as extra columns in the Trace window Browse mode Follow the execution history by scrolling the Trace window The source and disassemble windows highlight the corresponding location
316
All C-Spy Drivers are included in one product package: EW78K-FULL-EE: Full version EW78K-KSxx-EE: Kickstart version (limited code size) The C-Spy Debugger supports different targets: IECUBE Emulators (QB-78K0xxx-ZZZ-EE, QB-78K0Rxxx-ZZZ-EE) MINICUBE Emulators (QB-78K0MINI-EE, QB-MINI2-EE) TK-Interface (direct USB Interface to starter kits) Simulator (Instruction set simulator)
317
318
319
Decision for a license on an individual PC Installation of software with license number and Quick Start-key Time limited installation of the software, after 30 days the license will expire
Upgrade to unlimited installation with license manager, the license is now assigned to a DONGLE
Applilet
Applilet is a software tool to generate device driver code for initialization and use of on-chip peripherals
Features
Device driver code generation based on the user settings in the Graphical User Interface Initialization Code and API functions are provided
Targets
Easy to use Graphical User Interface Fasten the Development Process Improve Code Quality Common API to all devices
321
Applilet
Applilet
Configurator
Absorbs differences of each CPU type Calls library sw of the CPU Device Layer
CPU
322
Applilet
Project Wizard
The integrated project wizard guides the user step by step through the New Project creation
78K0R/KE3 uPD78F1166
78K0R/KE 3
uPD78F116 6
323
Applilet
Graphical User Interface Peripheral View
324
Applilet
Graphical Device Configuration
User friendly and intuitive Automatical plausibility checks avoid illegal configurations
325
Applilet
Graphical Device Configuration
Source code generation can be started, when configuration is completed Configuartion changes can be merged into a previously generated configuration or previously generated source code
326
MINICUBE2
Features
On-chip Debug Emulator Flash Programming Standard debug function support Go & Go, Start from here, Come here, Restart, Step execution, Forced break Hardware breakpoints: 1 Software breakpoints: 2000 Pseudo Real-Time RAM Monitoring (2-wire mode only) Direct Memory Manipulation during RUN (2wire mode only) USB 2.0 interface Supplied via USB (no power supply necessary) 10 byte security ID code to avoid unauthorized access to device
327
MINICUBE2
Circuit connection example
Target connector can be used for MINICUBE2 and FlashPRO5 TXD and RXD are internally connected in MINICUBE2, but not in FlashPRO5
328
MINICUBE2
Memory Resources
329
MINICUBE2
Hardware Configuration
78K0
78K0S/
330
IECUBE
Features
Professional In-Circuit Emulator 512kB Emulation memory Various Real-time and Nonreal-time program execution functions Event break function Software break function Trace function: 128K frames Real-time RAM monitoring Time measurement USB 2.0 interface
331
Trace
332
333
IECUBE
Self-Test Utility
Checks IECUBE operation when it does not operate normally Takes about 1 minute for testing Logs test results useful when making technical inquiries
78K0R
334
Probe Extension Cable QB-144-EP-01S Exchange Adapter QB-<nn><pp>-EA-0<x>T Caution: Pls. refer to the UM for the correct number of <x> ICE Connector QB-<nn><pp>-YQ-01T Target Connector QB-<nn><pp>-NQ-01T
<nn> : pin number, e.g. 80-pins => <nn> = 80 <pp> : package type, e.g. GC-package => <pp> = GC <x> : 1, 4, 6, or 8 according to device type, e.g. <x> = 1
335
<nn> : pin number, e.g. 80-pins => <nn> = 80 <pp> : package type, e.g. GC-package => <pp> = GC <x> : 1 or 3 according to device type, e.g. <x> = 1
336
Selectable
Space Adapter (YS) Chip Cap (HQ) Check pin Adapter (CA)
337
Flash Programmer
Programming with external programmer
FlashPRO5 PG-FP5-EE MINICUBE2 QB-MINI2-EE In flash programming mode
g nin n Flash Programming Support Package pla er Dedicated third party programmers nd U
Programming Adapter
Self-programming
338
Flash Programmer
Full support of programming on
dedicated programming adapter or directly in the user system
x.xV
Power supply
is required for programming via UART
UART
USB PG-FP5-EE
Flash-Programming Adapter
USB
Stand alone
339
Flash Programmer
PG-FP5-EE
Supports programming of all single-voltage and the most dual-voltage NEC flash devices On-board programming Stand-alone programming Program files and programming parameters are stored in the internal flash memory Multiple program files and programming parameters can be stored in the internal flash memory Universal host connection, a Windows User interface is provided for terminal connection CSI, CSI + HS, UART, I2C, Port Mode and TOOL interface supported for data transfer to flash devices USB 2.0 interface or RS232 interface selectable
340
In this mode, the programmer is controlled by a host PC via USB or RS232 cable.
Stand-alone:
Target hardware or programming adapter
Flash Programmer
Functional Overview PG-FP5-EE
342
Flash Programmer
MINICUBE2 QB-MINI2-EE
Supports programming of all 78K devices Attached to 78K0R IECUBE? Universal host connection, a Windows User interface is provided Uses same PRM files as PG-FP4 Host connection via USB 2.0
343
13. Support
344
Device specific support Application specific support Hardware and software development tool support Quality and reliability support Device failure analysis Workshop & Trainings on devices and development tools
345
Organization
Today 26 engineers are involved in the direct general support for microcontrollers
The support team is organized in groups which take care for one specific device family and have a dedicated group - email address
for all 78K support for all V850 support for all flash-related questions for all compiler related issues (IAR/Greenhills)
Additional in-house resources are available for special subjects CAN, LIN other automotive related subjects EMI
346
http://www.eu.necel.com
347
http://www.eu.necel.com
General documentation
348
Document Database
Access on all released documents
Product Information, Product Letters Data Sheets, Users Documents Customer Notifications Technical Reports Application Notes ...
349
Tool Update
Tool Update Request is possible via Internet Free of charge Pick-Up Service
350
Device Files
Flash Programmer
351
Tool Repair
Tool Repair Request is possible via Internet
Easy by filling our Tool Repair Questionnaire Free of charge Pick-Up Service
352
Published by NEC Electronics (Europe) GmbH March 2009 Document No. EPMC-PU-0114-1.0 353