Nec 78k0 Kb2
Nec 78k0 Kb2
78K0/KB2
8-BIT SINGLE-CHIP MICROCONTROLLER
The 78K0/KB2 products are 8-bit single-chip microcontrollers of the 78K0 series.
These microcontrollers feature Single-voltage Self-programming Flash memory and many peripherals.
FEATURES
• 78K0 CPU core, 8-bit CISC architecture
• Flash EEPROM and RAM sizes
Item Program memory Data memory
(Instruction execution time = 100ns(min.) @20MHz) - On-chip debug function (product name undecided)
Interrupt
• WDT CLOCK
- Internal 16ch
- Internal Ring-oscillator 240KHz (Typ.)
- External 6ch
Peripherals.
Operation Voltage
• On-Chip Power-On-Clear (POC) Circuit
1.8V to 5.5V
• Low-Voltage Detector (LVI) Circuit
Package
• Timer
30-pin SSOP (7.62mm(300))
- 16bit Timer 1ch
- 8bit Timer 4ch
- Watchdog Timer (Operable with 240KHz Ring-OSC)
• Serial Interface
- UART/CSI 1ch
- UART (with LIN-bus) 1ch
- IIC 1ch
This information contained in this document is being issued in advance of the production cycle for the product. The
parameters for the product may change before final production or NEC Electronics Corporation, at its own discretion,,
may withdraw the product prior to its production. Not all products and/ or types are available in every country. Please
check with an NEC Electronics sales representative for availability and additional information.
ZUD-CC-04-0125-E
Data Published Oct 2004 N CP(K) ©NEC Electronics Corporation 2004
78K0/KB2
1. Block Diagram
Fig. 78K0/KB2
8bit Timer
TOH0
(TMH0) Port2 P20 -P23
8bit Timer
TOH1
(TMH1) Port3 P30 -P33
78K0
TO51 8bit Timer CPU CORE
Port12 P120 -P122
TI51 (TM51)
RxD6 Flash
UART-LIN RAM EEPROM
TxD6 (UART6)
RxD0 UART
TxD0 (UART0)
Watchdog
SI10 Timer
3wire
SO10 Serial I/F
SCK10 (CSI10) Reset CTL
RESET
Power On
ANI0 - FLMD0
Clear
ANI3 System
10bit AD (POC) REGC
Control
AVREF converter
AVSS VDD
VSS
Low voltage
EXLVI Indicator Internal High-speed High-speed system X1
(LVI) Ring-OSC clock OSC
(8MHz typ.) X2/ EXCLK
ZUD-CC-04-0125-E
Data Published Oct 2004 N CP(K) ©NEC Electronics Corporation 2004
78K0/KB2
P21/ANI1 1 30 P22/ANI2
P20/ANI0 2 29 P23/ANI3
P01/TI010/TO00 3 28 AVSS
P00/TI000 4 27 AVREF
P120/INTP0/EXLVI 5 26 P10/SCK10/TXD0
RESET 6 25 P11/SI10/RXD0
IC/FLMD0 7 24 P12/SO10
P122/X2/EXCLK 8 30pin SSOP 23 P13/TXD6
P121/X1 9 22 P14/RXD6
REGC 10 21 P15/TOH0
VSS 11 20 P16/TOH1/INTP5
VDD 12 19 P17/TI50/TO50
P60/SCL0 13 18 P30/INTP1
P61/SDA0 14 17 P31/INTP2
P33/TI51/TO51/INTP4 15 16 P32/INTP3
ZUD-CC-04-0125-E
Data Published Oct 2004 N CP(K) ©NEC Electronics Corporation 2004
78K0/KB2
3. Pin Function
Table (1/2)
PIN NAME Function
VDD Positive power supply except for ports (except P20-P23) and AD converter
VSS Ground potential except for ports (except P20-P23) and AD converter
RESET System reset input
FLMD0 Flash EEPROM programming mode setting
REGC Connecting regulator output stabilization capacitor. Connect to GND via a
capacitor (0.47µF)
AVREF A/D converter analog power supply and power supply for P20-P23
AVSS Ground potential for A/D converter and P20 - P23.
P00 I/O port
/TI000 External count clock input to 16-bit timer/event counter 00
Capture trigger input to capture registers (CR000, CR010) of16-bit
timer/event counter 00 (TM00)
P01 I/O port
/TI010 Capture trigger input to capture register (CR000) of 16-bit timer/event
/TO00 counter 00 (TM00)
16-bit timer/event counter 00 output (TM00)
P10 I/O port
/SCK10 Clock input/ output for serial interface (CSI10)
/TXD0 Serial data output from asynchronous serial interface (UART0)
P11 I/O port
/SI10 Serial data input to serial interface (CSI10)
/RXD0 Serial data input to asynchronous serial interface (UART0)
P12 I/O port
/SO10 Serial data output form serial interface (CSI10)
P13 I/O port
/TXD6 Serial data output from asynchronous serial interface (UART6)
P14 I/O port
/RXD6 Serial data input to asynchronous serial interface (UART6)
P15 I/O port
/TOH0 8-bit timer H0 output (TMH0)
P16 I/O port
/TOH1 8-bit timer H1 output (TMH1)
/INTP5 External interrupt request input with specifiable valid edges
P17 I/O port
/TI50 External count clock input to 8-bit timer/event counter 50 (TM50)
/TO50 8-bit timer/event counter 50 output (TM50)
ZUD-CC-04-0125-E
Data Published Oct 2004 N CP(K) ©NEC Electronics Corporation 2004
78K0/KB2
Table(2/2)
PIN NAME Function
P20- P23 I/O ports
/ ANI0- ANI3 A/D converter analog input
P30/INTP1 I/O port
P31/INTP2 External interrupt request input with specifiable valid edges
P32/INTP3
P33 I/O port
/TI51 External count clock input to 8-bit timer/event counter 51(TM51)
/TO51 8-bit timer/event counter 51output (TM51)
/INTP4 External interrupt request input with specifiable valid edges
P60 I/O port (N-ch Open drain)
/SCL0 Clock input/ output for serial interface (IIC0)
P61 I/O port (N-ch Open drain)
/SDA0 Serial data input/ output for serial interface (IIC0)
P120 I/O port
/INTP0 External interrupt request input with specifiable valid edges
/EXLVI Reference voltage input for Low voltage Indicator
P121 I/O port (An external oscillation circuit is not used)
/X1 Connecting resonator for main system clock oscillation
P122 I/O port (An external oscillation circuit is not used)
/X2 Connecting resonator for main system clock oscillation
/EXCLK External clock input for main system clock
ZUD-CC-04-0125-E
Data Published Oct 2004 N CP(K) ©NEC Electronics Corporation 2004
78K0/KB2
4. Memory space
5. Clock
78K0/KB2 have 2 type internal Ring-OSC and 2 type external resonator oscillation circuit.
78K0/KB2 can be operated high-speed internal Ring-OSC only. Low-speed Ring-OSC can connect to
Watch dog timer and 8bit timer (TMH1) only for high secure.
Low-speed
Ring-OSC Watchdog timer
(240kHz typ)
8bit timer (TMH1)
High-speed
Ring-OSC
(8MHz typ)
MPX CPU
High-speed
External resonator system clock
or oscillation circuit
External clock
(2-20MHz)
MPX Peripheral
ZUD-CC-04-0125-E
Data Published Oct 2004 N CP(K) ©NEC Electronics Corporation 2004
78K0/KB2
ZUD-CC-04-0125-E
Data Published Oct 2004 N CP(K) ©NEC Electronics Corporation 2004
78K0/KB2
Caution These specifications show target values, which may change after device evaluation. The operating
voltage range may also change.
Caution Product quality may suffer if the absolute maximum rating is exceeded even momentarily for
any parameter. That is, the absolute maximum ratings are rated values at which the
product is on the verge of suffering physical damage, and therefore the product must be
used under conditions that ensure that the absolute maximum ratings are not exceeded.
Remark Unless specified otherwise, the characteristics of alternate-function pins are the same as
those of port pins.
ZUD-CC-04-0125-E
Data Published Oct 2004 N CP(K) ©NEC Electronics Corporation 2004
78K0/KB2
Remark Unless specified otherwise, the characteristics of alternate-function pins are the same as
those of port pins.
ZUD-CC-04-0125-E
Data Published Oct 2004 N CP(K) ©NEC Electronics Corporation 2004
78K0/KB2
Note Indicates only oscillator characteristics. Refer to AC Characteristics for instruction execution
time.
Cautions 1. When using the high-speed system clock oscillator, wire as follows in the area enclosed
by the broken lines in the above figures to avoid an adverse effect from wiring
capacitance.
2. Since the CPU is started by the Ring-OSC after reset is released, check the oscillation
stabilization time of the high-speed system clock using the oscillation stabilization time
status register (OSTC). Determine the oscillation stabilization time of the OSTC
register and oscillation stabilization time select register (OSTS) after sufficiently
evaluating the oscillation stabilization time with the resonator to be used.
Remark For the resonator selection and oscillator constant, customers are requested to either
evaluate the oscillation themselves or apply to the resonator manufacturer for evaluation.
ZUD-CC-04-0125-E
Data Published Oct 2004 N CP(K) ©NEC Electronics Corporation 2004
78K0/KB2
8 MHz Ring-OSC oscillator High-speed Ring-OSC 2.7 V ≤ VDD ≤ 5.5 V 7.6 Note2
8.0 Note2
8.4 Note2
MHz
Oscillation
1.8 V ≤ VDD ≤ 5.5 V T.B.D 8.0 Note2 T.B.D MHz
frequency(fRH)Note1
240 kHz Ring-OSC oscillator Low-speed Ring-OSC 2.7 V ≤ VDD ≤ 5.5 V 216 240 264 kHz
Oscillation frequency(fRL)
1.8 V ≤ VDD ≤ 5.5 V T.B.D 240 T.B.D
Note 1. Indicates only oscillator characteristics. Refer to AC Characteristics for instruction
execution time.
2. This is the frequency in the case of RSTS(RCM.7)=1. This is 5 MHz(TYP.) in the case of
RSTS=0.
ZUD-CC-04-0125-E
Data Published Oct 2004 N CP(K) ©NEC Electronics Corporation 2004
78K0/KB2
DC Characteristics (1/4)
(TA = -40 to +85°C, 1.8 V ≤ VDD ≤ 5.5 V, VSS = AVSS = 0 V)
Parameter Symbol Conditions MIN. TYP. MAX. Unit
Output current, high IOH1 Per pin of P00-P01, P10-P17, 4.0V ≤ VDD ≤ 5.5V -3.0 mA
P30-P33, P120 2.7 V ≤ VDD < 4.0V -2.5
1.8 V ≤ VDD < 2.7V -1.0
Total of P00-P01, P120 4.0V ≤ VDD ≤ 5.5V -20.0 mA
2.7 V ≤ VDD < 4.0V -10.0
1.8 V ≤ VDD < 2.7V -5.0
Total of P10-P17, P30-P33 4.0V ≤ VDD ≤ 5.5V -30.0 mA
2.7 V ≤ VDD < 4.0V -19.0
1.8 V ≤ VDD < 2.7V -10.0
Total of all pins 4.0V ≤ VDD ≤ 5.5V -50.0 mA
2.7 V ≤ VDD < 4.0V -29.0
1.8 V ≤ VDD < 2.7V -15.0
IOH2 Per pin of P20-P23,P121-P122 Note
1.8V ≤ VDD ≤ 5.5V -100 µA
Output current, low IOL1 Per pin of P00-P01, P10-P17, 4.0V ≤ VDD ≤ 5.5V 8.5 mA
P30-P33, P120 2.7 V ≤ VDD < 4.0V 5.0
ZUD-CC-04-0125-E
Data Published Oct 2004 N CP(K) ©NEC Electronics Corporation 2004
78K0/KB2
DC Characteristics (2/4)
(TA = -40 to +85°C, 1.8 V ≤ VDD ≤ 5.5 V, VSS = AVSS = 0 V)
Parameter Symbol Conditions MIN. TYP. MAX. Unit
Input voltage, high VIH1 P12, P13, P15, P60-P61, P121-P122 0.7VDD VDD V
VIH2 P00, P01, P10-P11, P14, P16-P17, P30-P33, P120, 0.8VDD VDD V
RESET
VIH3 P20-P23 Note 0.7AVREF AVREF V
Input voltage, low VIL1 P12, P13, P15, P60-P61, P121-P122 0 0.3VDD V
Remark Unless specified otherwise, the characteristics of alternate-function pins are the same as
those of port pins.
ZUD-CC-04-0125-E
Data Published Oct 2004 N CP(K) ©NEC Electronics Corporation 2004
78K0/KB2
DC Characteristics (3/4)
(TA = -40 to +85°C, 1.8 V ≤ VDD ≤ 5.5 V, VSS = AVSS = 0 V)
Parameter Symbol Conditions MIN. TYP. MAX. Unit
Output voltage, high VOH1 IOH = -3.0 mA P00-P01, P10-P17, 4.0V ≤ VDD ≤ 5.5V VDD-0.7 V
P30-P33, P120
ZUD-CC-04-0125-E
Data Published Oct 2004 N CP(K) ©NEC Electronics Corporation 2004
78K0/KB2
DC Characteristics (4/4)
(TA = -40 to +85°C, 1.8 V ≤ VDD ≤ 5.5 V, 2.3 V ≤ AVREF ≤ VDD, VSS = AVSS = 0 V)
Parameter Symbol Conditions MIN. TYP. MAX. Unit
Note2
Supply IDD1 Operation mode fXH = 20 MHz , VDD = 5.0 V 4.7 5.8 mA
Note1 Note2 Note3
current fXH = 10 MHz , VDD = 5.0 V 2.5 3.5 mA
Note2 Note3
fXH = 5 MHz , VDD = 3.0 V 1.5 2.2 mA
Note2
fRH = 8 MHz , VDD = 5.0 V 1.9 2.7 mA
Note2
IDD2 HALT mode fXH = 20 MHz , VDD = 5.0 V 2.2 2.6 mA
Note2 Note3
fXH = 10 MHz , VDD = 5.0 V 1.0 1.2 mA
Note2 Note3
fXH = 5 MHz , VDD = 3.0 V 0.55 0.65 mA
Note2
fRH = 8 MHz , VDD = 5.0 V 0.6 0.65 mA
IDD3 STOP mode VDD = 5.0 V 1 20 µA
IADC A/D converter A/D converter operating 0.57 1.3 mA
operating current A/D converter not operating T.B.D. T.B.D. mA
IWDT Watchdog Time 240 kHz Ring-OSC operating 5 10 µA
operating current
ILVI LVI operating 9 T.B.D. µA
current
Notes 1. Total current flowing through the internal power supply (VDD).
2. Input square-wave
3. When AMPH(OSCCTL.0) = 0.
Remark 1. fXH: High-Speed System Clock oscillation frequency (X1 clock oscillation frequency or
External main system clock frequency).
2. fRH: High-speed Ring-OSC oscillation frequency.
ZUD-CC-04-0125-E
Data Published Oct 2004 N CP(K) ©NEC Electronics Corporation 2004
78K0/KB2
AC Characteristics
(1)Basic operation
(TA = -40 to +85°C, 1.8 V ≤ VDD ≤ 5.5 V, 2.3 V ≤ AVREF ≤ VDD, VSS = AVSS = 0 V)
Parameter Symbol Conditions MIN. TYP. MAX. Unit
Instruction cycle (minimum TCY Main High-speed 4.0 V ≤ VDD ≤5.5 V 0.1 16 µs
instruction execution time) system system 2.7 V ≤ VDD < 4.0 V 0.2 16 µs
clock(fXP) clock(fXH) 1.8 V ≤ VDD < 2.7 V 0.4 16 µs
operation
High-speed 2.7 V ≤ VDD < 5.5 V 0.25 4 µs
Ring-OSC 1.8 V ≤ VDD < 2.7 V 0.5 4 µs
clock(fRH)
External main system clock fEXCLK 4.0 V ≤ VDD ≤ 5.5 V 2.0 20.0 MHz
frequency 2.7 V ≤ VDD < 4.0 V 2.0 10.0 MHz
1.8 V ≤ VDD < 2.7 V 2.0 5.0 MHz
External main system clock tEXCLKH, (1/ fEXCLK ns
input high-/low-level width tEXCLKL x 1/2) - 1
TI000, TI010 input high-level tTIH0, 4.0 V ≤ VDD ≤ 5.5 V 2/fsam + µs
Note1
width, low-level width tTIL0 0.1
2.7 V ≤ VDD < 4.0 V 2/fsam + µs
0.2 Note1
TI50, TI51 input frequency fTI5 4.0 V ≤ VDD ≤ 5.5 V 10 MHz
2.7 V ≤ VDD < 4.0 V 10 MHz
1.8 V ≤ VDD < 2.7 V 5 MHz
TI50, TI51 input high-level tTIH5, 4.0 V ≤ VDD ≤ 5.5 V 50 ns
width, low-level width tTIL5 2.7 V ≤ VDD < 4.0 V 50 ns
ZUD-CC-04-0125-E
Data Published Oct 2004 N CP(K) ©NEC Electronics Corporation 2004
78K0/KB2
Guaranteed
operation range
Remark The values indicated by the shaded section are only when the High-speed Ring-OSC clock
is selected.
ZUD-CC-04-0125-E
Data Published Oct 2004 N CP(K) ©NEC Electronics Corporation 2004
78K0/KB2
0.8VDD 0.8VDD
Test points
0.2VDD 0.2VDD
Clock Timing
1/fXP
tXPL tXPH
VIH6 (MIN.)
X1 input
VIL6 (MAX.)
1/fXT
tXTL tXTH
VIH6 (MIN.)
XT1 input
VIL6 (MAX.)
TI Timing
tTIL0 tTIH0
1/fTI5
tTIL5 tTIH5
TI50, TI51
tINTL tINTH
INTP0 to INTP75
tRSL
RESET
ZUD-CC-04-0125-E
Data Published Oct 2004 N CP(K) ©NEC Electronics Corporation 2004
78K0/KB2
ZUD-CC-04-0125-E
Data Published Oct 2004 N CP(K) ©NEC Electronics Corporation 2004
78K0/KB2
(d) 3-wire serial I/O mode (CSI10 master mode, SCK1n…internal clock output)
Parameter Symbol Conditions MIN. TYP. MAX. Unit
(e) 3-wire serial I/O mode (CSI10 slave mode, SCK1n…external clock input)
Parameter Symbol Conditions MIN. TYP. MAX. Unit
Remark n = 0
ZUD-CC-04-0125-E
Data Published Oct 2004 N CP(K) ©NEC Electronics Corporation 2004
78K0/KB2
tKCYm
tKLm tKHm
SCK1n
tSIKm tKSIm
tKSOm
Remark m = 1, 2
n=0
ZUD-CC-04-0125-E
Data Published Oct 2004 N CP(K) ©NEC Electronics Corporation 2004
78K0/KB2
Notes 1. When voltage rises, time required from detection to reset release
2. When voltage drops, time required from detection to reset occur.
Supply voltage
(VDD)
tPW
Time
ZUD-CC-04-0125-E
Data Published Oct 2004 N CP(K) ©NEC Electronics Corporation 2004
78K0/KB2
Supply voltage
(VDD)
tLW
tWAIT tLD
LVION ← 1 Time
ZUD-CC-04-0125-E
Data Published Oct 2004 N CP(K) ©NEC Electronics Corporation 2004
78K0/KB2
Data Memory STOP Mode Low Supply Voltage Data Retention Characteristics (TA = -40 to +85°C)
Parameter Symbol Conditions MIN. TYP. MAX. Unit
Note
Data retention supply voltage VDDDR 1.3 5.5 V
Note Dependence on POC detection voltage. The data is held before POC reset, but is not held after
POC reset when voltage drops.
STOP instruction
ZUD-CC-04-0125-E
Data Published Oct 2004 N CP(K) ©NEC Electronics Corporation 2004
78K0/KB2
VDD supply voltage IDD fXP = 10 MHz (TYP.), 20 MHz (MAX.) 4.5 11.0 mA
Note1
Erase time Chip unit Teraca 20 T.B.D ms
Sector unit Terasa 20 T.B.D ms
Write time Twrwa 50. T.B.D. µs
Number of rewrites per chip Cerwr 1 erase + 1 write after erase = 1 100 time
rewriteNote2
Notes 1. The prewrite time before erasure and the erase verify time (writeback time) are not included.
2. When a product is first written after shipment, “erase → write” and “write only” are both
taken as one rewrite.
VDD
RESET
0V TCOUNT
TCH
VDD
FLMD0
0V
TF TR
TRFCF TCL
TC
ZUD-CC-04-0125-E
Data Published Oct 2004 N CP(K) ©NEC Electronics Corporation 2004
78K0/KB2
Windows and Windows NT are either registered trademarks or trademarks of Microsoft Corporation in
the United States and/or other countries.
PC/AT is a trademark of International Business Machines Corporation.
HP9000 series 700 and HP-UX are trademarks of Hewlett-Packard Company.
SPARCstation is a trademark of SPARC International, Inc.
Solaris and SunOS are trademarks of Sun Microsystems, Inc.
SuperFlash® is a registered trademark of Silicon Storage Technology, Inc. in several
countries including the United States and Japan.
ZUD-CC-04-0125-E
Data Published Oct 2004 N CP(K) ©NEC Electronics Corporation 2004
78K0/KB2
Caution: This product uses SuperFlash® technology licensed from Silicon Storage Technology, Inc.
• The information contained in this document is being issued in advance of the production cycle for the
product. The parameters for the product may change before final production or NEC Electronics
Corporation, at its own discretion, may withdraw the product prior to its production.
• 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 products 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).
M5 02. 11-1
ZUD-CC-04-0125-E
Data Published Oct 2004 N CP(K) ©NEC Electronics Corporation 2004