322 05329 0 Upd780306y
322 05329 0 Upd780306y
µPD780948(A), µPD780949(A)
8-BIT SINGLE-CHIP MICROCONTROLLER
Description
The µPD780948/780949 is a member of the 78K/0 series microcontrollers. Besides a high speed, high
performance CPU, these microcontrollers have on-chip ROM, RAM, I/O ports, 8-bit resolution A/D converter,
timer, CAN-interface, serial interface, interrupt control, LCD-controller/driver and various other peripheral
hardware.
The µPD78F0948/780949 device includes a FLASH EEPROM version which can operate in the same
power supply voltage range as the mask ROM version, and various development tools are available.
The details of the functions are described in the following user manuals. Be sure to read it before
starting design.
µPD780949, Subseries User's Manual : U12670EE1V0UM00
78K/0 Series User's Manual - Instructions : U12336EJ3V0UM00
Features
• Internal high capacity ROM and RAM
Data Memory
Item Program
Package
Internal
Part Memory LCD Display Internal
High-Speed EEPROM
Number (ROM) RAM Expansion RAM
RAM
µPD780948(A) 60K bytes 1024 bytes 40 bytes 992 bytes - 100-pin plastic QFP (fine pitch)
µPD780949(A) 60K bytes 1024 bytes 40 bytes 992 bytes 256 bytes 100-pin plastic QFP (fine pitch)
Application
Dashboard, climate controller, security unit etc.
Ordering Information
µPD780948GF(A)-3BA 100-pin plastic QFP (14 x 20 mm, resin thickness 2.7 mm)
µPD780949GF(A)-3BA 100-pin plastic QFP (14 x 20 mm, resin thickness 2.7 mm)
For IEBusTM
80-pin µ PD78098 IEBus controller added to the µPD78054
For CANBus
100-pin µ PD780949 CANBus controller
For Control µPD78078 32 K-60 K 4ch 1ch 1ch 1ch 8ch 2ch 3ch (UART: 1ch) 88 1.8 V O
µPD78070A — 61 2.7 V
µPD78054 16 K-60 K 2ch 69 2.0 V
µPD78018F 8 K-60 K — 2ch 53 1.8 V
µPD78014 8 K-32 K 2.7 V
µPD780001 8K — — 1ch 39 —
µPD78002 8 K-16 K 1ch — 53 O
µPD78083 — 8ch 1ch (UART: 1ch) 33 1.8 V —
For FIP µPD780208 32 K-60 K 2ch 1ch 1ch 1ch 8ch — 2ch 74 2.7 V —
driving µPD78044A 16 K-40 K 68
µPD78024 24 K-32 K 54
For LCD µPD78064 16 K-32 K 2ch 1ch 1ch 1ch 8ch — 2ch (UART: 1ch) 57 2.0 V —
driving
For IEBus µPD78098 32 K-60 K 2ch 1ch 1ch 1ch 8ch 2ch 3ch (UART: 1ch) 69 2.7 V O
For CANBus µPD780949 60 K 2ch 2ch 1ch 1ch 8ch — 3ch (UART: 1ch) 79 4.0 V O
2
µPD780948(A), µPD780949(A)
Overview of Functions
Part Number
µPD780948 µPD780949
Item
ROM 60 Kbytes
Internal high-speed RAM 1024 bytes
Internal
LCD Display RAM 40 bytes
memory
Internal Expansion RAM 992 bytes
EEPROM - 256 bytes
Memory space 64 Kbytes
General registers 8 bits x 32 registers ( 8 bits x 8 registers x 4 banks)
Instruction cycle On-chip instruction execution time selective function
When main system clock
0,25 µs/0,5 µs/1 µs/2 µs/4 µs (at 8 MHz)
selected
When subsystem clock
122 µs (at 32.768 kHz)
selected
• 16-bit operation
• Multiplication/division ( 8 bits x 8 bits, 16 bits – 8 bits )
Instruction set
• Bit manipulation ( set, reset, test, boolean operation )
• BCD adjustment, etc.
Total : 79
I/O ports • CMOS input : 8
• CMOS I/O : 71
A/D converter • 8 bit resolution x 8 channels
• 3-wire mode : 1 channel
Serial Interface • 2-wire mode : 1 channel
• UART mode : 1 channel
• 16 bit timer / event counter : 2 channels
• 8 bit timer / event counter : 2 channels
Timer
• Watch timer : 1 channel
• Watchdog timer : 1 channel
Timer output 3 ( 16-bit RWM output x 1, 8-bit RWM output x 2 )
62,5 kHz, 125 kHz, 250 kHz, 500 kHz, 1 MHz, 2 MHz,
Clock output
4 MHz, 8 MHz (at main system clock of 8.0 MHz)
CAN 1 channel
Internal : 22
Maskable interrupts
Vectored External : 5
interrupts Non-maskable interrupts Internal : 1
Software interrupts Internal : 1
Supply voltage VDD = 4,0 V to 5,5 V
Package 100-pin plastic QFP ( 14 mm x 20 mm )
Major Changes
Page Description
3
µPD780948(A), µPD780949(A)
Contents
4
µPD780948(A), µPD780949(A)
P52/A10/S37
P53/A11/S36
P54/A12/S35
P55/A13/S34
P56/A14/S33
P57/A15/S32
P50/A8/S39
P51/A9/S38
P67/ASTB
P40/AD0
P41/AD1
P42/AD2
P43/AD3
P44/AD4
P45/AD5
P46/AD6
P47/AD7
P65/WR
P64/RD
CRxD
100 99 98 97 96 95 94 93 92 91 90 89 88 87 86 85 84 83 82 81
CTxD 1 80 P70/S31
P00/INTP0 2 79 P71/S30
P01/INTP1 3 78 P72/S29
P02/INTP2 4 77 P73/S28
P03/INTP3/T2PO 5 76 P74/S27
P04/INTP4/TI01 6 75 P75/S26
P05/TI00/TO0 7 74 P76/S25
P06/TI50/TO50 8 73 P77/S24
P07/TI51/TO51 9 72 P120/S23
P20/SI0 10 71 P121/S22
P21/SO0 11 70 P122/S21
P22/SCK0 12 69 P123/S20
P23/SI1/SO1 13 68 P124/S19
P24/SCK1 14 67 P125/S18
P25/RxD 15 66 P126/S17
P26/TxD 16 65 P127/S16
RESET 17 64 P130/S15
X1 18 63 P131/S14
X2 19 62 P132/S13
VPP(/IC) 20 61 P133/S12
CL1/CCLK 21 60 P134/S11
CL2 22 59 P135/S10
VSS2 23 58 P136/S9
VDD2 24 57 P137/S8
AVDD 25 56 P140/S7
P10/ANI0 26 55 P141/S6
P11/ANI1 27 54 P142/S5
P12/ANI2 28 53 P143/S4
P13/ANI3 29 52 P144/S3
P14/ANI4 30 51 P145/S2
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
P15/ANI5
P16/ANI6
P17/ANI7
AVSS
P30/TI20
P31/TI21
P32/TI22
P33/PCL/SGOA
P34/SGO/SGOF
VSS1
VDD1
VLC0
VLC1
VLC2
COM0
COM1
COM2
COM3
P147/S0
P146/S1
5
µPD780948(A), µPD780949(A)
Pin Identifications
6
µPD780948(A), µPD780949(A)
2. Block Diagram
IC/VPP
VDD
VDD
TI00/TO0
VSS
VSS
16 bit Timer 0 Port 0 8
TI01
TI20
Port 1 8
TI21
16 bit Timer 2
TI22
T2PO Port 2 6
Watch Timer
Port 5 8
Watchdog Timer
Port 6 3
SI0 78K/0 RAM
Serial Interface CPU 1K EEPROM
SO0
Channel 0 Core Byte 256 Byte Port 7 8
SCK0
SIO1 Serial Interface
Port 12 8
SCK1 Channel 1
RxD
UART Port 13 8
TxD
ANI0-
Port 14 8
ANI7
A/D Converter
AVSS Interface
AVDD S0-S7
AD0- 60 K ROM
S8-S15
AD7
A8-
External S16-S23
A15 Access LCD
/RD CCLK DCAN RAM
Controller S24-S31
/WR Interface 992 Byte
CRxD driver
ASTB S32-S39
CTxD
INTP0- Interrupt
INTP4 Control COM0-COM3
System RESET
Control X1 VLC0-VLC2
8MHz / SV X2
SGO/SGOF
CL1 Sound Generator
RC Oscillator SGOA
CL2
Clock Output
PCL
Control
Standby
Control
7
µPD780948(A), µPD780949(A)
3. Pin Functions
3.1 Normal Operating Mode Pins / Pin Input/Output Types
8
µPD780948(A), µPD780949(A)
9
µPD780948(A), µPD780949(A)
After Alternate
Pin Name I/O Function
Reset Function Pin
INTP0 P00
INTP1 P01
External interrupts with specifiable valid edges (rising
INTP2 Input Input P02
edge, falling edge, both rising and falling edges)
INTP3 P03/T2P0
INTP4 P04/TI01
SI0 P20
Input Serial interface serial data input Input
SI1 P23/SO1
SO0 P21
Output Serial interface serial data output Input
SO1 P23/SI1
SCK0 Input/ P22
Serial interface serial clock input / output Input
SCK1 Output P24
RxD Input Asynchronous serial interface data input Input P25
TxD Output Asynchronous serial interface data output Input P26
CRxD Input CAN serial data input Input -
CTxD Output CAN serial data output Output -
CCLK Input CAN serial clock input - CL1
TI00 P05/TO0
External count clock input to 16-bit timer (TM0)
Ti01 P04/INTP4
TI20 Capture trigger input P30
TI21 Input Capture trigger input Input P31
TI22 Capture trigger input P32
TI50 External count clock input to 8-bit timer (TM50) P06/TO50
TI51 External count clock input to 8-bit timer (TM51) P07/TO51
TO0 16-bit timer output P05/TI00
T2P0 16-bit timer output P03/INTP3
Output Input
TO50 8-bit timer output (also used for PWM output) P06/TI50
TO51 8-bit timer output (also used for PWM output) P07/TI51
PCL Output Clock output (for main system clock trimming) Input P33/SGOA
Input/ Low-order address/data bus at external memory
AD0 to AD7 Input P40 to P47
Output expansion
High-order address/data bus at external memory P50 to P57
A8 to A15 Output Input
expansion S39 to S32
Strobe signal output for read operation from external
RD P64
memory
Output Input
Strobe signal output for read operation from external
WR P65
memory
Strobe output externally latching address information
ASTB - Input P67
output to ports 4, 5 to access external memory
S0 to S7 P147 to P140
S8 to S15 P137 to P130
S16 to S23 Output Segment signal output of LCD controller / driver Input P127 to P120
S24 to S31 P77 to P70
P57 to P50
S32 to S39
A15 to A8
10
µPD780948(A), µPD780949(A)
After Alternate
Pin Name I/O Function
Reset Function Pin
COM0-COM3 Output Common signal output of LCD controller/driver Output -
VLC0 to V LC2 - LCD drive voltage - -
SGO Output Sound generator output Input P34/SGOF
SGOA Output Sound generator amplitude output Input P33/PCL
SGOF Output Sound generator frequency output Input P34/SGO
ANI0 to ANI7 Input A/D Converter analog input Input P10 – P17
A/D Converter reference voltage input and power
AVDD - - -
supply
AVSS - A/D Converter ground potential. Connect to VSS. - -
RESET Input System reset input - -
X1 - Crystal connection for main system clock - -
X2 - - -
CL1 Input RC connection for subsystem clock - CCLK
CL2 - - -
VDD1, VDD2 - Positive power supply - -
VSS1, VSS2 - Ground potential - -
High voltage supply for flash programming (only
VPP - - IC
flash version)
Internal connection. Connect directly to VSS (only
IC - - VPP
MaskROM version)
11
µPD780948(A), µPD780949(A)
Input/Output
Pin Name I/O Recommended Connection for Unused Pins
Circuit Type
P00/INTP0
P01/INTP1
P02/INTP2
P03/INPT3/T2P0
8-A I/O Connect to Vdd or Vss via a resistor individually
P04/INTP4/TI01
P05/TI00/TO0
P06/TI50/TO50
P07/TI51/TO51
P10/ANI0
P11/ANI1
P12/ANI2
P13/ANI3
11-B I Connect to Vdd or Vss via a resistor individually
P14/ANI4
P15/ANI5
P16/ANI6
P17/ANI7
P20/SI0
P21/SO0
P22/SCK0 10
P23/SI1/SOA I/O Connect to Vdd or Vss via a resistor individually
P24/SCK1
P25/RxD 8
P26/TxD 5
P30/TI20
P31/TI21 8
P32/TI22 I/O Connect to Vdd or Vss via a resistor individually
P33/PCL/SGOA
5
P34/SGO/SGOF
P40/AD0
P41/AD1
P42/AD2
P43/AD3
5-A I/O Connect to Vdd or Vss via a resistor individually
P44/AD4
P45/AD5
P46/AD6
P47/AD7
12
µPD780948(A), µPD780949(A)
Input/Output
Pin Name I/O Recommended Connection for Unused Pins
Circuit Type
P50/A8/S39
P51/A9/S38
P52/A10/S37
P53/A11/S36
17 I/O Connect to Vdd or Vss via a resistor individually
P54/A12/S35
P55/A13/S34
P56/A14/S33
P57/A15/S32
P64/RD
P65/WR 5-A I/O Connect to Vdd or Vss via a resistor individually
P67/ASTB
P70/S31
P71/S30
P72/S29
P73/S28
17-B I/O Connect to Vdd or Vss via a resistor individually
P74/S27
P75/S26
P76/S25
P77/S24
P120/S23
P121/S22
P122/S21
P123/S20
17-C I/O Connect to Vdd or Vss via a resistor individually
P124/S19
P125/S18
P126/S17
P127/S16
P130/S15
P131/S14
P132/S13
P133/S12
17-A I/O Connect to Vdd or Vss via a resistor individually
P134/S11
P135/S10
P136/S9
P137/S8
P140/S7
P141/S6
P142/S5
P143/S4
17-A I/O Connect to Vdd or Vss via a resistor individually
P144/S3
P145/S2
P146/S1
P147/S0
13
µPD780948(A), µPD780949(A)
Input/Output
Pin Name I/O Recommended Connection for Unused Pins
Circuit Type
COM0 – COM3 18 O
Leave open
VLC0 – VLC2 - -
CRxD 1 I Connect to Vdd or Vss via a resistor individually
CTxD 2 O Leave open
CL1/CCLK - - Connect to Vdd or Vss via a resistor individually
C2 - - Leave open
RESET 1 I -
AVREF - - Connect to VDD
AVSS - - Connect to VSS
IC
- - Connect directly to VSS
VPP
14
µPD780948(A), µPD780949(A)
Type 1 Type 2
VDD
P-ch
IN
Data OUT
N-ch
V DD Pullup
P-ch
enable
Data P-ch V DD
IN/OUT Data
P-ch
Output N-ch
disable IN/OUT
Output N-ch
disable
Input
disable
Input
enable
V DD Pullup
P-ch
enable
Data
P-ch
V DD
IN/OUT
Output Data
N-ch P-ch
disable
IN/OUT
Output N-ch
disable
15
µPD780948(A), µPD780949(A)
VDD
P-ch
Data P-ch Comparator
IN/OUT + IN
-
Open drain
output disable N-ch N-ch
V REF (Threshold Voltage)
Input
enable
Pullup
VDD P-ch
enable
Data VDD
P-ch
IN/OUT Data
P-ch
Output N-ch
disable IN/OUT
Output N-ch
disable
Input
enable
Input
VLC0 enable
P-ch
VLC0
VLC1
P-ch
N-ch
P-ch VLC1
N-ch
SEG P-ch
Data
SEG
N-ch Data
P-ch
VLC2
P-ch N-ch
N-ch
VLC2
N-ch
16
µPD780948(A), µPD780949(A)
Pullup
P-ch V DD
enable
V DD Data P-ch
Data IN/OUT
P-ch
Output N-ch
IN/OUT disable
Output N-ch
disable
V LC0
P-ch
V LC0
V LC1
P-ch
N-ch
V LC1 P-ch
N-ch
P-ch SEG
Data
SEG
Data N-ch
P-ch
V LC2
P-ch N-ch
N-ch
V LC2
N-ch
Type 18
P-ch
VLC0
VLC1
OUT
COM
VLC2
N-ch
17
µPD780948(A), µPD780949(A)
4. Memory Space
The memory map of the µPD780949 is shown in Figure 4-1.
F3FFH 0080H
External Memory 007FH
F000H
CALLT Table Area
EFFFH
0040H
Internal ROM 003FH
61440 x 8 bits
Vector Table Area
0000H 0000H
Remark: The EEPROM is only available in the µPD780949 und not in the µPD780948.
18
µPD780948(A), µPD780949(A)
Port 6 P64, P65, P67 Input/output port. Input/output can be specified bit-wise.
19
µPD780948(A), µPD780949(A)
CL1
Subsystem f XT
Watch Timer
Clock
CL2 Oscillator
Prescaler
X1
Main System f X
Clock to peripheral
Clock Prescaler 1 hardware
Oscillator 2
X2
fX fX fX fX fX f XT
2 22 23 24 2
STOP
Selector
Standby
Control CPU Clock (fCPU)
Circuit
IC
X2 X2
External
X1 X1
Clock
Crystal
resonator
or ceramic
resonator
20
µPD780948(A), µPD780949(A)
CL2
R
CL1
C
Interrupt request 2 2 2 1 4
Test input 1 3
21
µPD780948(A), µPD780949(A)
Internal Bus
INTP4
Noise
TI01/P04/ Rejection
Selector
Selector
INTP4 16-bit Capture/
Circuit Compare Control INTTM00
Register (CR00)
fx / 2
Match
fx / 16
Selector
Match
fx / 2 Noise
Rejection
Circuit
Selector
Noise 16-bit Capture/
TI00/P05/
Rejection Compare Control INTTM01
TO0
Circuit Register (CR01)
Internal Bus
22
Figure 5-5: 16 Bit Timer TM2
fx / 4
fx / 8
Selector
fx / 32 16-Bit Timer Register (TM2) Overflow INT
fx / 128
INTTM22
µPD780948(A), µPD780949(A)
INTTM21
INTTM20
DCAN
T2PO Terminal to
related output port
TPOE Internal Bus
1) Valid edge (rising edge, falling edge or both edges) is selectable via software
23
24
µPD780948(A), µPD780949(A)
Figure 5-6: Digital Capture Input Filter
3 bit
TI22 D Q D Q D Q S Q Counter
CLK
To
Edge Internal
Detection
To
Edge Internal
TI20, D Q D Q D Q S Q
TI21 Detection
C C C R
CLK
µPD780948(A), µPD780949(A)
Internal Bus
fx
Match
fx / 21 INTTM 51
fx / 23
Selector
fx / 25 Output Control
8-bit Timer Register n OVF TO51 / P07 / TI51
Circuit
fx / 27 (TM51)
fx / 212
Clear
TI51 / P07 / TO51
Internal Bus
Internal Bus
fx
Match
fx / 21 INTTM 50
fx / 23
Selector
fx / 25 Output Control
8-bit Timer Register n OVF TO50 / P06 / TI50
Circuit
fx / 27 (TM50)
fx / 29
Clear
TI50 / P06 / TO50
Internal Bus
25
µPD780948(A), µPD780949(A)
25
fw
Selector
fx/2 8 2 14 5-bit Counter INTWT
Selector fw
Prescaler
fw
fxT
fw fw fw fw fw fw
24 25 26 27 28 29
Selector
INTWTI
fx/2 12 Prescaler
INTWDT
Maskable
interrupt request
Selector
Control
Circuit
RESET
INTWDT
Non-maskable
interrupt request
26
µPD780948(A), µPD780949(A)
fX
fX/2
fX/22
Selector
27
28
µPD780948(A), µPD780949(A)
5.7 Sound Generator
The sound generator will produce sounds composed of a rectangular frequency signal and a PWM signal
for volume control.
Selector 2
CLK (FSYS) 1/2 Selector 1
fSG1
fSG2
Clear
Selector 3
Comparator 1/2
SGO/SGOF/P34
SGBR=1
To counter
PWM @ Amplitude
S
Comparator SGOA/PCL/P33
R
SGCR TCE SGOB SGCL2 SGCL1 SGCL0 SGBR SGBR3 SGBR2 SGBR1 SGBR0 SGAM SGAM6 SGAM5 SGAM4 SGAM3 SGAM2 SGAM1 SGAM0
SGOF Output
SGOA Output
(Amplitude)
SGO Output
29
µPD780948(A), µPD780949(A)
ANI0/P10
AV DD
ANI1/P11 Sample & Hold Circuit
Tap Selector
ANI2/P12
Voltage Comparator
Selector
ANI3/P13
ANI4/P14
ANI5/P15
ANI6/P16
AV SS
ANI7/P17 Successive Approximation
Register (SAR)
Control
INTAD
Circuit
Internal Bus
30
µPD780948(A), µPD780949(A)
ANI7/P17
A/D Conversion
ANI5/P15
Selector
ANI4/P14 Compare
A/D Comparator
ANI3/P13 Register (PFT)
ANI2/P12
ANI1/P11
ANI0/P10
INTAD
(A/D Conversion termination interrupt)
(Power fail / Power on detection interrupt)
31
µPD780948(A), µPD780949(A)
Internal Bus
SO0/P21
fX/23
Selector
32
µPD780948(A), µPD780949(A)
Internal Bus
fX/26
Selector
Serial Clock fX/27
Control Circuit TO50
Internal Bus
TXD/P26
33
µPD780948(A), µPD780949(A)
DMA Control
Extended
CPU RAM
CTxD
DCAN-Interface
CRxD
High Speed
RAM
Table 5-4: Display Mode Types and Maximum Number of Display Pixels
Bias Method Time Multiplexing Common Signal used Maximum Number of Display Pixels
1/3 4 COM0 to COM3 160 (40 segments x 4 commons)
34
µPD780948(A), µPD780949(A)
Internal Bus
fx
Prescaler
214
fx fx fx
217 216 215
Display
Data Memory
fLCD
Timing Controller Selector
Segment
Data Selector
35
µPD780948(A), µPD780949(A)
Notes: 1. Default priority is the priority order when several maskable interruptions are generated at
the same time. 0 is the highest order and 20 is the lowest order.
2. Basic structure types (A) to (D) correspond to (A) to (D) in Figure 6-1.
6.2 Interrupts
Internal Bus
Standby release
signal
Internal Bus
MK IE PR ISP
Standby release
signal
Internal bus
External Interrupt
Mode Register MK IE PR ISP
(EGP, EGN)
Standby
release
signal
37
µPD780948(A), µPD780949(A)
Internal Bus
38
µPD780948(A), µPD780949(A)
8. EEPROM Function
The µPD780948 incorporates not only a 2016 byte x 8-bit RAM but also 256 byte x 8-bit EEPROM
(Electrically Erasable PROM) as data memory.
EEPROM, unlike static RAM, can retain its contents when the power is turned off. Unlike EPROM, it‘s
contents can electrically be erased without using ultraviolet rays. EEPROM is manipulated by 8-bit memory
manipulation instructions.
9. Standby Function
The standby function intends to reduce current consumption. It has the following two modes:
• HALT mode: In this mode, the CPU operation clock is stopped. The average current consump-
tion can be reduced by intermittent operation by combining this mode with the
normal operation mode.
• STOP mode: In this mode, oscillation of the main system clock is stopped. All the operations
performed on the main system clock are suspended, and only the subsystem
clock is used for extremely small power consumption.
CSS = 1
Main System Clock Operation Subsystem Clock OperationNote
CSS = 0
STOP HALT instruction HALT instruction
instruction
Interrupt
request Interrupt Interrupt
request request
Note
HALT Mode HALT Mode
STOP Mode
(Supply of clock to CPU is (Supply of clock to CPU is
(Oscillation of the main system
stopped although clock stopped although clock
clock is stopped.)
is generated.) is generated.)
Note: Current consumption is reduced by shutting off the main system clock.
If the CPU is operating on subsystemclock, shut off the main system clock by setting MCC.
Caution: When switching on the main system clock again after the subsystem clock has been used
with the main system clock stopped, be sure to provide enough time for the generation
to be stable with the program first.
39
µPD780948(A), µPD780949(A)
2nd Operand
[HL+byte]
#byte A r Note sfr saddr !addr16 PSW [DE] [HL] [HL + B] $addr16 1 None
[HL + C]
1st Operand
ADD MOV MOV MOV MOV MOV MOV MOV MOV MOVU ROR
ADDC XCH XCH XCH XCH XCH XCH XCH ROL
SUB ADD ADD ADD ADD ADD RORC
SUBC ADDC ADDC ADDC ADDC ADDC ROLC
AND SUB SUB SUB SUB SUB
A OR SUBC SUBC SUBC SUBC SUBC
XOR AND AND AND AND AND
CMP OR OR OR OR OR
XOR XOR XOR XOR XOR
CMP CMP CMP CMP CMP
r1 DBNZ
!addr16 MOV
[DE] MOV
MOV ROR4
[HL] ROL4
[HL+byte] MOV
[HL + B]
[HL + C]
X MULU
C DIVUW
Note: Except r = A
40
µPD780948(A), µPD780949(A)
2nd Operand
#word AX rp sfrp saddrp !addr16 SP None
1st Operand
SP MOVW MOVW
2nd Operand
A.bit sfr.bit saddr.bit PSW.bit [HL].bit CY $addr16 None
1st Operand
MOV1 BT SET1
A.bit BF CLR1
BTCLR
MOV1 BT SET1
sfr.bit BF CLR1
BTCLR
MOV1 BT SET1
saddr.bit BF CLR1
BTCLR
MOV1 BT SET1
PSW.bit BF CLR1
BTCLR
MOV1 BT SET1
[HL].bit BF CLR1
BTCLR
41
µPD780948(A), µPD780949(A)
2nd Operand
AX !addr16 !addr11 [addr5] $addr16
1st Operand
42
µPD780948(A), µPD780949(A)
Note: Effective value should be calculated as follows: [Effective value] = [Peak value] x Öduty
Caution: Product quality may suffer if the absolute maximum ratings are exceeded for even a single
parameter or even momentarily. 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 which ensure that the absolute maximum ratings
are not exceeded.
Remark: The characteristics of the dual-function pins are the same as those of the port pins unless
otherwise specified.
43
µPD780948(A), µPD780949(A)
Remark: The characteristics of the dual-function pins are the same as those of the port pins unless
otherwise specified.
44
µPD780948(A), µPD780949(A)
Main System Clock Oscillation Circuit Characteristics (T A = -40 to +85° C, VDD = 1.8 to 5.5 V)
Oscillator
IC X2 X1 VDD = 4.0 to 5.5 V 4.0 8.0 8.5 MHz
frequency (fx) Note 1
Ceramic
resonator
C2 C1 After VDD reaches
Oscillation
oscillator voltage 10 ms
stabilization time Note2
range MIN. 4.0 V
Oscillator
IC X2 X1 VDD = 4.0 to 5.5 V 4.0 8.0 8.5 MHz
frequency (fx) Note 1
Crystal
resonator C2 C1 After VDD reaches
Oscillation
oscillator voltage 10 ms
stabilization time Note2
range MIN. 4.0 V
X1 input
X2 X1 VDD = 4.0 to 5.5 V 4.0 8.0 8.5 MHz
frequency (fx) Note 1
External
clock
X1 input
µ PD74HCU04
high/low-level width VDD = 4.0 to 5.5 V 55 125 ns
(tXH, tXL)
Notes: 1. Indicates only oscillation circuit characteristics. Refer to “AC Characteristics” for instruction
execution time.
2. Time required to stabilize oscillation after reset or STOP mode release.
Cautions: 1. When using the main system clock oscillation circuit, wiring in the area enclosed with
the broken line should be carried out as follows to avoid an adverse effect from wiring
capacitance.
2. When the main system clock is stopped and the system is operated by the subsystem
clock, the subsystem clock should be switched again to the main system clock after
the oscillation stabilization time is secured by the program.
45
µPD780948(A), µPD780949(A)
Subystem Clock Oscillation Circuit Characteristics (TA = -40 to +85° C, VDD = 1.8 to 5.5 V)
Recommended
Parameter Test Conditions MIN. TYP. MAX. Unit
Resonator circuit
CL1 CL2
4.0 V ≤ VDD ≤ 5.5 V
Oscillator
RC osc. R R = 518 kΩ 32 40 tbd kHz
frequency (fxt)
C C = 33 pF
Note: Only oscillator circuit characteristics are shown. Regarding instruction execute time, please
refer to AC characteristics.
Cautions: 1. When using the subsystem clock oscillation circuit, wiring in the area enclosed with
the broken line should be carried out as follows to avoid an adverse effect from wiring
capacitance.
2. The subsystem clock oscillation circuit is designed to be a circuit with a low amplifi-
cation level, for low power consumption more prone to misoperation due to noise than
that of the main system clock. Therefore, when using the subsystem clock, take special
cautions for wiring methods.
46
µPD780948(A), µPD780949(A)
Remark: The characteristics of the dual-function pins are the same as those of the port pins unless
otherwise specified.
47
µPD780948(A), µPD780949(A)
Note: The AVREF current, port current (including a current flowing in the on-chip pull-up resistor), the
LCD split resistors and the EEPROM access are not included.
Remarks: 1. fX: Main system clock oscillator frequency.
2. fXT: Subsystem clock oscillator frequency.
Note: The voltage deviation is the difference from the output voltage corresponding to the ideal value
of the segment and common outputs (VLCDN; n = 0, 1, 2).
48
µPD780948(A), µPD780949(A)
AC Characteristics
Figure 12-1: TCY vs VDD (At fx = fx/2 main system clock operation)
60
10
Cycle time TCY [µ s]
Operation guaranteed
range
2.0
1.0
0.5
0.4
0
1 2 3 4 5 6
Supply voltage VDD [V]
49
µPD780948(A), µPD780949(A)
50
µPD780948(A), µPD780949(A)
Table 12-10: 3-wire serial I/O mode (SCK0... Internal clock output)
Table 12-11: 3-wire serial I/O mode (SCK0... External clock output)
51
µPD780948(A), µPD780949(A)
Table 12-12: 2-wire serial I/O mode (SCK0... Internal clock output)
Note: R and C are the load resistance and load capacitance of the SI1/SO1 and SCK1 output line.
Table 12-13: 2-wire serial I/O mode (SCK0... External clock output)
Note: R and C are the load resistance and load capacitance of the SI1/SO1 and SCK1 output line.
52
µPD780948(A), µPD780949(A)
1/fX
tXL tXH
VDD – 0.5 V
X1 Input
0.4 V
1/fXT
tXTL tXTH
VDD – 0.5 V
CL1 Input
0.4 V
t CAPL t CAPH
TI00, TI01
tTIL2 tTIH2
53
µPD780948(A), µPD780949(A)
Read/Write Operation
Lower 8-bit
address tADD1
Hi-Z Operation
AD0 - AD7
code
tADS tRDADH
tADH tRDD1
tASTH
tRDAST
ASTB
RD
tASTRD tRDL1
tRDH
Lower 8-bit
address tADD1
Hi-Z Operation
AD0 - AD7
code
tADS tRDD1 tRDADH
tADH
tASTH
tRDAST
ASTB
RD
54
µPD780948(A), µPD780949(A)
Lower
8-bit tADD2
address
Hi-Z Hi-Z Hi-Z
AD0 - AD7 Read data Write data
tADS tRDD2
tADH
tRDH
tASTH
ASTB
RD
tASTRD
tRDL2 tRDWD tWDS tWDH
tWRWDÊ tWRADH
WR
tASTWR tWRL
Lower
8-bit tADD2
address
Hi-Z Hi-Z Hi-Z
AD0 - AD7 Read data Write data
tADS tRDD2
tADH tRDH
tASTH
ASTB
tASTRD
RD
tWDH
tRDL2 tRDWD tWDS
tWRWD
WR
55
µPD780948(A), µPD780949(A)
tKCYm
tKLm tKHm
SCK0
tSIKm tKSIm
tKSO m
Remark: m=1
tKCY5
tKL5 tKH5
SCK1
tSIK5 tKSI5
tKSO5
SI1, SO1
56
µPD780948(A), µPD780949(A)
A/D Converter Characteristics (TA = -40 to +85° C, VDD = 4.0 to 5.5 V, AVSS = VSS =0 V, fx = 8 MHz)
Note: Overall error excluding quantization error (± 1/2 LSB). It is indicated as a ratio to the full-scale value.
Note: The EEPROM is only available in the µPD780949 and not in the µPD780948.
57
µPD780948(A), µPD780949(A)
Data Memory Stop Mode Low Supply Voltage Data Retention Characteristics (TA = -40 to +85° C)
Table 12-18: Data Memory Stop Mode Low Supply Voltage Data Retention Characteristics
Note: In combination with bits 0 to 2 (OSTS0 to OSTS2) of oscillation stabilization time select register,
selection of 212/fx and 214/fx to 217/fx is possible
VDD VDDDR
tSREL
STOP instruction execution
RESET
tWAIT
Figure 12-12: Data Retention Timing (Standby release signal: STOP mode release by interrupt signal)
HALT mode
VDD VDDDR
tSREL
STOP instruction execution
tWAIT
58
µPD780948(A), µPD780949(A)
tINTL tINTH
INTP0 - INTP4
tRSL
RESET
59
µPD780948(A), µPD780949(A)
A
B
80 51
81 50
Detail of lead end
C
D
5¡±5¡
Q
100 31
1 30
F
G H I M J
K
P
N L
P100GF-65-3BA1-2
Note: Item Millimeters Inches
Each lead centerline is located within 0.15
mm (0.006 inch) of its true position (T.P.) at A 23.6 ± 0.4 0.929 ± 0.016
maximum material condition. B 20.0 ± 0.2 0.795 +0.009
–0.008
I 0.15 0.006
J 0.65 (T.P.) 0.026 (T.P.)
K 1.8 ± 0.2 0.071+0.008
–0.009
M 0.15+0.10
–0.05 0.006+0.004
–0.003
N 0.10 0.004
P 2.7 0.106
Q 0.1 ± 0.1 0.004 ± 0.004
S 3.0 MAX. 0.119 MAX.
Remark: The shape and material of the ES product is the same as the mass produced product.
60
µPD780948(A), µPD780949(A)
Recommended
Soldering Method Soldering Conditions
Condition Symbol
Package peak temperature: 235° C, Duration: 30 sec. max.
(at 210° C or above).
Number of times: twice max.
Infrared reflow <Precautions> IR35-00-2
(1) The second reflow schold be started after the first reflow
device temperature has retumed to the ordinary state.
(2) Flux washing must not be performed by the use of water
after the first reflow.
Package peak temperature: 215° C, Duration: 40 sec. max.
(at 210° C or above).
Number of times: twice max.
VPS <Precautions> VP15-00-2
(3) The second reflow schold be started after the first reflow
device temperature has retumed to the ordinary state.
(4) Flux washing must not be performed by the use of water
after the first reflow.
Soldering bath temperature: 260° C max.
Duration: 10 sec. max.
Wave soldering Number of times: once, Preheating temperature: 120° C WS60-00-1
max. (package surface temperature)
Caution: Use of more than one soldering method should be avoided (exept in the case of pin part
heating).
61
µPD780948(A), µPD780949(A)
Flashpro Dedicated flash writer for micro controllers with on-chip flash memory
FA-100GF Programmer adapter connected to the Flash-Pro
Debugging Tools
Real-Time OS
Notes 1, 2, 3
RX78K/0 Real-time OS used for the 78K/0 series
Notes 1, 2, 3
MX78K0 OS used for the 78K/0 series
Document No.
Document
Japanese English
78K0 Series User’s Manual-Instruction IEU-849 IEU-1372
78K0 Series Instruction Table IEM-5522 —
78K0 Series Instruction Set IEM-5521 —
78K0 Series Application Note-Fundamental (III) IEA-767 To be prepared
Document No.
Document
Japanese English
Operation EEU-809 EEU-1399
RA78K Series Assembler Package
Language EEU-815 EEU-1404
RA78K Series Structured Assembler Reprocessor EEU-817 EEU-1402
Operation EEU-656 EEU-1280
CC78K Series C Compiler
Language EEU-655 EEU-1284
CC78K0 C Compiler Application Note Programming Know-how EEU-618 To be prepared
CC78K Series Library Source File EEU-777 —
IE78001-R-A EEU-810 U10057
IE-78001-R-BK EEU-867 To be prepared
IE-780948-SL-EM1 EEU-978 U12412
IE-780948-SL-EM4 — U12412
EP-100GF-SL EEU-934 EEU-1522
SM78K0 System Simulator Reference — U10181
IBM PC/AT (PC DOS) Base External Port Specification — U10092
ID78K0 Integrated Debugger Reference — U11539
IBM PC/AT (PC DOS) Base Guide — U11649
Caution: The above documents are subject to change without notice. Be sure to use the latest
documents for design or for any other similar purpose.
63
µPD780948(A), µPD780949(A)
Document No.
Document
Japanese English
78K0 Series Real-time OS Basic EEU-912 —
Installation EEU-911 —
Technical EEU-913 —
78K0 Series OS MX78K0 Fundamental EEU-5010 —
Fuzzy Knowledge Data Creation Tool EEU-829 EEU-1438
78K0, 78K/II, 87AD Series
EEA-862 EEU-1444
Fuzzy Inference Development Support System Translator
78K0 Fuzzy Inference Development Support System Fuzzy Inference Module EEU-858 EEU-1441
78K0 Fuzzy Inference Development Support System Fuzzy Inference
EEU-921 EEU-1458
Debugger
Other Documents
Document No.
Document
Japanese English
Package Manual IEI-635 IEI-1213
Semiconductor Device Mounting Technology Manual IEI-616 IEI-1207
Quality Grade on NEC Semiconductor Devices IEI-620 IEI-1209
NEC Semiconductor Device Reliability/Quality Control System IEM-5068 —
Electrostatic Discharge (ESD) Test MEM-539 —
Semiconductor Device Quality Assurance Guide MEI-603 MEI-1202
Microcontroller-Related Product Guide - Third Party Products - MEI-604 —
Caution: The above documents are subject to change without notice. Be sure to use the latest
documents for design or for any other similar purpose.
64
µPD780948(A), µPD780949(A)
Note: Strong electric field, when exposed to a MOS device, can cause destruction of the gate
oxide and ultimately degrade the device operation. Steps must be taken to stop
generation of static electricity as much as possible, and quickly dissipate it once, when
it has occurred. Environmental control must be adequate. When it is dry, humidifier
should be used. It is recommended to avoid using insulators that easily build static
electricity. Semiconductor devices must be stored and transported in an anti-static
container, static shielding bag or conductive material. All test and measurement tools
including work bench and floor should be grounded. The operator should be grounded
using wrist strap. Semiconductor devices must not be touched with bare hands. Similar
precautions need to be taken for PW boards with semiconductor devices on it.
Note: No connection for CMOS device inputs can be cause of malfunction. If no connection
is provided to the input pins, it is possible that an internal input level may be generated
due to noise, etc., hence causing malfunction. CMOS device behave differently than
Bipolar or NMOS devices. Input levels of CMOS devices must be fixed high or low by
using a pull-up or pull-down circuitry. Each unused pin should be connected to VDD
or GND with a resistor, if it is considered to have a possibility of being an output pin.
All handling related to the unused pins must be judged device by device and related
specifications governing the devices.
Note: Power-on does not necessarily define initial status of MOS device. Production process
of MOS does not define the initial operation status of the device. Immediately after the
power source is turned ON, the devices with reset function have not yet been initialized.
Hence, power-on does not guarantee out-pin levels, I/O settings or contents of
registers. Device is not initialized until the reset signal is received. Reset operation
must be executed immediately after power-on for devices having reset function.
65
µPD780948(A), µPD780949(A)
Regional Information
Some information contained in this document may vary from country to country. Before using any NEC
product in your application, please contact the NEC office in your country to obtain a list of authorized
representatives and distributors. They will verify:
• Device availability
• Ordering information
• Development environment specifications (for example, specifications for third-party tools and components,
host computers, power plugs, AC supply voltages, and so forth)
• Network requirements
In addition, trademarks, registered trademarks, export restrictions, and other legal issues may also vary
from country to country.
NEC Electronics Inc. (U.S.) NEC Electronics (Germany) GmbH NEC Electronics Hong Kong Ltd.
Santa Clara, California Benelux Office Hong Kong
Tel: 800-366-9782 Eindhoven, The Netherlands Tel: 2886-9318
Fax: 800-729-9288 Tel: 040-2445845 Fax: 2886-9022/9044
Fax: 040-2444580
NEC Electronics (Germany) GmbH NEC Electronics Hong Kong Ltd.
Duesseldorf, Germany NEC Electronics (France) S.A. Seoul Branch
Tel: 0211-65 03 02 Velizy-Villacoublay, France Seoul, Korea
Fax: 0211-65 03 490 Tel: 01-30-67 58 00 Tel: 02-528-0303
Fax: 01-30-67 58 99 Fax: 02-528-4411
NEC Electronics (UK) Ltd.
Milton Keynes, UK NEC Electronics (France) S.A. NEC Electronics Singapore Pte. Ltd.
Tel: 01908-691-133 Spain Office United Square, Singapore 1130
Fax: 01908-670-290 Madrid, Spain Tel: 253-8311
Tel: 01-504-2787 Fax: 250-3583
NEC Electronics Italiana s.r.l. Fax: 01-504-2860
Milano, Italy NEC Electronics Taiwan Ltd.
Tel: 02-66 75 41 NEC Electronics (Germany) GmbH Taipei, Taiwan
Fax: 02-66 75 42 99 Scandinavia Office Tel: 02-719-2377
Taeby, Sweden Fax: 02-719-5951
Tel: 08-63 80 820
Fax: 08-63 80 388 NEC do Brasil S.A.
Sao Paulo-SP, Brasil
Tel: 011-889-1680
Fax: 011-889-1689
66
µPD780948(A), µPD780949(A)
The related documents in this publication may include preliminary versions. However, prelimi-
nary versions are not marked as such.
The export of this product from Japan is regulated by the Japanese government. To export this
product may be prohibited without governmental license, the need for which must be judged by the
customer. The export or re-export of this product from a country other than Japan may also be
prohibited without a license from that country. Please call an NEC sales representative.
No part of this document may be copied or reproduced in any form or by any means without the prior written
consent of NEC Corporation. NEC Corporation assumes no responsibility for any errors which may appear
in this document.
NEC Corporation does not assume any liability for infringement of patents, copyrights or other intellectual
property rights of third parties by or arising from use of a device described herein or any other liability arising
from use of such device. No license, either express, implied or otherwise, is granted under any patents,
copyrights or other intellectual property rights of NEC Corporation or others.
While NEC Corporation has been making continuous effort to enhance the reliability of its semiconductor
devices, the possibility of defects cannot be eliminated entirely. To minimize risks of damage or injury to
persons or property arising from a defect in an NEC semiconductor device, customer must incorporate
sufficient safety measures in its design, such as redundancy, fire-containment, and anti-failure features.
NEC devices are classified into the following three quality grades:
“Standard“, “Special“, and “Specific“. The Specific quality grade applies only to devices developed based
on a customer designated “quality assurance program“ for a specific application. The recommended
applications of a device depend on its quality grade, as indicated below. Customers must check the quality
grade of each device 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: Aircrafts, aerospace equipment, submersible repeaters, nuclear reactor control systems, life
support systems or medical equipment for life support, etc.
The quality grade of NEC devices is “Standard“ unless otherwise specified in NEC's Data Sheets or Data
Books.
If customers intend to use NEC devices for applications other than those specified for Standard quality
grade, they should contact NEC Sales Representative in advance.
Anti-radioactive design is not implemented in this product.
M4 94.11
67