1990_NEC_Single Chip_Microcontroller_Data_Book 1990 NEC Single Chip Microcontroller Data Book
User Manual: 1990_NEC_Single-Chip_Microcontroller_Data_Book
Open the PDF directly: View PDF
.
Page Count: 1002
| Download | |
| Open PDF In Browser | View PDF |
SINGLE-CHIP MICROCONTROLLER
DATA BOOK
i
I DISTRIBUTED
i
//I~..
/MERIT
'I"
NEe
BY:
MERIT ELECTRONICS INC
2070 RingwOod Ave
San Jose, CA 95131·
(408) 434-0800
•
•
I
I
NEe
NEe Electronics Inc.
1990
Single-Chip Microcontroller
Data Book
May 1990
Document No. 50053
©1990 NEe Electronics Inc.lPrinted in U.S.A.
No part ofthis document may be copied or reproduced in any form or by any means withoutthe prior written consent
of NEG Electronics Inc. The information in this document Is subject to change without notice. Devices sold by NEG
Electronics Inc. are covered by the warranty and patent indemnification provisions appearing in NEG Electronics Inc.
Terms and Gonditions of Sale only. NEG Electronics Inc. makes no warranty, express, statutory, implied, or by
description, regarding the information set forth herein or regarding the freedom of the described devices from patent
infringement. NEG Electronics Inc. makes no warranty of merchantability or fitness for any purpose. NEG Electronics
Inc. assumes no responsibility for any errors that may appear in this document. NEG Electronics Inc. makes no
commitment to update or to keep current the Information contained in this document.
/
t\'EC
ii
t-IEC
Selection Guides
a
Reliability and Quality Control
fJ
JlPD7500 Series:
4-Bit Microcomputers
JlPD75000 Series:
4-Bit Microcomputers
Jl PD7800 Series:
8-Bit Microcomputers
II
II
EI
JlPD78K2 Series: 8-Bit Microcomputers
II
JlPD78K3 Series:
i6-Bit Microcomputers
II
JlPD722x Series:
LCD Controller/Drivers
II
Development Tools
Package Drawings
iii
m
1m
ftlEC
iv
t-IEC
Contents
Section 1
Selection Guides
Single-Chip Microcomputers
1-3
Figure 6. NEC Quality and Reliability Targets
2-10
JlPD75XX Series Development Tools
1-7
Appendix 1. Typical QC Flow
2-12
JlPD75XXX Series Development Tools
1-9
Appendix 2. Typical Reliability Assurance
Tests
2-15
Appendix 3. New Product/Process Change
Tests
2-16
Appendix 4. Failure Analysis Flowchart
2-17
JlPD78XX Series Development Tools
1-11
JlPD782XX Series Development Tools
1-13
JlPD783XX Series Development Tools
1-15
PG-1500 Programming Adapters
1-17
V-Series Microprocessors and Peripherals
1-19
Intelligent Peripheral Devices (IPD)
1-23
DSP and Speech Products
1-25
V-Series Development Tools
1-27
DSP and Speech Development Tools
1-31
Section 2
Reliability and Quality Control
Introduction
2-3
Built-In Quality and Reliability
2-3
Technology Description
2-3
Approaches to Total Quality Control
2-3
Implementation of Quality Control
2-5
Reliability Testing
2-7
Life Distribution
2-7
Failure Distribution at NEC
2-7
Infant Mortality Failure Screening
2-8
Long-Term Failure Rate
2-8
Accelerated Reliability Testing
2-8
Failure Rate Calculation/Prediction
2-9
Product/Process Changes
2-10
Failure Analysis
2-10
NEC's Goals on Failure Rates
2-10
Summary and Conclusion
2-10
Figure 1. Quality Control System Flowchart
2-5
Figure 2. New Product Development Flow
2-6
Figure 3. Electrical Testing and Screening
2-6
Figure 4. Reliability Life (Bathtub) Curve
2-7
Figure 5. Typical Reliability Test Results
2-9
Section 3
I'PD7500 Series:
4-Bit, CMOS Microcomputers
I'P D75 02/03
4-Bit, Single-Chip CMOS Microcomputers
With LCD Controller/Driver
3-3
I'P D75 07/0 8
4-Bit, Single-Chip CMOS Microcomputers
3-19
I'PD7507H/08H/75CG08HE
4-Bit, Single-Chip CMOS Microcomputers
3-39
I'PD7527A/28A/75CG 28E
4-Bit, Single-Chip CMOS Microcomputers
With FIP Driver
3-53
I'PD7533/75CG33E
4-Bit, Single-Chip CMOS Microcomputers
With A/D Converter
3-65
I'PD7537A!38A/75CG38E
4-Bit, Single-Chip CMOS Microcomputers
With FIP Driver
3-85
I'PD7554/54A/64/64A
4-Bit, Single-Chip CMOS Microcomputers
With Serial I/O
3-99
I'PD75P54/P64
4-Bit, Single-Chip, One-Time Programmable
(OTP) CMOS Microcomputers With Serial I/O
3-121
I'PD7556/56A/66/66A
4-Bit, Single-Chip CMOS Microcomputers
With Comparator
3-141
I'PD75P56/P66
4-Bit, Single-Chip, One-Time Programmable
(OTP) CMOS Microcomputers With
Comparator
3-163
v
NEe
Contents
Section 4
p.PD75000 Series:
4-Bit, High-Integration Microcomputers
Section 6
p.PD78K2 Series:
8-Bit, Advanced Microcomputers
I'PD7500x/7SPOO8
General-Purpose 4-Bit Microcomputers
With Multiple II0s
4-3
"PD75028/75P036
General-Purpose4-Bit Microcomputers
With AID Converter
4-27
"PD7822X
Advanced, 8-Bit Real-Time Control
Microcomputers With Analog Comparators
"PD75048/75P056
General-Purpose 4-Bit Microcomputers
With EEPROM and AID Converter
4-35
"PD7823X
Advanced, 8-Bit Real-Time Control
Microcomputers With AID and DIA Converters
"PD751 xx/75P1 xx
High-End 4-Bit Microcomputers
4-43
I'PD7520x/7521 x/75CG 2xx/75P216A
4-Bit Microcomputers
With FIP (VF) ControllerlDriver
4-95
"PD7821x
Advanced, 8-Bit Real-Time Control
Microcomputers With A!DConverter
4-123
"PD7831 xA/78P31 xA
i6/8-Bit, Single-Chip CMOS Microcomputers,
Real-Time Control Oriented
"PD7530x/31 x/P308/P316
4-Bit Microcomputers
With LCD ControllerlDriver
4-135
"PD7832x
Advanced, 8/i6~Bit, Real-Time Control
Microcomputers With AID Converter
"PD75328/75P328
4-Bit Microcomputers
With LCD ControllerlDriver and AID Converter
4-191
"PD71P301
Memory Extender and Port Re-Creation Logic
(Turbo Access Manager)
6-119
7-3
7-61
7-113
Section 8
p.PD722x Series:
Intelligent LCD Controller/Drivers
Section 5
p.PD7800 Series:
8-Bit, General-Purpose Microcomputers
vi
6-63
Section 7
p.PD78K3 Series:
16-Bit, Advanced Microcomputers
"PD75268
4-Bit Microcomputer
With FIP (VF) ControllerlDriver
"PD78Cix/78C1xA/CG14/CP14
8-Bit CMOS Microcomputers
With AID Converter
6-3
5-3
"PD7225
CMOS, Intelligent, Alphanumeric
LCD Controller/Driver
8-3
"PD7227
CMOS, Intelligent, Dot-Matrix
LCD Controller/Driver
8-13
"PD7228/28A
CMOS, Intelligent, Dot-Matrix
LCD Controller/Driver
8-21
NEe
Contents
Section 9
Development Tools
4-Bit; pPD7500 Series
8-Bit; pPD78K2 Series (cont)
EVAKIT-7500B
For the IlPD7500 Series
9-3
IE-78210
In-Circuit Emulator
9-51
ASM75
Absolute Assembler for the IlPD7500 Series
9-7
IE-78220
In-Circuit Emulator
9-55
CC782XX
C Compiler Package for the IlPD782XX
Series
9-59
RA78K2
Relocatable Assembler Package for the
IlPD782XX Series
9-63
ST78K2
Structured Assembler Preprocessor for the
IlPD782XX Series
9-67
4-Bit; pPD75000 Series
RA75X
Relocatable Assembler Package for the
IlPD75000 Series
ST75X
Structured Assembler Preprocessor for the
IlPD75000 Series
9-9
9-15
8oBit; pPD7BOO Series
DDK-78C10
Evaluation Board for the IlPD78CXX Series
9-19
IE-78C11
In-Circuit Emulator
9-23
DDK-78310A
Evaluation Board for the IlPD78310A
9-71
CC87
Micro-Series T• C Compiler Package for the
IlPD7800 Series
9-27
EB-78320
Evaluation Board for the IlPD78320
9-75
9-79
RA87
Relocatable Assembler Package for the
IlPD7800 Series
9-29
IE-18310A
In-Circuit Emulator
IE-78320
In-Circuit Emulator
9-83
CC7831X
C Compiler Package for the IlPD7831X/
IlPD7831XA Series
9-89
CC7832X
C Compiler Package for the IlPD7832X
Series
9-93
RA78K3
Relocatable Assembler Package for the
IlPD7831X/7832X
9-97
8-Bit; pPD78K2 Series
DK-78K2
IlPD782XX Designer Kits
9-33
EK-78K2
IlPD782XX Evaluation Kits
9-35
IK-78K2
IlPD782XX In-Circuit Emulator Kits
9-37
DDB-78K2
Evaluation Boards for the IlPD782XX Series
9-39
EB-78210
Evaluation Board for the IlPD78213
9-43
EB-78220
Evaluation Board for the IlPD78220
9-47
8/16-Bit; pPD78K3 Series
ST78K3
Structured Assembler Preprocessor for the
pPD783XX Series
9-101
PG-1S00 Series
EPROM Programmer
9-105
vii
NEe
Contents
Section 10
Package Drawings
Package/Device Cross-Reference
10-3
64-Pin Ceramic LCC (w/Window)
10-20
20-Pin Plastic Shrink DIP
10-5
64-Pin Ceramic Piggyback Shrink DIP
10-21
20-Pin Plastic SOP
10-5
64-Pin Ceramic Piggyback QUIP
10-22
24-Pin Plastic Shrink DIP
10-6
64-Pin Ceramic Piggyback QFP
10-23
24-Pin Plastic SOP
10-6
64-Pin Plastic QFP (2.55 mm thick)
10-24
40-Pin Plastic DIP
10-7
64-Pin Plastic QFP (1.5 mm thick)
10-25
40-Pin Plastic Shrink DIP
10-8
64-Pin Plastic QFP (2.7 mm thick)
10-26
10-9
64-Pin Plastic QFP (2.05 mm thick)
10-27
64-Pin Ceramic QUIP (w/window)
10-28
40-Pin Ceramic Piggyback DIP
42-Pin Plastic DIP
10-10
42-Pin Plastic Shrink DIP
10-10
64-Pin Plastic QUIP
10-29
42-Pin Ceramic Piggyback DIP
10-11
68-Pin PLCC
10-30
44-Pin Ceramic LCC (w/window)
10-12
74-Pin Plastic QFP
10-31
44-Pin Plastic QFP
10-13
80-Pin Ceramic LCC (w/window)
10-32
44-Pin PLCC
10-14
80-Pin Plastic QFP (14 by 14 mm)
10-32
52-Pin Plastic QFP (1.8-mm leads)
10-15
80-Pin Plastic QFP (20 by 14 mm;
1.8-mm leads)
10-33
80-Pin Plastic QFP (20 by 14 mm;
2.35-mm leads)
10-34
84-Pin PLCC
10-35
94-Pin Ceramic LCC (w/window)
10-36
94-Pin Plastic QFP
10-37
52-Pin Plastic QFP (3$mm leads)
10-16
64-Pin Shrink CERDIP (w/350-mil
window)
10-17
64-Pin Shrink CERDIP (w/300-mil
window)
10-18
64-Pin Plastic Shrink DIP
10-19
viii
NEe
Contents
Numerical Index
Device, ~PD
Page
Device, ~PD
Page
71P301
7-113
7225
7227
7228
7228A
8-3
8-13
8-21
8-21
75028
75P036
75048
75P056
4-27
4-27
4-35
4-35
7502
7503
7507
7507H
3-3
3-3
3-19
3-39
75104
75104A
75106
4-43
4-43
4-43
7508
75CG08
7508H
75CG08HE
3-19
3-19
3-39
3-39
75108
75108A
75P108
75P108B
4-43
4-43
4-43
4-43
7527A
7528A
75CG28E
3-53
3-53
3-53
75112
75116
75P116
4-43
4-43
4-43
7533
75CG33E
7537A
7538A
75CG38E
3-65
3-65
3-85
3-85
3-85
75206
75208
75CG208
4-95
4-95
4-95
75212A
75216A
75CG216A
75P216
75P216A
4-95
4-95
4-95
4-95
4-95
7554
7554A
75P54
3-99
3-99
3-121
7556
7556A
75P56
75268
4-123
3-141
3-141
3-163
75304
75306
75308
75P308
4-135
4-135
4-135
4-135
7564
7564A
75P64
3-99
3-99
3-121
75312
75316
75P316
4-135
4-135
4-135
7566
7566A
75P66
3-141
3-141
3-163
75328
75P328
4-191
4-191
78C10
78C10A
78C11
78C11A
5-3
5-3
5-3
5-3
75004
75006
75008
75P008
4-3
4-3
4-3
4-3
ix
,-,'
NEe
Contents
Numerical Index (cont)
Device, ",0
78C12A
78C14
78C14A
78CG14
78CP14
78213
78214
781'214
78220
78224
78P224
x
Page
5-3
5-3
5-3
5-3
5-03
6-3
6-3
6-3
6-63
6-63
6-63
Device, "PO
78233
78234
78P238
78310A
78312A
78P312A
78320
78322
Page
6-119
6-119
6-119
7-3
7-3
7-3
7-61
7-61
t\'EC
Selection Guides
1-1
a
ttlEC
Selection Guides
Part Numbering System
Section 1
Selection Guides
Single-Chip Microcomputers
1-3
~PD75XX
1-7
Series Development Tools
~PD75XXX
~PD78XX
Series Development Tools
Series Development Tools
~PD782XX
Series Development Tools
~PD783XX
Series Development Tools
PG-1500 Programming Adapters
1-9
1-11
1-13
1-15
1-17
V-Series Microprocessors and Peripherals
1-19
Intelligent Peripheral Devices (IPD)
1-23
DSP and Speech Products
1-25
V-Series Development Tools
1-27
DSP and Speech Development Tools
1-31
1-2
~PD72001L
~P
D
72001
L
Typical microdevice part number
NEC monolithic silicon integrated circuit
Device type (D = digital MOS)
Device identifier (alphanumeric)
Package type (L = PLCC)
A part number may include an alphanumeric suffix that
identifies special device characteristics; for example,
~PD72001L-11 has an 11-MHz data clock rating.
NEe
Single-Chip
Microcomputers
4-Blt, Single-Chip CMOS Microcomputers
Device,
).lPD
Features
(MHz)
7502
7503
7507
LCD controller/driver
LCD controller/driver
General-purpose
0.41
0.41
0.41
7507H
General-purpose
7508
Clock
Supply
Voltage (V)
ROM
(X8)
RAM
(X4)
1/0
, ilackage
Pins
2.5 to 6.0
2.5 to 6.0
2.5 to 6.0
2K
4K
2K
128
224
128
23
23
32
4.19
2.7 to 6.0
2K
128
32
General-purpose
0.41
2.5 to 6.0
4K
224
32
7508H
General-purpose
4.19
2.7 to 6.0
4K
224
32
75CG08
75CG08H
7527A
Piggyback EPROM
Piggyback EPROM
FIP controller/driver
0.41
4.19
0.61
4.5 to 5.5
4.5 to 5.5
2.7 to 6.0
2K or 4K
2Kor 4K
2K
224
224
128
32
32
35
7528A
FIP controller/driver
0.61
2.7 to 6.0
4K
160
35
75CG28
Piggyback EPROM;
FIP controller/driver
AID converter
0.5
4.5 to 5.5
4K
160
35
QFP
QFP
DIP
SDIP
QFP
DIP
SDiP
QFP
DIP
SDiP
QFP
DIP
SDiP
QFP
Ceramic DIP
Ceramic DIP
DIP
SDiP
DIP
SDiP
Ceramic DIP
64
64
40
40
52
40
40
52
40
40
52
40
40
52
40
40
42
42
42
42
42
0.5
2.7 to 6.0
4K
160
30
0.5
4.5 to 5.5
4K
160
30
42
42
44
42
7537A
Piggyback EPROM;
AID converter
FIP controller/driver
DIP
SDiP
QFP
Ceramic DIP
0.61
2.7 to 6.0
2K
128
35
7538A
FIP controller/driver
0.61
2.7 to 6.0
4K
160
35
75CG38
0.61
4.5 to 5.5
4K
160
35
42
42
42
42
42
0.71
2.5 to 6.0
lK
64
16
0.71
2.0 to 6.0
lK
64
16
0.71
4.5 to 6.0
16
0.71
2.7 to 6.0
lK
OTPROM
lK
64
7564n564A
Piggyback EPROM;
FIP controller/driver
Serial 110; external clock
or RC oscillator
Serial 110; external clock
or RC oscillator
Serial I/O; external clock
or RC oscillator
Serial 110; ceramic oscillator
DIP
SDIP
DIP
SDiP
Ceramic DIP
64
15
75P64
Serial 110; ceramic oscillator
0.71
4.5 to 6.0
64
15
7556
0.71
2.5 to 6.0
64
20
0.71
2.0 to 6.0
lK
64
20
0.71
4.5 to 6.0
20
0.71
2.7 to 6.0
lK
OTPROM
lK
64
756617566A
Comparator; extemal
clock or RC oscillator
Comparator; external
clock or RC oscillator
Comparator; external
clock or RC oscillator
Comparator; ceramic oscillator
lK
OTPROM
lK
64
19
75P66
Comparator; ceramic oscillator
0.71
4.5 to 6.0
64
19
75004
General-purpose
4.19
2.7 to 6.0
lK
OTPROM
4K
512
34
SDIP
SOP
SDIP
SOP
SDIP
SOP
SDiP
SOP
SDIP
SOP
SDIP
SOP
SDIP
SOP
SDIP
SOP
SDIP
SOP
SDiP
SOP
SDIP
QFP
20
20
20
20
20
20
20
20
20
20
24
24
24
24
24
24
24
24
24
24
42
44
7533
75CG33
7554
7554A
75P54
7556A
75P56
a
# Plastic unless ceramic (or cerdip) is specified .
• Under development; consult Microcontroller Marketing for availability.
1-3
NEe
Single.Chip
4-Blt, Single-Chip CMOS Microcomputers (cant)
Device,
I1PD
75006
Features
Clock
(MHz)
Supply
Voltage (V)
General·purpose
4.19
75008
General·purpose
75POOS
ROM
RAM
(X8)
(X4)
UO
# Package
Pins
2.7 to 6.0
6K
512
34
4.19
2.7t06.0
8K
512
34
General·purpose
4.19
4.5 to 5.5
512
34
75028 •
AID converter
4.19
2.7 to 6.0
8K
OTPROM
8K
512
48
75P036 •
AID converter
4.19
2.7t06.0
16K
1024
48
75048 •
AID converter; 1Kx 4 EEPROM
4.19
2.7 to 6.0
8K
512
48
75P056 •
AID converter; 1Kx 4 EEPROM
4.19
2.7 to 6.0
16K
512
48
75104
High-ilnd with 8·bit instruction
4.19
2.7 to 6.0
4K
320
58
75104A
75106
High-ilnd with 8·bit instruction
High-end with 8·bit instruction
4.19
4.19
2.7 to 6.0
2.7 to 6.0
4K
6K
320
320
58
58
75108
High-engY!ith 8-bit instruction
4.19
2.7106.0
8K
512
58
7510SA
High-ilnd with 8·bit instruction
4.19
2.7 to 6.0
8K
512
58
75P1OS
Hlgh-ilnd with 8·bit instruction;
on-chip OTPROM or UVEPROM
4.19
4.5 to 5.5
8K
512
58
4.19
2.7 to 6.0
8K
512
58
75112
High-ilnd with 8·bit instruction;
on-chip OTPROM
. High-ilnd with 8·bit inslructicm
4.19
2.7 to 6.0
12K
512
58
75116
High-ilnd with 8·bit instruction
4.19
2.7 to 6.0
16K
512
58
75P116
4.19
4.5 to 5.5
58
4.19
2.7 to 6.0
16K
OTPROM
6K
512
75206
High-ilnd with 8·bit instruction
on-chipOTPROM
FIP controller/driver
369
33
75208
FIP controller/driver
4.19
2.7 to 6.0
8K
497
33
75CG208
4;19
4.5105.5
8K
512
33
75212A
FIP riontroller/driver;
piggyback EPROM
FIP controllerldriver
4.19
2.7 to 6.0
12K
512
33
75216A
FIP controller/driver
4.19
2.7 to 6.0
16K
512
33
75CG216A
4.19
4.5 to 5.5
16K
512
33
75P216A
FIP controller/driver;
piglllback EPROM
FIP cOntroller/driver
4.19
4.5 to 5.5
512
33
42
44
42
44
42
44
64
64
64
64
64
64
64
64
64
64
64
64
64
64
64
64
64
64
64
64
64
64
64
64
64
64
64
64
64
64
64
64
64
64
64
64
64
64
64
64
64
75268
F1P controller/driver
4.19
2.7 to 6.0
16K
OTPROM
8K
SDIP
OFP
SDIP
OFP
SDIP
OFP
SDIP
OFP
SDIP
OFP
SDIP
OFP
SDIP
OFP
SDIP
OFP
OFP
SDIP
OFP
SDIP
OFP
OFP
OFP
SDIP
OFP
Shrink cerdi~
SDIP
OFP
SDIP
OFP
SDIP
OFP
SDIP
OFP
SDIP
OFP
SDIP
OFP
Ceramic SDIP
Ceramic OFP
SDIP
OFP
SDIP
OFP
Ceramic SDIP
CeramicOFP
SDIP
512
32
75304
75306
75308
75P308
LCD controller/driver
LCD controller/driver
LCD controller/driver
LCD controller/driver;
on-chip OTPROM or UVEPROM
4.19
4.19
4.19
4.19
2.7 to 6.0
2.7 to 6.0
2.7to 6.0
4.75 to 5.25
4K
6K
8K
8K
512
512.
5j2
512
40
. 40
40
40
SDIP
OFP
OFP
OFP
OFP
OFP
Ceramic LCC
64
64
80
80
80
80
80
75P1OSB
1-4
NEe
Single-Chip
4-Blt, Single-Chip CMOS Microcomputers (cont)
Device,
J,lPD
ROM
RAM
(X4)
110
# Package
Pins
12K
16K
16K
OTPROM
16K
OTPROM
8K
512
512
512
40
40
40
QFP
QFP
QFP
80
80
80
512
40
512
44
QFP
Ceramic LCC
QFP
80
80
80
8K
OTPROM
2K
512
44
QFP
80
64
22
4.5 to 5.5
2K
OTPROM
64
22
2.7 to 6.0
2.7 to 6.0
4.75 to 5.5
12K
16K
16K
OTPROM
512
512
512
64
64
64
DIP
SDiP
QFP
DIP
SDIP
QFP
QFP
QFP
QFP
Ceramic LCC
28
28
44
28
28
44
80
80
80
80
(MHz)
Supply
Voltage (V)
4.19
4.19
4.19
2.7 to 6.0
2.7 to 6.0
4.75 to 5.25
4.19
2.7 to 6.0
4.19
2.7 to 6.0
4.19
4.5 to 5.5
75402A
LCD controller/driver
LCD controller/driver
LCD controller/driver;
on-chip OTPROM
LCD controller/driver;
on-chip OTPROM or UVEPROM
LCD controller/driver;
AID converter
LCD controller/driver;
AID converter
Low-end
4.19
2.7 to 6.0
75P402
Low-end
4.19
75512
75516
75P516
High-endj AID converter
High-endj AID converter
High-end; AID converter
4.19
4.19
4.19
75312
75316
75P316
75P316A *
75328
75P328
Clock
(X8)
Features
a
a-Bit, Single-Chip CMOS Microcomputers
ROM
RAM
(X8)
(X8)
110
# Package
Pins
4.5 to 5.5
Extemal
256
32
15
4.5 to 5.5
4K
256
44
CMOS; AID converter
15
4.5 to 5.5
8K
256
44
78C14nBC14A
CMOS; AID converter
15
4.5 to 5.5
16K
256
44
78CP14
CMOS; AID converter
15
4.75 to 5.25
16K
OTPROM
256
44
256
44
256
44
QUIP
SDiP
QFP
PLCC
QUIP
SDIP
QFP
PLCC
QUIP
SDIP
QFP
PLCC
QUIP
SDIP
OFP
PLCC
QUIP
SDIP
QFP
PLCC
Ceramic QUI P
Shrink cerdiE
Ceramic QUI P
64
64
64
68
64
64
64
68
64
64
64
68
64
64
64
68
64
64
64
68
64
64
64
512
54
512
54
SDiP
QUIP
QFP
PLCC
SDIP
QUIP
QFP
PLCC
64
64
74
68
64
64
74
68
Device,
J,lPD
Features
(MHz)
78C10n8C10A
CMOS; AID converter
15
78C11nBC11A
CMOS; AID converter
78Cl2A
78CG14
78213
78214
Clock
Supply
Voltage (V)
CMOS; AID converter;
piggyback EPROM
CMOS; AID converter;
advanced peripherals
15
4.5 to 5.5
12
4.5 to 5.5
16K
UVEPROM
4K,8Kor
16K
Extemal
CMOS; AID converter;
advanced peripherals
12
4.5 to 5.5
16K
1-5
NEC
Single-Chip
8-Bit, Single-Chip NMOS/CMOS Microcomputers (cont)
Device,
J.lPD
78P214
78220
78224
78P224
78233
78234
Clock
Fe"ture$
(MHz)
CMOS; AID converter;
advanced peripherals
12
Supply
Voltsge(V)
4,5 to 5.5
ROM
RAM
(X8)
(X8)
110
# Packsg",
Pins
16K
OTPROM
512
54
512
54
SOIP
OUIP
OFP
PLCC
Shrink cerdip
64
64
74
68
64
640
71
84
94
84
94
84
94
80
94
84
80
94
84
80
94
84
94
CMOS; analog comparator;
large I/O
CMOS; analog comparator;
large I/O
CMOS; analog comparator;
large I/O
CMO,S; real-time outputs;
AID and O/A converters
12
4.5 to 5.5
16K
UVEPROM
External
12
4.5 to 5.5
16K
640
71
12
4.5 to 5.5
640
71
12
4.5 to 5.5
16K
OTPROM
Extemal
640
64
CMOS; real-time outputs;
12
4.5 to 5.5
16K
640
64
12
4.5 to 5.5
32K
OTPROM
640
64
32K
UVEPROM
640
64
PLCC
OFP
PLCC
OFP
PLCC
OFP
OFP
OFP
PLCC
OFP
OFP
PLCC
OFP
OFP
PLCC
Ceramic LCC
AID and O/A converters
78P238
CMOS; real-time outputs;
AID and O/A converters
8/16-Blt, Single-Chip CMOS Microcomputers
ROM
RAM
(X8)
(X8)
I/O
# Package
Pins
4.5 to 5,5
External
256
48
12
4.5 to 5.5
8K
256
48
12
4.5 to 5.5
8K
UVEPROM
8K
OTPROM
256
48
256
48
SOIP
OUIP
OFP
PLCC
SOIP
OUIP
OFP
PLCC
Shrink cerdip
Ceramic OUIP
SOIP
OUIP
OFP
PLCC
OFP
PLCC
OFP
PLCC
PLCC
OFP
Ceramic LCC
Ceramic LCC
PLCC
OFP
OUIP
Ceramic LCC
Ceramic LCC
Ceramic OUI P
64
64
64
68
64
64
64
68
64
64
64
64
64
68
64
68
64
68
68
74
68
74
44
64
64
44
64
64
Device,
J.lPD
Featurea
(MHz)
78310A
Real-time motor control
12
78312A
Real-time motor control
78P312A
Real-time motor control
78320
78322
78P322
71P301
1-6
Clock
High-end; advanced analog
and digital peripherals
High-end; advanced analog
and digital ~eri~herals
High-end; advanced analog
and digital peripherals
Port and memory extender
used with 7832X microcomputer
family; UVEPROM or OTPROM
Supply
Voltage (V)
16
4.5 to 5.5
External
640
55
16
4,5 to 5.5
16K
640
55
16
4.5 to 5;5
16K
OTPROM
16K
UVEPROM
16K
OTPROM
640
55
640
55
1K
16
16K
UVEPROM
1K
16
4.5 to 5.5
NEe
jlPD75XX Series
Development Tools
/lPD75XX Series Development Tools Selection Guide
Part Number
(Note 1)
Emulator'
f1I'D7502G·12
f1I'D7503G-12
f1I'D7507C
f1I'D7507CU
f1I'D7507G-OO
f1I'D7507HC
f1I'D7507HCU
f1I'D7507HG-22
f1I'D7508C
f1I'D7508CU
f1I'D7508G-OO
f1I'D75CG08E
f1I'D7508HC
f1I'D7508HCU
f1I'D7508HG-22
f1I'D75CG08HE
f1I'D7527AC
f1I'D7527ACU
f1I'D7528AC
f1I'D7528ACU
f1I'D75CG28E
f1I'D7533C
f1I'D7533CU
f1I'D7533G-22
f1I'D75CG33E
f1I'D7537AC
f1I'D7537ACU
f1I'D7538AC
!1!'D7538ACU
f1I'D75CG38E
f1I'D7554CS
f1I'D7554G
f1I'D7554ACS
f1I'D7554AG
f1I'D75P54CS
f1I'D75P54G
f1I'D7556CS
f1I'D7556G
f1I'D7556ACS
f1I'D7556AG
f1I'D75P56CS
f1I'D75P56G
f1I'D7564CS
f1I'D7564G
f1I'D7564ACS
IlPD7564AG
f1I'D75P64CS
f1I'D75P64G
f1I'D7566CS
f1I'D7566G
EVAKIT-7500B
EVAKIT-7500B
EVAKIT-7500B
EVAKIT-7500B
EVAKIT-7500B
EVAKIT-7500B
EVAKIT-7500B
EVAKIT-7500B
EVAKIT-7500B
EVAKIT-7500B
EVAKIT-7500B
EVAKIT-7500B
EVAKIT-7500B
EVAKIT-7500B
EVAKIT-7500B
EVAKIT-7500B
EVAKIT-7500B
EVAKIT-7500B
EVAKIT-7500B
EVAKIT-7500B
EVAKIT-7500B
EVAKIT-7500B
EVAKIT-7500B
EVAKIT-7500B
EVAKIT-7500B
EVAKIT-7500B
EVAKIT-7500B
EVAKIT-7500B
EVAKIT-7500B
EVAKIT-7500B
EVAKIT-7500B
EVAKIT-7500B
EVAKIT-7500B
EVAKIT-7500B
EVAKIT-7500B
EVAKIT-7500B
EVAKIT-7500B
EVAKIT-7500B
EVAKIT-7500B
EVAKIT-7500B
EVAKIT-7500B
EVAKIT-7500B
EVAKIT-7500B
EVAKIT-7500B
EVAKIT-7500B
EVAKIT-7500B
EVAKIT-7500B
EVAKIT-7500B
EVAKIT-7500B
EVAKIT-7500B
Add·on
Board'
System
Evaluation
Board
EV7514
EV7514
SE-7514A
SE-7514A
EPROM/OTP
Device
PG·1500
Adapter
(Note 2)
f1I'D78CG08E
EV7508H
EV7508H
EV7508H
f1I'D75CG08HE
f1I'D78CG08E
EV7508H
EV7508H
EV7508H
EV7508H
EV7528
EV7528
EV7528
EV7528
EV7528
EV7533
EV7533
EV7533
EV7533
EV7528
EV7528
EV7528
EV7528
EV7528
EV7554A
EV7554A
EV7554A
EV7554A
EV7554A
EV7554A
EV7554A
EV7554A
EV7554A
EV7554A
EV7554A
EV7554A
EV7554A
EV7554A
EV7554A
EV7554A
EV7554A
EV7554A
EV7554A
EV7554A
f1I'D78CG08HE
f1I'D78CG28E
f1I'D78CG28E
f1I'D75CG33E
f1I'D75CG38E
f1I'D75CG38E
SE-7554A
SE-7554A
SE-7554A
SE-7554A
f1I'D75P54CS
f1I'D75P54G
f1I'D75P54CS
f1I'D75P54G
PA-75P54CS
PA-75P54CS
PA-75P54CS
PA-75P54CS
SE-7554A
SE-7554A
SE-7554A
SE-7554A
f1I'D75P56CS
f1I'D75P56G
f1I'D75P56CS
f1I'D75P56G
PA-75P56CS
PA-75P56CS
PA-75P56CS
PA-75P56CS
SE-7554A
SE-7554A
SE-7554A
SE-7554A
f1I'D75P64CS
f1I'D75P64G
f1I'D75P64CS
f1I'D75P64G
PA-75P54CS
PA-75P54CS
PA-75P54CS
PA-75P54CS
SE-7554A
SE-7554A
f1I'D75P66CS
f1I'D75P66G
PA-75P56CS
PA-75P56CS
Absolute
Assembler
(Note 3)
ASM75
ASM75
ASM75
ASM75
ASM75
ASM75
ASM75
ASM75
ASM75
ASM75
ASM75
ASM75
ASM75
ASM75
ASM75
ASM75
ASM75
ASM75
ASM75
ASM75
ASM75
ASM75
ASM75
ASM75
ASM75
ASM75
ASM75
ASM75
ASM75
ASM75
ASM75
ASM75
ASM75
ASM75
ASM75
ASM75
ASM75
ASM75
ASM75
ASM75
ASM75
ASM75
ASM75
ASM75
ASM75
ASM75
ASM75
ASM75
ASM75
ASM75
a
• Required Tools
1-7
NEe
J.1PD75XX Series
JlPD75XX Series Development Tools Selection Guide (cont)
Part Number
(Note 1)
~D7566ACS
¢lD7566AG
~D75P66CS
¢lD75P66G
Emulator*
Add-on
Board'
EVAKIT-7500B
EVAKIT-7500B
EVAKIT-7500B
EVAKIT-7500B
EV7554A
EV7554A
EV7554A
EV7554A
System.
Evaluation
Board
SE-7554A
SE-7554A
• Required Tools
Notes:
(1) Packages:
Package Description
C
CS
CU
E
G
G'-OO
G-12
G-22
40-pin plastic DIP (jLPD7507/07H108IOSH)
42-pin plastic DIP (IlPD7527A128A133137A138A)
20-pin plastic shrink DIP (IlPD7554154A1P54164164A1P64)
24-pin plastic shrink DIP (IlPD7556156A1P56/66166A/P66)
4O-pin plastic shrink DIP (IlPD7507/07HI08IOSH)
42-pin plastic shrink DIP (IlPD7527A12SAI33/37A138A)
40-pin ceramic piggy-back DIP (IlPD75CG08l0SH)
42-pin ceramic piggy-back DIP (!1PD75CG2813313S)
2O-pin plastic SO (IlPD7554154A1P54/64/64A1P64)
24-pin plastic SO (IlPD7556156A1P56166/66A/P66)
52-pin plastic OFP
64-pin plastic OFP (jLPD7502I03)
44-pin plastic OFP
(2) By using the specified adapter, the PG-1500 EPROM programmer
can be used to program the OTP device.
(3) The ASM75 Absolute Assembler is provided Ie run under the MS-DOS·
operating system. (ASM75-D52).
MS-DOS is a registered trademark of Microsoft Corporation.
1-8
EPROM/OTP
Device
~D75P66CS
~D75P66G
PG-1500
Adapter
(Note 2)
Absolute
A.sembler
(Note 3)
PA-75P56CS
PA-75P56CS
ASM75
ASM75
ASM75
ASM75
NEe
j.lPD75XXX Series
Development Tools
!!PD75XXX Series Development Tools Selection Guide
Part Number
(Note 5)
~D75004CU
~D75006GB-3B4
~D75006CU
~D75006GB-3B4
~D75008CU
~D75008GB-3B4
~D75POO8CU
jJl'D75POO8GB-384
~D7502SCW
jJl'D7502SGC-A8S
jJl'D75P036CW
~D75P036GC-A8S
jJl'D7504SCW
~D7504SGC-A8S
~D75P056CW
~D75P056GC-ABS
jJl'D75104CW
Emulator"
Emulation
Probe"
IE-75000-R
IE-75000-R
IE-75000-R
IE-75000-R
IE-75000-R
IE-75000-R
IE-75000-R
IE-75000-R
IE-75000-R
IE-75000-R
IE-75000-R
IE-75000-R
IE-75000-R
IE-75000-R
IE-75000-R
IE-75000-R
IE-75000-R
EP-75008CU-R
EP-75008GB-R
EP-75008CU-R
EP-75008GB-R
EP-75008CU-R
EP-75008GB-R
EP-75008CU-R
EP-75008G8-R
EP-7502SCW-R
EP-7502SGC-R
EP-7502SGW-R
EP-75028GC-R
EP-7502SCW-R
EP-7502SGC-R
EP-7502SCW-R
EP-7502SGC-R
EP-75108CW-R
Optional Socket
Adapter (Note 1)
EPROM/OTP
Device (Note 2)
~D75POO8CU
EV-9200G-44
~D75POO8GB
~D75POO8CU
EV-9200G-44
~D75POO8GB
~D75POO8CU
EV-9200G-44
jJl'D75POO8GB
EV-9200G-44
jJl'D75P036CW
EV-9200GC'64
~D75P036GC
EV-9200GC-64
~D75P056CW
EV-9200GC-64
~D75P056GC
EV-9200GC-64
jJl'D75P108CW/DW
Relocatable
Assembler
(Note 3)
Structured
Assembler
(Note 4)
RA75X
RA75X
RA75X
RA75X
RA75X
RA75X
RA75X
RA75X
RA75X
RA75X
RA75X
RA75X
RA75X
RA75X
RA75X
RA75X
RA75X
ST75X
ST75X
ST75X
ST75X
ST75X
ST75X
ST75X
ST75X
ST75X
ST75X
ST75X
ST75X
ST75X
ST75X
ST75X
ST75X .
ST75X
RA75X
ST75X
RA75X
ST75X
RA75X
RA75X
ST75X
ST75X
RA75X
ST75X
RA75X
ST75X
RA75X
RA75X
RA75X
ST75X
ST75X
ST75X
RA75X
ST75X
RA75X
ST75X
RA75X
RA75X
RA75X
RA75X
RA75X
RA75X
RA75X
RA75X
RA75X
RA75X
RA75X
RA75X
RA75X
RA75X
RA75X
ST75X
ST75X
ST75X
ST75X
ST75X
ST75X
ST75X
ST75X
ST75X
ST75X
ST75X
ST75X
ST75X
ST75X
ST75X
a
~D75P116CW
~D75104G-1B
IE-75000-R
EP-7510SGF-R
EV-9200G-64
jJl'D75P10SG/GF
~D75P116GF
jJl'D75104GF-3BE
IE-75000-R
EP-75108GF-R
EV-9200G'64
~D75P108G/GF
jJl'D75P116GF
jJl'D75104AGC-AB8
IE-75000-R
IE-75000-R
EP-7510SAGC-R
EP-75108CW-R
EV-9200GC-64
~D75106CW
~D75106G-1B
IE-75000-R
EP-7510SGF-R
EV-9200G-64
jJl'D75P108CW/DW
~D75P116CW
jJl'D75P108G/GF
~D75P116GF
jJl'D75106GF-38E
IE-75000-R
EP-75108GF-R
EV-9200G-64
~D75P108G/GF
jJl'D75P116GF
~D751 08AG-22
EP-75108AGC-R
EP-75108AGC-R
EP-75108CW-R
EV-9200GC'64
EV-9200GC-64
jJl'D75108CW
IE-75000-R
IE-75000-R
IE-75000-R
~D75108G-1B
IE-75000-R
EP-75108GF-R
EV-9200G-64
~D75108AGC-A88
jJl'D75P108CW/DW
jJl'D75P116CW
jJl'D75P108G/GF
~D75P116GF
jJl'D75108GF-3BE
IE-75000-R
EP-7510SGF-R
~D75P108BCW
IE-75000-R
IE-75000-R
IE-75000-R
IE-75000-R
IE-75000-R
IE-75000-R
IE-75000-R
IE-7500thR
IE-75000-R
IE-75000-R
IE-75000-R .
IE-75000-R
IE-75000'R
IE-75000-R
IE-75000-R
EP-75108CW-R
EP-75108GF-R
EP-7510SCW-R
EP-75108CW-R
EP-75108GF-R
EP-75108CW-R
EP-75108GF-R
EP-75108CW-R
EP-75108GF-R
EP-75108CW-R
EP-75108GF-R
EP-75216ACW-R
EP-75216AGF-R
EP-75216AGF-R
EP-75216ACW-R
~D75P108BGF-3BE
~D75P108CW
~D75P108DW
~D75P108G-1B
~D75112CW
~D75112GF-38E
~D75116CW
~D75116GF-38E
~D75P116CW
~D75P116GF-38E
~D75206CW
~D75206G-18
~D75206BGF-3BE
jJl'D75208CW
EV-9200G-64
jJl'D75P108G/GF
jJl'D75P116GF
EV-9200G-64
EV-9200G-64
~D75P116CW
EV-9200G-64
~D75P116GF
~D75P116CW
EV-9200G-64
~D75P116GF
EV-9200G-64
~D75P216ACW
EV-9200G-64
EV-9200G-64
~D75P216ACW
* Required Tools
1-9
NEe
/lPD75XXX Series
llPD75XXX Series Development Tools Selection Guide (cont)
Part Number
(NoteS)
flPD75208G-IB
flPD75208GF-38E
flPD75CG208E
flPD75CG208EA
flPD75212ACW
flPD75212AGF-3BE
flPD75216ACW
flPD75216AGF
flPD75CG216AE
flPD75CG216AEA
flPD75P216ACW
flPD75268CW
flPD75268GF-38E
flPD75304GF-389
flPD75306GF-389
flPD75308GF-389
flPD75P308GF-389
flPD75P308K
flPD75312GF-3B9
flPD75316GF-389
flPD75P316GF-3B9
flPD75P316AGF-389
flPD75P316AK
flPD75328GC-389
flPD75P328GC-389
flPD75402AC
flPD75402ACT
flPD75402AG8-384
flPD75P402C
flPD75P402CT
flPD75P402GB-3B4
flPD75512GF-389
flPD75516GF-389
flPD75P516GF-3B9
flPD75P516K
Emulator'
Emulation
Probe'
Optional Socket
Adapter (Note 1)
IE-75000-R
IE-75000-R
IE-75000-R
IE-75000-R
IE-75000-R
IE-75000-R
IE-75000-R
IE-75000-R
IE-75000-R
IE-75000-R
IE-75000-R
IE-75000-R
IE-75000-R
IE-75000-R
IE-75000-R
IE-75000-R
IE-75000-R
IE-75000-R
IE-75000-R
IE-75000-R
IE-75000-R
IE-75000-R
IE-75000-R
IE-75000-R
IE-75000-R
IE-75000-R
IE-75000-R
IE-75000-R
IE-75000-R
IE-75000-R
IE-75000-R
IE-75000-R .
IE-75000-R
IE-75000-R
IE-75000-R
EP-75216AGF-R
EP-75216AGF-R
EP-75216ACW-R
EP-75216AGF-R
EP-75216ACW-R
EP-75216AGF-R
EP-75216ACW-R
EP-75216AGF-R
EP-75216ACW-R
EP-75216AGF-R
EP-75216ACW-R
EP-75216ACW-R
EP-75216AGF-R
EP-75308GF-R
EP-75308GF-R
EP-75308GF-R
EP-75308GF-R
EP-75308GF-R
EP-75308GF-R
EP-75308GF-R
EP-75308GF-R
EP-75308GF-R
EP-75308GF-R
EP-75328GC-R
EP-75328GC-R
EP-75402C-R
EP-75402C-R
EP-75402G8-R
EP-75402C-R
EP-75402C-R
EP-75402G8-R
EP-75516GF-R
EP-75516GF-R
EP-75516GF-R
EP-75516GF-R
EV-9200G-64
EV-9200G-64
EV-9200G-64
flPD75P216ACW
EV-9200G-64
flPD75P216ACW
EV-9200G-64
EV-9200G-64
flPD75P216ACW
flPD75P216ACW
EV-9200G-64
EV-9200G-80
EV-9200G-80
EV-9200G-80
EV-9200G-80
EV-9200G-80
EV-9200G-80
EV-9200G-80
EV-9200G-80
EV-9200G-80
EV-9200G-80
EV-9200GC-80
EV-9200GC-80
flPD75P316GF
flPD75P316GF
flPD75P328GC
flPD75P402C
flPD75P402CT
flPD75P402GB
EV-9200G-44
EV-9200G-80
EV-9200G-80
EV-9200G-80
EV-9200G-80
(1) The EV-9200G-XX is an LCC socket with the footprint of the flat
package. One unit is supplied with the probe. Additional units are
available as replacement parts in sets of five.
(2) All EPROMlOTP devices can be programmed using the NEC PG1500. Refer to the PG-1500 Programming Socket Adapter
Selection Guide for the appropriate socket adapter.
(4) The ST75X structures assembler preprocessor is provided with
RA75X.
flPD75P308GF/K
flPD75P308GF/K
flPD75P308GF/K
EV-9200G-44
Notes:
(3) The RA75X relocatable assembler package is provided for the
following operating systems:
RA75X-D52 (MS-DOS·)
RA7SX-VVTl (VAXNMS·)
EPROM/OTP
Device (Note 2)
flPD75P516GF/K
flPD75P516GF/K
1-10
Structured
Assembler
(Note 4)
RA75X
RA75X
RA75X
RA75X
RA75X
RA75X
RA75X
RA75X
RA75X
RA75X
RA75X
RA75X
RA75X
RA75X
RA75X
RA75X
RA75X
RA75X
RA75X
RA75X
RA75X
RA75X
RA75X
RA75X
RA75X
RA75X
RA75X
RA75X
RA75X
RA75X
RA75X
RA75X
RA75X
RA75X
ST75X
ST75X
ST75X
ST75X
ST75X
ST75X
ST75X
ST75X
ST75X
ST75X
ST75X
ST75X
ST75X
ST75X
ST75X
ST75X
ST75X
ST75X
ST75X
ST75X
ST75X
ST75X
ST75X
ST75X
ST75X
ST75X
ST75X
ST75X
ST75X
ST75X
ST75X
ST75X
ST75X
ST75X
(5) Packages:
Package Description
C
CT
CU
CW
DW
E
EA
G-IB
G-22
GB-3B4
GC-ABB
GC-389
GF-3BE
GF-389
K
MS-DOS is a registered trademark of Microsoft Corporation.
Relocatable
Assembler
(Note 3)
2S-pin plastic DIP
2S-pin plastic shrink DIP
42-pin plastic shrink DIP
64-pin plastic shrink DIP
64-pin ceramic shrink DIP with window
64-pin ceramic piggy-back shrink DIP
64-pin ceramic piggy-back OFP
64-pin plastic OFP (2.05 mm thick)
64-pin plastic OFP (1.55 mm thick)
44-pin plastic OFP
64-pin plastic OFP (2.55 mm thick)
SO-pin plastic OFP
64-pin plastic OFP (2.77 mm thick)
SO-pin plastic OFP
SO-pin ceramic LCC
VAX and VMS are registered trademarks of Digital Equipment Corporation.
NEe
JlPD78XX Series
Development Tools
J.l.PD78XX Series Development Tools Selection Guide··
Part Number
(Note 1)
fll'D78Cl0CW
~D78Cl0G-36
~D78Cl0G-1B
~D78Cl0GF-3BE
~D78Cl0L
fll'D78Cl0ACW
!iPD78Cl0AGQ-36
!iPD78Cl0AGF-3BE
!iPD78Cl0AL
!iPD78CllCW
fll'D78Cll G-36
Emulator"
IE-78Cll-M
IE-78Cll-M
IE-78Cll-M
IE-78Cll-M
IE-78Cll-M
IE-78Cll-M
(Note 8)
IE-78Cll-M
(Note 8)
IE-78Cll-M
(Note 8)
IE-78Cll-M
(Note 8)
IE-78Cl1-M
IE,78Cl1-M
Relocatable
Assembler
(Note 9)
CCompller
(Note 9)
RA87
CC87
EV-9001-64
RA87
RA87
RA87
RA87
RA87
CC87
CC87
CC87
CC87
CC87
(Note 3)
(Note 4)
RA87
CC87
(Note 5)
RA87
CC87.
(Note 5)
RA87 .
CC87
Emulation
Probe"
EV-9001-64
(Note 3)
(Note 4)
EPROM/OTP
Device
PG-1500
Adapter
(Note 2)
(Note 5)
(Note 5)
(Note 5)
EV-9001-64
(Note 3)
(Note 4)
.. . !iPD78CP14CWIDW
PA-78CPI4CW
RA87
Ces7
fll'D78CPI4G-361R
PA-78CP14GQ
RA87
CC87
PA-78CPI4GF
PA-78CPI4GF
PA-78CPI4L
PA-78CPI4CW
RA87
RA87
RA87
RA87
CC87·
CC87
CC87
CC87
PA-78CPI4GQ
RA87
CC87
PA-78CPI4GF
RA'87
Cea7
PA-78CPI4L
RA87
CC87
PA-78CPI4CW
RA87
CC87
PA-78CP14GQ
RA87
CC87
PA-78CP14GF
RA87
CC87
PA-78CP14L
RA87
CC87
PA-78CPI4CW
RA87
CC87
PA-78CPI4GQ
RA87
CC87
PA-78CPI4GF
PA-78CPI4GF
PA-78CPI4L
RA87
RA87
RA87
RA87
CC87
CC87
CC87
CC87
RA87
CC87
PA-78CPI4CW
RA87
CC87
PA-78CP14CW
RA87
CC8t
II
~D78CPI4E
~D78CllG-1B
~D78Cl1 GF-3BE
~D78Cl1l
fll'D78Cl1ACW
fll'D78CllAGQ-36
fll'D78Cl1AGF-3BE
.IE-78Cl1-M
IE-78Cll-M
IE-78Cll-M
IE-78Cl1-M
(Note 7)
IE-78Cl1-M
(Note 7)
IE-78Cll-M
(Note 5)
(Note 5)
!Note 5)
~D78CPI4GF-3BE
EV-9001-64
(Note 3)
(Note 4)
fll'D78CI2ACW
fll'D78Cl2AGQ-36
IE-78Cl1-M
EV-9001-64
IE-78Cll-M
(Note 3)
(Note 4)
fll'D78CPI4G-361R
n
IE-78Cll-M
(Note n
(Note 5)
(Note 5)
IE-78Cl1-M
EV-9001-64
(Note 7)
(Note 3)
(Note 4)
IE-78Cll-M
(Note 7)
!iPD78CI2AGF-3BE
IE-78Cl1-M
(Note 5)
(Note 7)
fll'D78CI2AL
IE-78Cll-M
(Note 5)
(Note 7)
fll'D78C14CW
!iPD78C14G-36
~D78CPI4L
!iPD78CPI4CWIDW
(Note 6)
fll'D78CPI4G-361R
(Note 6)
!iPD78CPI4GF-3BE
(Note 6)
fll'D78CPI4L
(Note 6)
fll'D78CPI4CWIDW
(Note 6)
fll'D78CPI4G-361R
(Note 6)
fll'D78CPI4GF-3BE
(Note 6)
fll'D78CPI4L
(Note 6)
fll'D78CPI4CW/DW
(Note
fll'D78CllAL
~D78CPI4GF-3BE
~D78CG14E
~D78C14G-IB
~D78CI4GF-3BE
~D78C14L
fll'D78C14AG-ABS
fll'D78CGI4E
IE-78Cll-M
IE-78Cll-M
IE-78Cll-M
IE-78Cll-M
(Note 7)
IE-78Cl1-M
(Note 5)
(Note 5)
(Note 5)
(Note 5)
~D78CPI4GF
~D78CPI4GF
~D78CPI4L
(Note 4)
(Note 8)
fll'D78CPI4CW
IE-78Cl1-M
EV-9001-64
(Note 3)
fll'D78CP14DW
IE-78Cl1-M
EV-9001-64
(Note 3)
" Required Tools
"For all jlPD78C1X devices. you may use the DDK-78Cl0 for evaluation purposes.
..
;
1-11
NEe
IlPD78XX Series
j.tPD78XX Series Development Tools Selection Gulde** (cont)
Part Number
(Note 1)
Emulator'
Emulation
Probe'
J.lPD78GP14G-36
J.lPD78GPI4GF-3BE
J.lPD78GP14L
J.lPD78GP14R
IE-78Gll-M
IE-78Gl1-M
IE-78Gll-M
IE-78Gll-M
(Note 4)
(Note 5)
(Note 5)
(Note 4)
EPROM/OTP
Device
PG-1S00
Adapter
(Note 2)
Relocatable
Assembler
(Note 9)
CCompller
(Note 9)
PA-78GPI4GO
PA-78GPI4GF
PA-78GPI4L
PA-78GPI4GO
RA87
RA87
RA87
RA87
GG87
GG87
GG87
GG87
• Required Tools
"For all J,lPD78C1X devices, you may use the DDK-78Cl0 for evaluation purposes.
Notes:
(1) Packages:
Package
CW
DW
E
G-IB
G-36
G-AB8
GF-3BE
GQ-36
L
R
Description
64-pin plastic shrink DIP
64-pin ceramic shrink DIP with window
64-pin ceramic piggy-back QUIP
64-pin plastic QFP (Resin Thickness: 2.05 mm)
64-pin plastic QUIP
64-pin plastic QFP (Interpin Pitch: 0.8 mm)
64-pin plastic QFP (Resin Thickness: 2.7 mm)
64-pin plastic QUIP
68-pin PLCC
64-pin ceramic QUIP with window
(2) By using the specified adapter, the PG-1S00 EPROM programmer
can be used to program the EPROMlOTP device.
(3) 64-pin shrink DIP adapter which plugs into the EP-7811 HGQ
emulation probe supplied with each IE.
(4) The emulation probe for the 64-pin QUIP package (EP-7811 HGQ)
is supplied with the IE.
(S) No emulation probe available.
(6) The J,lPD78CPI4 EPROM/OTP devices do not have pull-up
resistors on ports A, B, and C.
(7) The IE-78Cll-M can be used by replacing the J,lPD78Cl0G-36
with a J,lPD78C 1OAGQ-36. However, it will not be able to emulate
the optional pull-up resistors on ports A, B, and C.
(8) The J,lPD78CGI4E is a piggy-back EPROM device in a ceramic
QUIP package. It accepts 27C256 and 27C2S6A EPROMS.
(9) The following relocatable assemblers and C compilers are
available:
RA87-DS2
RA87-VVTl
(MS-Dose)
(VAXNMS8)
Relocatable assemblers
for 78XX series
CCMSD-ISDD-87
CCVM5-0TI6-87
CCUNX-OTI6-87
(MS-DOS)
(VAXNMS)
(VAXlUNIX8j
4.2 BSD or Ultrixe)
C Compilers for
78XX Series
MS-DOS is a registered trademark of Microsoft Corporation.
VAX, VMS and Ultrix are registered trademarks of Digital Equipment Corporation.
UNIX is a trademark of AT&T Bell Laboratories.
1-12
NEe
IlPD782XX Series
Development Tool.s
IlPD782XX Series Development Tools Selection Guide (Note 1)
Part Number
(Note 2)
Evaluation
Kit (Note 3
Designer Kit
(Note 4)
Emulator Kit
(Note 5)
Low-End
Emulator
Emulation
System
Emulation
Probe
~D78213CW
EK-78K2-21X
EK-78K2-21X
EK-78K2-21X
EK-78K2-21X
EK-78K2-21X
EK-78K2-21X
EK-78K2-21X
EK-78K2-21X
EK-78K2-21X
EK-78K2-21X
EK-78K2-21X
EK-78K2-21X
EK-78K2-21X
EK-78K2-22X
EK-78K2-22X
EK-78K2-22X
EK-78K2-22X
EK-78K2-22X
EK-78K2-22X
EK-78K2-23X
EK-78K2-23X
EK-78K2-23X
EK-78K2-23X
EK-78K2-23X
EK-78K2-23X
EK-78K2-23X
EK-78K2-23X
EK-78K2-23X
EK-78K2-23X
DK-78K2-21XCW
DK-78K2-21XGJ
DK-78K2-21XGQ
DK-78K2-21XL
DK-78K2-21XCW
DK-78K2-21XGJ
DK-78K2-21XGQ
DK-78K2-21XL
DK-78K2-21XCW
DK-78K2-21XCW
DK-78K2-21XGJ
DK-78K2-21XGQ
DK-78K2-21 XL
DK-78K2-22XGJ
DK-78K2-22XL
DK-78K2-22XGJ
DK-78K2-22XL
DK-78K2-22XGJ
DK-78K2-22XL
DK-78K2-23XGC
DK-78K2-23XGJ
DK-78K2-23XL
DK-78K2-23XGC
DK-78K2-23XGJ
DK-78K2-23XL
DK-78K2-23XGC
DK-78K2-23XGJ
DK-78K2-23XGJ
DK-78K2-23XL
IK-78K2-21XCW
IK-78K2-21XGJ
IK-78K2-21XGQ
IK-78K2-21XL
IK-78K2-21XCW
IK-78K2-21XGJ
IK-78K2-21XGQ
IK-78K2-21 XL
IK-78K2-21XCW
IK-78K2-21 XCW
IK-78K2-21XGJ
IK-78K2-21XGQ
IK-78K2-21XL
IK-78K2-22XGJ
IK-78K2-22XL
IK-78K2-22XGJ
IK-78K2-22XL
IK-78K2-22XGJ
IK-78K2-22XL
IK-78K2-23XGC
IK-78K2-23XGJ
IK-78K2-23XL
IK-78K2-23XGC
IK-78K2-23XGJ
IK-78K2-23XL
IK-78K2-23XGC
IK-78K2-23XGJ
IK-78K2-23XGJ
IK-78K2-23XL
EB-78210-PC
EB-78210-PC
EB-78210-PC
EB-78210-PC
EB-78210-PC
EB-78210-PC
EB-78210-PC
EB-78210-PC
EB-78210-PC
EB-78210-PC
EB-78210-PC
EB-78210-PC
EB-78210-PC
EB-78220-PC
EB-78220-PC
EB-78220-PC
EB-78220-PC
EB-78220-PC
EB-78220-PC
EB-78230-PC
EB-78230-PC
EB-78230-PC
EB-78230-PC
EB-78230-PC
EB-78230-PC
EB-78230-PC
EB-78230-PC
EB-78230-PC
EB-78230-PC
IE-78210-R
IE-78210-R
IE-78210-R
IE-78210-R
IE-78210-R
IE-78210-R
IE-78210-R
IE-78210-R
IE-78210-R
IE-78210-R
IE-78210-R
IE-78210-R
IE-78210-R
IE-78220-R
IE-78220-R
IE-78220-R
IE-78220-R
IE-78220-R
IE-78220-R
IE-78230-R
IE-78230-R
IE-78230-R
IE-78230-R
IE-78230-R
IE-78230-R
IE-78230-R
IE-78230-R
IE-78230-R
IE-78230-R
EP-78210CW-R
EP-78210GJ-R (7)
EP-78210GQ-R
EP-78210L-R
EP-78210CW-R
EP-78210GJ-R (7)
EP-78210GQ-R
EP-78210L-R
EP-78210CW-R
EP-78210CW-R
EP-78210GJ-R (7)
EP-78210GQ-R
EP-78210L-R
EP-78220GJ-R (8)
EP-78220L-R
EP-78220GJ-R (8)
EP-78220L-R
EP-78220GJ-R (8)
EP-78220L-R
EP-78230GC-R
EP-78230GJ-R
EP-78230LQ-R
EP-78230GC-R
EP-78230GJ-R
EP-78230LQ-R
EP-78230GC-R
EP-78230GJ-R
EP-78230GJ-R
EP-78230LQ-R
~D78213GJ-SBJ
jlI'D78213GQ-36
jlPD78213L
~D78214CW
jlPD78214GJ-SBJ
jlI'D78214GQ-36
~D78214L
jlI'D78P214CW
jlPD78P214DW
~D78P214GJ-SBJ
~D78P214GQ-36
~D78P214L
jlPD78220GJ-SBG
jlPD78220L
jlI'D78224GJ-SBG
jlI'D78224L
jlI'D78P224GJ-SBG
jlI'D78P224L
~D78233GC-3B9
jlPD78233GJ-SBG
jlI'D78233LQ
jlPD78234GC-3B9
jlPD78234GJ-5BG
~D78234LQ
jlPD78P238GC-3B9
~D78P238GJ-5BG
~D78P238KF
jlPD78P238LQ
Device
(Note 6)
~D78P214CW/DW
~D78P214GJ
jlI'D78P214GQ
~D78P214L
~D78P224GJ
jlPD78P224L
~D78P238GC
jlPD78P238GJ/KF
jlI'D78P238LQ
Notes:
1. The following software packages are available for the J.1PD782XX
Series:
RA78K2 relocatable assembler package
RA78K2-DS2 (MS-DOS~)
RA78K2-VVTl (VAX~NMS~)
ST78K2 Structured assembler preprocessor
Provided with RA 78K2
CC782XX C Compiler package
CCMSD-ISDD-782XX (MS-DOS~)
(2) Packages:
Package
Description
CW
DW
GC-3B9
GJ-SBG
GJ-SBJ
GQ-36
KF
L
64-pin plastic shrink DIP
64-pin ceramic shrink DIP with window
80-pin plastic QFP
94-pin plastic QFP
74-pin plastic QFP
64-pin plastic QUIP
94-pin ceramic LCC with window
68-pin PLCC (J.1PD78213/214/P214L)
84-pin PLCC (J.1PD78220/224/P224L)
84-pin PLCC
LQ
MS-DOS is a registered trademark of Microsoft Corporation.
(3) The J.1PD782XX Evaluation Kit contains the appropriate DDB-78K22XX evaluation board for the part selected, the RA 78K2 Relocatable Assembler Package, and the ST78K2 Structured Assembler
Preprocessor.
(4) The J.1PD782XX Designer Kit contains the appropriate EB-782XXPC low-end emulator and emulation probe for the part selected, the
RA78K2 Relocatable Assembler Package, and the ST78K2
Structured Assembler Preprocessor.
(S) The J.1PD782XX Emulator Kit contains the appropriate IE-782XX
system and emulation probe for the part selected, the RA78K2
Relocatable Assembler Package, and the ST78K2 Structured
Assembler Preprocessor.
(6) All EPROMlOTP devices can be programmed using the NEC PGIS00. Refer to the PG-1500 Programming Socket Adapter
Selection Guide for the appropriate programming adapter.
(7) The EP-78210GJ-R emulation probe is shipped with one EV9200G-74, a 74-pin LCC socket with the footprint of the QFP
package. Additional sockets are available as replacement parts in
sets of five.
(8) The EP-78220GJ-R emulation probe is shipped with one EV9200G-94, a 94-pin Lee socket with the footprint of the QFP
package. Additional sockets are available as replacement parts in
sets of five.
VAX and VMS are registered trademarks of Digital Equipment Corporation.
1-13
II
JlPD782XX Series
1-14
NEe
NEe
~PD783XX Series
Development Tools
IlPD783XX Series Development Tools Selection Guide (Note 10)
Relocatable
Assembler
(Note11)
Structured
Assembler
(Note 12)
(Note 3)
RA78K3
ST78K3
RA78K3
ST78K3
IE-78310A-R
EP-78310GF
(Note 6)
(Note 4)
RA78K3
ST78K3
fll'D78310AL
IE-78310A-R
EP-78310L
RA78K3
ST78K3
fll'D78312ACW
IE-78310A-R
(Note 3)
fll'D78P312ACW/DW
PA-78P312CW
RA78K3
ST78K3
fll'D78312AGF-3BE
IE-78310A-R
fll'D78P312AGF-3BE
PA-78P312GF
RA78K3
ST78K3
fll'D78312AGO-36
IE-78310A-R
EP-78310GF
(Note 6)
(Note 4)
fll'D78P312AGQ/RO
PA-78P312GO
RA78K3
ST78K3
fll'D78312AL
IE-78310A-R
EP-78310L
fll'D78P312AL
PA-78P312L
RA78K3
ST78K3
fll'D78P312ACW
IE-78310A-R
(Note 3)
PA-78P312CW
RA78K3
ST78K3
fll'D78P312ADW
IE-78310A-R
(Note 3)
PA-78P312CW
RA78K3
ST78K3
fll'D78P312AGF-3BE
IE-78310A-R
PA-78P312GF
RA78K3
ST78K3
fll'D78P312AGO-36
IE-78310A-R
EP-78310GF
(Note 6)
(Note 4)
PA-78P312GO
RA78K3
ST78K3
fll'D78P312AL
IE-78310A-R
EP-78310L
PA-78P312L
RA78K3
ST78K3
fll'D78P312AR
IE-78310A-R
(Note 4)
PA-78P312GO
RA78K3
ST78K3
fll'D78320GJ-5BJ
IE-78320-R
RA78K3
ST78K3
fll'D78320L
IE-78320-R
EP-78320GJ-R
(Note 7)
EP-78320L-R
CC7831X
(Note 5)
CC7831X
(Note 5)
CC7831X
(Note 5)
CC7831X
(Note 5)
CC7831X
(Note 5)
CC7831X
(Note 5)
CC7831X
(Note 5)
CC7831X
(Note 5)
CC7831X
(Note 5)
CC7831X
(Note 5)
CC7831X
(Note 5)
CC7831X
(Note 5)
CC7831X
(Note 5)
CC7831X
(Note 5)
CC7832X
RA78K3
ST78K3
CC7832X
fll'D78322GJ-SBJ
IE-78320-R
RA78K3
ST78K3
CC7832X
fll'D78322L
IE-78320-R
RA78K3
ST78K3
CC7832X
fll'D78P322GJ
IE-78320-R
PA-78P322GJ
PA-78P322KD
PA-78P322L
PA-78P322KC
PA-78P322GJ
RA78K3
ST78K3
CC7832X
fll'D78P322KC
fll'D783P322KD
IE-78320-R
IE-78320-R
PA-78P322KC
PA-78P322KD
RA78K3
RA78K3
ST78K3
ST78K3
CC7832X
CC7832X
~D78P322L
IE-78320-R
IE-78320-R
IE-78320-R
IE-78320-R
PA-78P322L
PA-71 P301 GF
PA-71 P301 GO
PA-71 P301 KA
RA78K3
ST78K3
CC7832X
Part Number
(Note 1)
Emulator'
Emulation
Probe'
fll'D78310ACW
IE-78310A·R
fll'D78310AGF·3BE
IE-78310A-R
fll'D78310AGO-36
~D71P301GF-3BE
fll'D71P301GO-36
fll'D71P301KA
(Note 8)
fll'D71P301KB
(Note 9)
fll'D71P301L
fll'D71P301RO
EP-78320GJ-R
(Note 7)
EP-78320L-R
EP-78320GJ-R
(Note 7)
EP-78320L-R
EP-78320GJ-R
(Note 7)
EP-78320L-R
EPROM/alP
Device
fll'D78P322GJ
fll'D78P322KD
fll'D78P322L
fll'D78P322KC
PG·1500
Adapter
(Note 2)
IE-78320-R
PA-71 P301 KB
IE-78320-R
IE-78320-R
PA-71P301L
PA-71 P301 GO
CCompiler
(Note 13)
a
• Required Tools
1-15
NEe
I-lPD783l(X Series
Notes:
(1)
Packages:
(7)
Package
Description
CW
OW
GF-3BE
GJ-SBJ
G0-36
KA
KB
KC
KD
L
64-pin plastic shrink DIP
64-pin Ceramic shrink DIP with window
64-pin plastic QFP (Resin Thickness: 2.7 mm)
74-pin plastic QFP (20 mm x 20 mm)
64-pin plastic QUIP
44-pin ceramic LCC with window
64-pin ceramic LCC with window
68-pin ceramic LCC with window
74-pin ceramic LCC with window
44-pin PLCC (jI.PD71P301L)
68-pin PLCC (jI.PD78310Al312A1P312AL,
I1PD783201322L)
64-pin ceramic QUIP with window
64-pin ceramic QUIP with window
R
RQ
The EP-78320GJ-R emulation probe is shipped with one EV.. 9200G-74, a 74-pin LCC socket with the footprint of the QFP
. package, Additional sockets are available as replacement parts
in sets of five.
(8)
Sockets for the I1PD71 P301 KA (44-pin LCC package) are
available from Yamaichi, Inc. (IC61-o444-030).
(9)
Scckets for the I1PD71 P301 KB (64-pin LCC package) are
available from NEC Electronics (EV-9200G-64) in se.ts offive.
(10) The followin!;! evaluation boards are available for the I1PD783XX
series:
Part Number
DesIgn/Development Boards
I1PD7831XA
I1PD7832X
EB-78320-PC
Evaluation Boards
DDK-78310A
(11) The following relocatable packages are available:
(2)
By using the specified adapter, the PG-1S00 EPROM programmer can be used to program the EPROMlOTP device.
(3)
The emulation probe for the 64-pin shrink DIP package (EP78310CW) is supplied with the IE.
(4)
The emulation probe for the 64-pin QUIP package (EP78310GQ) is supplied with the IE.
(13) The following C Compiler packages are.available:
(S)
There are two C Compilers for the I1PD7831X devices: CC7831 X
from NEC Electronics and one from Lattice Corporation.
CCMSD-ISDD-7831X
CCMSD-ISDD-7832X
(6)
The EP-78310GF emulation probe is shipped with one EV9200G-64, a 64-pin LCC socket with the footprint of the QFP
package. Additional sockats are available as replacement parts
in sets of five.
MS-DOS is a registered trademark of Microsoft Corporation.
VAX and VMS are registered trademarks of Digital Equipment Corporation.
1-16
RA-78K3-DS2
RA-78K3-VVn
(MS-DOS-)
(VAXNMS'1
Relocatable assembler
for 783XX series
(12) The ST78K3 structured assembler preprocessor is provided with
RA78K3.
(MS-DOS-)
. (MS-DOS-)
Forl1PD7831X series
For I1PD7832X series
NEe
PG·1500
Programming Adapters
Socket Ada~ters and Ada~ter Modules
Target Chip
Socket Adapter
(Note 1)
Adapter Module
(Note 2)
Standard 27XXX EPROM Devices
!ll'D27256 (12.5 V)
flI'D27256 (21 V)
flI'D27C256
flI'D27C256A
flI'D27C512
flI'D27C1000
flI'D27C1001
!ll'D27C10124
PA-75P54CS
PA-75P54CS
PA-75P54CS
PA-75P54CS
PA-75P54CS
PA-75P54CS
PA-75P56CS
PA-75P56CS
04A Board
04A Board
04A Board
04A Board
04A Board
04A Board
04A Board
04A Board
IlPD75XXX Series Devices
flI'D75POO8CU
flI'D75POO8GB
flI'D75P036CW
flI'D75P036GC
flI'D75P108BCW
flI'D75P108CW
flI'D75P108DW
flI'D75P108BGF
flI'D75P108G
flI'D75Pl16CW
flI'D75Pl16GF
flI'D75P216GF
flI'D75P308GF
flI'D75P308K
flI'D75P316GF
flI'D75P316AGF
flI'D75P316AK
flI'D75P328GC
flI'D75P402C
flI'D75P402CT
flI'D75P402GB
flI'D75P516GF
I!fD75P516K
PA-75POOSCU
PA-75POOSCU
PA-75P036CW
PA-75P036GC
PA-75P1OSCW
PA-75P1OSCW
PA-75P108CW
PA-75P1OSG
PA-75Pl16GF
PA-75P1OSG
PA-75Pl16GF
PA-75P1OSCW
PA-75P108G
PA-75P116GF
PA-75P216ACW
PA-75P3OSGF
PA-75P3OSK
PA-75P308GF
PA-75P308GF
PA-75P308K
PA-75P328GC
(Note 3)
PA-75P402CT
PA-75P402GB
PA-75P516GF
PA-75P516K
Socket Adapter
Adapter Module
(Note 1)
(Note 2)
IlPD78XX Series Devices
027A Board
027A Board
027A Board
027A Board
027A Board
027A Board
027A Board
027A Board
IlPD75XX Series Devices
flI'D75P54CS
flI'D75P54G
flI'D75P56CS
flI'D75P56G
!ll'D75P64CS
flI'D75P64G
flI'D75P66CS
flI'D75P66G
Target Chip
04A Board
04A Board
04A Board
04A Board
04A Board
04A Board
04A Board
04A Board
04A Board
04A Board
04A Board
04A Board
04A Board
04A Board
04A Board
04A Board
04A Board
04A Board
04A Board
04A Board
04A Board
027A Board
027A Board
027A Board
04A Board
04A Board
flI'D78CP14CW
flI'D78CP14DW
flI'D78CP14G
flI'D78CP14GF
flI'D78CP14L
flI'D78CP14R
PA-78CP14CW
PA-78CP14CW
PA-78CP14GO
PA-78CP14GF
PA-78CP14L
PA-78CP14GO
027A Board
027A Board
027A Board
027A Board
027A Board
027A Board
II
IlPD78XXX Series Devices
flI'D71P301GF
flI'D71P301GO
flI'D71P301KA
flI'D71 P301 KB
flI'D71P301L
flI'D78P214CW
!ll'D78P214GJ
!ll'D78P214GO
!ll'D78P214L
flI'D78P224GJ
flI'D78P224L
flI'D78P238GC
flI'D78P238GJ
flI'D78P238KF
flI'D78P238LO
flI'D78P312ACW
!ll'D78P312ADW
flI'D78P312AGF
flI'D78P312AGO
!ll'D78P312AL
flI'D78P312AR
flI'D78P322GJ
!ll'D78P322KC
flI'D78P322KD
flI'D78P322L
PA-71 P301 GF
PA-71P301GO
PA-71 P301 KA
PA-71 P301 KB
PA-71P301L
PA-78P214CW
PA-78P214GJ
PA-78P214GO
PA-78P214L
PA-78P224GJ
PA-78P224L
PA-78P238GC
PA-78P238GJ
PA-78P238KF
PA-78P238LO
PA-78P312CW
PA-78P312CW
PA-78P312GF
PA-78P312GO
PA-78P312L
PA-78P312GO
PA-78P322GJ
PA-78P322KC
PA-78P322KD
PA-78P322L
027A Board
027A Board
027A Board
027A Board
027A Board
027A Board
027A Board
027A Board
027A Board
027A Board
027A Board
027A Board
027A Board
027A Board
027A Board
027A Board
027A Board
027A Board
027A Board
027A Board
027A Board
027A Board
027A Board
027A Board
027A Board
PA-70P322L
027A Board
V-Series Devices
flI'D70P322K
Digital Signal Processors
flI'D77P56CR
!ll'D77P56G
!ll'D77P25C
!ll'D77P25D
!ll'D77P230R
PA-77P56C
PA-77P56C
PA-77P25C
PA-77P25C
PA-77P230R
04A Board
04A Board
027A Board
027A Board
027A Board
Not.. :
(1) All socket adapters must be purchased separately.
(2) The 27A and 04A Adapter Modules are shipped with the PG-1500.
(3) The IlPD75P402C does not require a programming socket
adapter. It can be plugged direcdy into the 027A board.
1-17
PG·1500
1-18
NEe
NEe
V-Series
Microprocessors and Peripherals
CMOS Microprocessors
Device,
).lPD
Features
70008A
'Z80 microprocessor
70108
(V2O)
Data
BIts
(MHz)
8
8
8088 compatible; enhanced
8/16
80rl0
70116
(V30)
8086 compatible; enhanced
16
80rl0
70208
(V40)
MS-DOS, V20 compatible CPU with peripherals
8/16
80rl0
70216
(V50)
MS-DOS, V30 compatible CPU with peripherals
16116
80rl0
70616
(V60)
70632
(V70)
70832
(V80)
70136
(Vaa)
70236
(V53)
70320
(V25)
70330
(V35)
70325
(V25+)
70335
(V35+)
70327
(V25 Software Guard)
70337
(V35 Software Guard)
79011
(V25 RTOS)
79021
(V35 RTOS)
70322
(V25 ROM)
32-bit; high-speed
16132
16
32-bit; high-speed
32132
20/25
32-bit; high-speed
32132
Hardwired, enhanced V30
16
vaa core-based; high-integration; DMA, serial 1/0,
interrupt controller, etc.
MS-DOS compatible; high-integration; DMA, serial 1/0,
interrupt controller, etc.
MS-DOS compatible; high-integration; DMA, serial 1/0,
interrupt controller, etc.
MS-DOS compatible; high-integration; high-speed DMA
16
Clock
• Package
PIns
DIP
CFP
PLCC
DIP
Cenimic DIP
CFP
PLCC
DIP
Ceramic DIP
QFP
PLCC
CeramicPGA
PLCC
OFP
PGA
PLCC
QFP
PGA
40
44
44
40
40
52
44
40
40
52
44
68
68
80
68
68
80
68
PGA
132
25
CeramicPGA
208
12 or 16
PGA
PLCC
Ceramic PGA
OFP
PLCC
OFP
PLCC
QFP
PLCC
OFP
PLCC
QFP
PLCC
QFP
PLCC
OFP
PLCC
QFP
PLCC
OFP
PLCC
OFp
68
68
132
120
84
94
84
94
84
94
84
94
84
94
84
94
84
94
84
94
84
94
8/16
50r8
16
8
8116
80rl0
16
80rl0
MS-DOS compatible; high-integration; software protection
8/16
8
MS-DOS compatible; high-integration; software protection
16
8
MS-DOS compatible; high-integration; real-time operating system
8/16
8
MS-DOS compatible; high-integration; real-time operating system
16
8
8/16
8
MS-DOS compatible; high-integration; high-speed DMA
MS-DOS compatible; high-integration; 16K-byte ROM
# Plastic unless ceramic (or cerdip) is specified.
, For additional information, refer to 1987 Microcomputer Oata B9ok.
1-19
II
NEe
V-Series
CMOS Microprocessors (cont)
Device,
",PO
70P322
70332
(V35 ROM)
Features
MS-DOS compatible; high-integration; 16K-byte UVEPROM;
V25 or V35 mode
MS-DOS compatible; high-integration; 16K-byte ROM
Data
Bits
(MHz)
Clock
• Package
Pins
8/16
8
Ceramic LCC
84
16
8
PLCC
OFP
84
94
Data
Bits
Clock
NMOS and HMOS Microprocessors
Device,
",PO
Features
808SA
'8-bit microprocessor; NMOS or HMOS
8
5
DIP
40
8086
'16-bit microprocessor; HMOS
16
8
Cerdip
40
8088
'8-bit microprocessor; HMOS
8
8
Ceramic DIP
40
Data
Bits
(MHz)
# Package
Pins
(MHz)
• Package
Pins
CMOS System Support Products
Device,
",PO
Name
71011
Clock Pulse Generator/Driver
71037
Programmable DMA Controller
8
10
71051
Serial Control Unit
8
8/10
71054
Programmable Timer/Controller
8
8/10
71055
Parallel Interface Unit
8
8/10
71059
Interrupt Control Unit
8
8/10
71071
DMA Controlle r
8/16
8/10
71082
Transparent Latch
8
8
71083
Transparent Latch
8
71084
Clock Pulse GeneratorlDriver
71086
Bus BufferlDriver
8
8
71087
Bus Buffer/Driver
8
8
1-20
Clock
DIP
SOP
DIP
OFP
PLCC
DIP
OFP
PLCC
DIP
OFP
PLCC
DIP
OFP
PLCC
18
20
40
40
44
28
44
28
24
44
28
40
44
44
DIP
OFP
PLCC
DIP
Ceramic DIP
OFP
PLCC
DIP
SOP
28
44
28
48
48
52
52
20
20
8
DIP
SOP
20
20
25
DIP
SOP
DIP
SOP
DIP
SOP
18
20
18
20
20
20
20
NEe
V-Series
CMOS System Support Products (cont)
Device,
IlPD
71088
Name
Syslem Bus Controller
8110
82C43
·lnputlOutput Expander
5
Data
Blta
Clock
(MHz)
• Package
Plna
DIP
SOP
DIP
Skinny DIP
20
20
24
24
Plna
NMOS System Support Products
Device,
IlPD
Name
8l55H
8l56H
Data
Blta
Clock
(MHz)
# Peckage
·256 x 8 RAM; 110 ports and timer
8
30r5
DIP
40
·256 x 8 RAM; 110 ports and timer
8
30r5
DIP
40
8237A
·Programmable DMA Controller
8
5
DIP
40
8243
"InputlOutput Expander
5
DIP
24
8251A
·Programmable Communications Inlerface
8
3J5
DIP
28
8253
"Programmable Internal Timer
8
5
DIP
24
40
8255A
·Programmable Peripherallnleriace
8
5
DIP
8257
·Programmable DMA Controller
8
5
DIP
40
8259A
·Programmable Interrupt Controller
8
5
DIP
28
8279
·Programmable Keyboard/Display Inlerface
5
DIP
40
1-21
II
V-Series
1-22
tvEe
Intelligent
Peripheral Devices (lPD)
1tIEC
Communications Controllers
Device,
Il PD
Name
Description
7201A
Multiprotocol Serial
Communications Controller
72001
CMOS, Advanced Multiprotocol
Serial Communications
Controller
72002
CMOS, Advanced Multiprotocol
Serial Communications Controller
Dual full-duplex serial channels; four DMA channels;
programmable interrupt vectors; asychronous
COP and BOP support; NMOS
Functional superset of 8530; 8086N30 interface; two
full-duplex serial channels; two digital phase-locked
loops; two baud-rate generators per channel; loopback
test mode; short frame and mark idle detection
Low-cost, single-channel version of 72001; software
compatible; direct interface to 8237 DMA.
CMOS, HDLC Controller
Not included in 1989-1990 IPD Data Book; refer to 72002
data sheet.
Single full-duplex serial channel; on-ehip DMA Controller.
72103
Data Rate
# Package
Pins
1 Mb/s
DIP
Ceramic DIP
40
40
2.5 Mb/s
DIP
OFP
PLCC
40
52
52
2.5 Mb/s
DIP
OFP
PLCC
40
44
44
4 Mb/s
DIP
PLCC
64
68
Not included in 1989-1990 IPDData Book; refer to 72103
data sheet
Graphics Controllers
Device,
IlPD
7220A
72020
72120
72123
Name
Description
High-Performance
Graphics Display
Controller
Graphics Display
Controller
Advanced Graphics
Display Controller
General-purpose, high-integration controller; hardwired
supportfor lines, arC/circles, rectangles, and graphics
characters; 1024xl024 pixel display with four planes
CMOS 7220A with 2M video memory; dual-port RAM control;
write-masking on any bit; enhanced external synch
High-speed graphics operations including paint, area fill,
slant, arbitrary angle rotate, up to 16x enlargement and
reduction; dual-port RAM control; CMOS
Enhanced 72120; expanded command set; improved painting
performance; laser printer interface controls; CMOS
Advanced Graphics
Display Controller II
Drawing Rate
# Package
Pins
500 ns/dot
Ceramic DIP
40
500 ns/dot
DIP
OFP
PLCC
OFP
40
52
84
94
PLCC
OFP
84
94
500 ns/dot
400 ns/dot
Advanced Compression/Expansion Engine
Device,
IlPD
72185
Name
Description
# Package Pins
Advanced Compression/
Expansion Engine
High-speed ccm Group 3/4 bit-map image compression/expansion (A4test
chart, 400 PPI x 400 LPI in under 1 second); 32K-pixelline length; 32-megabyte
image memory; on-chip DMA and refresh timing generator; CMOS
SDiP
PLCC
64
68
# Plastic unless ceramic (or cerdip) is specified.
1-23
II
NEe
IPD
Floppy-Disk Controllers
Device,
ILPD
Name
Description
765A1B
Floppy-Disk Controller
71065166
Floppy-Disk Interface
72064'
Floppy-Disk Controller
72065165B
CMOS Roppy-Disk
Controller
72067
Transfer
Rate
'Package
Industry-standard controller supporting IBM 3740 and IBM
System 34 double-density format; enhanced 765B supports
multitasking applications
Compatible with 765-family controllers and others; supports
multiple data rates from 125 to SOO kb/s
CMOS; All features of 72068 with complete AT register set.
Pin compatible with WD 37C651AIB but with higher
performance DPLL and reliable multitasking operation
100% 765AIB microcode compatible; compatible with 808x
microprocessor families
500 kbls
DIP
40
SOO kb/s
SOP
SDiP
PLCC
aFP
28
30
44
52
Floppy-Disk Controller
CMOS; 765A1B microcode compatible; clock generationl
switching circuitry; selectable write precompensation;
digital phase-locked loop
500 kb/s
DIP
PLCC
QFP
DIP
aFP
PLCC
72068
Floppy-Disk Controller
500 kb/s
72069
Floppy-Disk Controller
All features of the 72067 plus IBM-PC, PCIXT, PC/AT, or
PS/2 style registers; 24-ma high-current drivers
All features of the 72067168 with substitution of highperformance analog phase-locked loop for digital PLL
aFP
PLCC
PLCC
aFP
40
44
52
48
52
52
80
84
84
100
ReadlWrlte
Clock
500 kb/s
500 kb/s
1 Mb/s
Pins
Hard-Disk Controllers
Device,
ILPD
Name
Description
'Package
Pins
7261AIB
Hard~ilisk Controller
23 MHz
Ceramic DIP
40
7262
Enhanced Small-pisk
Interface (ESDI) Controller
CMOS Hard-Disk
Controller
Supports eight drives in SMD mode, four drives in ST506
mode; error correction and detection
Serial;mode ESDI compatible; controls up to seven drives;
supports up to 80 heads; hard and soft-sector interfacing
Supports SMDISMD-E and ST5061412 type drives
18 MHz
Ceramic DIP
40
24 MHz
Selectable 8/16 data bus width; 16 high-level commands
for reduced CPU load; single-command automatic
execution; 5-Mb sync/async; CMOS
16 MHz
DIP
aFP
PLCC
SDiP
aFP
PLCC
40
52
52
64
74
68
72061
72111
Small Computer System
Interface (SCSI) Controller
• Not included in 1989-90 IPO Data Book; refer to 72064 Data Sheet.
1-24
NEe
DSP and
Speech Products
Digital Signal Processors
Device,
j.1PD
Description
7720A
16-bit, fixed-point DSP; NMOS
Instruction
Cycle (ns)
Instruction
ROM (Bits)
Data ROM
(Bits)
Data RAM
(Bits)
244
512 x 23
510 x 13
128x 16
77C20A
16-bit, fixed-point DSP; CMOS
244
512 x 23
510 x 13
128 x 16
77P20
16-bit, fixed-point DSP; CMOS
244
16-bit, fixed-point DSP; CMOS
122
510 x 13
UVEPROM
1024 x 16
128 x 16
77C25
512 x 23
UVEPROM
2048 x 24
77P25
16-bit, fixed-point DSP; CMOS
122
2048 x 24
OTPROM
2048 x 24
UVEPROM
2048 x 32
1024 x 16
OTPROM
1024 x 16
UVEPROM
1024 x 24
256 x 16
256 x 16
256 x 16
512 x 24
# Package
DIP
PLCC
DIP
PLCC
PLCC
Cerdip
Pins
2~
44
28
28
44
28
DIP
PLCC
SOP
DIP
PLCC
Cerdip
28
44
32
68
68
68
28
44
28
77220
24-bit, fixed-point DSP; CMOS
122
77P220R
24-bit, fixed-point DSP; CMOS
122
2048 x 32
UVEPROM
1024 x 24
UVEPROM
512 x 24
Ceramic PGA
PLCC
Ceramic PGA
77230AR
32-bit, floating-point DSP; CMOS
150
2048 x 32
1024 x 32
1024 x 32
Ceramic PGA
68
77230AR-003
150
n/a
n/a
n/a
Ceramic PGA
68
77P230R
32-bit, floating-point DSP; CMOS;
standard library software
32-bit, floating-point DSP; CMOS
150
Ceramic PGA
68
16-bit fixed-point modem DSP; CMOS
181
1024 x 32
UVEPROM
1024 x 16
1024 x 32
77810
2048 x 32
UVEPROM
2048 x 24
256 x 16
Ceramic PGA
PLCC
7281
Image pipelined processor; NMOS
5-MHzclock
n/a
n/a
512 x 18
Ceramic DIP
68
68
40
72181
Image pipelined processor; CMOS
10-MHz clock
n/a
n/a
512 x 18
9305
Support device for j.tI'D7281
processors; CMOS
10-MHz
clock
n/a
n/a
n/a
DIP
OFP
Ceramic PGA
40
68
132
• Package
Pins
Speech Processors
Device,
j.1PD
Clock
Name
Data ROM
(Bits)
Technology
(MHz)
NMOS
NMOS
8
77C30
ADPCM Speech Encoder/Decoder
ADPCM Speech Encoder/Decoder
7755
ADPCM Speech Synthesizer
CMOS
0.7
96K
7756
ADPCM Speech Synthesizer
CMOS
0.7
256K
77P56
ADPCM Speech Synthesizer
CMOS
0.7
7757
ADPCM Speech Synthesizer
CMOS
0.7
256K
OTPROM
512K
7759
ADPCM Speech Synthesizer
CMOS
0.7
7730
8
1024K
external
DIP
DIP
PLCC
DIP
SOP
DIP
SOP
DIP
SOP
DIP
SOP
DIP
OFP
28
28
44
18
24
18
24
20
24
18
24
40
52
# Plaslic unless ceramic (or cerdip) is specified.
1-25
a
DSP and Speech
1-26
NEe
NEe
V-Series
Development Tools
V-Series Development Tools
Part
Number
(Note 1)
Full
Emulator
).II'D70136GJ-12
IE-70136-A016
).II' D70136GJ-16
IE-70136-A016
).II'D70136L-16
).II'D70136L-12
).II'D70136R-12
IE-70136-A016
IE-70136-A016
IE-70136-A016
).II'D70136R-16
IE-70136-A016
).II'D70208GF-8
).II'D70208GF-l0
).II'D70208L-8
IE-70208-A010
IE-70208-A010
IE-70208-A010
EP-70136L-A
(Note 2)
EP-70136L-A
(Note 2)
EP-70136L-A
EP-70136L-A
EP-70136L-A
(Note 3)
EP-70136L-A
(Note 3)
(Note 12)
(Note 12)
IE-7OOOO-2958
).II'D70208L-10
IE-70208-A010
IE-7OOOO-2958 EB-V40MINHE
).II'D70208R-8
).II'D70208R-10
).II'D70216GF-8
).II'D70216GF-l0
).II'D70216L-8
IE-70208-A010
IE-70208-A010
IE-70216-A010
IE-70216-A010
IE-70216-A010
IE-7OOOO-2959
IE-7OOOO-2959
(Note 12)
(Note 12)
IE-7OOOO-2958
).II'D70216L-l0
IE-70216-A010
IE-70000-2958 EB-VSOMINI-IE
).II'D70216R-8
).II'D70216R-l0
fLPD70320GJ
IE-70216-A010
IE-70216-A010
IE-70320-A008
EB-V50MINI-IE
EB-V50MINI-IE
EB-V25MINI-IE-P
fLP D70320GJ-8
IE-70320-A008
fLPD70320L
fLPD70320L -8
fLPD70322GJ
IE-70320-AOO8
IE-70320-AOO8
IE-70320-A008
fLPD70322GJ-8
IE-70320-AOO8
fLPD70322L
IE-70320-AOO8
IE-7OOOO-2959
IE-70000-2959
EP-70320GJ
(Note 5)
EP-70320GJ
(Note 5)
EP-70320L
EP-70320L
EP-70320GJ
(Note 5)
EP-70320GJ
(Note 5)
EP-70320L
EB-V25MINI-IE-P
ADAPT68PGA
68PLCC (Note 4)
ADAPT68PGA
68PLCC (Note 4)
(Note 4)
(Note 4)
EP-70320GJ
(Note 6)
EP-70320GJ
(Note 6)
(Note 7)
(Note 7)
EP-70320GJ
(Note 6)
EP-70320GJ
(Note 6)
(Note 7)
fLPD70322L-8
IE-70320-A008
EP-70320L
EB-V25MINI-IE-P
(Note 7)
DDK-70320
fLPD70325GJ-8
IE-70325-AOOS
EP-70320GJ
(Note 5)
(Note 12)
(Note 12)
fLPD70325GJ-l0
IE-70325-A008
(Note 8)
IE-70325-A008
IE-70325-A008
(Note 8)
EP-70320GJ
(Note 5)
(Note 12)
EP-70320L
EP-70320L
(Note 12)
(Note 12)
fLPD70325L-8
fLPD70325L-10
Full
Emulator
Probe
Relocatable
EPROM/OTP Assembler CCompller
(Note 13)
(Note 14)
Device
Mini-IE
Emulator
Mini-IE
Probe
Evaluation
Boards
IE-70136-PC
EP-70136L-PC
(Note 2)
EP-70136L-PC
(Note 2)
EP-70136L-PC
EP-70136L-PC
EP-70136L-PC
(Note 3)
EP-70136L-PC
(Note 3)
DDK-70136
RA70136
CC70136
DDK-70136
RA70136
CC70136
DDK-70136
DDK-70136
DDK-70136
RA70136
RA70136
RA70136
CC70136
CC70136
CC70136
DDK-70136
RA70136
CC70136
EB-70208
EB-70208
EB-70208
RA70116
RA70116
RA70116
CC70116
CC70116
CC70116
EB-70208
RA70116
CC70116
EB-70208
EB-70208
EB70216
EB70216
EB70216
RA70116
RA70116
RA70116
RA70116
RA70116
CC70116
CC70116
CC70116
CC70116
CC70116
EB70216
RA70116
CC70116
EB70216
EB70216
DDK-70320
RA70116
RA70116
RA70320
CC70116
DDK-70320
RA70320
CC70116
DDK-70320
RA70320
RA70320
RA70320
CC70116
DDK-70320
DDK-70320
DDK-70320
RA70320
CC70116
RA70320
CC70116
RA70320
CC70116
DDK-70325
RA70320
CC70116
(Note 12)
DDK-70325
RA70320
CC70116
(Note 12)
(Note 12)
DDK-70325
RA70320
RA70320
CC70116
CC70116
IE-70136-PC
IE-70136-PC
IE-70136-PC
IE-70136-PC
IE-70136-PC
EB-V40MINI-IE
EB-V40MINHE
EB-V40MINHE
EB-V40MINI-IE
EB-V40MINHE
EB-V50MINI-IE
EB-V50MINHE
EB-V50MINI-IE
EB-V25MINI-IE-P
EB-V25MINHE-P
EB-V25MINI-IE-P
EB-V25MINHE-P
EB-V25MINI-IE-P
ADAPT68PGA
68PLCC (Note 4)
ADAPT68PGA
68PLCC (Note 4)
(Note 4)
(Note 4)
DDK-70320
DDK-70325
70P322K
(Note 10)
70P322K
(Note 10)
a
CC70116
CC70116
CC70116
CC70116
1-27
NEe
V-Series
V-Series Development Tools (cont)
Part
Number
(Note 1)
Full
Emulstor
ILPD70327GJ-8
(Note 9)
ILPD70327L-8
(NQte 9)
ILPD70330GJ-S
IE-70330-A008
ILPQ70330L-S
ILPD70332GJ-S
IE-70330-A008
IE-70330-A008
ILPD70332L-S
IE-70330-A008
ILPD70335GJ-S
I,E-70335-A008
ILPD70335GJ-l0
IE'70335-AOOS
(Note 8)
IE-70335-A008
IE-7033.5-A008
(Note 8)
IE-7033O-AOOS
ILPD70335L-8
ILPD70335L-l0
ILPD70337GJ-8
(Note 9)
ILPD70337L-8
(Note 9)
ILPD79011 GJ-8
(Note 11)
ILPD79011 L-S
(Note 11)
ILPD79021L-8
(Note 11)
Notes:
(1) Packages:
Package
·GF
GJ
K
L
R
IE-70320-AOOS
IE-70230-AOOS
IE-70330-A008
IE-70320-AOOS
+IE-70320-RTOS
IE-70330-AOOS
+IE-70330-RTOS
Full.
Emulator
Probe
EP-7032QGJ
(Note 5)
EP-70320L
EP-70320GJ
(Note 5)
EP-70320L
Ep·70320GJ
, (Note 5)
EP-70320L
Mini-IE
Emulator
Mini-IE
Probe
EB-V25MINI-IE-P
EP-70320GJ
(Note 6)
(Note 7)
EB-V25MINI-IE-P
Relocatilble
EPROM/OTP Assembler CComplier
(Note 10)
(Note 11)
Davlca
RA70320
CC70116
RA70320
CC70116
EP-70320GJ
(Note 6)
(Note 7)
EP-70320GJ
(Note 6)
(Note 7)
DDK-70330
RA70320
CC70116
DDK-70330
DDK-70330
RA70320
RA70320
CC70116
CC70116
RA70320
CC70116
EP-70320GJ . (Note 12)
(Note 5)
EP-70320GJ
(Not~ 12)
(Note 5)
EP-70320L
(Note 12)
EP-70320L
(Note 12)
(Note 12)
DDK-70330
RA70320
CC70116
(Note 12)
DDK-70330
RA70320
C070116
(Note 12)
(Note 12)
DDK-70330
DDK-70330
RA70320
RA70320
CC70116
CC70116
EP-70320GJ
(Note 5)
EP-70320L
EB-V35MINI-IE-P
RA70320
C070116
EB-V35MINI-IE-P
EP-70320GJ
(Note 6)
(Note 7)
RA70320
CC70116
EP-70320GJ
(Note 5)
EP-70320L
(Note 12)
(Note 12)
RA70320
CC70116
(Note 12)
(Note 12)
RA70320
CC70116
EP-70320L
(Note 12)
(Note 12)
RA70320
CC70116
EB'V35MINI·IE-P
EB-V35MINI·IE·P
EB-V35MINI-IE·P
EB-V35MINI·IE-P
~, Description
8o-pin plastic OFP
74-pin or 94-pin plastic OFP
84-pin ceramic LCC with window
S8-pin or 84-pin plastic LCC
S8-pin PGA
(3) 68-pin PGA parts are supported by using the EP-7013SL-A
PLC.c probe or EP-70136L-PC PLCC probe, plus a PLCC
socket with a PGA~pinout. A PLCC socket of this type is
supplied with the EP-7013SL-A.
(4) The EB~V40 MINI-IE and EB-V50 MINI-IE support PGA
packages direc~y; the ADAPTS8PGAS8PLCC adapter
converts the PGA-pinollt on the MINI-IE to a PLCC footprint.
This adapter is supplied with the MINI-IE.
DDK-70330
70P322K
(Note 10)
(5) The EP-70320GJ is an adapter to the EP-70320L, which converts
84-pin PLCC probes to a 94-pin OFP footprint. For GJ parts,
both the PLCC probe and the adapter are needed.
(S) The EP-70320GJ adapter can be used to convert the supplied
84-pin PLCC cable. of the EB-V25 MINI-IE-Por EB-V35 MINI-IE-P
to a 94-pin OFP.
(7)
(2) The EP-7013SGL-A and EP-7013SL-PC contain both a 58-pin
PLCC probe and an adapter Which converts the S8-pin PLCC
probes to a 74-pin OFP footprint
1-28
Evaluation
Bosrds
The EB-V25 MINI-IE-P and EB-V35 MINI-IE-P are supplied with an
84-pin PLCC cable.
(8) At the current time, the emulators for the ILPD70325 and ILPD70335
are specified to 8 MHz. Contact your local NEC Sales Office for the
latest information on 10 MHz emulation.
(9) Development for the fLPD70327 or ILPD70337 can be done using
the appropriate ILPD70320 or ILPD70330 tools; however,
debugging the programs in the Software Guard mode is
not supported at this time.
(10) The ILPD70P322K EPROM device can be used for both ILPD70322
and ILPD70332 emulation. The ILPD70P322K EPROM device can
be programmed by using the PA-70P322L Programming Adapter
and the PG-1500 EPROM Programmer.
NEe
V-Series
V-Series Development Tools (cont)
Notes (continued):
(11) For emulation of J.lPD79011 or J.lPD79021, the base emulator
(IE-70320 or IE-70330) plus Real-Time Operating System
software IE-70320-RTOS or IE-70330-RTOS) is required.
(12) This emulation option is not currently supported, but may be
available in the future. Contact your local NEC Sales Office for
further information.
(13) The following relocatable assemblers are available:
RA70116-D52
RA70116-VVT1
RA70116-VXT1
For V20*N30"/
V40"W50™
(MS-DOS")
(VAXNMSTM)
(VAx/UNIXTM 4.2 BSD or
UltrixTM)
RA70136-D52
RA70136-VVT1
RA70136-VXT1
ForV33™
(MS-DOS)
(VAXNMS)
(VAx/UNIX 4.2 BSD or
Ultrix)
RA70320-D52
RA70320-VVT1
RA70320-VXT1
ForV25™
and V351M
(MS-DOS)
(VAXNMS)
(VAx/UNIX 4.2 BSD or
Ultrix)
(14) The following C compilers are available:
CC70116-D52
CC70116-VVT1
CC70116-VXT1
For V20N30/
V40N50 and
V25N35
(MS-DOS)
(VAXNMS)
(VAx/UNIX 4.2 BSD or
Ultrix)
CC70136-D52
CC70136-VVT1
CC70136-VXT1
For V33
(MS-DOS)
(VAXNMS)
(VAx/UNIX 4.2 BSD or
Ultrix)
V20 and V30 are registered trademarks of NEC Corporation.
V25, V33, V35, V40 and V50 are trademarks of NEC Corporation.
MS-DOS is a registered trademark of Microsoft Corporation.
VAX, VMS and Ultrix are trademarks of Digital Equipment Corporation.
UNIX is a trademark of AT&T Bell Laboratories.
1-29
a
V-Series
1-30
NEe
NEe
DSP and Speech
Development Tools
DSP and Speech Development Tools
Part Number
(Note 7)
flI'D7720AC
flI'D7720AL
flI'D77P20D
flI'D77C20AC
flI'D77C20AL
flI'D77C20ALK
flI'D77220L
flI'D77220R
flI'D77P220R
flI'D77230AR
flI'D77P230R
flI'D77C25C
flI'D77C25L
flI'D77P25C
flI'D77P25D
flI'D77P25L
flI'D7755C
flI'D7755G
fLPD7756C
flI'D7756G
flI'D77P56CR
flI'D77P56G
flI'D7757C
flI'D7757G
flI'D7759C
flI'D7759GC
flI'D77810L
flI'D7781 OR
Emulator
Evaluation
Board
EVAKIT-7720B
EVAKIT-7720B (Note 4)
EVAKIH720B
EVAKIT-77208
EVAKIH720B (Note 4)
EVAKIT-7720B (Note 4)
EVAKIT-77220
EVAKIT-77220
EVAKIT-77220
EVAKIT-77230
EVAKIH7230
EVAKIH7C25
EVAKIH7C25 (Note 4)
EVAKIH7C25
EVAKIH7C25
EVAKIH7C25 (Note 4)
NV-300 System
NV-300 System
NV-300 System
NV -300 System
NV-300 System
NV-300 System
NV-300 System
NV-300 System
NV-300 System
NV-300 System
DDK-77230
DDK-77230
Simulator
(Note 2)
EPROM/OTP
Device
PG·1500
Adapter
(Note 3)
ASM77
ASM77
SIM77
SIM77
SIM77
SIM77
SIM77
SIM77
SM77230
SM77230
SM77230
SM77230
SM77230
~D77P20D
(Note 5)
flI'D77P20D
(Note 5)
flI'D77P220R
PA-77P230R
PA-77P230R
PA-77P230R
PA-77P230R
ASM77
ASM77
ASM77
ASM77
RA77230
RA77230
RA77230
RA77230
RA77230
RA77C25
The following simulators are available:
Part Number
Description
SIM77-D52
Simulator for 7720 (MS-DOS)
SM77230-VVTl
Simulator for 77230 (VAx/UNIX)
SM77230-VXTl
Simulator for 77230 (VAx/UNIXlM 4.2
BSD or Ultrix)
a
PA-77P25C
flI'D77P25L
PA-77P25C
PA-77P25C
EB-7759
EB-7759 (Note 6)
EB-7759
EB-7759 (Nole 6)
EB-7759
EB-7759 (Note 6)
EB-7759
EB-7750 (Note 6)
EB-7759
EB-7759
IE-77810
IE-77810
flI'D77P230R
flI'D77P25C/D
RA77C25
RA77C25
RA77C25
RA77C25
Notes:
(1)
The following assemblers are available:
Part Number
Description
ASM77-D52
Assembler for 7720 (MS-Dose)
RA77C25-D52
Assembler for 77C25 (MS-DOS)
RA77C25-VVTl
Assembler for 77C25 (VAXNMSlM)
RA77230-D52
Assembler for 77230 (MS-DOS)
RA77230-VVTl
Assembler for 77230 (VAXNMS)
RA77230-VXT1
Assembler for 77230 (VAX/UNIXlM 4.2
BSD or UltrixlM)
(2)
Assembler
(Note 1)
flI'D77P56CR
flI'D77P56G
flI'D77P56CR
flI'D77P56G
PA-77P56C
PA-77P56C
PA-77P56C
PA-77P56C
PA-77P56C
PA-77P56C
RA7781 0
RA7781 0
(3)
By using the specified adapter, the NEC PG-1500 EPROM
programmer can be used to program the EPROM/OTP device.
(4)
Please check with your NEC Sales Representative on the
availability of a PLCC emulation probe.
(5) The fLPD77P20D can be programmed using the EVAKIT-7720B.
(6) The EB-7759 comes with an emulation probe for only the 18-pin
DIP.
(7)
Packages:
Package
C
D
G
GC
L
LK
R
Description
18,28, or 40-pin plastic DIP
28-pin ceramic DIP
24-pin plastic SOP
52-pin plastic QFP
44-or 68-pin PLCC
28-pin PLCC
68-pin ceramic PGA
MS-DOS is a registered trademark of Microsoft Corporation.
VAX, VMS, and Ultrix are trademarks of Digital Equipment Corporation.
UNIX is a trademark of AT&T Bell Laboratories.
1-31
DSP and Speech
1-32
NEe
fttfEC
Reliability and Quality Control
EJ
I
1
p.
2-1
ttlEC
Reliability and Quality Control
Section 2
Reliability and Quality Control
Introduction
2-3
Built-In Quality and Reliability
2-3
Technology Description
2-3
Approaches to Total Quality Control
2-3
Implementation of Quality Control
2-5
Reliability Testing
2-7
Life Distribution
2-7
Failure Distribution at NEC
2-7
Infant Mortality Failure Screening
2-8
Long-Term Failure Rate
2-8
Accelerated Reliability Testing
2-8
Failure Rate Calculation/Prediction
2-9
Product/Process Changes
2-10
Failure Analysis
2-10
NECs Goals on Failure Rates
2-10
Summary and Conclusion
2-10
Figure 1. Quality Control System Flowchart
2-5
Figure 2. New Product Development Flow
2-6
Figure 3. Electrical Testing and Screening
2-6
Figure 4. Reliability Life (Bathtub) Curve
2-7
Figure 5. Typical Reliability Test Results
2-9
Figure 6. NEC Quality and Reliability Targets
2-10
Appendix 1. Typical QC Flow
2-12
Appendix 2. Typical Reliability Assurance Tests
2-15
Appendix 3. New Product/Process Change
Tests
2-16
Appendix 4. Failure Analysis Flowchart
2-17
ttlEC
Reliability and Quality Control
Introduction
Approaches to Total Quality Control
As large-scale integration reaches a higher level of density, the reliability of individual devices imposes a more
profound impact on system reliability. Great emphasis has
thus been placed on assuring device reliability.
TOC activities are geared towards total satisfaction of the
customer. The success of these activities is dependent
upon the total commitment of management to enhancing
employee development, maintaining a customer-first attitude, and fulfilling community responsibilities.
Conventionally, performing reliability tests and attaining
feedback from the field are the only methods by which
reliability has been monitored and measured. At these
higher levels of LSI density, however, it is increasingly
difficult to activate all of the internal circuit elements in a
device, moreover, to detect the degradation of those
elements by measuring characteristics across external
terminals. As a result, testing alone may not provide
enough information to insure today's demanding reliability
requirements. A different philosophy and methodology is
needed for reliability assurance.
In orderto guarantee and improve a high level of reliability
for large-scale integrated circuits, it is essential to build
quality and reliability into the product. Then, conventional
testing can be performed to confirm that the product
demonstrates acceptable reliability.
Built·ln Quality and Reliability
NEe has introduced the concept of total quality control
(TOe) across its entire semiconductor product line for
implementing this philosophy. Rather than performing
only a few simple quality inspections, quality control is
distributed into each process step and then summed to
form a consolidated system. TOC involves workers, engineers, quality control staffs, and all levels of management in company-wide activities. Please see Figure 1 for
the quality control system flowchart. Through TOC, NEe
builds quality into the product and thus can assure high
reliability. Additionally, NEC has introduced a pre-screening
method into the production line for eliminating potentially
defective units. This combination of building quality in and
screening projected early failures out has resulted in
superior quality and excellent reliability.
Technology Description
Most large-scale integrated circuits utilize high density
MaS technology. State-of-the-art high performance has
been achieved by improving fine-line generation techniques. By reducing physical parameters, circuit density
and performance increase while active circuit power dissipation decreases. The data presented here shows thatthis
advanced technology, combined with the practice of TOe,
yields products as reliable as those from previous technologies.
10002
First, the quality control function is embedded into each
process. This method enables early detection of possible
causes of failure and immediate feedback.
Second, the reliability and quality assurance policy reflects
the beliefs and practices of the entire organization. This
enables companywide quality control activities: at NEe,
everyone is involved with the concept and methodology of
total quality control.
Third, there is an ongoing research and development effort
to set even higher standards of device quality and reliability.
Fourth, extensive failure analysis is performed periodically
and appropriate corrective actions are taken as preventative measures. Process control is based on statistical data
gathered from this analysis.
The new standard is continuously upgraded, and the
iterative process continues. The goal is to maintain the
superior product quality and reliability that has become
synonymous with the NEe name.
Zero Defect Activities. One of the activities that involves
every level of the NEC staff in quality control is the Zero
Defects (ZD) Program. As the name implies, the purpose
of the ZD program is to minimize, if not eradicate, defects
due to controllable causes. Such activities must involve
each and every worker and can be most effective when
pursued by groups of workers. The groups of workers are
organized by consideration of the following:
• A group must have a target to pursue
• Several groups can be organized to pursue the common target
• Each group must have a responsible person
• Each group is well supported
The item of the group target is to be selected among items
relating to specifications, inspections, operation standards,
and so forth. When data made in the past is available, it is
used to make a Pareto diagram which is reviewed for
selection ofthe item most conducive to quality improvement.
Records are analyzed and compared with the target, in
order to compute the numerical equivalents of the defects.
Action is then taken to control these defects as required.
2-3
fI
t\'EC
Reliability and Quality Control
Figure 1. Quality Control System Flowchart
Dept
Customer
Market/Sales
Needs
Market
Research
'ECD
...
E
.!!
CD
>
2l
I
Circuit Design
DeVice Design
Production
Engineering
I
Development
of
Technology
I
R&QC
I
Manufacturing Facility
(Inspection) (Manufacturing)
Planning
~
rl
Sales
Plan
~
I
r-
I
1j
Conference of New Device Development and Salas
c
.2
J
...;;"I!
J
-g
I
i'=
".c
c
h
~
Devalopmantl
Device Design
Clrcult'Deslgn
Product/Process Design
~
I
~
CD
c
Design Review
I
-
I
~
I
J
l
Spec/Eng Support
Trial Run
1
~
I
-
c
.2
-g
Characterization/
Evaluation
Rei
Evaluation
t
H
I
J J
Conference on Mass ProductlonlSales
""-I!
~
.
:I
I
L
::;;
I
Preparation 01 Spec for
ManufacturlnglTestlQA
Production
Plan
J-r--(
~ ~
I
Incoming
Inspection
_1
I.
Warehousing
-I
r-
!
~...
:::;
'--
Use
Complaint
(Field Data)
Archive
Order
I
t::C
J
Receipt
Collection
~
(
~
Manufacturing
Electrical Test
Reliability Test
QA Insp/Packlng
Of~
Ship
I
Procurement OfJ
Parts/Materials
I
~_
Investlgatlon/AnalyslslCountarnieasure
Direction of Lot Traveled
(
1
Data Collection
~-
In·Process Quality Monitoring;
In·Process Inspection;
Environment and Equipment
Control/Calibration;
Lot Control; Corrective
Actions; Data Analysis/
Feedback; Etc.
83vO·69348
2-4
NEe
Reliability and Quality Control
Statistical Approach. Another approach to quality control
is the use of statistical analysis. NEC has been utilizing
statistical analysis at each stage of LSI production development, trial runs, and mass production in order to build
and maintain product quality. Some of the methods for
implementing this statistical approach are:
• Design of experiments
• Control charts
• Data analysis:
• Cp, Cpk study:
Figure 2. New Product Development Flow
• Circuit Design
• Mask Pattarn Layout
• Package Daalgn
Variance, correlation, regression,
multivariance, etc.
Variables and attributes data
(Normally. study is done on a
monthly basis)
fI
Process control sheets and other QC tools are used to
monitor various important parameters such as Cp, Cpk, X,
X. X-R, electrical parameters, pattern dimensions; bond
strength, test percentage·defects, etc.
The results of these studies are watched by the producJion
staff, QC Engineers, and other responsible engineers. If
any out-of-control or out-of-specification limit is observed,
quick action is taken in accordance with corrective action
procedures.
Implementation of Quality Control
Building quality into a product requires early detection of
possible causes of failure at each process step, then
immediate feedback to remove these causes. A fixed
station quality inspection is often lacking in immediate
feedback; it is therefore necessary to distribute quality
control functions to each process step-including the
conceptual stage. Following is a breakdown of the significant steps at which NEC has implemented these functions:
• Product development
• Incoming material inspection
• Wafer processing
• Chip mounting and packaging
• Electrical testing and thermal aging
• Outgoing material inspection
• ReliabiliJy testing
• Process/product changes
New Product Development Phase. The product development phase includes conception of a product, review of
the device proposal, physical element design and organization, engineering evaluation, and finally, transfer of the
product to manufacturing. Quality and reliabiliJy are considere~ at every step. The new product development flow
is shown in Figure 2.
2-5
NEe
Reliability and Quality Control
Design. Design plays an extremely important role in
determining the product quality and reliability. NEC believes that the foundation of device quality is determined at
the design stage. The four steps involved in the design of
LSI devices are circuit deSign, mask pattern layout, process and product manufacturing, and package design.
Design standards and the standardization of deSign steps
have .been established to maximize quality and reliability.
Design Review. After completion of the deSign, a design
review is performed.lnthis review, the design is compared
with design standards and other factors which influence
the reliability and quality. If necessary, modification or
redesign is then performed. NEC believes that the design
review is very essential for not only newly designed products but also for product modifications.
Trial Production/Evaluation/Mass Production. When
the design passes the design review successfully, a trial
run is carried out. The trial run is evaluated forthe products'
characteristics and quality/reliability.
Thorough evaluation is carried out by generating samples
in which process conditions-ones that cause characteristic factors to change in mass production-are varied
deliberately. Inaddition, reliabjlity tests are conducted for
durability, stress resistance, etc., to insure sufficient quality and reliability.
modes. The. results of these inspections are used to rate
the vendorsforfutl.lre purchasing.
In-Process· Qua·nty Inspections. Typical in-process
quality. inspections done at the wafer fabrication, chip
mounting and packaging, and device testing stage are
listed in Appendix 1Electrical Testing and Screening. A flowchart of the
typical infant mortality screening (when required) and
electrical testing is depicted in Figure 3.
At the first electrical test, DC parameters are tested according to the electrical specifications on 100% of each lot.
This is a prescreening prior to any infant mortality test. At
the second electrical test, AC functional tests as wei! as DC
parameter tests are performed on 100% of each lot. If the
percentage of defective units exceeds the limit, the lot is
subjected to rescreen. During this time, the defective units
undergo failure analysis, the resu.Hs of which are fed back
into the process through corrective actions.
Figure 3. Electrical Testing and Screening
DC Parameters
(Full AC/DC Teetlng
r--~---,-"'::=:::::o;r----I If No 1QO% Bum·ln)
If no problems are found at this stage, the product is
approved,after which mass production is possible.
"Whenever RequlrllCl
Prior to the transfer, the production Design Department
prepares a production schedule, including the reliability
and quality control steps relating to the production. Even
after the mass-production has started, the standards for
those production and control steps are always reexamined
for improvements.
DC Parameters,
AC Functional
Incoming Material Inspection. NEC has various programs to control incoming materials. Some are:
• Vendor/material qualification system
No
• Purchasing specifications for materials
• Incoming materials inspection
• Inspection data feedback
• Quality meetings with vendor
• Vendor audits
If any parts or materials are rejected at incoming inspection, they are returned to the vendor with a rejection
notification form which specifies the failure items and
2-6
Electrical,
Appearance, and
L-_--,_.,..----I Dlmenslone
NEe
Reliability and Quality Control
Outgol~g Inspection. Prior to warehouse storage, lots
are subjected to an outgoing inspection according to the
following sampling plan.
• Electrical test:
De parameters LTPD
Functional test LTPD
3%
3%
• Appearance:
-Major LTPD
Minor LTPD
3%
7%
Reliability Assurance Tests. Samples are continually
prior to shipment and subjected to monitoring relia?Ihty tests. They are taken from similar process groups, so
It may be assumed that the samples' reliability is representative of the reliability of the group.
-
Figure 4. Reliability Lffe (Bathtub) Curve
t~~en
Wearout
fI
Period
Random Failure Pe.1od
Tlme_
Reliability Testing
Reliability is defined as the characteristics of an item
expresse(l by the probability that it will perform a required
function l!J1der stated conditions for a stated period of time.
This involves the concepts of probability, the definition of
required function(s), and the critical time used in defining
the reliability.
.. '
.
Definition of a required function, by Implication, treats the
definition of a failure. Failure is defined as the termination
of the ability of a device to perform its required function. A
device is said to have failed if it shows the inability to
perform within guaranteed parameters as given in an
electrical specification.
Discussion of reliability and failure can be approached in
two ways: with respect to systems or to individual devices.
ImPortant considerations are the constant failure period,
the early failure (infant mortality) period, and overall reliability level.
With regard to individual (levices, areas of prime interest
incll!de specific failure mechanisms, failures in acceler~ted tests, and failures in screening tests.
The accumulation of normal device failure rates constitutes
the expected failure rate of the system hardware: the
probability that no device failures will occur in a system is
the pro~uct of each devi.ce's Probability that it will not fail.
The failure rate of system hardware is then the sum of the
failure rates of the components used to construct the
system.
Life Distribution
The fundamental ptinciplesof reliability engineering predictthat tl1e failure rate of a group of devices will follow the
well-known bathtub curve in Figure 4. The curve is divided
into three regions: infant mortality, random failures, and
wearout failures.
Infantrnortality, as th.e name implies, represents the earlylife failures of devices. These failures are usually associatedwith one or more manufacturing defects.
After some period of time, the failure rate reaches a low
value. Th.is is the random failure portion of the curve,
representing the useful portion of the life of a device.
During this random failure period, there is a decline in the
failure rate due tothe depletion of potential random failures
from the general population.
The wearout failures occur atthe end ofthedevice's useful
life. They are characterized by a rapidly rising failure rate
over time as devices wear out both physically and electrically.
TI1us, for a device that has a very long life expectancy
compared to the system which contains it, the areas of
concern will be the .infant mortality anel the random failure
portions of the bathtub curve.
Failure Distribution at NEe
In an effort to eliminate infant rnortalityfailures, NEe
subjects its products to production bum-I" wh~never necessary. This burn-in is perforli1ed at an elevated temperature for 100 percent of the lots involved and is designed to
remove the potentially defective units" . ...
To study the random failure population, integrated circuits
returned to NEe from the field undergo extensive failure
analysis at respective NEe Manufacturing Div!sions. Failure mechanisms are identified and (lata.fed back to cognizant Production and Engineering groups.
ThiS data coupled with in-line data is then used to introduce
corrective actions and quality improvement measures.
2-7
NEe
Reliability and Quality Control
After elimination of early devicefailures,a system will be
left to the random failure rate of its components. Thus, in
order to make proper projections of the failure rate of the
system in the operating environment, failure rates must be
predicted for the system's components.
Infant Mortality Failure Screening
Establishing infant mortality screening requires knowledge of the likely failure mechanisms and their associated
activation energies. The most likely problems associated
with infant mortality failures are generally manufacturing
defects and process anomalies. These defects and anomalies generally consist of contamination, cracked chips,
wire bond shorts, or bad wire bonds. Since these describe
a number of possible mechanisms, anyone of which might
predominate at a given time, the activation energy for
infant mortality varies considerably.
Correspondingly, the effectiveness of a screening condition-preferably at some stress level in order to shorten
the screening time-varies greatly with the failure mechanism. For example, failures due to ionic contamination
have an activation energy of approximately 1.0 eV. Therefore, a 15-hourstressat 125°C junction temperature would
be the equivalent ofapproximately 314 days of operation
at a Junction temperafure of 55°C. On the other hand,
failures due to oxide defects have an activation energy of
approximately 0.3 eV, and a 15-hour stress at 125°C
junction temperature would be the equivalent of approximately four day's operation at 55°C junction temperature.
As indicated by this situation, the conditions and duration
of Infant mortality screening must be strongly dependent
on the allowable .colT1pQnent, hence system, failureS in the
field, as well as the economic factors involved.
Empirical data gathered at NEC indicates that early failures (if any) occur after less than 4 hours of stress at 125°C
ambienttemperature. This fact is supported by the bathtub
curve created from the life test results of the same lots,
where the failure rate shows a random distribution as opposed to a decreaSing failure rate that runs into the random
failure .region.
Long.Term Failure Rate
NEC's long-term failure rate goal, based on the mask and
process deSign, is confirmed by life testing using the
following conditions:
• A minimum of 1.2 million device hours (= sample size x
test period) at 125°C should be accumulated to obtain
the accuracy necessary for predicting a failure rate of
0.02% per 1000 hours at 55°C with a 60% confidence
level.
• A minimum of 3 million device hours at 125°C should be
accumulated to obtain the accuracy necessary for
predicting a failure rate of 0.01% per 1000 hours at 55°C
with a 60% confidence level.
Accelerated Reliability Testing
NEC performs extensive reliability testirig both at preproduction and post-production level.s to insure that its
products meet the minimum expectations set by NEC.
Accelerated reliability testing results are then used to
quantitatively monitor the reliability.
As an example, assume that an electronic system contains
1000 integrated circuits and can tolerate 1 percent system
failures per month. The failure rate per component is:
1% Failures
= .0014 % Failures
720 Hours x 1000 Pcs.
1000 Hrs
or 14 FITs
To demonstrate this failure rate, note that 14 FITs correspond to one failure in about 85 devices during an operating test of 10,000 hours. It is quickly apparent that a test
condition is required to accelerate the time-to-failure in a
predictable and understandable way. The implicit requirement forthe accelerated stress test is that the relationship
between the accelerated stress testing condition and the
condition of actual use be known.
Whenever necessary,NEC haS adopted this Initial infant
mortality bum-in at 125°C as a standard production screening procedure. As a result, .the field reliability of NEC
devices is an order of magnitude higher than the goal set
for NEC's integrated circuit products. ,
.
A most common time-to-failure relationship involves the
effect of temperature., which accelerates many physiochemical reactions which may lead to device failure. Other
environmental conditions are voltage, current,. humidity,
vibration, or some combination of these. Appendix 2 lists
typical reliability assurance tests performed at NEC for
molded integrated circuits. Figure 5 shows the results of
some of these tests for various process types.
NEC believesit is imperative that failure modes associated
with infant mortality screens be understood andflxed at the
manufacturing level. If, such failures can b~ minimized or
elimfnated, and countermeasur.es appropriately monitored,
then such screens can be eliminated.
High-Temperilture Operating Life Test. This test is used
to accelerate failure mechanisms by operating devices at
an elevated temperature of 125°C. The data obtained is
translated to a lower temperature by using the Arrhenius
relationship.
'
2-8
tt1EC
Reliability and Quality Control
Figure 5. Typical Reliability Test Results
HTB
TM
PCT
NMOS
7/19113
(15 FIT)
1519315
0/11752
CMOS
3111892
(5.4 FIT)
217293
819476
TIC
Micro: 1
Memory:
[HTOL]
DRAM2
10110052
(19 FIT)
0/9958
0/5880
SRAM"
1/10421
2/8142
018768
1 MEGDRAM4
38114300
(115 FIT)
0/3634
1/3060
213506
(33 FIT)
1/1111
1/2995
1/1780
In some cases, an average activation energy is assumed
in order to accomplish a quick first order approximation.
NEC assumes an average activation enefgy of 0.7 eVfor
such approximations. This average value has been assessed from extensive reliability test results and yields a
conservative failure rate.
Since most semiconductor failures are temperature dependent, the Arrhenius relationship is used to normalize
failure rate predictions at a system operation temperature
of 55°C. It assumes that temperature dependence is an
exponential function that defines the probability of occurrence, andthatthe degradation of aperformance parameter is linear with time. The Arrhenius model includes'the
effects of temperature and activation energies of the
failure mechanisms in the following Arrhenius equation:
A = exp -EA(TJl - TJ2 )
Asic: 5
CMOS
ECl
1/4764
0/1080
(8.4 FIT)
BiCMOS
11895
011073
0/935
(18 FIT)
Information has been extracted from NEC Report Numbers:
1 TRQ.89.05-0030
2TRQ-89.01-0021
"TRQ.Q8.Q9.Q008
4TRQ.89-01-0020
5 TRQ.89-04-0025
k(TJ1 ) (TJ2 )
412680
0/141
. 011781
High-Temperature and High-Humidity Test~ Semicon·
ductor integrated circuits are highly sensitive to the effect
of humidity causing electrolytic corrosion between biased
lines. The high-temperature and high-humidity test is performed to detect failure mechanisms that are accelerated
by these conditions, such as leakage-related problems
and drifts in device parameters due to process instability.
High-Temperature Storage Test. Another common test
is the high·temperature storage test, in which devices are
subjected to elevated temperatures with no applied bias.
This test is used to detect process instability and stress
migration problems.
Environmental Tests. Other environmental tests are performed to detect problems related to the package, material, susceptibility to extremes in environment, and problems related to usage of the devices.
Failure Rate CalculationJPrediction
When predicting the failure rate at a certain temperature
from accelerated life test data, the activation energies of
the failure mechanisms involved should be considered.
This isdone whenever the exact cause offailures is known
through failure analyses results.
Where:
A = Acceleration factor
EA = Activation energy
TJl .. Junction temperature (in K)
at TAl = 55°C
TJ2 = Junction temperature (in K)
at TA2 = 125°C
k = Boltzmann's constant
= 8.62 x 1Q-6 eVIK.
Because the thermal resistance and power dissipation of
a particular device type cannot be ignored, junction
temperatures (TJl and TJ2) are used instead of ambient
temperatures (TA1 and TA2). We calculate junction
temperatures using the following formula:
TJ = TA + (Thermal Resistance) (Power Diss. at TA)
In orderto estimate long term failure rate, the acceleration
factor must be used to determine the Simulated test time.
From the high temperature qperating life test results,
failure rates can then be predicted at a 60% confidence
level using the following equation:
)(210 5
L=
2T
Where:
L = Failure rate in %/1000 hours
*)(2 = The tabular value of chi-squared distribution at a
given confidence level and calculated degrees of
freedom (2f + 2, where f =number of failures)
T = # of equivalent device hours
= (# of devices) x (# of test hours)
x (acceleration factor)
2-9
fI
NEe
Reliability and Quality Control
*Since the failures of concern here are the random, notthe
infant mortality failures (that is, the end of the downward
slope and the middle-constant-section of the bathtub curve
in Figure 4), )(2 is determined assuming a one-sided, fixed
time test.
Another method of expressing failures is in FITs (failures
in time). One FITis equal to one failure in 109 hours. Since
L is already expressed as %/1000 hours (10-5 failure/hr) ,
an easy conversion from %/1000 hours to FIT would be to
muHiply the value of L by 104 •
EXAMPLE: A sample of 960 pieces was subjected to
1000 hours 125°C burn-in. One reject was observed.
Given that the acceleration factor was calculated to be
34.6 using the Arrhenius equation, what is the failure rate
normalized to 55°C using a confidence level of 60%?
Express the failure rate in FIT:
Solution:
For n = 2f + 2 =2(1) + 2 = 4, X2 =4.046.
Then L
X 10
=~
2
5
(%/1000 hour)
= 0.0061
.
Therefore, FIT = 0.0061 • (104)
As mentioned previously, a design review is performed for
product modifications or changes. Once the· deSign is
approved, and processes altered (if necessary) for maximum quality, the device goes through qualification testing
to check the reliability. If the test results are acceptable,
the product is released for mass production.
Testing is also performed when only a process modification or change is made.
The typical qualification/process change tests are listed in
Appendix 3.
Failure Analysis
At NEC, failure analysis is performed not only on field failures, but also routinely on products which exhibit defects
during the production process. This data is closely checked
for correlation with the production process quality information, inspection results, and reliability test data. Information derived from these failure analyses is used to improve
product quality.
As there are a lot of failure mechanisms of LSI devices,
highly advanced analytical technologies are required to
investigate such failures. in detail. The standard failure
analysis flowchart relating to the returned products from
customers is shown in Appendix 4.
105
(%/1000 hr)
2 (# of dev.) (# of test hrs.) (acel. factor)
)(2
(4.046)
105
2(960) (1000) (34.6)
Product/Pl'ocess Changes
(0/. /1 000 hr)
°
= 61
NEC's Goals on Failure Rates
The reject rate at customer's incoming inspection, the
infant mortality rate, and the long term reliability, are all
monitored and checked against NEC's quality and reliability
targets (listed in Figure 6).
Figure 6. NEe Quality and Reliability Targets
Roject Rato at Cusiomor's
Incoming Eloct~cal·lnspectlon (PPM)
Memory
EClRAM
MOS
1988
1S0
SO
1990
lOa
SO
2-10
Gat,Arrays
iJCOM
Vear
Long Torm Ronability (FIT)
Memory
Gate Arrays
iJCOM
BICMOS
ECl
CMOS
EClRAM
MOS
lOa
1000
300
300
lOa
SO
100
SOO
200
1S0
80
SO
Infant Mortality (AT)
Momory
iJCOM
EClRAM MOS
Gato Arrays
BICMOS
ECl CMOS
BICMOS
ECl
CMOS
lOa
1000
300
1S0
lOa
lOa
1S0
1000
300
400
80
SOO
2S0
lOa
80
lOa
1S0
SOO
250
300
ttlEC
Summary and Conclusion
As has been discussed, building quality and reliability into
products is the most efficient way to ensure product
success. NEC's approach of distributing quality control
functions to process steps, then forming a total quality
control system, has produced superior quality and excellent reliability.
Prescreening, whenever necessary, has been a major
factor in improving reliability. In addition, monthly reliability assurance tests have ensured high outgoing quality
levels.
Reliability and Quality Control
The combination of building quality into products, effective
prescreening of potential failures, and monitoring of reliability through extensive testing, has established a singularly high standard of quality and reliability for NEC's largescale integrated circuits.
Through acompanywide quality control program, continuous research and development activities, extensive failure
analysis, and process improvements, this higher standard
of quality and reliability will continuously be set and maintained.
2-11
NEe
Reliability and Quality Control
Appendlxt
Typical QC Flowfor CMOS Fabrication
WAFER FABRICATION PROCESS QC FLOW (CMOS)
FLOW
PROCESS MATERIAL
IN-PROCESS INSPECTION/QUALITY MONITOR
Silicon Wafer
Incoming
Inspection
Reslstlvlly (sampling by 101)
Dimension (sampling by 101)
Visual (sampling by 101)
Wall
Formation
Oxldallon
Photo Lithography
Oxide Thickness (sampling by 101)
Allgnmenl and Elchlng Accuracy (sampling by 101)
Layer Resistance (sampling by day)
Ion Implantation
Field
Formation
Deposition
Photo Lithography
Deposit Thickness (sampling by lot)
Allgnmenl and Etching Accuracy (sampling by 101)
Oxide Thickness (sampling by lot)
Oxidation
Channel Slopper
Formation
Photo Lithography
Ion Implantation
Oxidation
Allgnmenl and Etching Accuracy (sampling by 101)
Layer Resistance (sampling by lot
Oxide Thickness (sampling by 101)
Gate
Formation
Deposition
Doping
Photo Lithography
Deposit Thickness (sampling by lot)
Layer Resistance (sampling by lot)
Alignment and Etching Accuracy (sampling by lot)
Gate Electrode Width (sampling by lot)
pin SD Formation
Photo Lithography
Alignment and Etching Accuracy (sampling by lot)
Layer Resistance (sampling by lot)
Ion Implantation
Anneal
Contact
Hole
Deposition
Photo Lithography
Deposit Thickness (sampling by lot)
Allgnmenl and Etching Accuracy (sampling by 101)
Metallization
Metal Deposition
Photo Lithography
Metal Thickness (sampling by run)
Alignment and Elchlng Accuracy (sampling by lot)
Parametric Test (sampling by 101)
Alloy
Passivation
Deposition
Photo Lithography
Deposit Thickness (sampling by lot)
Allgnmenl and Etching Accuracy (sampling by lot)
Wafer Sort
Contact Hole and Metallization Steps are Repealed Twice
83vQ-69:)gB
2-12
NEe
Reliability and Quality Control
Appendix 1
Typical QC Flow for PLCC Assemblyffest
The Check of Manufacturing Qualities
The Check of Manufacturing Conditions
Process/Materials
1
Sorted Wafers
2
Wafer Visual
3
Dicing
4
Break and Expand
5
Ole Visual Inspection
6
Lead Frames
Check
Items
Table Speed
01 Water
Blade Height
Wafer Break
Conditions
Frequency
Instrument
Checked
By
Checked
By
Check
Item
Frequency
Instrument
Wafer Visual
100%
(Naked Eye)
Operator
Microscope
with Filter
Eyepiece
(Naked Eye)
Operator
Every
Shift
Indicators
Gauges
P.C.
Sawing
Dimensions
Before
Running
Every
Shift
Indicators
Gauges
P.C.
Wafer Visual
100%
Die
Visual
Every Lot
Sampling
(Or 100%)
Microscope
Operator
Die Visual
Epoxy
Every
Magazine
(Naked Eye)
Operator
Every Shift
Microscope
Operator
Wafer Expand
Conditions
Die Attached
Conditions
Every
Shift
Indicators
Thermocouple.
P.C.
Potentiometer
Coverage
7
Die Attached
Temperature
Epoxy Cure
(Not Done for Gold
Ole Attached product)
Heat
Temperature
N2 Flow
Every
Shift
Indicators
Gauges
P.C.
Shear
Strength
Every
Shift
Dynamometer
Operator
8
Bonding
Conditions
Every
Shift
Indicators
P.C.
Visual
Every
Magazine
Microscope
Operator
Temperature
Every
Week
Thermocouple
and
Potentiometer
P.C.
Wire Pull
Test
Every
Shift
Tension
Gauge
Operator
Die
Visual
Every Lot
Sampling
(or 100%)
Microscope
Inspector
Visual
100%
(Naked Eye)
Operator
Visual
Every Lot
(Naked Eye)
Operator
~
FlneWlre
10
Wire Bonding
11
Pre-Seal Visual
Inspection
~
13
Molding Compound
Molding
Temperature
ofPeliet.
Expiration Date
Temperature
Profile of
Die Set
Every
Shift
Thermocouple
P.C.
Every Shift Thermocouple.
Potentiometer
P.C.
Preheat
Temperatue
Pressure
Cure Time
14
Mold Aging
Temperature
Every Shift
Indicator
P.C.
15
Deflashlng
Deflashing
Conditions
Every Shift
Indicators
P.C.
Titration
Tech.
Concentration Every Week
Density
Water Jet
Pressure
0
Plating
Plating
Conditions
Every Week Density Meter
Tech.
Every Day
Gauge
Tech.
Every Day
Indicators
P.C.
Titration
Tech.
Concentration Every Week
83VQ..6914OB
2-13
fI
ttlEC
Reliability and Quality Control
Appendix 1
Typical QC Flow for PLCC AssemblyfTest (Cont.)
The Check of Manufacturing Qualities
The Check of Manufacturing Conditions
Process/Materials
~~
~
Check
Items
Marking Ink
Marking
20
Mark Cure
21
Lead Forming
22
Final Assembly Inspection
23
1st Electrical Sorting
24
Burn-In (Whenever Necessary)
25
1st Electrical Sorting
26
Reliability Assurance Test
In-Warehouse Inspection
Check
Item
Frequency
Instrument
Checked
By
Visual
Every Lot
(Naked Eye)
Technician
Plating
Thickness
Every Lot
X-ray
Technician
Composition
Every Lot
X-ray
Technician
Solderability
Once/Day
(Naked Eye)
Technician
Marking
Conditions
Every Shilt
Indicators
P.C.
Visual
Every Lot
(Naked Eye)
Operator
Temperature
Every
Shilt
Thermocouple
P.C.
Marking
Permanency
Twice/Shilt
Automatic
Tester
Operator
Dimensions
Every Shilt
(Before
Running)
Test Jig.
Caliper
Operator
Visual
Every Lot
(Naked Eye)
Operator
Visual
Every Lot
Magnifying
Lamp
Operator
P.M. Check
28
Instrument
Plating Inspection
19
27
Frequency
Checked
By
Every Day
P.M. Jig.
Operator
Sample
Check
Before
Testing
Test
Samples
Operator
Burn-In
Conditions
Every
Batch
Indicator
P.C.
Every Day
P.M. Jig.
Operator
Before
Testing
Test
Samples
Operator
.Electrical
Characteristics
100%
ICTester
Operator
Electrical
Characteristics
100%
IC Tester
Operator
Electrical
Characteristics
Every Lot
IC Tester
inspector
Visual (Major)
Every Lot
(Naked Eye)
and
Microscope
Inspector
Visual (Minor)
Every Lot
(Naked Eye)
inspector
Every
Month
Every Day
P.M. Jig.
Before
Testing
Test
Samples
Warehousing
83vQ-6941B
2-14
NEe
Reliability and Quality Control
Appendix 2
Typical Reliability Assurance Tests
The life tests performed by NEe consist of high temperature
bias life (HTB), high temperature storage life (HTSL), high
temperature/high humidity (T/H) , and high humidity storage
life (HHSL) tests. Additionally, various environmental and
mechanical tests are performed. The table below shows
the conditions of the various life tests, environmental tests,
and mechanical tests.
Symbol
MIL·STD·883C
Method
Condition
Remarks
High Temperature
Bias Life
HTB
1005
TA = 125~, Voo specified per device type.
(Note 1)
High Temperature
Storage Life
HTSL
1008
TA .150~.
(Note 1)
High Temperature!
High Humidity
TIH
TA =85~, RH = 85%, Voo = 5.5 V.
(Note 1)
HHSL
TA = 85~, RH = 85%.
(Note 1)
Pressure Cooker
PCT
. TA=125~, P .2.3 atm.
(Note 1)
Temperature Cycling
TIC
1010
-
Lead Fatigue
C3
2004
90· bends. 3 bends whhout breaking.
(Note 2)
Solderability
C4
2003
230~,
(Note 3)
Soldering Heat!
Temperature Cycle!
Thermal Shock
C6
(Note 4)
1010
1011
260~,
Test Item
High Humidity
Storage LHe
65~
to
150~,
1 hr/cycle.
5 sec, Rosin Base Flux.
10 sec, Rosin Base Flux!
10-1 hr cycles, -65~to 150~1
15-10 min cycles, O~ to 100~
(Note 1)
(Note 1)
Notes:
(1) Electrical test per data sheet is performed. Devices that exceed the data
sheet limits are considered to be rejects.
(3) Less than 95% coverage is considered to be a reject.
(4) MIL·STD-750A, method 2031.
(2) Broken lead is considered to be a reject.
·2-15
II
ttlEC
Reliability and Quality Control
Appendix 3
New Product / Process Change Tests
Newly
Developed
Product
Shrink
Ole
New
Package
Wafer
Assembly
Test Item
Test Conditions
Sample Size
High Temp.
Operaling Lffe
See Appendix 2, l000H
201050 pes
Xl 10 3 lois
0
0
0
0
0
High Temp.
Siorage Life
T = 150"C (Plaslic),
175"C (Ceramic), l000H
101020 pes
Xl 103 lois
0
0
0
0
0
High Temp. and
See Appendix 2, l000H
2010 SO pes
Xl 10 3 lois
0
0
0
0
0
Pressure cooker
(Plastic Device)
See Appendix 2, 288H
101020 pes
Xl 103 lois
0
0
0
0
0
Thermal
Environmenlal
See Appendix 2
101020 pes
Xl 103 lois
0
X
0
X
0
Mechanical
Environmenlal
(Ceramic Device)
20G, 10102000 Hz
l500G, 0.5 ms
20000G, 1 min
10 10 20 pes
Xl 103 lois
0
X
0
X
0
Lead Faligue
See Appendix 2
Spes
Xl 103 lois
X
X
X
Solderabilfty
See Appendix 2
Spes
Xl 10 3 lois
X
X
X
ESD
(1)C=200pF,R=On
(2) C= 100pF, R= 1.5 Kn
20 pes
Xl 1031015
0
0
X
0
X
Long Term TIC
See Appendix 2, 1000 cy
10 10 SO pes
Xl 1031015
0
0
0
0
0
Humid~y Bias Lffe
(Plastic Device)
O-Performed
2-16
X- Perform if Necessary
- - Nol Performed
NEe
Reliability and Quality Control
Appendix 4
Failure Analysis Flowchan
t-----INFORMATION
Failure mode:
SHuatlon, When Failure
Appeared:
,te.
DClFunctlon Testing
by Tester Curvet racer
Ves
Test correlation
May be Needed
'--"'----'
case:
Due to the
X-ray Fluoroacope,
Hermetical Test, Dew-polnt Test,
Curvet racer Check, etc.
Decapsulation, Internal Visual
Check, Electrical Measurement,
ClrcuH Analysis
Etching the Passivation, etc.
SEM, XMA, Cros.oS.ctlon, etc.
Estimation of Cauese
Countermeasures
Corrective Action
2-17
Reliability and Quality Control
2-18
NEC
NEe
4~BitMicrocomputers
J..lPD7500 Series:
'I
3-1
II
tYEe
4-Bit, CMOS Microcomputers
Seotion 3
p.PD7qOO Series:
4-Bit, CMOS Microcomputers
"PD7502/03
3-3
4-Bit, Single-Chip CMOS Microcomputers
With LCD Controller/Driver
"PD7507108
3-19
4-Bit, Single-Chip CMOS Microcomputers
"PD7507H/08Hn5CG08HE
3-39
4-Bit, Single-Chip CMOS Microcomputers
"PD7527A/28An5CG28E
3-53
4-Bit, Single-Chip CMOS Microcomputers
With FIP Driver
"P07533n5CG33E
3-65
4-Bit, Single-Chip CMOS Microcomputers
With A/D Converter
"PD7537A/38An5CG38E
3-85
4-Bit, Single-Chip CMOS Microcomputers
With FIP Driver
"PD7554/54A/64/64A
3-99
4-Bit, Single-Chip CMOS Microcomputers
With Serial 1/0
"PD75P54/P64
3-121
4-Bit, Single-Chip, One-Time Programmable
(OTP) CMOS Microcomputers With Serial 1/0
"PD7556/56A/66/66A
3-141
4-Bit, Single-Chip CMOS Microcomputers
With Comparator
"PD75P56/P66
4-Bit, Single-Chip, One-Time Programmable
(OTP) CMOS Microcomputers With
Comparator
3-2
3-163
pPD7002J'03
t-IEC
4-Bit, Single-Chip
CMOS Microcomputers
With LCD Controller/Driver
NEe Electronics Inc.
Description
The IlPD7502 and IlPD7503 4-bit, single-chip CMOS
microcomputers have advanced fourth-generation architecture with the functional blocks necessary for a
single-chip controller, including an 8-bit timer/event
counter, an 8-bit serial I/O, and an LCD controller/
driver.
The instruction set includes the following types of
instructions: addressing, table look-up, bit manipulation, vectored jump, auto increment or decrement
data pointer, and conditional skip. These instructions
maximize use offixed program memory space.
o RC oscillation clock
o Crystal oscillation clock
o 2.5 to 6.0 V operating voltage
o CMOS technology
Ordering Information
Package Type
pPD7502GF-12
64-pin plastiC CFP
410 kHz
pPD7503GF-12
64-pin plastiC CFP
410 kHz
Features
o 92 powerful instructions
o Program ROM
o
o
o
o
o
o
o
o
- IlPD7502: 2048 x 8-bit
- IlPD7503: 4096 x 8-bit
Data RAM
-IlPD7502: 128 x 4-bit
- IlPD5703: 224 x 4-bit
Interrupts
- External: INTO, INT1
- Internal: INTT (timer/event counter)
INTS (serial interface)
8-bit timer/event counter
- Based on crystal oscillation
- External event counter (prescale option by 64)
Serial interface
LCD controller/driver
- Programmable multiplexing mode: triplex,
quadruplex, or pseudo-static
- 4 common lines (COM o-COM3)
- 24 segment lines (SO-S23)
Standby modes: stop, halt
Data retention mode
I/O ports
- 3-bit input port
- 4-bit input port
- 4-bit output port
- Two 4-bit I/O ports with 8-bit capability
- 4-bit I/O port with each bit configurable as an
input or output
50270 (NECEL·538)
II
Pin Configuration
Both devices are manufactured with the CMOS process
and have a maximum power consumption of 900llA at
5 V and 300 IlA at 3 V. Halt and stop modes further
reduce power consumption.
These devices are ideal for a wide range of solar- and
battery-powered applications.
Max Frequency
of Operation
Part No.
64 63 62 61 60 59 58 57 56 55 54 53 52
Ne
1
P32
2
o
POaiSI
POo/SO
6
P63
510
P62
9
P61
10
S11
"P07502/03
S12
P60
11
P53
12
$13
514
P52
13
S15
P51
14
S16
PSo
15
$17
P43
16
518
P42
17
519
P41
18
520
P40
19
S21
20 21 22 23 24 25 26 27 28 29 30 31 32
83-003429A
3-3
ttlEC
pPD7502/03
Pin Identification
Status of Unused Pins
Symbol
No.
Function
Name
Pin Connection
1
NC
No connection
CL2
Open
2-4,64
P33-P30
4-bit output port 3
Xl
VSS
5-7
P03/S1
P02/§Q,.
POl/SCK
3-bit input port O,or
serial I/O interface
X2
Open
Vss or Voo
8-11
P63-P60
4-bit .1/0 port 6
P01/SCK
P02/S0
P03/S1
12-15
P53-P50
4-bit I/O port 5
P10/INTO
Vss
16-19
P43-P40
Hit I/O port 4
P11-P13
Vss or Voo
20,21
X2, Xl
Crystal clock/external event
input port X
P30-P33
Open
22
Vss
Ground
Input mode: Vss or Voo
Output mode: Open
23-25
P40-P43
P50-P53
P60-P63
VLCD3-VLCOl
LCD bias supply inputs
26,58
Voo
Positive power supply
27-30
COM3-COMo
LCD backplane driver outputs
31-54
S23-S0 .
LCD segment driver outputs
55
INTl
External interrupt
56
RESET
RESET input
57,59
CL1, CL2
System clock input
60-63
P13-P11,
P10llNTO
4-bit input port 1, or
external interrupt INTO
3-4
INn
Vss
SO-S23
COMO-COM3
VLC01- VLC03
Open
t-fEC
pPD7502/03
Pin Functions
P03/SI, P02/S0, P01/SCK [Port 0 or Serial
Interface]
This port can be configured as a 4-bit parallel input
port 0 or as the 8-bit serial I/O interface under control
of the serial mode select register. The serial interface
consists of the serial input (SI), the serial output (SO),
and the serial clock (SCK), which synchronizes data
transfer.
P13-P11, P10/iNTO [Port 1 or Interrupt]
4-bit input port 1. Line P10 is shared with external
interrupt INTO, which is a rising edge-triggered interrupt.
P33-P30 [Port 3]
4-bit, latched three-state output port 3.
P43-P40 [Port 4]
4-bit input or latched three-state output port 4. Can
perform 8-bit I/O in conjunction with port 5.
P53-P50 [Port 5]
4-bit input or latched three-state output port 5. Can
perform 8-bit I/O in conjunction with port 4.
INT1 [Interrupt]
This external interrupt is a riSing edge-triggered
interrupt latched by CL.
RESET
A high-level input to this pin initializes the pPD7502/
7503.
X2, X1 [Crystal Clock/External Event Input Port X]
For crystal clock operation, connect a crystal oscillator
circuit to input X1 and output X2. For external event
counting, input external event pulses to X1 and leave
X2 open.
CL 1, CL2 [System Clock Input]
Connect an 82-kO resistor across CL 1 and CL2, and a
33-pF capacitor from CL 1 to Vss. Or, connect an
external clock source to CL 1 and leave CL2 open.
VLC03-VLC01 [LCD Bias Voltage Inputs]
LCD bias voltage supply inputs to the LCD voltage
controller. Apply appropriate voltages from a voltage
ladder connected across VDD.
VOO
P63-P60 [Port 6]
4-bit input or latched three-state output port 6. The port
6 mode select register configures individual lines as
inputs or outputs.
COM3-COMO [LCD Backplane Driver Outputs]
Positive power supply. For proper operation, apply a
single voltage from 2.5 to 6.0 V.
Vss
Ground.
LCD backplane driver outputs.
S23-S0 [LCD Segment Driver Outputs]
LCD segment driver outputs.
3-5
II
fttIEC
pPD7502/03
Block Diagram
SCK/POl
INT1
X2
Xl
INTO/P1o
SI/P03
SO/P02
H [4)
Program Memory
2048 x 8 Bits [7502)
4046 x 8 Bits [7503)
Instruction
Decoder
Data Memory
128 x 4 Bits [7502]
224
x 4 Bits (7503]
LCDCL
System
Clock
Generator
CLl
CL2
LCD Controller/Driver
Standby
Control
t
VOO
t
VSS
t
RESET
COMO·COM3
VLCD1, VLCD2,
VLC03
83-0034308
See figures 1 through 8 for additional block diagram
details.
Figure
1
2
3
4
5
6
7
8
3-6
Title
Data Memory Map
Program Memory Map
Interface at Input/Output Ports
Clock Control
Timer/Event Counter
Interrupt Control
Serial Interface
LCD Controller/Driver
NEe
Figure 1.
pPD7502/03
Figure 2.
Data Memory Map
Address
[D'Clma~
='J
Addre..
,..-_ _ _ _ _ _ _ _,
Program Memory Map
Add ....
[Decimal]
MSa
LCD Segment Data
Storage Area
0
7
8
Addre..
[HexJ
LSB
5
4
3
2
1
0
DOOH
:: 1 - - - - - - - - - - 1 ~~=
RESET Pulse Vectors Program
Execution to Add ..... DOH
INTT [Internal Timer/Event
16
010H
32
020H
INTO/S [Extemallnterrupt or
Serial Interface Interrupt]
Vectors Execution to 020H
48
030H
INTI [Extomal InterruptI J
Vectors Execution to O3OH
~
~ ...
I:i... ....!!o
192
OCOH
~
207
208
OCFH
ODOH
255
OFFH
1023
1024
3FFH
4DOH
,-2047
2048
7FFH
800H
<--4085
FFFH
Counter Interrupt] Vectors
Execution to 010H
.
Q
.
1~ ~--------~:=
~
0
pPD7503
l..
~
0
LHL T InltruCUon
Reference Table
CALT Instruction
Reference Table
La.t Addre.s tor
CALL Instruction
Entry [pPD7503J
223 1...-_ _ _ _ _ _ _.....1 DFH
83-003432A
83-003431A
3-7
ttiEC
pPD7502/03
Figure 3.
Interface at Input/Output Ports
Type A
P11, P12, P13
Type E
P02/S0, P40-P43, P50-P53, P60-P63
Datall:
Voo
Voo
P·ch
Inputl
Output
Output
Disable
Vss
VDD
Vss
Type B
INT1, P03/SI, P10/INTO, RESET
~Input
Typ!!.L
P01/SCK
Type 0
P30·P33
Datall:
Vss
VOD
Output
Datall:
VDD
Inputl
Output
Output
Disable
Output
Disable
Vss
Vss
In -----<0<
83-003859C
3-8
t-IEC
Figure 4.
pPD7502/03
Clock Control
Internal Bus
·Command execution
Clock Mode Register
MPX
Presealer 1
CL
(1/4)
Presealer 2
~/64)
I---'-.,----~ ~~ ~~ntrolier/Drl.er)
X--~--------__---------------+--~--I_-'
Clock Mode Register
CM1 CMO
Count Pulse
CL x
2~
X x
-i4
LCD Clock
CLX·2~6
Xx
X
CL x
X
Xx
1
64
>-------------------------------- ~mer/E..nt counter)
1
256
1
64
83-oo3321B
Figure 5.
·TCNTAM
Timer/Ellent Counter
--------.-------o-t
INTT
I--~---- (To Interrupt Circuit)
CP-----.....
Count Hold
Circuit
I--+----~ ~u;.~.llnt.rI.c.)
·Command Execution
"TIMER
RESET
63-0033228
3-9
t\'EC
j.tPD7502/03
Figure 6,
Interrupt Control
C>--I-====-----I
INTI
INTS
PIO/INTO o--t--ILJ
SIO'--1'-~
INTT------L~J-j;;;;rj!"~l-+-+-+----L.....f
Standby
"Command Execution
Release
83-0034338
Figure 7,
Serial Interface
'IP
'IPL
PO:vSI ~-------I:>---4-++-+I
P02/S0o----_~-----+-<..._--------+----------...J
PO,/SCK O - - - - - i
'-'....Jo-+-- TOUT
F----¢
RS F/F
--+---. ~oT~nt.rruPt Circuit)
R ....
.. Command Execution
¢ System Clock
S ....- - - - - - 'SIO
83-0038056
3-10
ttlEC
Figure 8.
pPD7502/03
LCD Controller/Driver
OP, OPL (Command Execution)
Data
Memory
LCD CL
Timing Controller
"""-T--r-ir-'-~r--,--T-'-
Multiplexer
5,
Multiplexer
So
VLCD3
VLCD2
VLCD'
COM3 COM2 COM, COMO
COMo·COMa Outputs (Type G)
..l...
P.ch
.-L
P-ch
T
N·ch
OUT
LCD Voltage Ladder Connections
T
Voo
R
C
If--
VLCD1
R
Jf-
VLCD2
R
VLCD3
,....
R~
Jf-
N·ch
50-523 Outputs (Type H)
...L P-ch
~-----,
~OUT
ill
T
N-ch
VSS
;;
83-00332SC
3-11
t-iEC
pPD7502/03
Absolute Maximum Ratings
Capacitance
TA = 25°C
TA=2SoC;Voo=OV
-0.3 to H.O V
Power supply voltage, VOO
All input and output voltages
-0.3 V to VOO + 0.3 V
Output current high, 10H
Per pin
Total, output ports
-17 mA
-20mA
Output cUrrent low, IOl
Per pin
Tdtal, output ports
17 mA
55 mA
Limits
Parameter
Symbol
Min
Typ
Max
Unit
Input
capacitance
CI
15
pF
Output
capacitance
Co
15
pF
1/0
. capacitance
CIO
15
pF
Test
Conditions
Ie = 1 MHz
Unmeasured
pins returned to
Vss
-10 to HO°C
Operating temperature, TOPT
-65 to +150°C
storage temperature, TSTG
Comment: Exposing the device to stresses above those Iisted~in
Absolute Maximum Ratings could cause permanent damage. The
device is not meant to be operated under conditions outside the
limits described in the operat!onal sections of this specification.
I;:xposure to absolute maximum rating conditions for extended
periods may affect device reliability.
DC Charactf"istics 1
For VDD
= 2.5 to 3.3 Volts
TA = -10 to +7QOC
Limits
Parameter
Symbol
Input voltage, high
VIHl
O.B VOO
VIH2
VOO - 0.3
VIHOR
Input voltage, low
VIL1
VIl2
Output voltage, high
VOH
Output voltage, low
VOL
Input leakage current, high
IUHl
Min
Typ
Test
Conditions
Max
Unit
VOO
V
VOO
V
CL1, Xl
0.9 VOOOR
VOOOR + 0.2
V
RESET, data retention mode
0
0.2 VOO
V
Except CL 1, Xl
0
0.3
V
CL1, Xl
Except CL1, Xl
V
10H = -BO/lA
0.5
V
10l
3
/lA
VDO - 0.5
=350/lA
Except CL 1, Xl; VIN = VOO
IUH2
10
/lA
CL1, Xl; VIN = VOO
Input leakage current, low
IUL1
-3
/lA
Except CL 1, Xl; VIN = 0 V
IUL2
-10
/lA
CL1, Xl; VIN = 0 V
Output leakage current, high
IlOH
3
/lA
Vo = Voo
-3
/lA
Vo=OV
Output leakage current, low
IlOl
Supply voltage
VOOOR
Supply current
1001
1002
1000R
3-12
V
2.0
Data retention mode
50
250
/lA
Normal operation, Voo = 3 V ± 10%;
R = 240 kn ±2%, C= 33 pF ±5%
35
230
/lA
Normal operation, VOO = 2.5 V;
R = 240 kn ±2%, C= 33 pF ±5%
0.3
10
/lA
Stop mode, Xl = 0 V; VOO = 3 V ±10%
0.2
10
/lA
Stop mode, Xl = 0 V; VOD = 2.5 V
0.2
10
/lA
Data retention mode, VonOR = 2.0 V
t\'EC
pPD7502/03
DC Characteristics 2
For Voo = 2.7 to 6.0 Volts
TA = -10 to +70°C
Limits
Symbol
Input voltage, high
VIH1
VIH2
VIHOR
0.9 VOOOR
VOOOR + 0.2
VIL1
0
0.3 Voo
V
Except CL 1, X1
VIL2
0
0.5
V
CL 1, X1
VOH
VOO -1.0
V
10H = -1.0 rnA, VOO = 4.5 to 6.0 V
VOO - 0.5
V
IOL = -100 JiA
V
10L = 1.6 rnA, VOO = 4.5 to 6.0 V
Input voltage, low
Output voltage, high
Output voltage, low
VOL
Input leakage current, high
ILlH1
Input leakage current, low
Min
Typ
Test
Conditions
Parameter
Max
Unit
0.7 VDO
VOO
V
VOO -0.5
VOO
V
0.4
Except CL 1, X1
CL1, X1
RESET, data retention mode
0.5
V
3
JiA
ILlH2
10
JiA
CL1, X1
ILlL1
-3
JiA
Except CL1, X1; VI = 0 V
CL 1, X1
IOL = 400JiA
Except CL1, X1; VI = VOO
ILlL2
-10
JiA
Output leakage current, high
ILOH
3
JiA
Va =Voo
Output leakage current, low
ILOL
-3
JiA
Vo=OV
Output impedance (1)
ReaM
3
5
kn
COMo-COM3; VOO = 4.5 to 6.0 V
5
15
kn
COMo-COM3
15
20
kn
SO-S23; VOO = 4.5 to 6.0 V
20
60
kn
SO-S23
6.0
V
Data retention mode
300
900
JiA
Normal operation, VOO = 5 V ± 10%;
R = 82 kn ± 2%, C = 33 pF ± 5%
70
300
JiA
Normal operation, VOO = 3 V ± 10%;
R = 160 kn ± 2%, C = 33 pF ± 5%
Rs
Supply voltage
VOOOR
Supply current
1001
1002
1000R
2.0
1.0
20
JiA
Stop mode, X1 = 0 V; VOO = 5 V ± 10%
0.3
10
JiA
Stop mode, X1
0.2
10
JiA
Data retention mode, VOOOR = 2.0 V
= 0 V; VOO = 3 V ± 10%
Note:
(1) VLCD = 2.7 V to VDD
VLCD1 = VDD - (1/3) VLCD
VLCD2 = VDD - (2/3) VLCD
VLCD3 = VDD - VLCD
3-13
ft(EC
pPD7502/03
AC Characteristics 1
For Voo = 2.7 to 6.0 Volts
TA=-10to+70°C
Limits
Test
Conditions
Parameter
Symbol
Min
Typ
Max
Unit
System clock frequency
fcc
150
200
240
,kHz
Voo = 5 V ±10%; R= 82 kn ±2% (Note 1)
75
100
120
kHz
Voo = 3 V ±10%; R= 160 kn ±2% (Note 1)
75
135
kHz
R= 160 kn ±2% (Note 1)
10
410
kHz
Cll. external clock. 50% duty; Voo = 4.5 to
6.0 V
10
125
kHz
Clf. external clock. 50% duty; Voo = 2.7 V
0.2
IlS
Clf. external clock
1.2
50
IlS
Cll. external clock; Voo = 4.5 to 6.0 V
4.0
50
IlS
Cll. external clock; Voo = 2.7 V
Ic
System clock rise and lall
time
tCR. tCF
System clock pulse width
tCH. tCl
Counter clock.lrequency
Ixx
25
50
kHz
XI. X2. crystal oscillator
Ix
0
410
kHz
XI. external pulse input. 500/0 duty;
Voo = 4.5 to 6.0 V
0
125
kHz
XI. external pulse input. 50% duty;
Voo = 2.7 V
0.2
IlS
XI. external pulse input
XI. external pulse input; Voo ;"4.5 to 6.0 V
Counter clock rise and lall
time
tXR. tXF
Counter clock pulse width
tXH. tXl
SCK cycle time
tKCY
SCK pulse width
SI setup time to SCK
tKH. tKl
t
SI hold time after SCK
t
SO delay time after SCK
l
32
1.2
IlS
4.0
115
XI. external pulse input; Voo = 2.7 V
3.0
Il S
SCK as input; Voo = 4.5 to 6.0 V
8.0
IlS
SCK as input
4.9
IlS
SCK as output; Voo = 4.5 to 6.0 V
16.0
IlS
SCK as output
1.3
Il S
SCK as input; Voo = 4.5 to 6.0 V
4.0
pS
SCK as input
2.2
IlS
SCK as output; Voo = 4.5 to 6.0 V
8.0
Il S
SCKas output
tSIK
30D
ns
tKSI
450
tKSO
ns
850
ns
1200
ns
INTO pulse width
tIOH. tlOl
10
INTI pulse width
t11H. tl1l
(Note 2)
IlS
RESET pulse width
tRSH. tRSl
10
pS
RESET setup time
tSRS
0
ns
RESET hold time
tHRS
0
ns
Notes:
(1) RC network at CL1 and CL2; C = 33 pF ±5%.I.Il.C/ocl;r;; 60 ppm.
(2) 2 x 103 .;- Icc or Ie in kHz.
3-14
IlS
Voo = 4.5 V to 6.0 V
t-IEC
pPD7502/03
AC Characteristics 2
For VDD = 2.5 to 3.3 Volts
TA = -10 to +70°C
Limits
Parameter
Symbol
Min
System clock frequency
fcc
50
Max
Unit
80
kHz
R= 240 kn ±2'10 (Note 1)
64
77
kHz
VDD = 2.5 V; R = 240 kn ±2'10 (Note 1)
80
kHz
CL1, external clock, 50% duty
0.2
ps
CL1, external clock
50
ps
CL1, external clock
50
kHz
Xl, X2, crystal oscillator
80
kHz
Xl, external pulse input, 50% duty
0.2
ps
Xl, external pulse input
50
fc
10
System clock rise and fall
time
tCR, tCF
System clock pulse width
tCH, tCl
Counter clock frequency
fxx
25
fx
0
Test
Conditions
Typ
6.25
32
Counter clock rise and fall
time
tXR, tXF
Counter clock pulse width
tXH, tXl
6.25
ps
Xl, external pulse input
tKCY
12.5
ps
SCiras input
25
ps
SCK as output
6.25
ps
SCKas input
11.5
ps
SCK as output
SCK cycle time
SCK pulse width
51 setup time to SCK
. tKH, tKl
t
tSIK .
51 hOld time after SCK t
SO delay time after SCK
p.S
tKSI
l
II
p.S
2
tKSO
p.S
INTO pulse width
tlOH, tlOl
30
p.S
INTI pulse width
t11H, tl1l
(Note 2)
ps
RESET pulse width
tRSH, tRSl
30
p.S
Notes:
(1) RC network at CL1 and CL2; C = 33 pF ±5%,lllC/oCI;;a; 60 ppm.
(2) 2 x 1()3 ·;-fcc or fc in kHz.
Recommended Rand C Values for System
Clock Oscillation Circuit
TA = -10 to +70°C
Supply Voltage Range
Recommended
Values (Note 11
Frequency Range
4.5 to 6.0 V
R=82kn±2%
150 to 250 kHz,
200 kHz typical
2.7 to 3.3 V
R=160kn±2%
75 to 120 kHz,
100 kHz typical
2.7 to 6.0 V
R=160kn±2%
75 to 135 kHz
2.5 to 3.3 V
R=240kn±2%
50 to 80 kHz
2.5 to 6.0 V
R=240 kn±2%
50 to 85 kHz
Note:
(1) C = 33 pF ±5%, IllC/oCI$ 60 ppm.
3-15
1tt{EC
PPD7502/03
Timing Waveforms
Timing Measurement Points
Voo
'==X0.7VDD
0.3 VDD
=
External Interrupts
2.7 to 6.0 V
'IlI.1 Polnls
0.7VDDX
0.3 VDD
' -_ __
INTO~IIOLJ=IIOH-=(
INn
---X
VDD = 2.5
0.8VDD
~111L=r=I"H~
to 3.3 V
'IlI.1 Polnls
O.8VDD~
83-003317A
~0=.2~V~D~D_ _ _ _ _ _ _~0=.2~V~D~D
83-003314A
Reset
Clock Timing
RESET
~IRSL=r=IRSH~
1-----ll1c-----I
83-003316A
CL
Input
Data RetentlDn Mode
Data Retention Mode
XL
Input
VDD
RESET
83.Q02917A
Serial Interface
SI--+----{
so
valid Oulpul Dala
V
'-------"-
83-003316A
3-16
VDDDR
IHDR
NEe
pPD7502/03
Operating Characteristics
TA
= 25°C
IC vs Voo [External Clock]
IccvsVOO
500
I
400
"
~
~,
I t = 25'C]-
~
-
250 ; - -
!
200
-
i
150
-
c
33 PFJ;
---
R
---.-
g 100
U
go
~
~
50
'1
--. -
R
Defined
Operating Voltage
< 12: Ie = _!_
21,
.!!
160 kCl
"
-,
E
!
240kCl-
~
~
1;
ij
10
II
,o
i1l
2
Supply Voltage Voo [V]
Supply Voltage Voo {V]
ICC
VS
R
Ix
SOD
.."
I
J,!
f; 200
c
0
f
IL
C
100
cl
SO
1
VD~=5~
-
I i
ITA L 5 ' c l -
~
.
~
R
f
i1l
500
~
_
,o
100 vsVOO
U
1-I
••
CL2
1000
50
~
Q
C=33pF
-----+=....:J;::;~~~~
100
182 kCl]
HALT 1160
kCl]
HALT 1240 kCl]
50
~
C
~
J C --1""----__ ______ -----r----r-'
I--________-+-__
. ________+
182 kCl]
+----+--:::::;;0011160 kCl]
1240 kCl]
500
Voo=3V,
~-----
Defined
Operating Voltage
10
TA
R=160kCl
1
/
Supply Voltage Voo [V]
!
-------- -----r-..!!..':..!~'.!...
~ 200~--------_+-----------r------~~~~~~~~
(
-------- -----r----£c
~Ll
~ 100 -
r'
212
1:
"
250r---------~-----------r----------r-7.V~D-D--~5~V~,--'
R
t1>t2:fx=~
ITA = 25'C]
21,
Resistance R [kel]
150
x'~
,..,
~
ij
200
VS
-11--1
g
I I
ICC
VOO [External Clock]
~
u
~
100
12
VS
I
t1t2:lc= ~.
100
IL
----- --- ----- --
~
0
~
R-82kCl
ITA = 25'C]
CL'~
N
~
1
'2
-11--1
400
J,! 300
go
1000
10
3
t,
-----~----
0
__________+r-_'VDD = 2.5 V,R=240kCl
en
~
p_pm~__________-L__________L-________~~
0.5
OL-A_C/_'_C_900
___
-25
25
Operating Temperature TA rOC]
50
75
0.1
0
Supply Voltage VDD IV]
3-17
NEe
IlPD7502/0~
Operating Characteristics (cont)
1001 vs fcc
IOH Vs VOH
-6
500
~
0
E
&
":E
0
go
i
0
C
"
!
~
J
400
300
33pF
J:
52
R
"'S
.
-4
-3
~
200
0
§
"i.
-5
.§.
100
~
~
-2
;:
-1
-§,
0
2
0
50
100
150
200
250
300
High~Level Output Voltage VOH
System Clock Oscillation Frequency fCC [kHz]
1001 vs TA
20
~
0 400
E
300
-
~
~
0 200
~
"...
.§.
&
0
-
-
.
c3
52
C
~
0
_ _- , - - - VDD
~
~
R
.
0.
Voo
II)
=jV' R= 160kO
~
l
0
...I
~
2
25
Operating Temperature T A [OC]
3-18
1 _ _ _- - . . . ,
50
VDD
"'S
Voo = 5 V, R = 82 kQ
C. 100
-25
~
-
~
J
33pF
o
[V]
IOL vs VOL
500
go
VDD~3V
~
II)
":E
_.-1-----...,
75
Low-Level Output Voltage VOL
IV]
2.5 V
~
3V
t\fEC
pPD7507/08
4-Bit, Single-Chip
CMOS Microcomputers
NEe Electronics Inc.
Description
Features
The pPD7507 and pPD7508 4-bit, single-chip CMOS
microcomputers have the pPD7500 series architecture.
The subroutine stack is implemented in RAM for
greater nesting depth and flexibility.
D Single chip microcomputer
D Program ROM
- pPD7507: 2048 x 8-bit
- pPD7508: 4096 x 8-bit
- pPD75CG08: piggyback EPROM
D Data RAM
- pPD7507: 128 x 4-bit
- pPD7508: 224 x 4-bit
- pPD75CG08: 224 x 4-bit
D 8-bit timer/event counter
D Four 4-bit general purpose registers
D Four vectored, prioritized interrupts
D Executes 92 instructions of pPD7500 series A
instruction set
D 5 ps instruction cycle/400 kH.z external clock
D Two standby modes
D 321/0 lines
D Low-power HALT and STOP modes
Thirty-two I/O lines are organized into eight 4-bit
ports: input port/serial interface port 0, output ports 2
and 3, and I/O ports 1, 4, 5, 6, and 7.
The pPD7507 and pPD7508 execute 92 instructions of
the pPD7500 series A instruction set with a 5-ps
instruction cycle time.
Maximum power consumption is 900 pA at 5 V, less in
the HALT and STOP low-power modes.
The pPD75CG08E is a piggyback EPROM prototyping
chip that is pin-compatible withpPD7507 andpPD7508.
A 2716 inserted into the top of the pPD75CG08E
emulates the pPD7507's ROM. A 2732 emulates the
pPD7508's ROM. When emulating the pPD7507, the
user must take care to use only the first128 RAM
locations. Although the pPD7507 and pPD7508 can
operate over a range of 2.5 to 6.0 V, pPD75CG08E
operation is limited to 5 V ±10%.
.
Table 1 summarizes the differences among pPD7507,
pPD7508 and pPD75CG08E.
TiJbl.1_
Featurea Comparison
IIPD75CGDBE
IIPD75D7fl508
Program memory
2K x 8 EPROM (2716)
4K x 8 EPROM (2732)
2K x 8 masked ROM (7507)
4K x 8 masked ROM (7508)
Data memory
224 x4
128 x 4 (7507)
224 x 4 (7508)
Data retention
mode
No
Yes
Power supply
5V±100/0
2.7 to 6.0 V
Package types
4O-pin ceramic
piggyback DIP
4O-pin plastic DIP
4Q.pin plastic shrink DIP
52-pin plastic QFP
50271 (NECEL-542)
Ordering Information
·Part Number
Packlge Type
MIX Frequency
01 Operation
IIPD7507C
4O-pin plastic DIP,
410 kHz
IIPD7507CU
4O-pin plastic shrink DIP
410 kHz
IIPD7507GC-OO
52~pin
plastic QFP
410 kHz
IIPD7508C
4O-pin plastic DIP
410 kHz
IIPD7508CU
4O-pin plastic shrink DIP
410 kHz
IIPD7508GC-OO
52-pin plastic QFP
410 kHz
IIPD75CG08E
4O-pin ceramic piggyback DIP
410 kHz
• A 3-digit mask identification code is added to the part number by
NEe at the time of code verification.
3-19
NEe
IlPD750:7/08
Pin Configurations
52-Pin Plastic QFP
40-Pin Plastic DIP and Plastic Shrink DIP
If If-
Xl
X.
P201PSTB
P2,/PTOUT
P2.
0
<.>
Z
P2,
P4.
RESET
P53
P52
NC
P12
Cl'
NC
P13
P5,
NC
X2
P3.
P3,
P5.
VDD
P63
NC
P32
P33
P7.
P7,
P6.
P6,
Cl2
Vss
INn
P43
P7.
P02/S0
PO,/SCK
P6.
P21/PTOUT
P20/PSTB
VDD
X,
POa/INTO
NC
P01/SCK
P4,
NC
NC
P03/S1
PO./INTO
INn
Cl2
VDD
<.>
z
83-003454A
X2
P2./PSTB
40
39
"PD75CG08E
P2,/PTOUT
P22
P23
A7
As
P'2
P13
A3
P3,
P32
Ao
10
I,
12
.~ ~ i
0
if i i
.. if i
JI
f i
;r
83-0034S5A
Pin Identification
40-Pin Ceramic Piggyback DIP
38
VDD 37
MSEl 36
VDD
35
A.
34
A9
33
Al1
32
VSS 31
A,o
30
BE
29
17
2'
Is
27
Is
26
14
25
40-Pin DIP, Shrink DIP and Piggyback DIP
x,
Vss
No.
P43
P42
Symbol
Function
1,40
X2, X1
Crystal clock/external event inputport
2-5
P2o/PSTB,
P2,/PTOUT,
P22, P23
Output port 2/output strobe pulse,
timer out F/F signal
6-9
P1o-P13
I/O port 1
10-13
P30-P33
Output port 3
14-17
P7o-P73
I/O port 7
18
RESET
RESET input
P03/S1
19,21
CL1,CL2
System clock inputs
20
VDD
Positive power supply
P4,
P40
P53
P52
P5,
P50
P63
P62
P6,
P60
24
P02/S0
PO,/SCK
RESET
23
POollNTO
22
INT1
External interrupt
Cl'
VDD
22
INT1
Cl2
23-26
2'
POo/INTO,
PO,/SCK,
P02/S0,
P03/S1
Input port O/external interrupt, serial
I/O interface
I/O port 6
Vss
13
83-003779A
3-20
.
~
;;: ;;: ;;:
P23
Cll
P72
P73
z
NC
P73
RESET
P33
P70
P7,
<.>
P73
Pl.
Pl,
P30
If f If i
P4.
P4,
P23
P10
Pl,
~
Vss
P43
27-30
P6o-P63
31-34
P50-P53
I/O port 5
35-38
P43-P40
I/O port 4
39
Vss
Ground
t-{EC
IlPD7507/08
Pin Identification (cont)
Pin Functions
28-Pln EPROM Socket on Piggyback DIP
POOIINTO, P01/SCK, P02/S0, P03/S1 [Port 01
External Interrupt, Serial Interface]
No.
Symbol
1,2
NC
Not connected
Function
3-10
A7-AO
Address bits 7-0
11-13
10-12
Data bits 0-2
14,22
Vss
Ground
15-19
13-17
Data bits 3-7
20
CE
Chip enable
21,23
A10-A11
Address bits 10, 11
24,25
Ag, As
Address bits 9, 8
26,28
Voo
Positive power supply
27
MSEL
Memory select
52-Pin QFP
No.
Symbol
1,4,6,8,13,
14,27,29,
35,40,45
NC
Not connected
2,50-52
P7o-P73
1/0 port 7
Function
3
RESET
RESET input
5,9
Cll, Cl2
System clock inputs
7
Voo
Positive power supply
10
INn
External interrupt
11,12,
15,16
POo/lliIQ,
P01/SCK,
P02/S0,
P03/S1
Input port O/external
interrupt, serial I/O
interface
17-20
P60-P63
I/O port 6
21-24
P50-P53
I/O port 5
25,26
28,30
P43-P40
1/0 port 4
31
VSS
Ground
32,34
Xl, X2
Crystal clock/external
event input
33
Voo
Positive power supply
36·39
P2o/PSTB,
P21/PTOUT,
P22, P23
4·bit output port 2/ output
strobe pulse, timer out
F/F signal
41-44
P10-P13
I/O port 1
46-49
P30-P33
Output port 3
4-bit input port/serial I/O interface. This port can be
configured as a 4-bit parallel input port or as the a-bit
serial I/O interface under control of the serial mode
select register. The serial input SI, serial output SO
(active low), and the serial clock SCK (active low), used
for synchronizing data transfer, make up the a-bit
serial I/O interface. Line POo is always shared with
external interrupt INTO, a rising edge-triggered interrupt. If POollNTO is unused, it should be connected to
Vss.lf P0 1/SCK, P02/S0, or PO:vSI are unused, connect
them to Vss or V DD .
P10-P13 [Port 1]
4-bit input/three-state output port. Data output to port 1
is strobed in synchronization with a P2o/PSTB pulse.
Connect unused pins to Vss or V DD .
P20/PSTB, P21/PTOUT, P22, P23 [Port 2]
4-bit latched three-state output port. Line P20 is shared
with PSTB, the port 1 output strobe pulse. Line P2 1 is
shared with PTOUT, the timer out F/F signal. Leave
unused pins open.
P30-P33 [Port 3]
4-bit latched three-state output port. Leave unused pins
open.
P40-P43 [Port 4]
4-bit latched three-state output port. Can also perform
a-bit parallel I/O with port 5. In input mode, connect
unused pins to VDD or GND. In output mode, leave
unused pins open.
P53-P50 [Port 5]
4-bit input/latched three-state output port. This port
also performs a-bit parallel I/O with port 4. In input
mode, connect unused pins to Vss or V DD . In output
mode, leave unused pins open.
P63-P60 [Port 6]
4-bit input/latched three-state output port. The port 6
mode select register configures individual lines as
inputs or outputs. In input mode, connect unused pins
to VSSorVDD.ln output mode, leave unused pins open.
3-21
EJ
NEe
IlPD7507/08
P70-P73 [Port 7)
RESET [Reset)
4-bit input/latched three state output port. In input
mode, connect unused pins to Vss or VDD. In output
mode, leave unused pins open.
A high level input to this pin initializes the pPD7507 /08
after power up.
INT1 [Interrupt 1)
X2, X1 [Crystal Clock/External Event Input)
External rising edge-triggered interrupt. Connect to
Vss if unused.
Connect a crystal oscillator circuit to input X1 and
output X2 for crystal clock operation. Alternatively,
connect external event pulses to input X1 and leave
output X2 open for external event counting. If X1 is not
used, connect it to ground. If X2 is not used, leave it
open.
Voo [Power Supply)
Positive power supply. Apply a single voltage in the
range 2.7 to 6.0 V for proper operation.
Vss
CL 1, CL2 [System Clock Input)
[Ground)
Ground.
Connect a 82 kO resistor across CL 1 and CL2, and
connect a 33 pF capacitor from CL 1 to Vss. Alternatively, connect an external clock source to CL 1 and
leave CL2 open.
Block Diagram
P03/S1
P02/S 0
General Registers
Program Memory
2048 x 8-Bit ROM [pPD7507j
4096
x 8-Bit ROM
Instruction
Decoder
[.uPD7508]
0[4]
E [4]
H [4]
l [4]
Stack Pointer [81
Data Memory
128 x 4·B;' ROM [pPD7507]
224 x 4-Bi. ROM [pP07508]
Cl
Cll
¢
Cl2
r r r
RESET
Voo
Vss
83-003470C
3-22
NEe
J..LPD7507/08
Memory Map
Clock Control Circuit
Figure 1 shows the ROM memory map of the
pPD7507/08.
The clock control circu it consists of a 4-bit clock mode
register (bits CM1 and CM2), prescalers 1,2, and 3, and
a multiplexer. It takes the output of the system clock
generator (Cl) and count clock generator circuit (X). It
also selects the clock source and divides the signal
according to the setting in the clock mode register. It
outputs the count pulse (CP) to the timer/event counter.
Figure 2 shows the clock control circuit.
Figure 1.
ROM Map
Addre..
[Hex[
Address
[Decimal]
MSB
0
7
6
LSB
5
4
3
2
16
1
0
OOOH
RESET Pulse Vectors Program
Execution to Address DOH
010H
INTT [Internal Timer/Event
Counter Interrupt] Vectors
Execution to 010H
INTO!S (External Interrupt 01
32
020H
Serial Interface Interrupt]
030H
INT1 [External Interrupt 1]
Vectors Execution to 030H
Vectors Execution to 020H
~
C
.
0.
.!!~
0
~
C
~
48
..
Table 2 lists the codes set in the clock mode register by
the OP or OPl instruction to specify the count pulse
frequency.
Table 2.
Selecting the Count Pulse Frequency
c
0.
a.
:E
~
0
192
OCOH} LHLT Instruction
OCFH Reference Table
207
208
OOOH} CALT Instruction
255
OFFH
1023
1024
3FFH
400H
,-2047
2048
8UGH
'---4095
FFFH
7FFH
Reterence Table
CMZ
CM1
CMu
Frequency Selected
o
o
o
o
0
0
CL/256
0
1
X/54
0
X
X
o
o
Last address for
CALL Instruction
entry for pPD7507
o
CL/32
XIS
o
Not used
Not used
Last address lor
CALL instruction
entry for pPD7508
83-003456A
CM3
TOUT Signal
o
Disabled
Enabled
Figure 2.
Clock Control Circuit
System Clock
Oscillator
r-----lCL1
t-----;CL2
>-------------+
CP
(Timer/Event Counter)
Crystal Clock Oscillator/
Event Counter Input
83-003457B
3-23
twEe
IlPD7507/08
Timer/Event Counter
The timer/event counter consists of an 8-bit counter,
an 8-bit modulo register, an8-bit comparator, and a
timer out flip-flop as shown in figure 3.
The 8-bit count register is a binary 8-bit up-counter
which is incremented each time a count pulse is input.
The TIMER instruction, a RESET signal, or an INTT
coincidence signal clears it to DOH.
The 8-bit modulo register determines the number of
counts the count register holds. The TAMMOD instruction loads the contents of the modulo register.
RESET sets the modulo register to FFH.
The 8-bit comparator compares the contents of the
count register and the modulo register and outputs an
INTT when they are equal.
Figure 3.
Timer/Event Counter
INIT
(Coincidence
Signal)
TOUT
(to Sertal
Interface
and Port 2)
TIMER'
RESET
Note:
1) CP is count pulse selected by the clock mode register.
2) *Execution of instruction.
83·003600A
3-24
~EC
~PD7507/08
Serial Interface
The 8-bit serial interface allows the pPD7507/08 to
communicate with peripheral devices such as the
pPD7001 A/D converter, the pPD7227 dot matrix LCD
controller/driver, and other microprocessors or microcomputers. Figure 4 shows the serial interface.
The serial interface consists of an 8-bit shift register, a
3-bit SCK pulse counter, the SI input port, the SO
output port, the SCK serial clock I/O port, and a 4-bit
serial mode select register (MSR). The MSR selects
serial I/O or port 0 operation.
Figure 4"
Serial Interface
II
"IP
"IPL
Pll3lSI o--------1I>--I~+--I
~~~---~----tr--<]_-------~-------~
'-.Jo--t-- TOUT
PDoIINTOo--------r.:~--
RS F/F
R I+--~-- :r::.terrupt Circuli)
* Command Execution
.,. Systom Clock
S I + - - - - - "SIO
83-0030148
3-25
ttlEC
J.lPD7507/08
Interrupts
The pPD7507/08 has four vectored, prioritized interrupts. Two of these interrupts, INTT and INTS, are
internally generated from the timer/event counter and
serial interface, respectively. INTO and INT1 are
externally generated. Table 3 is a summary of the four
interrupts. Figure 5 is the block diagram.
Table 3.
pPD7507108 Interrupts
Function
Source
Location
Priority
INTT
Coincidence in timer/event counter
Internal
INTS
Transfer complete signal from serial interface
Internal
INTO
INTO pin
External
2
INn
INT1 pin
External
3
Figure 5.
ROM Vector Address
10H
20H
20H
30H
2
Interrupt Block Diagram
INT1o---i--;u.;;;==----j
INTS _ - ' - _ r -.....
P10llNTO o---i--L..-J
SIO'
INTT---------jl!~~
*Command Execution
Standby
Release
83-0034338
3-26
NEe
IlPD7507/08
System Clock and Timing Circuitry
Figure 6.
Timing for the pPD7507/08 is internally generated
except for a frequency reference, which can be an RC
circuit or an external clock source. Connect the
frequency reference to the on-chip oscillator for the
feedback phase shift required for oscillation. Figure 6
shows the connection for an RC circuit. Figure 7 shows
the connection for an external clock source.
RC Circuit Connection
vsso-H-~- CLI
' - - CL2
83-002994A
The internal oscillator generates a frequency in the
range 60 kHz to 300 kHz depending on the frequency
reference. For example, at Voo = 5 V, an 82-kn resistor
and a 33-pF capacitor generate a frequency of 200 kHz.
The oscillation frequency is fed to the clock control
circuit. It is divided by two and the resulting signal is
fed to the CPU and serial interface as shown in figure 8.
Figure 7.
External Clock Source Connection
II
CL2
Table 4 shows the operating status of the various logic
blocks under the three power down-modes.
83-002995A
Figure 8.
System Clock Circuitry
Xl
X2
INTT
CLI
INTS
System Clock
Oscillator
CL2
'--____+ _________.......--<> STOP
~:~~~~:~~n
L _ _ _ _ _ _ _~-----_c~==~StandbYRelease
Reset
83-0034608
3-27
ftlEC
Il PD 7507/08
Table 4.
Power-Down Operating Status
Power-Down Mode
Logic Block
HALT
STOP
System clock
(Note 1)
Disabled
Disabled
X2
Normal
Norm!!1
Disabled
Data Retention Mode
CPU
Disabled
Disabled
Disabled
RAM
Data retained
Data retained
Data retained
Internal registers
Data retained
Data retained
Data retained
Timer/event counter
Normal
(Note 3)
Disabled
Serial interface
(Note 2)
(Note 2)
Disabled
INTO
Normal
Normal
Disabled
INT1
Normal
Disabled
Disabled
RESET
Normal
Normal
(Note 4)
Note:
(1) Supplied to timer/event counter but not to CPU or serial interface.
(2) Can function normally if the serial MSR is set to get the SCK signal externally or from the TOUT signal.
(3) Can function normally if the clock MSR is set to use X1 as the source for the count pulse.
(4) To enter the data retention mode, raise RESET while Voo is lowered. To end the data retention mode, raise RESET when Voo is raised, then
lower it. INTT, INTO, INTS or RESET releases the STOP mode. RESET or any interrupt releases the HALT mode.
3-28
t-IEC
J.lPD7507/08
1/0 Port Interfaces
Figure 9 shows the internal circuit configurations at the
I/O ports.
Figure 9.
Interface at Input/Output Ports
Type A
1YpeE
P02/S0, P40-P43, PSO-PS3, P60-P63, P10-P13, P70-P73
Voo
Voo
·P·ch
oataJJ:
Inputl
Output
II
Output
Disable
.
Vss
Voo
Vss
TypeB
POD/INTO, P03lSI, RESET, INT1
~Input
Vss
Typ!.L
P01/SCK
1Ype 0
P30-P33, P2oJPSTB, P21/PTOUT, 'P22-P23
Voo
Voo
P·ch
oataJJ:
oataJJ:
Inputl
Output
Output
Output
Disable
Output
Disable
N·ch
Vss
Vss
In_-----t2:fX=~
2'2
t112:fc=
100
!
50 j - - - - - + - - ' - - - + - - - - f - v o o = 2.5 V,- ~
C=33pF
R=240kCl
~
[TA=25°C]
'2
CL1SLfL
I
Voo = 3 V,
R = 160 kO
I
i,
-11.....+i
400
.!:!
-------- -----
-25
500
Ie vs Voo [External Clock]
ICC vs TA
100 - J
200
100
Resistance R [kO]
2s0r-----,------,-----~7.V-OO--~57.V~,-,
~
....,
2.sV~
Voo
50 -
Supply Voltage Voo [V]
N
voo~
I"'"
[82kO]
[160kO]
[240 kO]
HALT [82 ill]
~:~~ l~:~ :gl-
STOP + Xlal Oscillation
"....-
-Supply Voltage Voo IV]
STOP [X1
OV]
ftlEC
J,LPD7507/08
Operating Characteristics (cont)
TA
= 25°C
1001 vs Icc
1001 VSTA
500
500r------r------.------,-------r------r-----~
1
.Ij
0
2 300
33pF
g'
!
z.
0
1:
1
~
J
Q 400
E
Q 400
E
.Ij
0
2 300 f--
go
R
!
z.
0
200
1:
f--
~~
~
~
u
100
~
a.
..
~
~
Ii9
0
200
100
150
200
250
-
~
l
33pF
u
100
~
a.
VDD = 5 V. R = 82 kCl
R
~
VOD
II>
::l
0
-
o
-25
300
= iV' R = 160 kO
25
50
Operating Tempe....ure TA (OC]
System Clock OlOlllatlon Frequency fCC [kHz]
IOL VB YOL
IOHVS YOH
-6
20
ITA = 25°C]
C
C
~
~
....
l:
!}
E
1:
1:
U
U
~~
15
1__- - - . . , VDD =
~~
'5
'5
~
~
VDD=3V
0
0
1
~
Ii!
OUT
V
__
EVENT
P20/PSTB
P2.
P2.
PS.
PS,
P3,
P3.
Features
D Single-chip microcomputer
D Program ROM
- pPD7507H: 2048 x 8-bit
- pPD7508H: 4096 x 8-bit
- pPD75CG08HE: piggyback EPROM
D Data RAM
- pPD7507H: 128 x 4-bit
- pPD7508H: 224 x 4-bit
- pPD75CG08HE: 224 x 4-bit
D 8-bit timer/event counter
D Four 4-bit general purpose registers
D Four vectored, prioritized interrupts
D Executes 92 instructions of 7500 series A
instruction set
D 2.86-ps instruction cycle/4.19-MHz external clock
D Two standby modes
D 321/0 lines
D LED direct drive (ports 2-5; 16 lines)
D Low power HALT and STOP modes
50274 (NECEL·543)
P7,
P7.
P73
PO,/SCK
RESET
POO/INTO
83-003434A
3-39
II
t-{EC
pPD7507H/08H/75CG08HE
Pin Configurations (cont)
Pin Identification
40-Pin Ceramic Piggyback DIP
40-Pln DIP, Shrink DIP, and Piggyback DIP
tPOUT
No.
,
P2.fPSTB
2
P2,fPTOUT
P2,
3
40
pPD75CG08HE
Vss
38
Voo 37
MSEL 3.
NC
Voo 3S
As
A.
P"
Al1
Vss
P3.
I.
P7.
I,
P7,
Is
I.
P7,
Vss
P7,
I,
6-9
P10-P13
I/O port 1
P5,
10-13
P30-P33
Output port 3
32
P5,
31
P5.
14-17
P7o-P73
I/O port 7
,.
P·3
PS,
P.,
18
RESET
RESET input
19,21
CL1,CL2
System clock inputs
P••
20
Voo
Positive power supply
INT1
External interrupt
POa/SI
25
P02/S0
22
2.
PO,fSCK
23-26
POoIINTO,
P01/SCK,
P02/S0
P03/S1
Input port O/external interrupt, serial
I/O interface
PO.IINTO
RESET
INn
CLl
Voo
Output port 2/output strobe pulse,
timer out F/F signal
33
17
P3,
P4,
"'OUT
P2o/PSTB
P21/PTOUT,
P22, P23
34
CE
P3,
2-5
P4,
P4,
Function
fCC/12 square wave
P4.
P5,
A,.
P3,
Symbol
EVENT
21
CL2
83-003761A
44-Pln Plastic QFP
27-30
P6o-P63
I/O port 6
31-34
P50-P53
I/O port 5
35-38
P40-P43
I/O port 4
39
Vss
Ground
40
EVENT
External event input port
44-Pin QFP
p'.
P"
No.
P4.
0
P5,
P"
P5,
P"
P3.
P5,
P5.
P3,
P.,
P.,
P3,
P6,
P7.
P6.
P7,
P03/51
NC
NC
P3,
pP D7507Hf08H
83-003762A
3-40
Symbol
Function
1-4
P1o-P13
I/O port 1
5-8
P30-P33
Port 3 output
9,10,
13,14
P7o-P73
I/O port 7
11-12
NC
Not connected
15
RESET
RESET input
16,18
CL1,CL2
System clock inputs
17
Voo
Positive power supply
19
INT1
External interrupt 1
20
POolINTO
Port 0 inputllnterrupt 0
21
P01/SCK
Port 0 input/Serial clock I/O
22
P02/S0
Port 0 input/Serial output
23
NC
Not connected
24
P03/S1
Port 0 input/Serial output
25-28
P6o-P63
I/O port 6
29-32
P50-P53
I/O port 5
33-36
P4o-P43
I/O port 4
t-IEC
pPD7507H/08H/75CG08HE
P20/PSTB, P21/PTOUT, P22, P23 [Port 2]
Pin Identification (cont)
44-Pln QFP (cont)
No.
Symbol
37
Vss
Function
38
EVENT
External event input
39
OUT
Cli
Cl2
1 1 1
RESET
Voo
Vss
83-0034358
3-42
t\'EC
Figure 1.
pPD7507H/08H/75CG08HE
System Clock Options
rro
*
nrro
A.
Clock Control Circuit
Ceramic Oscillator
Recommended
Max Freq
L1
30 pF
"~
c:::J
~
30 pF
CL2
B.
=
S; 20 pF
:~~o 6.0 V 0~;: :;".!~z
~NOO=~~
38 to 6.0 V
091025 MHz
20 MHz
27to6.0V
09to11MHz
OSCillator stabilization lime lOS
10MHz
20 ms (Note 2]
Crystal Oscillator
L1
10 pF
The clock control circuit consists of a 4-bit clock mode
register (bits CMo-CM3), prescalers 1, 2, and 3, and a
multiplexer. It takes the output of the system clock
generator (Cl) and external EVENT input. It also
selects the clock source and divides the signal
according to the setting in the clock mode register. It
outputs the count pulse (CP) to the timer/event
counter. Figure 3 shows the clock control circuit.
Table 2 lists the codes set in the clock mode register by
the OP or OPl instruction to specify the count pulse
frequency. Bit CM3 controls the timer out F/F; it is
disabled when the bit is 0 and output when the bit is 1.
ccVD-D-_-__-__
----=-~'-.q--CRC-a-ng-.-_-_~T~Yp~_!~-a,ccFc-,.-q-_
4.5 to 6.0 V 3.5 to 4.2 MHz
4.19 MHz
o,,;nalo, ,'abm,.uo. Um, 'OS - 25 m. [No', 2[
CL2
C.
Table 2.
CM2
External Clock
-I.pI>O_---I CL 1
2.7 to 6.0 V
74HCOO
CMo
Frequency Selected
0
0
0
fcc/1536 (or CLl256)
0
0
1
fcc/512
900 ns
0
0
EVENT input
0.1 to 1.8 MHz
Noles:
--t;><>--L.C_L_2_ _..a
CMl
teR and tCF
110 ns
CL1
~ _~~~q~a_n~~
4.5 to 6.0 V 0.1 to 4.2 MHz
[1] Due to ceramic oscillator tolerance, operation at
the maximum frequency is nol recommended.
[2] A crystal frequency 014.194304 MHz will yield a
II
Selecting the Count Pulse Frequency
0
very-accurate l-second time base using an Inlernal
divider.
1
Not used
0
fCC/192 (or CLl32)
0
83-003763A
= (feel B) (1/64)
fcC/64
0
Memory Map
= (fcc/B) (1/B)
Not used
Not used
Figure 2 shows the ROM program map of the
7507H/7508H.
Figure 2.
ROM Map
Address
[DeCimal]
MSB
0
I:
:;
I:
..~.
~ "
:c
..."
:c
c
7
6
Address
[Hex]
LSB
5
4
3
2
1
0
RESET Pulse Vectors Program
Execution to Address OOOH
OOOH
16
010H
32
020H
48
030H
INTT [Internal Timer/Event
Counter Interrupt] Vectors
Execution to 010H
INTO/S [External Interrupt 0/
Serial Interface Interrupt1
Vectors Execution 10 020H
INT1 [External Interrupt 1]
Vectors Execution to 030H
I
I
192
OCOH
207
208
OCFH
255
OFFH
1023
1024
3FFH
400H
,-~047
2048
7FFH
BOOH
Last Address for CALL Instruction Entry
,uP07507H
'-4095
FFFH
Last Address for CALL Instruction Entry
pPD7508H
~
~
0
0
ODOH
LHL T Instruction
Reference Table
CAL T Instruction
Reference Table
63-003436B
3-43
t\'EC
pPD7507H/08H/75CG08HE
Figure 3.
Clock Control Circuit
1/8 fCC---------t-+--t--11
CL----I
[1/6fccl
EVENT-----;
>----_cp
Count Pulse to
Timer/Event Counter
*Instruction execution
83-0034698
Timer/Event Counter
Serial Interface
The timer/event counter consists of an 8-bit counter,
an 8-bit modulo register, an 8-bit comparator, and a
timer out flip flop as shown in figure 4.
The 8-bit serial interface allows the pPD7507H/08H to
communicate with peripheral devices such as the
pPD7001 A/D converter, the pPD7227 dot matrix LCD
controller/driver, and other microprocessors or
microcomputers.
The 8-bit count register is a binary 8-bit up counter,
which is incremented each time a count pulse is input.
The TIMER instruction, a RESET signal, or an INTT
coincidence signal clears it to OOH.
The 8-bit modulo register determines the number of
counts the count register holds. The TAMMOD instruction loads the contents of the modulo register.
RESET sets the modulo register to FFH.
The 8-bit comparator compares the contents of the
count register and the modulo register and outputs an
INTT one clock pulse after they are equal.
Table 3.
The serial interface consists of an 8-bit shift register, a
3-bit SCK pulse counter, the SI input port, the SO
output port, the SCK serial clock I/O port, and a 4-bit
serial mode select register (MSR). The MSR selects
serial I/O or port 0 operation.
Interrupts
ThepPD7507H/08H has four vectored, prioritized interrupts. Two of these interrupts, INTT and INTS, are
internally generated from the timer/event counter and
serial interface, respectively. INTO and INT1 are
externally generated. Table 3 is a summary of the four
interrupts.
pPD7507H/08H Interrupts
Source
Function
Location
Priority
ROM Vector Address
2
20H
INTT
Coincidence in timer/event counter
Internal
INTS
Transfer complete signal from serial interface
Internal
INTO
INTO pin
External
2
20H
INn
INn pin
External
3
30H
3-44
10H
NEe
Figure 4.
pPD7507H/08H/75CG08HE
Timer/Event Counter
INn
(Coincidence
Signal)
II
TOUT
(to Serial
Interlace
and Port 2)
TIMER·
RESET
Note:
1) CP is count pulse selected by the clock mode register.
2) "Execution of instruction.
83·003600A
Figure 5.
System Clock Circuitry
I-t-----------~';:~~~l Timer/Event Counter
~
_________
~CL
[698 kHzJ
CL1
¢
[349 kHzJ
CL2
"....,L.....j..._ _ Halt Release
...........Jr--;---
Reset
['-.J
/"""'I!'----I--- Halt *
....----+-+-- Stop *
----+-- Reset
R ....
*Command Instruction
83·003438B
3-45
ttlEC
pPD7507H/08H/75CG08HE
System Clock and Timing Circuitry
Table 4.
There are four time bases available for the
pPD7507H/08H. Table 4 shows these bases and the
frequencies generated.
Base
The CPU clock is used by the CPU and serial interface.
The system clock is used by the timer/event counter
and the INT1 signal.
pPD7507HIOBH Time Bases
Symbol
Frequency
System clock
CL
698 kHz
fcc/6 (4.19 MHz/6)
CPU clock
~
349 kHz
fcc/12 (4.19 MHz/12)
~OUT
349 kHz
fcc/12 (4.19 MHz/12)
524 kHz
fcc/S (4.19 MHz/S)
External clock
Timer/event
counter clock
Derivation
I/O Port Interfaces
Figure 6 shows the internal circuit configurations at the
I/O ports.
Figure 6.
Interface at InpuVOutput Ports
TypeB
POo/INTO, INT1, P03/SI, RESET, EVENT
TypeE
P10-P13, P02/S0, P40-P43, P50-P53, P60-P63, P70-P73
VDD
- - o < c < € J I - - - - o o 'npul
Poch
Da1811:
'npull
Oulpul
TypeC
Output
~OUT
Disable
VDD
VDD
~
VSS
Output
In_---+
Vss
Vss
Type 0
P20/PSTB, P21/PTOUT, P22, P23, P30-P33
VDD
Type F
P01/SCK
VDD
Dala 1 1 :
Oulpul
D81a11:
·Output
Disable
.
'npull
N·ch
O~tput
Vss
Note: Upon RESET, both transistor. are turned off.
Oulpul
Disable
N·ch
'n_--O<
83-OO3439C
3-46
ftlEC
pPD7507H/08H/75CG08HE
Absolute Maximum Ratings
Capacitance
TA = 25°C
TA = 25°C, Voo = a v
limits
Operating temperature, TOPT
Storage temperature, TSTG
Power supply voltage, VDO
All input and output voltages
-65 to 150°C
-0.3 to +7.0 V
--0.3 to VOO + 0.3 V
Output current, high, IOH
One pin
All pins, total
-5mA
-20mA
Output current, low, IOl
One pin
Ports 6, 7
Total ports
20 mA
200 mA
Parameter
Symbol
Typ
Max
Input capacitance
CI
15
Output capacitance
Co
15
I/O capacitance
Cia
15
Unit
Test
Conditions
pF f = 1 MHz;
unmeasured pins
pF
retumed to Vss.
pF
17 mA
Comment: Exposing the device to stresses above those listed in
Absolute Maximum Ratings could cause permanent damage. The
device is not meant to be operated under conditions outside the
limits described in the operational sections of this specification.
Exposure to absolute maximum rating conditions for extended
periods may affect device reliability.
3-47
ftfEC
pPD7507H/08H/75CG08HE
DC Characteristics
TA
.-.'
.
=: -10 to +70·C; Voo =2.7 to 6.0 V (5 V ±10% for 75CG08HE)
Limits
Para~at.r
Symbol
Input voltage, high
VIHl
VIH2
VIHOR
Input voltage, low
Output voltage, high
Output voltage, low
Min
Typ
Teat
Conditions
Max
Unit
0.7 Voo
Voo
V
Except CL1, CL2
Voo -O.S
Voo
V
CL1, CL2
0.9VOOOR
VOOOR +0.2
V
RESET, data retention mode, pPD7507H/08H
only
VILl
0
0.3 VOO
V
Except CL1, CL2
VIL2
0
O.S
V
CL1, CL2
VOH
VOO -1.0
V
IOH = -1.0 rnA; VOO = 4.S to 6.0 V; except
AlliVPP, for pPD7SCGOBHE
VOO -0.5
V
IOL=-100pA
VOO -0.7S
V
AlliVpp; IOH = -S rnA (pPD7SCGOBHE only)
1.S
V
IOL = 12 rnA; VOO = 4.S to 6.0 V; Ports 2-S
0.4
V
IOL = 1.6 rnA; VOO = 4.S to 6.0 V; Ports 6-7
O.S
V
O.S
VOL
IOL =400pA
High level input current (MSEL) IIH
VIN =VOO
300
pA
pPD7SCGOBHE only
Low level input current (10-17)
IlL
VIN=OV
-200
pA
pPD7SCGOBHE only
Input leakage current, high
IUH1
3
pA
Except CL1, CL2; VI = Voo
IUH2
20
pA
CL1, CL2; VI = VOO
IUL1
-3
pA
Except CL 1, CL2; VI = 0 V
IUL2
-20
pA
CL1. CL2; VI = 0 V
Input leakage current, low
Output leakage current, high
ILOH
3
pA
Vo =VOO
Output leakage current, low
ILOL
-3
pA
Vo=OV
6.0
V
900 (1)
1000 (2)
3000 (1)
3000 (2)
pA
pA
Normal operation, VOO = 4.S to 6.0 V;
fCC = 4.19 MHz
150 (2)
700 (2)
pA
Normal operation, Voo = 2.7 to 3.3 V;
fcC = 1 MHz, pPD7S07H/08H only
350 (1)
SOO (2)
BOO (1)
1100 (2)
pA
pA
HALT mode, X1 = 0 V; VOO = 4.S to 6.0 V;
fcc = 4.19 MHz
70 (2)
180 (2)
pA
HALT mode, X1 = 0 V; VOO = 2.7 to 3.3 V;
fCC = 1 MHz, pPD7507H/OBH only
0.1
10
pA
STOP mode, pPD7507H/08H only
O.S
50
pA
STOP mode, pPD7SCGOBHE only
Supply voltage
Supply current
VOOOR
1001
1002
10D3
Not..:
(1) Crystal oscillation; Cl = C2 = 10 pF.
(2) Ceramic oscillation; Cl = C2 = 30 pF.
3-48
2.0
Data retention mode, pPD7S07H/OBH only
~EC
~PD7507H/08H/75CG08HE
AC Characteristics
TA = -10 to +70·C; Voo = 2.7 to 6.0 V (5 V ±10% for 75CG08HE)
limits
Parameter
Symbol
Min
System cycle time
tCY
EVENT input frequency
fE
Typ
Max
Unit
2.86
120
JiS
11
120
JiS
0
700
kHz
0
150
kHz
Test
Conditions
Voo = 4.5 to 6.0 V
Voo = 4.5 to 6.0 V
Voo = 4.5 to 6.0 V
EVENT input high
tEH
0.7
JiS
EVENT input low
tEL
3.3
JiS
SGK cycle time
tKCY
2.5
JiS
10
JiS
SGK as input
2.86
JiS
SGK as output; Voo = 4.5 to 6.0 V
11
JiS
SGK as output
SGK pulse width
tKH, tKl
1.1
JiS
SGK as input; Voo = 4.5 to 6.0 V
4.5
JiS
SGK as input
1.3
JiS
SGK as output; Voo = 4.5 to 6.0 V
5.0
JiS
SGK as output
ns
SI setup time to SCK t
tSIK
300
SI hold time after SGK t
tKSI
450
SO delay time after SGK !
tKSO
Port 1 output setup time to
PSTSt
tpST
Port 1 output hold time after
PSTB t
PSTS pulse width
ns
1200
ns
ns
(Note 2)
ns
tSTP
80
ns
tSWl
(Note 1)
ns
(Note 2)
ns
INTO pulse width
tIOH, tlOl
tI1WH, tl1Wl
RESET pulse width
RESET setup time
Glock stabilization time
IJ
ns
850
(Note 1)
INT1 pulse width
SGK as input; Voo = 4.5 to 6.0 V
10
JiS
1 (Note 3)
tCY
tRSH, tRSl
10
JiS
tSRS
0
ns
tos
25
ms
VOD = 4.5 to 6.0 V
Voo = 4.5 to 6.0 V
Voo = 4.5 to 6.0 V
Voo = 4.5 V
Notes:
(1) (3 + fcc or fe) - 350.
(2) (3 + fCC or fe)- 1000.
(3) tCY = 12 + fcc or fc·
3-49
NEe
pPD7507H/08H/75CG08HE
Timing Waveforms
ExJernallnterrupts
Clocks
INTO
-C=IIOL=rIIOH~
INTI
-C=IIIL=r=IIIH~
Timing Measurement Points
83-003317A
O.7VDD~
--V0.7VDD
-------I\~O~.3~V~D~D______________~O~.3~V~DD~
Reset
83-003411A
Ser/allnterface
83-003318A
STOP Mode
SCK
~"":----STOP Mode
::+-
SI
VOO
so
Valid Output Data
)(
83-003316A
EVENT Input
-~
3-50
;
1/fE
IEL
IEH
t
83-003441A
RESET
~
Oala Relenllon
YODOR
t-rEC
pPD7507H/08H/75CG08HE
Operating Characteristics (cont)
TA = 25°C
Oscillator Frequency vs Supply Voltage
Oscillator Frequency vs Supply Voltage
10
10
N
l:
i....
~
--ttc~tt~··
0
f---
N
::
l:
~
(J
s
Jl
f
c
~
~
~
~
...~
1
S
0.5
0.4
0.3
~
'il
o
~C1 10pF
Cl1
CL2 C2<~
!
t=
~
0
C1J;
J;C2
C1J;
J;C2
1
~
1.1 MHz_----1
,~
l!
0.2
o.1
4.2 MHZ,
2.SMHz
I II
0.2
0.1
o
o
Supply Voltage, Voo IV]
Supply Voltage, Voo IV]
Event Frequency vs Supply Voltage
Clock Frequency vs Supply Voltage
100
=1
=
~
CL21
CL1
N
~cJ
J.l.
==
-
l:
~
.)!!
~
"P074HCOO
.
-
~
...
~
0.1
'5
]"
c
~
0.01
w
0.01
0.001
o
0
Supply Voltage, Voo [V]
Supply Vollag'e, VOO [V]
Supply Current vs Supply Voltage
Oscillator Frequency vs Supply Voltage
10'
C
10'
3
~1Pt
~
0
E
~
0
E
i
~ 10'
...
;+;C1
;+;C2
C1~C2~30pF
<3
JI...
-
fCC
fCC
1
.J.. +-HALT Mode
~
a.
'"
!----fCC -
4.19 jHZ
1 MHz
4.19 MHz
fCc=1 MHz
~
~b;t
1000
f-
0
~
E
.:
~
..
U
>.
~
'"
101
1200
1400
Operating Mode
t-TA
-
Supply Voltage, Voo IV]
o
~
2S'C
VOperatin9 Mode
J;C'
400
o
o
0
J;C1
,. / '
600
25°C
I
TA
C,~C2~30pF
800
200
100
J VDD~SV-
f--
~
--
~ 'HALT Mode
2.
Oscillation Frequency, fCC [MHz]
3-51
t-{EC
pPD7507H/08H/75CG08HE
Operating Characteristics (cont)
TA
= 25°C
Clock Frequency vs Supply Voltage
VOL vs. IOL [Ports 2-7]
20
TA ~ 25°C
1400
TA-25°C
Voo
1200
~
Q
= 5V
1000
E
~
...
U
./
800
=
1/
400
200
o
o
c::..
./
/'
"
g
U
HALT Mode
--
1 VVD~
II VDD~4~
///
voo - a
U
~3
§
;;
a
.3
~2
/11/
~1
o
t'
--
Voo=3V
o
Output Voltage - V
3-52
Voo =3V
Output Voltage - V
TA
~4
-
o
~6
C
v
f-"
o
~7
"
$.D~4:--
'I
VOHvs.IOH
~5
II ~VDD~51v
1!L
~
o
Counter Clock 'Frequency, fe [MHz]
g
/
110
=
/
= 6 v;
15
/peraung Mode
600
0.
UI
/'
/'
Voo
= 25°C
pPD7527AJ28AJ75CG28E
fttIEC
4-Bit,Single-Chip
CMOS Microcomputers
With FIP® Driver
NEe Electronics Inc.
Description
The IlPD7527A, IlPD7528A, and IlPD75CG28E are 4-bit,
single-chip CMOS microcomputers with the IlPD7500
architecture and FIP direct-drive capability.
The pPD7527 A contains a 2048 x 8-bit ROM and a 128 x
4-bit RAM. ThepPD7528A contains a 4096 x 8-bit ROM
and 160 x 4-bit RAM.
The IlPD7527A/28A contains two 4-bit general purpose
registers located outside RAM. The subroutine stack is
implemented in RAM for greater depth and flexibility.
The IlPD7527A/28A typically executes 67 instructions
with a 5 Ils instruction cycle time.
The IlPD7527A/28A has one external and two internal
edge-triggered hardware-vectored interrupts. It also
contains an 8-bit timer/event counter and an 8-bit serial
interface to help reduce software requirements.
Thirty-one high-voltage lines are organized into the 3-bit
output port 2, the 4-bit output ports 3, 8, and 9, and the 4bit 1/0 ports 4, 5, 10, and 11.
The low power consumption CMOS process allows the
use of a power supply between 2.7 and 6.0V. Current
consumption is less than 3.0 mA maximum, and can be
further reduced in the halt and stop power-down modes.
The IlPD75CG28E is a piggyback EPROM version of the
IlPD7527A/28A.
Pin-compatible
and
functioncompatible with the final, masked versions of the
IlPD7527A/28A, the IlPD75CG28E is used for prototyping and for aiding in program development.
D
D
D
D
D
D
D
D
D
D
Vectored interrupts: one external, two internal
8-bit timer/event counter
8-bit serial interface
Standby function (HALT, STOP)
Data retention mode
Zero-cross detector on POOl INTO input (mask
optional)
System clock (j.iPD7527A/7528A/75CG28E): on-chip
RCosciliator
CMOS technology
Law power consumption
Single power supply
- IlPD7527A/7528A: 2.7 to 6.0 V
- IlPD75CG28E: 5.0 V
Ordering Information
Part
Number
Package Type
Mu Frequlncy
of Operation
I'PD7527AC/28AC
42-pin plastic DIP
I'PD7527ACU /28ACU
42-pin plastic shrink DIP
610kHz
610 kHz
I'PD75CG28E
42-pln ceramic piggyback DIP
500 kHz
Pin Configurations .
IlPD7527A128A, 42-Pin Plastic DIP or Shrink DIP
RESET
CLl
CL2
Features
D 67 instructions
D Instruction cycle:
-Internal clock: 3.31ls/600 kHz, 5 V
- External clock: 3.3 Ils/600 kHz, 5 V
D Upwardly compatible with the IlPD7500 series
product family
D 4,096 x 8-bit ROM (j.iPD7528A/75CG28E)
2,048 x 8-bit ROM (j.iPD7527A)
D 160 x 4-bit RAM (j.iPD7528A/75CG28E)
128 x 4-bit RAM (j.iPD7527 A)
D 351/0lines
D 31 high-voltage output lines that can directly drive a
vacuum fluorescent display (FIP)
D Can select either a pull-down resistor or open-drain
output per 31 high-voltage outputs (mask optional)
Pl00
49-001078A
FIP is the registered trademark for NEC's fluorescent Indicator panel (vacuum
fluorescent display).
50275 (NECEL-509)
3-53
II
,..,EC
~PD7527A/28A/75CG28E
MPD75CG28E EPROM
Pin Configurations (cont)
No.
MPD75CG28E, 42·Pin Ceramic Piggyback DIP
RESET
CL1
CL2
vooo, 280 Voo
NCO 2 270MSEL
P53
A7 61·[60 Voo
PS2
PS,
I
As 04 250 As
NC
No connection
EPROM address output
11-13,15-19
10-17
Data read input from the EPROM
P3.
14
Vss
Connection to EPROM GND pin
P3,
20
CE
Chip enable output
ps.
Supplies EPROM OE Signal
I
P32
I
I
P33
22
Vss
23
A11
Program counter MSB output
I
P40
P4,
P42
26
VOO
Supplies Vee to the EPROM
P43
27
MSEL
Mode select input
28
Voo
Supplies high-level signal to MSEL
6 230I A"
A40
I
A30 7 220V55
I
A2082l0 A"
P21/PTOUT
I
1-
Al0 920QCE
P103
I
I
Ao01O '90 17
P102
I
I
1.011 '80ls
1,6,2 1761,
P101
I
I
120'3 '601.
'7
P112
vssy
~S913
P8.
P8,
P82
Note:
P83
(1) Output drivers on ports 2-5 and 8-11 are mask·optional. Accordingly,
either an open·drain output or a pull-down resistor can be selected.
VLOAD is suitable for an output driver with a pull·down resistor.
P9.
P9,
P111
P110
P02/S0
P03/S1
I
AsO 5 240 A•
P23
P22
P'On
P113
I
Connection to pin 21 of I'PD75CG28E
Ao-A10
P01/SCK
NC
Function
Voo
3-10,21,
24,25
V55
POolINTO
VPRE
Symbol
EPROM: 2732
P92
(2) Ports 2-5 are suitable as FIP segment signal outputs, and ports 8-11
are suitable for FIP digit signal outputs.
P93
Voo
49-001079A
(3) Ports 8-11 have high-current drive capability and can drive an LED
directly.
Pin Identification
Pin Functions,JAPD7527A/28Aand
JAPD75CG28E
MPD7527A/28A and MPD75CG28E
No.
Symbol
Function
RESET
Reset input
2,3
CL1, CL2
Clock pins
RESET
System reset (input).
4
VPRE
High·voltage predriver supply
5
VLOAO
High·voltage option resistor supply
7527A/ 28A only
6-9
P50-P53
High·voltage I/O port 5
10,12
P23, P22
P21/PTOUT
High·voltage output port 2, and output
port from timer / event counter (PTOUT)
VPRE
Negative power supply for high-voltage output predrivers (for ports 2-5, 8-11).
13-16
Pl00-Pl03
High·current, high·voltage I/O port 10
17-20
Pll0-P113
High-voltage, high-current I/O port 11
21
VOO
Positive power supply
22-25
P90-P93
High-voltage, high-current output port 9
26-29
P80-P83
High-voltage, high-current output port 8
High-voltage I/O port 4
CL1,CL2
Connection to the RC oscillator. CL1 is the external
clock input.
VLOAD
Negative power supply for optional load resistors (pulldown resistors) of high-voltage output drivers (for ports
2-5,8-11). This pin is only on the MPD7527A/28A.
30-33
P40-P43
34-37
P30-P33
High-voltage output port 3
38
39
40
41
P03/S1
P02/§Q.
P01/SCK
POo/INTO
4-bit input of port 0; or serial data input
(SI), serial data output (SO), serial clock
I/O (SCK), and external interrupt input
(INTO) or zero-cross detect input (POo).
4-bit, high-voltage 1/0 port 5.
42
Vss
Ground
P21-P23
P53- P50
3-bit, high-voltage output port 2.
3-54
NEe
~PD7527A/28A/75CG28E
PTOUT
Pin Functions, J.lPD75CG28E EPROM
Output port from the timer/event counter.
MSEL
P103-P100
P113-P110
Changes the addressing area of the external EPROM
and the on-chip RAM (with a pull-down resistor). Connecting a jumper between socket pins 27 (MSEL) and 28
(Voo) selects f.4PD7527 A mode (2-Kbyte EPROM, 128 x 4bit RAM). Leaving MSEL open selects f.4PD7528A mode
(4-Kbyte EPROM, 160 x 4-bit RAM).
4-bit, high-voltage, high-current I/O port 11. Capable of
bit set/reset by SPBLI RPBL instructions.
Ao-A10
Vee
Output the low-order 11 bits of the program counter
(PCO-PC10). Used as EPROM address signals.
4-bit, high-voltage, high-current I/O port 10. Capable of
bit set/reset by SPBLI RPBL instructions.
Positive power supply.
A11
P93-P90
4-bit, high-voltage, high-current output port 9. Capable
of bit set/reset by SPBLlRPBL instructions.
When MSEL is high level, A11 outputs high-level signals.
When MSEL is open, A11 outputs the MSB of the PC,
which is used as the most significant address signal of
the 4-Kbyte EPROM 2732.
P83-P80
4-bit, high-voltage, high-current output port 8. Capable
of bit set/ reset by SPBLI RPBL instructions.
10-17
Input data read from the EPROM.
P43-P40
CE
4-bit, high,voltage I/O port 4.
Outputs the chip enable signal to the EPROM.
P33-P30
Vee
4-bit, high-voltage output port 3.
Pin 26 is electrically equivalent to the bottom Voo pin
and is used to supply Vee to the EPROM. Pin 28 is electrically equivalent to the bottom Voo pin and is used to
supply the high level signal to MSEL. Pin 1 connects to
pin 21 of f.4PD75CG28E.
POO-P03
4-bit input port O. POo is also used as the zero-cross detection input.
SI
Serial data input.
so
Vss
Pin 14 is electrically equivalent to the bottom Vss pin in
voltage, and is connected to the EPROM GND pin. Pin
22 is electrically equivalent to the bottom Vss pin and is
used to supply the OE signal to the EPROM.
Serial data output.
Instruction Set
SCK
I/O serial clock.
Refer to the User's Manual. The instruction set appears
also as subset A4 in the data sheet for the f.4PD7500 series of single-chip microcomputers.
INTO
External interrupt input.
Vss
Ground.
3-55
II
ttlEC
~PD7527A/28A/75CG28E
Block Diagram,f-IPD7527A/28A
Program Memory
2048 x 8 Bits ~PD7527A)
4096 x 8 Bits {flPD7528A)
Cl
Instruction
Decoder
,I,
Data Memory
~~g ~ : ~::: ~~g~~~~:~
Cll
3-56
Cl2
i t t
VDD
Vss
RESET
NEe
~PD7527A/28A/75CG28E
Block Diagram, fJPD75CG28E
POO"NTO
P21-P23
PTOUT/P21
II
' -_ _ _ _
---'~DP7C
Instruction
Buffer
Instruction
Decoder
Data Memory
160 x 4 Bits
P100-P103
ell
CL2
h h t
P110-P113
Voo Vee Vss Vss RESET
49-0010688
Absolute Maximum Ratings
TA=25°C
Power supply voltage, Voo
-0.3to +7V
Output current high, ports 3,4,8,9 total, IOH
-55mA
Power supply voltage, VLOAO (I'PD7527A / 28A)
VOO-40 V to Voo +0.3 V
Output current high, ports 2, 5, 10, 11 total, IOH
-55mA
Power supply voltage, VPRE
VOO-12 V to Voo +0.3 V
Output current low, per pin, IOL
15mA
Output current low, all ports total, IOL
15mA
Input voltage, except ports 4,5,10,11, VIN
Input voltage, ports 4,5,10,11, VIN
Output voltage, except ports 2-5, 8-11, Vo
Output voltage, ports 2-5, 8-11, Vo
-0.3VtoVoO +0.3V
VOO-40 V to Voo +0.3 V
-0.3VtoVoO +0.3V
VOO-40 V to Voo +0.3 V
Output current high, per pin: P01, P02; IOH
-15 mA
Output current high, per pin: ports 2-5, 8-11; IOH
- 30 mA
Operating temperature, TOPT
Storage temperature, TSTG
Comment: Exposing the device to stresses above those listed in Abso-
lute Maximum Ratings could cause permanent damage. The device is
not meant to be operated under conditions outside the limits described in the operational sections of the specification. Exposure to
absolute maximum rating conditions for extended periods may affect
device reliability.
3-57
NEe
~PD7527AJ28A/75CG28E
DC Characteristics
jAPD7527A128A
TA =. -10°C to + 70°C, Voo = +2.7VtoS.OV
Limits
Parameter
Input voltage,
low
Input voltage,
high
Symbol
Min
Output voltage,
high
Max
Unit
0
0.3 Voo
V
Port 0, RESET
VIL2
0
0.5
V
CL1
VIL3
Voo-35
0. 3Voo
V
Ports 4, 5, 10, 11
VIHt
0. 7Voo
Voo
V
Port 0, RESET
VIH2
Voo-0.5
Voo
V
CL1
VIH3
0. 7Voo
Voo
V
Ports 4, 5, 10, 11;
4.5V"Voo"
6.0V
VOL
VOH
Voo
V
Ports 4, 5, 10, 11;
2.7V" Voo"
4.5V
0.4
V
POt, P02; 4.5 V"
Voo" 6.0V;
IOL =t6mA
0.5
V
POt, P02;
IOL =400,..A
V
Ports 2-5,
IOH= -4 mA
(Note 1)
Voo-2.0
V
Voo-2.0
V
Voo-2.0
V
Voo-2.0
V
Voo-tO
V
VOO-O.5
Input leakage
current, low
Input leakage
current, high
3-58
Test
Conditions
VILt
Voo-0.5
Output voltage,
low
l'yP
Ports 8-11,
IOH= -10mA
(Note 1)
Ports 2-5,
IOH=-2mA
(Note 2)
Ports 8-11,
IOH=-5mA
(Note 2)
POt, P02;
IOH= -1mA
(Note 3)
POt, P02;
IOH= -100,..A
IULt
-3
,..A
VIN=OV; POO-P03
(Note 4)
IUL2
-40
,..A
VIN=OV; POo
(Note 5)
IUL3
-10
,..A
VIN=OV; CL1
IUL4
-10
,..A
VIN=Voo-35V;
ports 4, 5, 10, 11
IUHt
3
,..A
VIN=VOO;
POO-P03 (Note 4)
IUH2
40
,..A
VIN=VOO; POo
(Note 5)
IUH3
10
,..A
VIN = Voo; CL1
IUH4
80
,..A
VIN = Voo; ports 4,
5,10,11
Llmill
Parameter
Output leakage
current, low
Output leakage
current, high
Max
Unit
Test
Conditions
ILOL1
-3
,..A
Vo=OV; POt, P02
ILOL2
-10
,..A
Vo=Voo-35V;
ports 2-5, 8-11
ILOHt
3
,..A
Vo=Voo; except
ports 4, 5, 10, 11
ILOH2
80
,..A
Vo=Voo; ports 4,
5,10,11
to
3.0
mA
Voo=5V±10%,
R=39kQ
0.4
1.0
mA
Voo=3V,
R=82 kQ
200
600
,..A
Voo=5V±10%,
R=39kQ (Note 4)
60
200
,..A
Voo=3V,
R=82kQ (Note 4)
210
640
,..A
Voo=5V±1O%,
R=39kQ (Note 5)
67
230
,..A
Voo=3V,
R=82kQ (Note 5)
0.1
10
,..A
Voo=3 V (Note 4)
10
40
,..A
Voo=5V±10%
(Note 5)
7
30
,..A
Voo=3V (Note 5)
140
220
kQ
VOO-VLOAO=35V
Symbol
Min
Supply current, loOt
normal operation
Supply current, 1002
HALT mode
(Note 6)
Supply current, 1003
STOP mode
(Note 6)
On-chip pullRL
down resistance
80
l'yP
Note:
(1) VpRE = Voo-9V ±t V. The circuit in figure 5 is recommended.
(2) VpRE=OV. Voo=4.5Vto6.0V.
(3) Voo=4.5Vto6.0V.
(4) Without zero-cross detector.
(5) With zero-cross detector.
(6) Ports 4, 5, 10, 11 are low level output or low level input.
NEe
~PD7527A'28A/75CG28E
DC Characteristics (cont)
j.lPD75CG28E
Limits
TA= -10°C to +70°c, Voo= +5V±10%
Parameter
Limits
Symbol
Parameter
Input voltage,
low
Input voltage,
high
Output voltage,
low
Output voltage,
high
Min
Typ
Mall
Un"
Telt
Cond"lons
Symbol
Input leakage
current, low
Min
Typ
Test
Conditions
Mall
Unit
IUL1
-3
f'A VIN=OV; POO-P03
f'A VIN=OV; POo
f'A VIN=OV; CL1
f'A VIN = Voo- 35 y;
VILl
0
0. 3Voo
V
Port 0, RESET
IUL2
-40
VIL2
0
0.5
V
CL1
IUL3
-10
VIL3
Voo-35
0. 3Voo
V
Ports 4, 5, 10, 11
IUL4
-10
Port 0, RESET
IUHl
3
f'A VIN=VOO;
IUH2
40
IUH3
10
IUH4
80
f'A
f'A VIN=VOO; Cll
f'A VIN = Voo; ports 4,
VIHl
0. 7Voo
Voo
V
VIH2
Voo-0.5
Voo
V
CL1
VIH3
0. 7Voo
Voo
V
Ports 4, 5, 10, 11
0.4
V
POl, P02;
IOL=I.6mA
0.5
V
POl, P02;
10L = 400 f'A
V
Ports 2-5,
10H= -4 mA (1)
Ports 8-11,
10H = -10 mA(I)
VOL
VOH
Voo-2.0
V
Voo-2.0
V
Voo-2.0
V
Voo-2.0
V
Voo-1.0
Ports 2-5,
IOH= -2mA(2)
Ports 8-11,
IOH= -5mA(2)
POl, P02;
10H=-lmA
Input current,
low (10-17)
IlL
-200
f'A VIN=OV
Input current,
high (MSEL)
IIH
300
",A
ports 4, 5, 10, 11
Input leakage
current, high
VIN=VOO
POO-P03
VIN = Voo; POo
5,10,11
Output leakage
current, low
ILOL1
-3
ILOL2
-10
f'A Vo=OV; POl, P02
f'A Vo=Voo-35 V;
ILOHl
3
f'A Vo = Voo; except
ILOH2
80
f'A Vo=Voo; ports 4,
ports 2-5,8-11
Output leakage
current, high
ports 4, 5, 10, 11
5,10,11
Supply current, 1001
normal operation
1.0
3.0
mA
R=39kQ
Supply current, 1002
HALT mode(3)
210
630
f'A
R=39kQ
Supply current, 1003
STOP mode(3)
10
50
f'A
Nota:
(1) VpRE= Voo- 9V +1V. The circuit in figure 6 is recommended.
(2) VpRE=OV
(3) Ports 4, 5, 10, 11 are output off or low input.
Figure 1.
Recommended Circuit, j.lPD7527AI 7528A
Voo
j..lPD7527
17528
VpRE
+~
Figure 2.
Recommended Circuit, j.lPD75CG28E
+5V
Voo
~RD9.1EL
+5V
:'::
.PD75CG28
I
VpRE
6akU
68kH
~-30V
30V
VLOAD
Vss
~~RD9.1EL
3.3f.1F
1
Vss
49,OO1052A
1
49-001054A
3-59
IJ
ttlEC
",PD7527A/28A/75CG28E
Zero·Cross Detection Characteristics
AC Characteristics
"PD7527A/28A:TA= -10"010 +70"0, Voo=4.5VI06.0V
"PD75CG28E:TA= -'10"Olo+70"O,Voo= +5V±10%
IlPD7527AI28A
Limits
Parameter
Symbol
Min
iero·cross
detection input
voltage
Vzx(P-P) 1
Zero·cross
accuracy
VAZX
Zero-cross
detection input
frequency
Trp
'Mall
3
Test
UnH
Vp.p AC coupled,'
C=O,I"F
±100
45
fzx
mV
1000
50 Hz to 60 Hz sine
wave
Hz
Zero·Cross Detection Waveform
AClnput
I
I
I
Limits
Parameter
Cycletinie
(Note 1)
Symbol
tCY
POo event input fpo
frequency
Min
TrP
Mu
UnH
3.3
200
,,5
6.9
200
,..s
0
610
kHz
0
290
kHz
POo input rise
time
tpOR
0,1
POo input fall
time
tPOF
0,1
POo input pulse tpOl
width, low
1,63
POo input pulse tPOH
width, high
0.72
SCK cycle time
3,0
tKCY
I
,,5
,,5
I
Zeroc"""'~
Signal'
_ o n oIgnol delay from the Iow-to-hlgh and hlgh·to-!ow lransltionsollhe AC
Input slgnol, raopecIlwly.1fow8var, ft Is possible that the zero.cross detecllon
lead. iCJw..to.hlgh andlor high-to-lowlranslllon(s) Glthe AC input signal.
8,0
SCK pulse
width, low
tKl
Capacitance
SCK pulse
width, high
tKH
TA =25"0, Voo=Ov, 1=1.0 MHz, Unmeasured pins relurned 10 GND
Limits
Symbol
Input
capacitance
CI
Output
capacRance
Co
I/O
CIO
capacRance
3-60
Min
Trp
3,35
3,9
4&-OO1055A
Parameter
1.55
,,5
,,5
,,5
,,5
,,5
,,5
6.9
'
N_ In the above _ _ boIh o-to-l and l-to-O Iransltions 01 the zero-cross
1,4
Test
Condition.
Mill
Unit
300
ns
pF
POo, POa
SI set-up time
(to rising·edge
ofSCK)
tSIK
15
SI hold time
tKSI
450
lis
15
pF
Port 2
35
pF
Ports 3,8,9
15
pF
POl, P02
35
pF
Ports 4, 5, 10, 11
Voo=4.5Vto
6.0V
~oo=4,5Vto
,,5
,,5
,,5
,,5
3.3
I
!
!I
Teat
CondHlon.
6.0V
I
II
_on
TA= -10"010 +70°C, Voo = +2.7V10 6.0V
CondHlon.
VOO=4.5Vto
6,OV
Input; Voo= 4.5 V
t06,OV
Output;
VDO=4.5Vto
6.0V
Input
Output
Input
Output
Input; Voo=4.5 V
t06.0V
Output;
Voo=4.5Vto
6,OV
(afterri~
edge of SCK)
SO output delay tKSO
time (after
falling·edge of
SCK)
850
ns
1200
ns
INTO pulse
tIOH,
width, high, low tlOl
10
,,5
RESET pulse
tRSH,
width, high, low tRSl
10
,,5
Voo=4,5Vto
6.0V
NEe
~PD7527A128A175CG28E
Oscillation Characteristics
AC Characteristics (cont)
IlPD75CG28E
p.PD7527A/28A
TA= -10 0 Cto +70 0 C, voo= +5V±10%
TA = -10"0 to +7O"C, voo = 2.7 Vto 6.0 V
Limits
Symbol
Parameter
Min
Typ
Max
Unit
tCY
4.0
200
"'S
POD event input fpo
frequency
a
500
kHz
Cycle time
(Note 1)
POD input rise
time
tpOR
0.2
"'s
POa input fall
time
tPOF
0.2
"'S
POa input pulse tpOH,
width, high, low tpOl
SCK cycle time
0.8
tKCY
Test
Conditions
"'S
3.0
"'S
Input
4.0
"'s
Output
"'S
Output
Input
SCK pulse
width, low
tKl
1.8
SCK pulse
width, high
tKH
1.3
"'S
SI set-up time
(to rising-edge
ofSCK)
tSIK
300
ns
SI hold time
(after risingedge of SCK)
tKSI
Parameter
Symbol
System clock
oscillation
frequency
(Note 1)
fcc
System clock
CL 1 Input
frequency
(Note 2)
fc
CL 1 Input rise
time (Note 2)
Min Typ Max Unit Condltone
300
400
500
kHz
150
200
250
kHz
R=82kO±2%
10
610
kHz
Voo = 4.5 Vto
6.0 V
10
290
kHz
teR
0.1
p.S
CL 1 Input fall
time (Note 2)
teF
0.1
p.S
CL 1 Input
pulse width,
low (Note 2)
tel
0.7
50
pos
CL 1 Input
pulse width,
high (Note 2)
teH
1.63
50
p.S
Voo = 4.5 Vto
6.0 V
Unit
Conditions
IlPD75CG28E
TA= -10°Cto +70°C,V oo =5V±10%
450
ns
Limits
Parameter
SO output delay tKSO
time (after
falling-edge of
SCK)
850
ns
Symbol
System clock
oscillation
frequency
(Note 1)
fcc
fc
Test
Min
Typ
Max
300
400
500
kHz
R=39kQ±2%
110
150
190
kHz
R=110kQ:t2%
500
kHz
INTO pulse
tIOH,
width, high, low tlOL
10
"'S
RESET pulse
tRSH,
width, high, low tRSl
10
"'S
System clock
CL1 input
frequency
(Note 2)
ns
CL1 input rise
time (Note 2)
tCR
0.2
",s
CL1 input fall
time (Note 2)
tCF
0.2
",s
50
",s
Data input delay tACC
time from
address
700
Data input delay tCE
time from CE
700
Input hold time
after address
R=39kO:t2%
Voo = 4.5 Vto
6.0 V
a
tlH
ns
10
CL1 input pulse tCH,
width, high, low tCl
ns
0.8
Note:
(1) R, C (see figure 3).
Note:
(1) tcy = 2/fcc or 2lfc
Figure 3.
(2) External clock (see figure 4),
Recommended RC Oscillator Circuit
AC Waveform Measurement Points (Except CL 1)
~0.7VDO
Test
0.7VOOC
.0.3 voe> Points < 0 . 3 Voo.
49·Q01056A
C=33pF±S%
I~Cls60ppm/OC
49-001059A
3-61
fttIEC
f,.tPD7521A/28A/75CG28E
Figure 4.
p
.
Recommended External Clock Circuit
C.L1CL2
Data Retention Mode Timing
VOO --1------1
open
CMOS
RESET
Stop Mode Low Voltage Data Retention
Characteristics
CD VOOOR
",PD7527A/28A
0
V'HOR
0
V'l1
49-001077A
Limits
Paramstar
® V'H1
Note: In data retention mode, all inputs should be made lower level than VODDR'
TA= -10 0Cto +70°C
Symbol
Min
Data retention
supply voltage
VOOOR
2.0
Data retention
supply current
IOOOR
Test
Conditions
Mal
Unit
6.0
V
0.3
10
~
VOOOR=2V
(Note 1)
7
30
~
VOOOR=2V
(Note 2)
VOOOR
+0.2
V
TyP
Data retention
RESET input
voltage high
VIHOR 0. 9VOOOR
RESET set-up
time
tSRS
0
,..5
RESET hold time tHRS
0
,..5
J.lPD75CG28E EPROM Interface
A 4-Kbyte EPROM (2732) plugs into socket pins on top of
the ",PD75CG28E. A high input to MSEL selects
",PD7527A mode and fixes the A11 output high level in order to access the upper 2-Kbytes of the 4-Kbyte EPROM_
When MSEL is open, ",PD7528A mode is selected_ All
EPROM addresses can be accessed because A11 functions as the MSB of the address. Figure 5 shows the address control unit. Figures 6 and 7 show the
",PD75CG28E connected with the 2732.
Figure 8 shows the EPROM read timing. Data is read
into the instruction buffer at the end of the T4 state. The
chip enable (CE) signal is made active during 2 states
(T3, T4) in order to decrease the power consumption of
the EPROM.
",PD75CG28E
TA= -100Cto +70 0C
Figure 5.
Limits
Parametar
Symbol
Min
Data retention
supply voltage
VOOOR
2.0
Data retention
supply current
IOOOR
Data retention
RESET input
voltage high
VIHOR 0.9VOOOR
RESET set-up
time
tSRS
0
,..5
RESET hold time tHRS
0
,..5
7
Unit
5.5
V
30
~
VOOOR
+0.2
V
Address Control Unit
Tast
Conditions
VOOOR=2V
VOO(28)
MSEL
to Address Decoder
of Data Memory
sw
On-chip
pull-down
resistor
Vss
Note:
(1) Without zero-cross detector
(2) With zero-cross detector
3-62
TyP
Mal
SWan: !-,PD7527A Mode
SW off: !-,PD7528A Mode
49-001069A
ttlEC
~PD7527A128A175CQ28E
Figure 6. Connection with the 2732 (pPD7527A Mode)
Figure 7. Connection with the 2732 (pPD7528A Mode)
2732
VDD(26)
Vee
VDD(26)
VDD(28)
MSEl
~
Vee
VDD(28) t--(open)
-'1,
All (high)
MSEl t--(open)
Ao-A,.
Ao-A,.
Ao-A;,
Ao-An
CE
CE
CE
CE
VSs(22)
DE
VSS(22)
DE
00-0.
10-1-,
GND
VSs('4)
GND
VSS('4)
II
Oo-Or
10-17
49·00f070A
Figure 8.
49-Q01071A
EPROM Read Timing
1 Machine Cycle
T4
ell \
(Ex1ernal)
Ao-A11
CE
10-17
T1
I
X
I
I
\
12
I
I
13
I
T4
!
\
\
X
Add....
I
\
)-------------<
'I
ReadDa1a
)----4g·001072A
3-63
N'EC
~PD7527A/28A/75CG28E
Timing Waveforms
EPROM (/JPD75CG28E only)
10- 17
Serial Interface
51
-----------(1
---+---<1
49-00107SA
SO _ _ _J
Clock
~
>C
Output
___
_ Data
_ _ _- '
49-001074A
1 - - - - -1Ifc----+J
Interrupt Input
CL11nput
RESET
49-001169A
Reset Input
POo Input
49-0010?3A
INTO
49-001168A
Differences Among the
~PD7527A/28A/CG28E
~PD75C028E
~PD7527A
~PD7528A
Program memory
4 Kbyte EPRO M
(2732)
connectable
on top
On-chip 2 Kbyte
ROM
On-chip 4 Kbyte
ROM
Data memory
(RAM)
160x4
128x4
160x4
High-voltage
output lines
All open-drain
outputs
On-chip load capacitor or open drain
output (bit by bit, mask optional)
VLOAD pin
No
Zero-cross
detection
Yes
Package
42-pin ceramic
piggyback DIP
bottom pin
compatible with
I'PD7527A/ 28A
Power supply
5V
3-64
Mask optional
42-pin plastic DIP
42-pin plastic
shrink DIP
2.7Vto6.0V
pPD7533/75CG33E
4-Bit, Single-Chip
CMOS Microcomputers
With AID Converter
t¥EC
NEe Electronics Inc.
Description
The IIPD7533 is a 4-bit, single-chip CMOS microcomputer with a 4-channel, a-bit A/D converter, a-bit
timer/event counter, and an a-bit serial interface. The
IIPD7533 has 30 I/O lines, a of which can be used to
directly drive LEDs. The IIPD7533 executes 67 instructions of the IIPD7500 series "A" instruction set.
The A/D converter has various temperature monitoring
appl ications that can be used with household electrical
appliances, such as air conditioners and electric
ovens. Other applications include health monitoring
equipment and cameras.
The IIPD75CG33E consists of a 2a-pin socket "piggybacked" on the lower 42-pin ceramic DIP. This socket
is configured to hold either a 2732A or 2764 EPROM.
For engineering purposes, programs can be tried and
debugged before ROM code submission.
Ordering Information
Part
Number
pPD7533C
42-pin plastic DIP
510 kHz
pPD7533CU
42-pin plastic shrink DIP
510 kHz
pPD7533G-22
44-pin plastic QFP
510 kHz
pPD75CG33E
42-pin ceramic piggyback DIP
510 kHz
Pin Configurations
42-Pin Plastic DIP or Plastic Shrink DIP
P43
P42
P4,
Features
D
D
D
D
D
D
D
D
D
D
D
50276 (NECEL-460)
P50
P5,
Cl'
DIVSEl
D 4-bit single chip microcomputer
D 67 instructions (subset of IIPD7500 series set A)
D Instruction cycle
- 5 liS at 5 V, 400-kHz clock at ceramic oscillation,
DIVSEL = high
- 10 liS at 5 V, 400-kHz clock at ceramic
oscillation, DIVSEL = low
Program memory (ROM): 4096 words x a bits
- External in the IIPD75CG33E
Data memory (RAM): 160 words x 4 bits
a high current output lines for LED direct drive
Input/output ports
- Two 4-bit input ports
- One 2-bit output port
- One 4-bit output port
- Three 4-bit input/output ports (two of these
can function in a-bit units)
- One 4-bit input/output port usable at bit level
Interrupts: two internal and one external
a-bit serial interface
Standby operation
-STOP mode
- HALT mode
On-chip system clock oscillator
- Ceramic resonator
- Full or 1/2 oscillation frequency
CMOS technology
Low power consumption
Single power supply
Maximum
Frequency
o! Operallon
Package
Type
POo/INTO/EVENT
PO,/SCK
P02/S0
P03/SI
P10
P1,
AN2
AN1
P62
83-002631A
3-65
t-IEC
pPD7533/75CG33E
Pin Configurations (cont)
Pin Identification
42-Pin Ceramic Piggyback DIP
42-Pln DIP, Shrink DIP, and Piggyback DIP
P43
Vss
P42
P50
pP075CG33E
No.
Symbol
1·4
P43-P40
P4,
P5,
5.6
P22, P21/PTOUT
Port 2 output
P40
P52
7-10
P73·P70
1/0 port7
5
Voo
Voo
P53
P21/PTOUT
P22
Vss
Voo
Cl2
P73
A7
Voo
P72
As
As
Cl'
OIVSEl
P7,
As
Ag
RESET
'0
11
Ao
A11
POolINTO/EVENT
A3
Vss
po,/SCi<
P32
'2
A2
A,o
P02/S0
P3,
'3
A,
CE
P03/S1
P30
'4
Ao
17
P'o
AVss
'5
16
10
I,
I,
15
12
10
11-14
P33·P30
Port 3 output
15
AID converter ground
16-19
AvSS
AN3-ANO
Analog input
20
VAREF
AID reference voltage input
21
Voo
Positive power supply
22-25
P63-P60
1/0 port6
P"
26-29
P13-P10
Port 1 input
P'2
30
P03/S1
Port 0 input/Serial input
P'3
pSo
31
P02/SD
Port 0 input/Serial output
ANO
ps,
32
P01/SCK
Port 0 input/(I/O) Serial clock
VAREF
PS2
33
POoIINTO/EVENT
Port 0 input/Interrupt O/Event
input
34
RESET
RESET input
35
DIVSEL
System clock selection input
36,37
CL 1, CL2
External clock input/System
clock terminal
P70
P33
AN3
AN2
AN'
Vss
13
Voo
PS3
83-002633A
44-Pln Plastic QFP
NO
N
~
P2,/PTOUT
P73
~
~
....
o:t
~
C\lMU)O
011
~
'II'
~
(I)
>
IS'I
~
....
1ft
~
NC')N
It)
a
IS'I
..J
a" U
NC
Cl'
P72
OIVSEl
P7,
P33
RESET
POo/lNTOI
EVENT
PO,/SCK
P32
P02/S0
P3,
P03/S1
P30
P'o
P70
AVss
P"
AN3
P'2
83-002632A
3-66
Function
1/0 port 4
38-41
P53-P50
1/0 port5
42
Vss
Ground
NEe
pPD7533/75CG33E
Pin Functions
Pin Identification (cont)
POO-P03 [Port 0]
44-Pin QFP
No.
Symbol
1,44
P2l/PTOUT, P22
Port 2 output
PlJ-P70
I/O port 7
2-5
Function
6-9
P33-P30
Port 3 output
10
Avss
A/D converter ground
11-14
AN3-ANO
Analog input
15
VAREF
A/D reference voltage input
17
Voo
Positive power supply
18-21
P63-P60
I/O port 6
22-25
P13-P10
Port 1 input
26
P03/S1
Port 0 input/Serial input
PO O-P0 3 function as port O. POo also functions as a
count pulse input pin for the timer/event counter
(EVENT) or as interrupt 0 (INTO). POl also functions as
a serial clock input/output pin (SCK) for the serial
interface. P02 functions as a serial data output pin (SO)
and pins P03 as a serial data input pin (SI). The P0 1/SCK
and P02/S0 pins are three-state input/output.
The shift mode register (SMo-SM3) determines the
operation mode of the port 0 input/output pins; however, the data on POO-P03 can be loaded into the
accumulator at any time by executing a port input
instruction (IP/IPL). This is possible even when P01P03 are functioning as the serial interface.
After a RESET, POO-P03 become input ports (high
impedance).
27
P02/S0
Port 0 input/Serial output
28
P01/SCK
Port 0 input/ (I/O) Serial clock
29
POo/INTO/EVENT
Port 0 input/Interrupt O/Event
input
P10-P13 [Port 1]
30
RESET
RESET input
31
DIVSEL
System clock selection input
32,34
CL1,CL2
External clock input/System
clock
P1o-P13 function as port 1. Execution of an IP or IPL
instruction reads data present on P1o-P13 into the
accumulator. Tie any unused lines of P1o-P13 to VDD or
Vss·
35-38
P53-P50
I/O port 5
P21-P22 [Port 2]
39
Vss
Ground
40-43
P43-P40
I/O port 4
16,33
NC
No connect
P2l-P22 function as port 2 with an output latch. When
an output instruction (OP/OPL) to port 2 is executed,
the middle 2 bits (Al and A2) of the accumulator are
latched by the output latch and, at the same time,
output to P2l-P22.
28-Pin EPROM Socket on 42-pln Piggyback DIP
No.
Symbol
1,26-28
Voo
Positive power supply
2. 14.22
Vss
Ground
Function
20
CE
Chip enable output
3-10,21,
23-25
Ao-All
Address bus
11-13,
15-19
10-17
Data bus
After being written once, the output latch contents
remain until they are rewritten by an output instruction
or a reset. The status of the corresponding output
signal also remains. After a reset, the output latch
contents become undefined, all output signals are
disabled, and the output drivers are turned off.
P2 l is also used as an output pin (PTOUT) for the
timer-out F/F signal (PTOUT). Bit 3 (CM3) of the clock
mode register controls the PTOUT output. When CM3
is 1, TOUT is ORed with the P2l output latch contents
and sent to the output driver. Therefore, to output the
P2l output latch contents, reset CM3 to 0 to inhibit the
TOUT signal.
Note that soon after the RESET signal is asserted, CM3
is reset and TOUT is inhibited. However, since the
output latch contents are undefined after a reset, to
output the TOUT signal, first write 0 in the P2l output
latch and then set CM3 to 1 to output TOUT.
3-67
an
ttlEC
jlPD7533/75CG33E
P30-P33 [Port 3]
P60-P63 [Port 6]
P30-P33 function as port 3 with an output latch: When
an output instruction to port 3 is executed, the accumulator contents are latched and output.
P6o-P63 function as the 4-bit input latched, three-state
output port. The individual lines can be programmed
as either inputs or outputs.
Once data is written in the output latch, the data is held
until the next output instruction to port 3 is executed or
RESET is asserted. After a reset, the output latch
contents become undefined and the output driver is
turned off.
In input mode, data present at this port is read into the
accumulator by the execution of an IP or IPL instruction. Accumulator data written to this port by the
execution of an OP, OPL, ANP, or ORP instruction is
statically latched, and remains unchanged until rewritten. This data, however, is not output since the
output buffer is disabled and placed in the high
impedance state.
P40-P43 [Port 4]
P50-P53 [Port 5]
P4o-P43 function as port 4 and P50-P53 function as port
5. When an input instruction isexecuted, the data on
these pins is read into the accumulator. When an
output instruction is executed, the accumulator
contents are latched and output. After the data is
written into the latch, it is held until the next output
instruction to ports 4 or 5 is executed, or RESET is
asserted.
Ports 4 and 5 can work as a pair enabling data (input
with the IP54 instruction and output with the OP54
instruction) in 8-bit units. The high four bits of data are
from the accumulator and the low four bits are from
memory (addressed by HL).
Ports 4 and 5 automatically set in the input mode (high
impedance output) after a reset or when the input
instructions to these ports are executed. After a reset,
the output latch contents become undefined. Both
ports 4 and 5 can drive LEOs directly.
Note that after the port changes from output mode to
input mode, the data on the line is unstable when the
input instruction that changes the mode is first executed. It is strongly recommended that you re-execute
the input instruction considering the input/output
mode switching time. This will insure reading stable
data.
The bit manipulation instruction affects the specified
bit only. So when the output latch contents are undefined, (immediately after a reset), initialize the output
latch contents with an output instruction before the bit
manipulation instruction is executed.
3-68
In output mode, accumulator data written to the
specified port line by the execution of the OP, OPL,
ANP, or ORP instruction is statically latched and
output to the P6n pin. Data present at P6 n is read into
the accumulator by the execution of the IP or IPL
instruction, making it possible to read the contents of
the P6 n output latch.
All lines of port 6 are initialized to the high impedance
state at Reset. Leave any unused lines open (if outputs)
or tied to VDD or Vss (if inputs).
The port 6 mode select register (MSR) controls the
function of the individual port 6lines. The execution of
the OP or OPL instruction loads the port 6 MSR with
the accumulator contents. The 4-bit immediate data
operand or the contents of the L register must be set to
OEH. Figure 1 shows the format of the port 6 MSR.
Figure 1.
Port 6 MSR Format
I
PM3
I
PM2
I
I
PM,
[
I
PMo
I
I'---P60
P6,
' - - - - - - - - P62
' - - - - - - - - - - - P63
PM n
Pori 6 Selection
P6n input [output buffer high-impedance]
P6 n output [output buffer on 1
83-002634A
t-IEC
pPD7533n5CG33E
P70-P73 [Port 7]
Pin Functions, pPD75CG33 EPROM
Port 7 is a 4-bit input or latched three-state output port.
The execution of an IP or IPL instruction execution
reads data present at this port into the accumulator.
Accumulator data written to this port by the execution
of an OP, OPL, ANP, or ORP instruction is statically
latched and remains unchanged until rewritten.
Ao-A11 [EPROM Address]
Upon reset, all lines are initialized to the highimpedance state. Leave any unused lines open (if
outputs) or tied to Voo or Vss (if inputs).
Ao-A11 output the contents of the EPROM program
address counter. A reset leaves Ao-A11 undefined.
10-17 [Data Bus]
10-17 input the contents of the EPROM data bus.
CE [Chip Enable]
ANO-AN3 [AID Input Terminal]
CE outputs the EPROM chip enable signal. (Active
low.)
ANO-AN3 are the 4-channel ND converter input terminals. The AID converter uses a successive approximation method.
Voo [Power Supply], VSS [Ground]
VAREF [AID Converter Positive Reference]
The voltage on VAREF determines the full scale analog
voltage.
Voo is the positive power supply pin with the same
voltage as the lower portion pin 21. Vss is the ground
pin with the same voltage as the lower portion pin 42.
The following voltages are supplied to the 2764 or
2732A pins from Voo or Vss.
AVSS [AID Converter Ground]
Avss is the ground for the ND circuit.
CL 1, CL2 [Clock]
CL 1 and CL2 connect external oscillator elements to
the system clock. Connect a ceramic resonator to
these pins. ·If an external clock is used, place a buffer
between the clock source and the CL 1 and CL2 pins.
When connecting the oscillation parts to the CL 1 and
CL2 pins, use the shortest wiring possible. Ground the
capacitor as close to the Vss pin as possible.
DIVSEL [System Clock Divider Selection Input]
DIVSEL selects whether the system clock runs at
ceramic osci lIation freq uency, or at one-half the ceram ic
oscillation frequency. If a logic 0 (Vss) is connected to
DIVSEL, the system clock is one-fourth the ceramic
oscillation. If DIVSEL is high, then the system clock will
be one-half of the ceramic oscillation.
RESET [Reset]
A high on RESET activates this input.
Voo [Power Supply]
Voo is the positive power supply pin.
Vss [Ground]
Vss is the ground pin.
Pin Number
2764
2732A
20
Symbol
Vpp
28
24
Vee·
22
20
DE
12
Vss
2
14
A12
Voltage
Voo pin 21 = +5 V
Voo pin 21 = +5 V
Vss pin 42 = 0 V
. Voo pin 21 = +5 V
Vss pin 42 == 0 V
NEe
pPD7533/75CG33E
Block Diagram
INTO/EVENT/POO
SCK/PO,
so/po,
Sl/PO,
EVENT
Clock
Control
Cl
P10-P103
P30·P33
P40-P43
Program Memory
4096
Instruction
Decorder
x 8 Bits
P50·P53
Cl
¢
P60·P63
Cl' Cl2
111
voo
vss
P70·P73
RESET
83-0026358
Absolute Maximum Ratings
Capacitance
TA =25°C
TA = 25°C, Voo =0 v
Power supply voltage, VDD
limits
-0.3 to +7.0 V
Input voltage, VI
-0.3 V to VDD + 0.3 V
Parameter
Output voltage, Vo
-0.3 V to VDD + 0.3 V
Input
capacitance
High level output current, 10H
-17 rnA (1 pin)
-20 rnA (all output ports)
Low level output current, 10L
17 rnA (1 pin)
80 rnA ports 2,3,4,7 (total pins)
80 rnA ports 0,5,6
Operating temperature, TOPT
-10 to +70°C
Storage temperature, TSTG
-65 to +150°C
AID Vss, Avss
-0.3 to +0.3 V
AI D reference, VAREF
-0.3 V to VDD
Comment: Exposing the device to stresses above those listed in
Absolute Maximum Ratings could cause permanent damage. The
device is not meant to be operated under conditions outside the
limits described in the operational sections of this specification.
Exposure to absolute maximum rating conditions for extended
periods may affect device reliability.
3-70
Symbol
Min
Max
Unit
CIN
15
pF
Output
capacitance
COUT
15
pF
I/O
capacitance
CIO
15
pF
Test
Conditions
f=1 MHz
Unmeasured
pins are 0 V.
NEe
J.lPD7S33nSCG33E
DC Characteristics
DC Characteristics
TA = -10 to +70·C, Voo = 2.7 to 6.0 V, DIVSEL = 1
TA = -10 to +70·C, Voo = 2.7 to 6.0 V, DIVSEL = 1
Limits
Parameter
Symbol
Min
Max
Unit
0.7 Voo
Voo
V
High level
input voltage
(other than
CL 1, CL2)
VIH1
High level
input voltage
(CL1, CL2)
VIH2
Voo - 0.5
Voo
V
Low level
input voltage
(other than
CL1, CL2)
VIL1
0
0.3 Voo
V
Low level
input voltage
(CL1, CL2)
VIl2
0
0.5
Conditions
specified by
oscillation
characteristics
Limits
Parameter
Symbol
Test
Conditions
Min
Max
Unit
Supply current 1001
1.0 (typ)
3.0
mA Operating mode:
fcc = 500 kHz
1002
250 (typ)
750
/iA HALT mode:
fcc = 500 kHz
300 (typ)
900
/iA (75CG33:
Voo = 4.5 - 6.0 V;
fcc = 500 kHz)
0.1 (typ)
10
25 (typ)
200
/i A STOP mode
/i A (75CG33:
Voo = 4.5 - 6.0 V)
1003
V
AC Characteristics
TA = -10 to +70·C, Voo = 2.7 to 6.0 V
rligh level
VOH
output voltage
V
Voo -1.0
Voo - 0.5
V
Voo - 0.5 Voo - 0.2
Low level
VOL
output voltage
High level
IUH1
input leakage
current (other
than CL 1, CL2)
High level
input leakage
current (CL1,
CL2)
Test
Conditions
IUH2
Parameter
Symbol
Min
Max
Unit
10H = -100 /iA
Cycle time
tCY
3.92
200
/is
9.52
200
/is
Limits
Voo = 4.5-6.0 V
IOH=-2 mA
(P63 only)
EVENT input
frequency
fE
0
510
kHz
210
kHz
0.6 (typ)
2.0
V
Voo = 4.5-6.0 V
10l = 15 mA
EVENT input
high duration
tEH
0
0.8
0.7 (typ)
2.5
V
(75CG33:
Voo = 4.5 - 6.0 V)
EVENT input
low duration
tEL
2.2
/is
0.4
V
10l = 1.6 mA
SCK cycle
time
tKCY
4.0
/is
3.92
/is
0.5
V
3
/i A
20
Low level
IUL1
input leakage
current (other
than CL1, CL2)
-3
Low level
input leakage
current (CL1,
CL2)
-20
IUL2
V
Voo = 4.5-6.0 V
IOH=-1 mA
except P63
/iA
/i A
/i A
10l = 400/iA
/is
VIN = Voo
VIN =Voo
SCK high,
low level
duration
tKH,
tKL
VIN = 0 V
VIN =OV
High level
li.OH
output leakage
current
3
/i A
VOUT = Voo
Low level
IlOL
output leakage
current
-3
/i A
VOUT = 0 V
Test
Conditions
Voo = 4.5-6.0 V
Voo = 4.5-6.0 V
Voo = 4.5-6.0V
Input
Voo = 4.5-6.0 V
Output
Voo = 4.5-6.0 V
Input
10.0
/is
9.52
/is
Output
1.8
/is
1.76
/is
Input
Voo= 4.5-6.0 V
Output
Voo = 4.5-6.0 V
4.8
/is
Input
4.6
/is
Output
SI setup
time (SCK high)
tSIK
300
ns
SI hold
time (SCK high)
tKSI
450
ns
SCK low
to SO
output delay
time
tKSO
INTO high,
low level
duration
tIOH,
tlOl
10
/is
RESET high,
low level
duration
tRSH,
tRSl
10
/is
850
ns
Voo = 4.5-6.0 V
1200
3-71
II
tttrEC
pPD7533/75CG33E
Data Memory, STOP Mode Data Retention
Characteristics
TA=-10to+70·C
limits
Parameter
Symbol
Min
Typ
Max
Unit
Data
retention
supply voltage
VOOOR
2.0
6.0
V
Data retention
supply current
IOOOR
RESET setup
time
tSRS
0
ps
Oscillation
stabilizing
time
tos
20
ms
Test
Conditions
A/D Converter Characteristics
TA = -10 to +70·C, Voo = +5.0 V ±5%,
Vss = Avss = 0 v, VAREF = Voo - 0.5 V to Voo
limits
Parameter
Symbol
Min
Resolution
Typ
pA
10
VOOOR = 2.0 V
Ceramic
resonator:
when VOO
greater than
4.5 V
Unit
Test
Conditions
Bits
8
Absolute
accuracy
0.1
Max
±1.5 LSB
Conversion
time
tCONV
Sampling
time
tSAMP
Analog input
voltage
VI AN
Analog input
impedance
RAN
VAREF current
IAREF
9
tCyc· Voo - 0.5
::s VAREF::S VOO
tCyc·
Avss
VAREF
Mo
1000
0.4
V
2
mA
2
• tCYC = (DIVSEL = 1)
fcc
Data Retention Timing
I
J
Voo ---t--lJ\
STOP
I· '
Mode
Data
"-Iloperaling
Mode
HALT
• 'I
Rete::O:o:Ode_l'Ir --''----:---
STOP
'SRS=--!
~
Instruction
RESET
Mode
Execution
/
--~------------~
--to
r'I
~
'os
~
83-002636A
Oscillator Characteristics
TA = -10 to +70·C, VOO =2.7 to 6.0 V, DIVSEL = 1
limits
Test
Conditions
Oscillation
Configuration
Parameter
Min
Typ
Max
Unit
Ceramic
See figure 3
Oscillation frequency (fcel
390
500
510
kHz
VOO = 4.5 to 6.0 V
390
500
510
kHz
VOO = 4.0 to 6.0 V
390
500
510
kHz
Voo = 3.0 to 6.0 V
DlVSEL = 0
390
400
410
kHz
VOO = 2.7 to 6.0 V
DlVSEL = 0
External clock
See figure 3
Stabilization time
20
ms
Voo greater than 4.5 V
CL 1 input frequency
10
510
kHz
Voo = 4.5 to 6.0 V
10
210
kHz
1.0
50
ps
1.0
50
ps
CL 1 input high, low level duration (tcH.tcLl
3-72
Voo = 4.5 to 6.0 V
t-IEC
pPD7533/75CG33E
Timing Waveforms
AC Timing Measuring Points (Except CLf)
0.7 VOO
0.3 VOO
.>
Measuring Points
Serial Transfer Timing
~ 0.7 Voo
---.. 0.3 Voo
Clock Timing
SI---+---(I
1+------1IfC----.,----.J
so
Cl1
Output Data
>C
------'
83-002640A
Interrupt Input Timing
EVENT Timing
INTO
RESET Input Timing
83-002639A
RESET
3-73
II
ttiEC
pPD7533n5CG33E
Functional Description
Standby Control
System Clock Generator
The HALT F/F and the STOP F/F; comprise the control
circuitry for standby mode (figure 2). The STOP F/F is
set by the STOP instruction. When the STOP F/F is set
the ceramic oscillator stops. The rising edge of th~
RESET input resets the STOP F/F.
The ceramic 0s,cillator circuit generates the system
clock for th&pPD7533. Figure 2 shows that the oscillator
circuit for the pPD7533 includes a ceramic oscillator
two divide~by-two circuits, the DIVSEL input, and
con1rol circuitry for the standby modes, HALT and
STOP.
Figure 3 shows that the ceramic oscillator requires that
a ceramic resonator be connected to the CL 1 and CL2
pins. An external clock can also be input at CL 1. In this
case, th~osdl!ator operates as an inverted buffer.
Figure 2 shows that the output frequency from the
ceramic oscillator cOnnects either directly to the clock
sele~tor or via a divide-by-two circuit. The selector is
controlled QY the DIVSEL line. If DIVSEL is low the
divide-by-two frequency is selected. This opti~n is
used during a low power operating mode. If DIVSEL is
high, then the direct frequency is chosen. The output
of the selector is used as system clock (CL), and is also
divided by two to supply the CPU clock (If».
The HALT instruction sets the HALT F/F and inhibits
the input of the half-frequency divider which generates
the CPU clock. As a result, only the CPU clock is
stopped in HALT mode. The RELEA~E signal resets
~he HALT F/F. RELEASE becomes active when any
mterrupt request flag isset, or at the falling edge ofthe
.RESET input.
While RESET is active, the HALT F/F is set and the
chip goes into the HALT mode. At.a powei'-~n Reset,
the ceramic oscillation is driven when the RESET input
signal becomes high.
Figure 3.
Clock Driver Configuration
30pF
..-----i 11---...-....
CL 1
Table 1 shows how DIVSEL selects. the system and
CPU clocks, and machine cycle timing.
Table 1.
DIVSEL
Clock Selection
System Clock
·ICll
CMOS
Inverter
1--+-....
CL2
CL2
CPU Clock
low
200 kHz
11/11
100 kHz
High
400 kHz
200 kHz
Machine Cycle
lOpS
5ps
83-o02644A
Figure 2. System Clock Generator
: I - - - - - - l c - r - - - STOP Instruction
1---+-- ,HALT Instruction
4--RESET
rl----4---
Standby Release
........ r - - - RESET
L..f---------RESET
'--
J
CLI
Ceramic
Oscillator
CL2
1---4>CPU
'-----------+ CL To Timer/Event Counter
DIVSEL 0 - - - - - - - - - - - - - - 1
83-0026438
3-74
ttt{EC
pPD7533/75CG33E
It takes a short period of time for the osci Ilator output to
become stable. To prevent errors due to an unstable
clock, the HALT F/F is set to inhibit the CPU clock
while the RESET input is high. Therefore,. the highlevel pulse width for the RESET input should be wide
enough to cover the required time for the ceramic
resonator oscillation to stabilize.
Figure 5.
Format of Clock Mode Register
I CM. I CM, I CM, I CM.
I
I
CM,
CM,
CM.
• • •
• • ,
• ,
Clock Control
Figure 4 shows that the clock controller contains a
4-bit clock mode register (CMO-CM3), prescalers 1-3,
and multiplexers. The clock controller selects the
clock sources and prescalers, and supplies the count
pulses (CP) to the timer/event counter. The clock
sources are the system clock generator output (Cl) or
the EVENT pulse.
-
0
EVENT
,
1
EVENT
,
0
0
CLxli
0
1
EVENT
0
CL
1
CM.
Figure 5 shows the format of the clock mode register.
CL x 2!s
EVENT x
0
,
, ,
,
,
The OP 12 or OPl (l = 12) instruction sets codes in the
clock mode register. CM3 designates the output of the
timer-out signals. If CM3 = 1, the output of the timerout F/F (TOUT) is available at the PTOUT (P21) pin.
CP Count Pulse
i4
xi
xi
EVENT
Timer~out
F/F
0
PTOUT inhibited
1
PTOUT output enabled
83-002646A
Figure 4.
Clock Controller Block Diagram
Internal Bus
+----OP, OPL Instruction Execution
Timer/Event Counter _ _ _....J
CL
EVENT [POoJINTO]
O-------1~~--+1=$$$~[)
~~~~:>-
r
____
Timer/Event Counter
CP
83-0026456
3-75
t-IEC
pPD7533n5CG33E
Timer/Event Counter
Event Counter Operation
Figure 6 shows the timer/event counter has an 8-bit
count register, 8-bit modulo register, an 8-bit comparator, and a timer-out flip flop.
To use the timer/event counter as an !lvent counter,
input the external event pulse into the POa pin, and
select POa' as the count pulse (CP) for the clock
controiler. Th'e count register counts the external event
pulses input at the POa pin, either as they are, or
frequency divided.
Timer Operation
After the TAMMOD instruction sets a count value in the
modulo register and the TIMER instruction clears the
contents of the count register, the timer starts counting
count pulses (CP). If an external clock is used, the
count pulses are synchronized with the rising edge of
CL 1 or the POa input.
When the value of the modulo register equals the value
of the count register, the comparator generates a
coincidence signal (INTT) to set an interrupt request
flag. Then it clears the count register to repeat the
counting. In this manner, the timer functions as an
interval timer whose interval is set by the modulo
register.
As a result, the timer/event counter operates as an
event counter that generates interrupts after observing
the number of counts (events) specified by the modulo
register. The TCNTAM instruction can read the current
count at any time.
Set the modulo register with the number of count
pulses minus one. If set to 0, no counting will occur
because the counter register is held at 0 (both the
detection of coincidence and zero-clearing are simultaneously madej.
Regardless of. any instructions, the count pulses are
always input into the count register, updating the
count value. If the contents of the count register are
equal to those of the modulo register, the INTT request
flag is then set. For this reason, inhibit INTT interrupts
when not using the timer.
Figure 6.
Block Diagram of Timer/Event Counter
I
J
TAMMOD
8
Instruction Execution
TCNTAM
Instruction
Execution
I
I
8-Blt Modulo Reg.
8
8
I
8·Bi. Compara'or
J
INTT
i8
CP -
{
Count Hold
Circuit for
TCNTAM Execution
'I
I
-:
I
a·BUCoun' Reg.
CLR
I
_CLR
~
TlmoroutF/F
I
~ 1--+ Serial Interface
TOUT
and Port 2
T
TImer Reset
Instruction Execution
83-002647B
3-76
NEe
pPD7S33nSCG33E
The end of a 1-byte transfer can be confirmed by
testing the INTS RQF with the SKI instruction instead
of interrupt processing.
Serial Interface
As figure 7 shows, the serial interface includes an 8-bit
shift register, a 4-bit shift mode register, and a 3-bit
counter.
The following three types of serial clock sources are
available: system clock f/J, external clock (SCK input),
and timer-out F/F output signal (TOUT). Bits SM2-SMO
of the shift mode register select the clock source.
The serial clock controls serial data 1/0. At the falling
edge of the serial clock (SCK), the SO line outputs the
most significant bit (7) of the shift register. The
contents of the shift register are shifted by one bit atthe
rising edge of the next serial clock (n -0 n+1). At the
same time, the data on the SI line is loaded into the
least significant bit (0) of the shift register.
If the system clock f/J is chosen, execute the SIO
instruction to supply the clock to the serial interface,
controlling the input/output of serial data whilef/J is
output from the SCK pin.
After eight f/J pulses, the clock is automatically discontinued by holding the SCK output at a high level.
Therefore, the input/output of serial data automatically
stops after each byte has been transferred. Consequently, the software does not need to control the
serial clock and the transfer rate is determined by the
system clock frequency ..
The 3-bit counter (octal counter) counts up the serial
clocks and generates an internal interrupt signallNTS
at every count of 8 clocks (atthe end of a 1-byte serial
data transfer). It then sets the interrupt request flag
(INTO/S RQF). The TAMSIO instruction sets data in
the shift register during the transmission of serial data,
then starts transmission. At the end ofthe transmission
of each byte (8 bits) an internal interrupt (INTS) is
generated.
In this mode, after six machine cycles from the execution of the SIO, the TSIOAM instruction can read out
the received data from the shift register or can write in
the next transmit data.
The SIO instruction also starts the reception of serial
data. The. received data is taken from the shift register
by executing the TSIOAM instruction after an interrupt
(INTS) is generated by the reception of one. byte of
data.
.
Figure 7.
Figure 8 shows the shift mode register format.
Serial Interface Block Diagram
/
I
Internal Bus
A
IP,IPL~_
1
P03/S1
LSB I
I
I
I
I
I
-OP,OPL'
I MSB
I
I
l-- I
Shift Mode Register
!
1
~
-1>0-
-L
~
3·bllCNT
--
l
.,.".
PDoIINTO/EYENT
8-blt Shift Register
I
I
8 -TAMSIO·
SM3
.......
.......
0--
TSIOAM*_ 8
I
r-t>
P02/SI
4
TOUT
INTO/EVENT
r--R
.n*Instructlon Execulion
INTS
RS F/F
Q
S
•
SIO'
'--83~26748B
3-77
-=~
ftiEC
pPD7533/75CG33E
Figure 8.
Format of Shift Mode Register
SM z
SM 1
SMO
POs/SI
POz/SO
a
0
0
Port input
Port input
0
Serial Operation
Port input
Stops
Outputs ¢ continuously
0
Outputs TOUT continuously
0
0
SI input
SO output
0
Bit SM3 selects the interrupt source in the following
manner:
SM3
Interrupt Source
o
INTS
INTO
1
If the external clock (SCK input) is selected, the serial
clocks are input from SCK. When the eighth external
serial clock is input, an internal interrupt (INTS) is
generated, signalling the end of a 1-byte data transfer.
Since the serial clocks are not internally inhibited, the
external clock must hold the signal high after eight
clocks. The external serial clock determines the transfer
rate. The serial interface can be operated from DC to
the maximum rate in the electrical specifications.
If TOUT is selected, the half-frequency divided coincidence signal of the timer/event counter is the serial
clock. This serial clock controls the input/output of the
serial data and is output from the SCK pin.
3-78
SCK input
Operates with external clock
SCK output (¢ x 8)
Operates with
SCK output (TOUT)
Operates with TOUT
¢
The count pulse supplied to the timer/event counter
and the value set in the modulo register determine the
transfer rate. The end of a 1-byte data transfer is
signalled by INTS. TOUT is not inhibited automatically,
therefore the program should stop TOUT at intervals of
16.
To use the external clock or the TOUT signal, execute
the SIO, TAMSIO or TSIOAM instructions while the
serial clock (SCK) is held high. Operation cannot be
guaranteed if these intructions are executed over the
rising or falling edge of SCK, or at the low level.
In a system that does not require serial data transfer,
the 8-bit shift register can be ued as a register with the
serial operation stopped. The TSIOAM or TAMSIO
instruction can read or write data.
NEe
pPD7533/75CG33E
Analog to Digital Converter
Figure 10.
ThepPD7533 integrates a 4-channeI8-bit AID converter
with separate positive reference and ground from the
device power supply. Figure 9 shows that the AID
converter includes an AID converter mode register,
successive approximation (SA) register, and end of
conversion (EOC) control circuitry.
I
ADS
I
AID Conversion Mode Register Format
X
I ANI1 I ANlo
L
AID Converter Mode Register
The AID converter mode register is a 4-bit internal port
that controls the AID circuitry. The lower two bits,
ANIO and ANI1, select which analog signal (ANO-AN3)
is input to the AID converter. The most significant bit,
ADS, initiates the AID conversion. If ADS is set to a
logic1, the analog signal selected by ANI1 and ANIO is
converted to 8-bit digital data. Upon completion of the
data conversion, ADS is cleared to O.
Analog Input Selection
0
0
ANO
0
1
AN1
1
0
AN2
1
1
AN3
AID Conversion Start
1
Initiates AID Conversion
0
AID Conversion Completed
II
X = Do Not Care
83-002650A
Figure 10 shows the format for the AID conversion
mode register.
Figure 9.
AID Converter Siock Diagram
OPOAW
OPL"
ADM Register
[L~AH[
ADS
r-
r--
J
3
ANI1
ANIO
I
AID Start
:
Control
IPOtW
IPl*
[ EOC
Circuil
[L~AH[
I
I
ANO
High
~
Mux
AN,
SA
Register
~-~.
AN3
IPJ
IPL"
~
..
ID
E
~
[L~9H[
Low
IPJ
I
Analog Voltage Selector
VAREF
R/2
11 1
R
R
1 1 'I ""."~,
R
I
IPL·
[L
~8H[
R/2
~
AVss
"'Instruction Execution
83-002649A
3-79
NEe
pPD7S33nSCG33E
Successive Approximation [SA]
Reading Converted Data
The 8-bit data converted from the analog signal using
the successive approximation method is stored in the
SA register. When ADS is set to a logic 1, the contents
of the SA register are undetermined. The SA register is
set to 7FH after a reset.
Internal port 9 specifies the upper four bits of the SA
register. Therefore, execute an IP 9 or IPL (L = 9)
instruction to read the data in the accumulator.
End of Conversion [EOC] Flag
The EOG flag specifies the completion of an AID
conversion. When ADS is set to 1, the EOG flag is set to
a logic 0 and an AID conversion starts. When the 8-bit
AID conversion is complete, the EOG flag is set to a
logic 1. The EOG flag resides in bit 2 of internal Port A.
The IP OAH or IPL instruction can read the contents of
Port A when the L register is set to OAH. The contents of
Port A (other than bit 2) will be read as a logic O. The
EOG flag is set to 1 after a reset.
AID Converter Operation
An OP OAH or OPL instruction selects one of four
analog signals and starts a conversion when the L
register is set to OAH. The lower two bits of the
accumulator specify which analog signal will be converted. Bit 3 of the accumulator sets to 1 to initiate the
AID conversion. The AID conversion requires 9
machine cycles for completion. When the conversion
is complete, the EOG flag is set.
Internal port 8 specifies the lower four bits of the SA
register. Therefore, execute an IP 8 or IPL (L = 8)
instruction to read the data in the accumulator. Do not
read the SA register until EOG is set to 1.
Figure 12 shows the configuration forthe AID converter
reference voltage during standby mode.
Interrupt Function
The tJPD7533 provides one external interrupt and two
types of internal interrupts. The POo pin is used as the
input pin for external interrupt INTO. INTO shares
priority and vectored addresses with internal interrupt
INTS. Figure 13 shows the interrupt controller block
diagram.
Figure 12.
Configuration of VAREF for
Standby Mode Operation
pP07533
5V ____~VD~D+-~_____
P63
....
....
In order to assure an accurate data conversion, do not
execute an output instruction when EOG is a logic O.
VAREF
Figure 11 shows how the analog input voltage corresponds to the converted digital data.
I
Figure 11.
AID Conversion Graph
: Resistor
I String
I
FFH
~
c
!
AVSS
FEH
FDH
'm
Q
~
~
03H
o
U
02H
01H
VAREF
High Level
VAREF approximately = Voo
Low Level
or High Impedance
V AREF approximately = 0 V
83-0026S2A
Analog Input Voltage
3-80
P63 Output
t\fEC
Figure 13.
pPD7533/75CG33E
Interrupt Controller Block Diagram
SM3
INTS
INTO/PO. - ;_ _
·SIO
--.:JLr---------'
Generator
INTT
--------1
·TIMER - - - - - - - - - - - - '
*Instruction Execution
L~====:t:::==[>--------- Standby
Release
83-0026538
Standby Function
The tJPD7533 has two types of standby modes (STOP
and HALT) to minimize power consumption during a
prog ram standby state. STOP mode is set by the STOP
instruction and HALT mode by the HALT instruction.
When standby mode is set, program execution is
stopped, and the contents of all internal registers and
data memory are held. However, it is possible to
operate the shift register and the timer/event counter.
An interrupt or reset releases standby mode. Since an
interrupt releases standby mode, neither STOP nor
HALT modes can be set if an interrupt request flag is
set. Therefore, when setting standby mode when there
is a possibility of a request flag being set, first reset the
interrupt request flag by processing the interrupt in
advance or by executing the SKI instruction.
The major difference in the two modes is that crystal
oscillation (el) stops in STOP mode but does not stop
in HALT mode.
In STOP mode, it is possible to go into data retention
mode by lowering the power supply voltage. During
data retention mode, all operation stops and only the
data RAM stays intact.
Table 2 shows the differences between STOP and
HALT modes.
Table 2.
Differences Between STOP and HAL T Modes
Mode
Operation
STOP Mode
HALT Mode
Ceramic Oscillation
X (1)
0(2)
1/2 Ceramic Oscillation
X (1)
X (1)
CPU
X (1)
X (1)
Serial 110
Timer IEvent Counter
AID Converter
Release of Standby
Mode
(3)
(2)
X (1)
0(2)
X (1)
0(2)
RESET
INTOIS ROF
NTIROF
RESET Input
Note:
(1) Not possible
(2) Possible
(3) Possible depending on clock source selected
3-81
fttIEC
pPD7533nSCG33E
$TOP Mode
In STOP mode, ceramic oscillation and the halffrequency divider stop. The CPU stops and the operations requiring the system clock (CL, 0) stop.
Release from STOP mode is with the RESET input
only. All other functions cease to operate.
In order to minimize power consumption, the current
flowing through the resistor ladder oftheA/D converter
must be minimized. To minimize power consumption,
turn off the power to theVAREF pin.
Note that ceramic oscillation stops and disables the
system clock during STOP mode by bringing CL2 to
ground. Therefore, if the external Clock is connected to
CL 1 and a STOP instruction is executed, the CPU will
enter HALT mode instead.
HALT Mode
In HALT mode, only the half-frequency divider circuit
stops in the clock generator circuit (CL operates, ¢
stops). Therefore, the CPU and .the operation of the
serial interface (when using ¢ as a serial clock) stop.
However, since the clock control circuit is still in
operation, it can select the CL signal from the clock
generator or the EVENT input and supply the count
pulse (CP) to the timer/event counter.
Consequently, the timer/event counter can be operated
in HALT mode. The serial interface operates if a serial
clock other than ¢ (such as the external clock, TOUT
signal) is selected. The HALT mode is released by the
RESET input or an interrupt, even if the interrupt is
disabled.
Release from Standby Mode by Interrupt
If the interrupt master enabfeF/F is disabled, the·
instruction following the STOP/HALT instruction is
executed regardless of the state of the interrupt enable
register (interrupt routine is not initiated). In this case,
the interrupt request flag is left set. If necessary, it can
be reset by the SKI instruction.
After any release, operation resumes with the same
register contents as before standby mode.
Release From Standby Mode with RESET
Both STOP and HALT modes are released unconditionally by the RESET input. Figure 14 shows the
release timing.
If the device is reset during STOP mode, the low to high
transition of the RESET pin will take the processor
from STOP mode to HALT mode. When RESET goes
high to low, the HALT mode is abandoned, and after a
normal reset operation, the PC is initialized to O. Only
the data memory will stay intact during the HALT
mode, but all registers become undefined.
If the device is reset during HALT mode, the high to low
transition of RESET will release the device from standby
mode. After a normal reset operation, the PC is
initialized to O. Only the data memory will stay intact
during the HALT mode, but all registers become
undefined.
Figure 15 shows the release from HALT mode by
RESET.
Release from STOP mode by RESET
Figure 14.
R~:~ ~~TO~P ~~
___
The standby mode is released when the interrupt
request flag is set by an interrupt source, whether
interrupts are disabled orenabled. However, the operations after release differ in each case.
__
______
~~I_____
~ HALTMode.1
STOP
Mod.
.
~
Reset Operation
pc=o
Clock Oscillation
Begins' .
83-Q02654A
If the interrupt master enable F/F is enabled, and if the
interrupt is enabled, the corresponding interrupt routine
is initiated after execution of one instruction after the
STOP/HALT instruction. Then, the result flag is reset.
IHhe corresponding bit of the interrupt enable register
has been reset, execution of instructions starts after
the STOP/HALT instruction, and the interrupt routine
is not initiated. In this case, the request flag .for release
remains set. If necessary, reset the request flag with the
SKI instruction.
3-82
Figure 15.
Release from HAL T Mode by RESET
RESET~
- - - H A L T Mod'!
.1 .. •
Raset Operation'
PC=o
83-002655A
t\'EC
pPD7S33nSCG33E
Reset Function
Power-on Reset Circuit
The pPD7533 is reset and initialized by the input of the
RESET signal (active high).
Figure 16 shows an example of the simplest power-on
reset circuit using a resistor and a capacitor.
A RESET causes the CPU to initialize in the following
manner:
Figure 16.
• Program counter (PC) is cleared to 0
• Skip flags (SK1, SKO) and program status word
(PSW) are reset to 0
• Timer/event counter:
- Count register = OOH
- Modulo register = FFH
- Timer-out F/F = 0
• Clock control circuitry:
- Clock mode register (CM3-CMO) = 0
CL
- CP = 256
•
•
•
•
•
Power-on Reset Circuit
PPD7533
+-----+1 RESET
,,7
83-002656A
- Timer-out FF signal not output to PTOUT
- Prescalers 1-3 = 0
Shift Mode Register (SM3-SMO) is cleared to O.
- Shift operation stops
- Port 0 is in input mode (high impedance)
- INTS is selected interrupt source of INTO/S
A/D converter circuit:
- ADM register is set to 0
- ANO is selected
- SA register is set to 7FH
- EOC flag is set to logic 1
Interrupt control circuit:
- Interrupt request flags = 0
- Interrupt master enable F/F = 0
- Interrupt enable register = 0
- A" pending interrupts are cancelled
- A" interrupts are disabled
A" Port 2-7 output buffers are turned off
Contents of data memory and the following registers
are undefined:
- Stack pointer (SP)
- Accumulator (A)
- Carry flag (C)
- General purpose registers (H,L)
- A" port output latches
- Shift register
3-83
II
pPD7533/75CG33E
3-84
NEe
ftt{EC
pPD7537A/38Af75CG38E
4-Bit, Single-Chip
CMOS Microcomputers
With Flp® Driver
NEe Electronics Inc.
Description
o
The I/PD7537A, I/PD7538A, and I/PD75CG38E are 4-bit;
single-chip CMOS microcomputers with the I/PD7500
architecture and FIP direct-drive capability.
o
o
o
o
o
o
The I/PD7537A contains a 2048 x 8-bit ROM and a
128 x 4-bit RAM. The I/PD7538A contains a 4096 x 8-bit
ROM and a 160 x 4-bit RAM.
The I/PD7537A/38A contains two 4-bit general purpose
registers located outside RAM. The subroutine stack is
implemented in RAM for greater depth and flexibility.
The I/PD7537A/38A typically executes 67 instructions
with a 51/s instruction cycle time.
The I/PD7537A/38A has one external and two internal
edge-triggered hardware-vectored interrupts. An 8-bit
timer/event counter and an 8-bit serial interface help to
reduce software requirements.
Thirty-one high-voltage lines are organized into the 3-bit
output port 2, the 4-bit output ports 3, 8, and 9, and the 4bit I/O ports 4, 5, 10, and 11.
The low power consumption CMOS process allows the
use of a power supply between 2.7V and 6.0V. Current
consumption is less than 3.0 mA maximum, and can be
further reduced in the halt and stop power-down modes.
The I/PD75CG38E is a piggyback EPROM version of
the I/PD7537A/38A. Pin-compatible and functioncompatible with the final, masked versions of the
I/PD7537A/38A, the I/PD75CG38E is used for prototyping and for aiding in program development.
o
o
o
o
Can select either a pull-down resistor or open-drain
output per 31 high-voltage outputs (mask optional)
Vectored interrupts: one external, two internal
8-bit timer/event counter
8-bit serial interface
Standby function (HALT, STOP)
Data retention mode
Zero-cross detector on POolINTO input (mask
optional)
System clock (j.IPD7537 A/7538A/75CG38E): on-chip
ceramic oscillator
CMOS technology
Low power consumption
Single power supply
-!-,PD7537 A/7538A: 2.7 V to 6.0 V
-!-,PD75CG38E: 5.0 V ± 10%
Ordering Information
Part
Number
Package Type
Max Frequency
01 Operation
I'PD7537AC 138AC
42-pin plastic DIP
I'PD7537ACU/38ACU
42-pin plastic shrink DIP
610 kHz
610 kHz
I'PD75CG38E
42-pin ceramic piggyback DIP
500kHz
Pin Configurations
!-,PD7537A/38A 42-Pin Plastic DIP or Shrink DIP
RESET
CLI
CL2
VPRE
Features
o
o
o
o
o
o
o
VLOAD
P53
67 instructions
Instruction cycle:
-Internal clock: 3.3 I/s/600 kHz, 5 V
- External clock: 3.3!-,s/600 kHz, 5 V
Upwardly compatible with the !-,PD7500 series
product family
4,096 x 8-bit ROM (j.IPD7538A/75CG38E)
2,048 x 8-bit ROM (j.IPD7537A)
160 x 4-bit RAM (j.IPD7538A/75CG38E)
128 x 4-bit RAM (j.IPD7537 A)
351/0 lines
31 high-voltage output lines that can directly drive a
vacuum fluorescent diplay (FIP)
FIP is the registered trademark for NEC's fluorescent indicator panel (vacuum
fluorescent display).
50277 (NECEL·510)
P52
P5,
P50
49-0Q1170A
3-85
II
NEe
~PD7537A/38A/75CG38E
jAPD75CG38E EPROM
Pin Configurations (cont)
No.
jAPD75CG38E 42·Pin Ceramic Piggyback DIP
RESET
CLl
CL2
NC
PO,/SCK
PSD
10-17
Data read input from the EPROM
Connection to EPROM GND pin
P30
P3,
20
CE
Chip enable output
P3,
22
Vss
Supplies EPROM OE signal
P33
23
Program counter MSB output
A30 7 220VSS
P4D
P4,
All
26
VOO
Supplies Vee to the EPROM
A,O 8 2'OA'D
I
1A,o 9200CE
P4,
27
MSEL
Mode select input
28
Voo
Supplies high-level signal to MSEL
I
I
I
I
I
I
P21/PTOUT
P10a
I
I
AD010 '9017
P102
I
I
10011 '8016
P1O,
1,~)12
17(~15
I
I
Pl00
1,0'3 '601,
17
P112
P02/SO
P43
PBo
P8,
P8,
P9D
EPROM: 2732
P9,
P9,
Voo
Note:
(1) Output drivers on ports 2-5 and 8-11 are mask-optional. Accordingly,
either an open-drain output or a pull-down resistor can be selected.
VLOAD is suitable for an output driver with a pull·down resistor.
P83
vSSy:.s9 13
P111
P110
(2) Ports 2-5 are suitable as FIP segment signal outputs, and ports 8-11
are suitable for FIP digit signal outputs.
P93
49-001171A
Pin Identification
Symbol
(3) Ports 8-11 have high-current drive capability and can drive an LED
directly.
Pin Functions, J.lPD7 53 7 A 138A and
J.lPD75CG38E
jAPD7537A138A and jAPD75CG38E
No.
EPROM address output
Vss
AoO 6 230A"
P23
P2,
No connection
3-10,21,24, 25 Ao-Al0
14
A7(P-fs9 Voo
lis 0I 4 250I A•
A505 240A9
P5,
Connection to pin 21 of I'PD75CG38E
11-13,15-19
NC 02 270MSEL
P53
P5,
Function
P03/S1
Voo 0 1 280 voo
NC
P113
VOO
Vss
POD/INTO
VpRE
Symbol
Function
RESET
RESET
Reset input
2,3
CL1, CL2
Clock pins
4
VpRE
High-voltage output predriver supply
CL1,CL2
5
VLOAO
High-voltage output option resistor
supply 7537AI 38A only
Connection to the ceramic oscillator. CL1 is the external
clock input.
6-9
P50-P53
High-voltage I I a port 5
10,12
P23, P22
P21 I PTOUT
High-voltage output port 2, and output
port from timer I event counter (PTOUT)
13-16
Pl00-Pl03
High-current, high-voltage I 10 port 10
17-20
Pllo-Pl13
High-voltage, high-current I I 0 port 11
21
VOO
Positive power supply
22-25
P90-P93
High-voltage, high-current output port 9
26-29
P80-P83
High-voltage, high-current output port 8
30-33
P40-P43
High-voltage I I 0 port 4
34-37
P30-P33
High-voltage output port 3
38
39
40
41
P03/S1
P01/SCK
POol INTO
4-bit input of port 0; or serial data input
(SI), serial data output (SO), serial clock
I 10 (SCK), and external interrupt input
(INTO) or zero-cross detect input (POo).
42
Vss
Ground
3-86
P02/~
System reset (input).
VPRE
Negative power supply for high-voltage output pred rivers (for ports 2-5, 8-11).
Negative power supply for optional load resistors (pulldown resistors) of high-voltage output drivers (for ports
2-5,8-11). This pin is only on the jAPD7537A138A.
P53-P50
4-bit, high-voltage 1/0 port 5.
P21-P23
3-bit, high-voltage output port 2.
~EC
~PD7537A138A175CG38E
PTOUT
Pin Functions,,,,PD75CG38E EPROM
Output port for the timer/event counter.
P103-P1OO
4-bit, high-voltage, high-current I/O port 10. Capable of
bit set/reset by SPBL/RPBL instructions.
P113-P110
. 4-bit, high-voltage, high-current I/O port 11. Capable of
bit set/reset by SPBL/RPBL instructions.
Ao-A10
Output the low-order 11 bits of the program counter
(PCO-PC10). Used as EPROM address signals.
VDD
Positive power supply.
P93-P90
4-bit, high-voltage, high-current output port 9. Capable
of bit set/reset by SPBL/RPBL instructions.
P83-PSo
A11
When MSEL is high level, A11 outputs high-level signals.
When MSEL is open, A11 outputs the MSB of the PC,
which is used as the most signfficant address signal of
the 4-Kbyte EPROM 2732.
10-17
4-bit, high-voltage, high-current output port 8. Capable
of bit set/reset by SPBLlRPBL instructions.
Input data read from the EPROM.
CE
P43-P40
4-bit, high-voltage I/O port 4.
Outputs the chip enable signal to the EPROM.
VDD
P33-P30
4-bit, high-voltage output port 3.
POO-P03
4-bit input port O.
tection input.
MSEL
Changes the addressing area of the external EPROM
and the on-chip RAM (with a pull-down resistor). Connecting ajumper between socket pins 27 (MSEL) and 28
(Voo) selects ",PD7537 A mode (2-Kbyte EPROM, 128 x 4bit RAM). Leaving MSEL open selects ",PD7538A mode
(4-Kbyte EPROM, 160 x 4-bit RAM) .
POo is also used as the zero-cross de-
SI
Serial data input.
SO
Pin 26 is electrically equivalent to the bottom Voo pin
and is used to supply Vee to the EPROM. Pin 28 is electrically equivalent to the bottom Voo pin and is used to
supply the high level signal to MSEL. Pin 1 connects to
pin 21 of ",PD75CG38E.
Vss
Pin 14 is electrically equivalent to the bottom Vss pin in
voltage, and is connected to the EPROM GND pin. Pin
22 is electrically equivalent to the bottom Vss pin and is
used to supply the OE signal to the EPROM.
Serial data output.
Instruction Sat
SCK
Refer to the User's Manual. The instruction set appears
also as subset A4 in the data sheet for the ",PD7500 series of single-chip microcomputers.
Serial I/O clock.
INTO
External interrupt input.
Vss
Ground.
3-87
II
fttfEC
~PD7537A/38A/75CG38E
Block Diagram,j.tPD7537 AI38A
POOflNTO
P30-P33
Program'Memory
P50,-P53
2048 x 8 Bits (,uPD7537A)
4096 x 8 Bits (,uPD7538A)
Instruction
Decoder
PIIo- P83
Cl
P90- P93
Pl00-P103
Cll
CL2
i t
Vee
Vss
P110-P113
RESET
49-0010678
3-88
NEe
~PD7537A/38A/75CG38E
Block Diagram, J.tPD75CG38E
POa/INTO
P01/SCK
P03/SI
POe-P03
P2l~P23
.
PTOUT/P21
P30-P33
L-_ _ _ _
---'~DP7C
Instruction
Buffer
Instruction
Decoder
(I>
CL·
Data Memory
160x4Bits
P10e-P103
Cll
Cl2
h h t
Voo Vee Vss Vss RESET
49-0010688
Absolute Maximum Ratings
TA=25°C
Power supply voltage. Voo
-0.3Vto +7V
Power supply voltage. VLOAO (flPD7537A I 38A)
VOO-40VtoVoO +0.3V
Power supply voltage. VPRE
VOO-12 Vto Voo +0.3 V
Input voltage. except ports 4.5.10.11. VIN
Input voltage. ports 4.5.10.11. VIN
Output voltage. except ports 2-5. 8-11. Vo
Output voltage. ports 2-5. 8-11. Vo
Output current high. per pin: pat. P02; IOH
-0.3VtoVoO +0.3V
-0.3 Vto Voo +0.3 V
Voo-40VtoVoo +0.3V
Capacitance
TA=25°C. Voo=0V,f=1.0MHz, Unmeasured pins returned toGND
Limits
-15 rnA
-30 rnA
Output current high. ports 3. 4. 8. 9 total. IOH
- 55 rnA
Output current high. ports 2. 5. 10.11 total. IOH
- 55 rnA
Output current low. per pin. IOl
15 rnA
Output current low. all ports total. IOl
15 rnA
Storage temperature. TSTG
lute Maximum Ratings could cause permanent damage. The device is
not meant to be operated under conditions outside the limits described in the operational sections of the specification. Exposure to
absolute maximum rating conditions for extended periods may affect
device reliability.
VOO-40VtoVoO +0.3V
Output current high. per pin: ports 2-5.8-11; IOH
Operating temperature. TOPT
Comment: Exposing the device to stresses above those listed in Abso-
-10°C to +70°C
Parameter
Symbol
Input
capacitance
Output
.
capacitance
Co
1/0
capacitance
CIO
MIn
Typ
lu
Unit
15
pF
relt
CondItions
15
pF
Port 2
35
pF
Ports 3,8,9
15
pF
POt. P02
35
pF
Ports 4, 5,10. 11
- 65°C to +150°C
;3-89
ttlEC
~PD7537A138A175CG38E
DC Characteristics
",PD7537A13BA
TA= -10"Cto +70"C, voo,:" +2.7Vto6.0V
Umlts
Parameter
Input voHage,
low
Input wltage,
high
Output voltage,
low
Output voHage,
high
I,mbol
Min
Trp
Unit
Output leakage
current, low
3-90
ILOH1
3
i-iA
Vo = Voo; except
ports 4, 5, 10, 11
ILOH2
80
i-iA
Vo=Voo; ports 4,
5,10,11
0. 3Voo
V
Port 0, RESET
0
0.5
V
CL1
VIl3
Voo-35
0. 3Voo
V
Ports 4, 5, 10, 11
VIH1
0.7Voo
Voo
V
Port 0, RESET
VIH2
Voo-0.5
Voo
V
CL1
VIH3
0. 7Voo
Voo
V
Ports 4, 5, 10, 11;
4.5V~
Mo.k Option
r--t----o InfOut
Type E.
Type D Output with Type A
Input Buffer
PO:z/SO
(Mldcll.LeveI Voltage,
Mlddl.LeveI Current)
Data
Output
Disable---L':':":'J
InlOut
Mlddle·LeveI Voltago input Buffo,
83-003557C
3-103
NEe
pPD7554/54A/64/64A
Program Memory
Arithmetic Logic Unit
The I4PD7554/54A/64/64A has a mask-programmable
ROM with a capacity of 1024 words by 8 bits for program
storage. It is addressed by the program counter. The
reset start address is OOOH. Figure 2 shows the program
memory map.
The arithmetic logic unit (ALU) is a 4-bit arithmetic
circuit that performs operations such as binary addition,
logical operation, increment, decrement, comparison,
and bit processing.
Program Status Word
General.Purpose Registers
Two registers, H(2-bit) and L(4-bit), are provided as
general-purpose registers. Each register can be individually manipulated. The two registers also form pair
register HL; H being the. high register and L being the low
one. The HL register is a data pointer to address data
memory. Figure 3 shows the configuration of the general
purpose registers.
The L register also specifies an I/O port or mode register
when an I/O instruction (IPL or OPL) is executed. It also
specifies the bits of a port when the SPBL or RPBL
instruction is executed.
Data Memory
The data memory is static RAM with a capacity of 64
words by 4 bits. Part of this memory is used as the stack
area. The data memory is also used in 8-bit data processing when paired with the accumulator. Figure 4
shows the data memory map.
Data memory can be addressed directly, with the immediate data from an instruction; indirectly, with the contents of HL (incl uding auto-increment and autodecrement); and indirectly by the contents of the stack
pointer.
You may use any area of the data memory as the stack.
The boundary of the stack is determined by how the
TAMSP instruction initializes the stack pointer. Once the
boundary is set, a call or return instruction automatically
accesses the stack.
When a call instruction is executed, the contents of the
program counter and the program status word (PSW) are
stored to the stack in the sequence shown in figure 5.
When a return instruction is executed, the contents of
the program counter are automatically restored, but the
PSW is not. The contents of data memory can be retained
with a low supply voltage during STOP mode.
Accumulator
The accumulator is a 4-bit register used in arithmetic
operations. The accumulator can process 8-bit data with
paired data addressed by HL. Figure 6 shows the configuration of the accumulator.
3-104
The program status word (PSW) consists of two skip
flags (SKO and SK1), a carry flag (C), and bit 1, which is
always zero. Figure 7 shows the configuration of the
PSw.
The contents of the PSW are stored to the stack when a
call instruction is executed, but are not restored from
the stack by the return instruction.
The skip flags retain the following skip conditions: string
effect by LAlor LHLI instruction, and skip condition
satisfied by an instruction other than a string-effect
instruction. The skip flag is set or reset according to the
instruction executed.
The carry flag is set to 1 if an addition instruction (ACSC)
generates a carry from bit 3 of the ALU. If no carry is
generated, the flag is reset to zero. The SC instruction
sets the carry flag and the RC instruction resets it.
When a RESET is input, the SK1 and SKO flags are
cleared to zero and the contents of the carry flag are
undefined.
I
Figure 2. Program Memory Map
·~I ",m~'
~023)
3FFH
83-002592A
Figure 3. Configuration of General Purpose
Registers
1
0
~
3
0
r-I-""'::"1
~I
NEe
pPD7554/54A/64/64A
Figure 4. Datallemory lIap
This flip-flop also stops the RC oscillator. The STOP
flip-flop is reset by the standby release signal that
becomes active when one of the test requests flags is set
or at the falling edge of the RESET signal. When the
STOP flip-flop is reset, the RC oscillator resumes operation and supplies the system clock.
(0) OOH
84 words x 4 bltl
(83) 3FH L -_ _- - '
83-Q02594A
Figure 5. Call Instruction Storlllle to Stack
Stick Area
0
°10Ipc·l pC
psw·
pc.·pca
pCr-pc.
3
SP·4
SP·3
SP·2
SP·I
8
·BIII 01
Figure 9 shows the system clock generator circuit for the
",PD7564/64A.
psw
o.
10 IIwIY.
83-002595A
Figure tJ. Configuration of the Accumulator
I Ao I Ao I A, I AI IA
I
Figure 7. Configuration of theflrogram Status
lib,.,
3
2
The HALT and STOP instructions and RESET HIGH set
the HALT flip-flop which disables signals from going to
the 1/2 frequency divider that generates the CPU clock.
Only the CPU clock stops in HALT mode. The HALT
flip-flop is reset by the same conditions as the STOP
flip-flop.
0
ISK,lsKoI 0 I CIpsw
83-002597A
System Clock Generator
The system clock generator consists of a ceramic oscillator, a 1/2 frequency divider, standby modes (STOP/
HALT), and control circuit. Figure 8 is a circuit diagram of
the system clock generator.
In the "PD7554/54A, the RC oscillator operates with a
single external resistor connected across CL 1 and CL2
(the capacitor C is incorporated). When the RC oscillator
is not used, external clock pulses can be input by the
CL 1 pin. In this case, the RC oscillator functions as an
inverting buffer. The output from the RC oscillator serves
as the system clock (CL) which is then divided by two
and used as the CPU clock (I/l).
On the "PD7564/64A, the ceramic oscillator operates
with a ceramic resonator connected across CL 1 and
.CL2. The output from the ceramic oscillator is used as
the system clock (CL); iiis divided by two to produce the
CPU clock (I/l).
The standby mode control circuit is made up of a STOP
flip-flop and a HALT flip-flop. The STOP instruction sets
the STOP flip-flop and stops the ceramic oscillation,
thus stopping the supply for all clocks. The STOP flipflop is reset by the RESET signal (high level) and restarts
ceramic oscillation. The supply of each clock resumes
when RESET goes low.
The HALT instruction sets the HALT flip-flop which disables signals from going to the 1/2 frequency divider that
generates the CPU clock. Only the CPU clock stops in
HALT mode. The HALT flip-flop is reset by the HALT
RELEASE signal (activated by setting at least one test
request flag) or the falling edge of RESET, resuming
supply of the CPU clock.
The HALT flip-flop is also set when RESET is active (high
level). At power on reset operation, the rising edge of
RESET starts ceramic oscillation; however, some time is
required to achieve stable oscillation. To prevent the
unstable clock from operating the CPU, the HALT flipflop is set and the CPU clock is stopped while RESET is
high. Accordingly, the high-level width of RESET must be
more than the required stable time for the ceramic
resonator.
The standby mode control circuit is made up of a STOP
flip-flop and a HALT flip-flop. The STOP instruction sets
the STOP flip-flop and stops the system clock supply.
3-105
NEe
"PD7554/54A/64/64A
Figure B. System Clock Gener.tor for PPD7554/54A
STOP F/F
S I----------~ STOP"
'Q
R
HALT"
RESET (High)
Standby R.I••••
L-t----4-C j:=- RESET
CL2
("'-.)'
+(to CPU)
L-_ _ _ _ _ _ _ _ _ _ _ _ _ CL (Syst.m Clock)
·Executlon of Instruction
83-0D25988
Figure 9. System Clock Generator for pPD7564/64A
STOP F/F
Q
SJ.-------~-"t_r-R
STOP"
HALT F/F
Q
CLl
S
I==---~ HALT"
RESET (High)
Standby Ro.....
CL2
""'- \ - - - - RESET ' -
L - 4 - - - - - - - - - - ' " ' - - RElla '....r(To CPU)
' - - - - - - - - - - - - - - - - - CL (System Clock)
·Executlon of Instruction
3-106
NEe
pPD7554/54A/64/64A
Clock Control Circuit
Timer/Event Counter
The clock control circuit consists of a 2-blt clock mode
register (bits CM1 and CM2), prescalers 1, 2, and 3, and
a multiplexer. It takes the output of the system clock
generator (CL) and event pulses (POa). It also selects the
clock source and prescaler according to the setting in
the clock mode register and supplies the timer/event
counter with count pulses. Figure 10 shows the clock
control circuit.
The timer/event counter is a binary 8-bit up-counter
which is incremented each time a count pulse is input.
The TIMER instruction or a RESET signal clears it to
OOH. When an overflow occurs, the counter is reset from
FFH to OOH. Figure 11 shows the inputs and outputs of
the counter.
Table 2 lists the codes set in the clock mode register by
the OPL instruction to specify the count pulse frequency.
The serial interface consist of an 8-bit shift register, a
3-bit shift mode register, and a 3-bit counter. This interface inputs and outputs serial data. Figure 12 is a block
diagram of the interface.
When you set the clock mode register with the OPL
instruction, clear bit 0 of the accumulator (corresponding to bit CMO of the EVAKIT-7500 or "PD7500H during
emulation).
Figure 10.
Serial Interface
Test Control Circuit
The "PD7564/64A has three test sources, as shown in
table 3.
Clock Control Circuit
The test control circuit consists of two test request flags
(lNTT RQF andINTO/S RQF) set by the three test
sources, and a test request flag control circuit that
checks tlJe contents of each test request flag by executing an SKI instruction and resetting the flags.
Test sources INTO and INTS share the request flag
INTO/S RQF. Bit 3 of the shift mode register (SM3)
determines which source is selected. A zero in SM3
selects INTS and a one selects INTO.
CL
Figure 11. Timer/E"ent Counter
CP
".nstrucllon
Execution
83-002600A
Table 2. Selecting the Count Pulse Frequency
CM2
a
a
CM1
Frequency Selected
a
CL/256
a
CL/32
*Instructlon Execution
83·002601A
POo
CL/4
3-107
II
NEe
pPD7554/54A/64/64A
T.ble3. pPD7564/64A.7ilst Sources
Source
FuriCtlon
location
Request Flag
INTT
Overflow In timerl
event counter
Internal
INTTRQF
INTO
Test request signal
from POo pin
External
INTOIS RQF
INTS
Transfer complete
signal from serial
Interface
Internal
INTOIS RQF
The request flag INTT RQF is set when a timer overflow
occurs in the timer event counter. The SKI or TIMER
instructiO!1 resets it.
When SM3 is one, request flag INTOtS RQF is set at the
riSing edge of the Signal input to the POollNTO pin. The
SKI instruction resets the flag. .
The logical sum of the outputs from the test request flags
releases standby mode (STOP1 or HALT mode). The
mode is released when one or both flags are set. Both
flags and SM3 are reset when the RESET signal is input.
After reset, source INTS is selected and signal input to
the INTO pin is inhibited as the initial condition.
Figure 13 is a block diagram of the test control circuit.
Note:
(1) Only I'PD7554/54A.
When SM3 is zero, request flag INTOtS RQF is set when
the INTS signals is generated, indicating the end of an
8-bit serial data transfer. The SKI or SIO instruction
resets the flag.
Figure 12. Seri."nterf.ce Block Oi".,..",
SMa
~#.Wo-~-----+1--------~~
Note:
(1)
+18 the Intemal clock 81gnll (I .••• syst.m clock~
(2) • Instruction execution
(3) SMa and INTO are Input to the te.t control· circuit.
83-0028229
3-108
tt1EC
pPD7554/54A/64/64A
Figure 13. Test Control Circuit Block Diagram
INTT
--+------1
INTS--'-~-
II
Standby
Release
INTD--,.-.._
·Slo--=t_r---------...J
Note:
(1) SMa Is bit 3 of the shift mode register.
(2) * Instruction execution
83-0026238
Standby Modes
The "PD7554/54A/64/64A has two standby modes to
reduce power consumption while the program is in the
wait state. The STOP and HALT instructions set these
modes.
When the program enters a standby mode, program
execution stops and the contents of all registers and
data memory immediately before the program entered
standby mode are retained. The timer and serial interface can operate.
The RESET signal and STANDBY Release signaJ(1) release STOP mode. HALT mode is released when one or
both ofthe test request flags are set, or when the RESET
signal is input. The program cannot enter a standby
mode when a test request is being set, even if the STOP
or HALT command is executed.
If there is some uncertainty about the state of the test
request flags, execute the SKI instruction to reset them
so the program can enter standby mode.
Table 4 compares STOP and HALT modes. The main
difference is that STOP mode stops the system clock and
HALT does not Ceramic oscillation stops during STOP
mode. The power consumed by the ceramic oscillator is
the difference between the two modes. In STOP mode,
data memory can be retained with a lower supply
voltage.
Note:
(1) Standby release signal for I'PD7554/54A only.
Table 4. STOP and HALT Modes
Mode
CL
4»
POo
CPU
Timer
STOP
x
a
x
x
a
a
x
x
/).
RESET input
a
INTTRQF
INTOIS RQF
RESET Input
HALT
Released by
Notes:
(1) 0: operates. x: stops.
/).: operates depending on clock source. "PD7554/54A; If external
clock Is used, STOP instruction will not stop CL. In this case
STOP mode acts as HALT mode.
Power-on Reset Circuit
Figure 14 shows a circuit example of the power-on reset
circuit using a resistor and a capacitor. This is the
simplest reset control circuit. Figure 15 shows the circuit
with a pull-down resistor internally connected to RESET
as a mask option.
3-109
NEe
pPD7554/54A/64/64A
"PD7554/54A/64/64A Applications
Figures 16 and 17 show examples of application circuits
for the ~PD7554/54A/64/64A.
Figure 15. Power-on Reset Circuit with Pull-down
Resistor
VDD
~PD7554184
Table 5 compares the features of the low-end products of
the 7500 series devices.
RESET
Figure 14. Power-on Reset Circuit
VOD
Vss
63-002625A
f--
RESET
r;
83-002624A
T1Ible5. Product Comparison
Item
Instruction
cycle/system
clock (5 V)
"PD7554/54A
"PD7564/64A
"PD7556/56A
RC
4 p.e/
500 kHz
41'81
External
2.S6 p.e/
700 kHz
2.S6 p.S/
700 kHz
500 kHz
3 p.e/
660 kHz
Ceramic
"PD7566/66A
3p.S/
660 kHz
Instruction set
47
47
45
ROM
1024 x S
1024xS
1024 x S
1024xS
RAM
64x4
64x4
64x4
64x4
I/O port total
16 (max)
15
20 (max)
19
PortO
POo-P03
POo-P03
POo-POl
POe-POl
P1o-P13
POl-P03
P80-P&.!
PSalCL2
PSo-P&.!
PSo-P&.!
PSalCL2
PBo-P&.!
Port 1
PortS
Port 9
45
Peo-Pel
P90-P9l
P100-P103
'P10e-P1Oa
P100-P103
P100-P103
P11o-P1.13
P11o-P113
P11o-I>113
P110-Pl13
Timer/Event
counter
S-blt
S-blt
8-blt
S-blt
Serial Interface
S-blt
S-bit
4-channel
4-channel
Proceas
CMOS
CMOS
CMOS
CMOS
Package
2O-pln plastic SOP
2O-pin plastic SOP
24-pin plastiC SOP
24-pin plastiC SOP
2O-pin shrink DIP
2O-pin shrink DIP
24-pin shrink DIP
24-pln shrink DIP
Port 10
Port 11
Comparator
3-110
FIgure 16. Tape Counter Circuit
y
Microcomputer
lor Tape Counter
M••ter
Microcomputer
RESET
POoIINTO
CLI
+OUT
SCK
so
Count Pul••
Up/Down SIgnal
PII,
SCK
81
.PD7507H 81
.PD750SH
II
Fltlure 17. Remote-controlltid o.t. Reception, Key InpUt.nd LED DI.,.y
....ter
Microcomputer
rrSIr• PD7508H r.PD7S19H
SCK
SO
ate.
,
.PD7584
ImR
81
rS
SO
I
I
DrIver (,--
->--
>---<>--
I--
PI,
(3)
P80
Remote
Controlled
.Slg..1
Amplifier
~C1473
~
P80
POo
PlOo
PIG,
(4)
PlOo
PIO.
NoIe:
(I) CMOS output
(2) Chip Hie.. or Ironsfer requ...
(3) Openodnln oulpuf
(4) Input with Intemal pull-up nsl8lor
Kay Input (4 x 4)
1I3-0021I278
3~111
pPD75S4154A/64164A'
E~CTRICAL
SPECIFICATIONS
Capacitance
,>'"
Absolute Maximum Ratings
T" • 25"C
P.r~r
Operating temperature, TOPT
-10 to+7Q"C
~--------~~~----------~------~
Storage
temperatura, TSTG
~ to + 16O"C
--~--~----~~-------------------Foweraupply voltage, Voo
-0.3 to +7.0 V
----~----~~----~---------------Input voltage, VI
Except porta 10, 11
-0.3 to Voo +0.3 V
Power dleelpatlon, Po (T"
Shrink DIP
SOP
pF
POo, FDa
35
pF
Port 8
35
pF
Porta 10, 11
15
pF
P01,
I/O capacltance,CIIO
-0.3 to Voo +0,3 V
-0.3 to Voo +0.3 V
-o.3to +13V
-o.3Vto +11 V
"PD7554A/64A only (Note 2)
.
Output currant.. low IOL
P01, PO:!
. Porta 8·11
Port 8
All porte, total
15
Co
Output capacitance
-o.3to +11 V
(Note 2)
Outputcurrant,hlgh IOH
One port
All output porta, total
. InpuloapaeitanceC..
"'-o.3to +13V
Porta 8, 10. 11 (Note 1)
-SmA
",'"
",
.
.7!~.mA,
,;/) .
5mA
15mA
SOmA
100mA:
"! -
+70"0)
..eo;;,;w
250mW
Expoaure to Absolute Maximum Ratings for extended perlodamay
affect device reliability; exceedllig Ihe ratlnge could cause permanent
clamage. The device should, be operated. within' the.Jlmltl specified
under DC end AC Charactlrlatlca.
Notes:
(1) CMOS 110 or N-ohennel open drain + Intamal pull up reelator.
(2) N-chennel open drain VO.
\','\'
a-:112
'\ ~~,
Symbol Mifl 1)p Max Unit Conditions
-o.Uo Voo+O.3V
Porta 10, 11 (Note 1)
(Note 2)
"PD71554A164A only (Note 2)
Output voltage, Vo
. Except porta 8, 10, 11
•.. :,'i
. , '.,
T" .. 25"C, Voo = GND - OV; f - 1 MHz
Unmeasured plna returned to GND
-
PO:!
NEe
JlPD7554/54A/64/64A
DC Characteristics 1j Voo
TA
= -10 to
+70°C; GND
=0V
= 2.5 to 3.3 Vj "PD7554/54A
Parameter
Symbol
Input high voltage except CL 1
VIHI
0.8VOO
Input high voltage CL 1
VIH2
Input high voltage ports 10, 11
VIH3
Input high voltage RESET
VIHOR
Input low voltage except CL 1
VILI
Input low voltage CL 1
Input leakage current except CL 1
Max
Unit
VOO
V
Voo-0.3
VOO
V
0.8VOO
12 (Note 1);
9 (Note 2)
V
0.9VOOOR
VOOOR + 0.2
V
0
0.2VOO
V
VIL2
0
0.3
V
ILiI
-3
3
p.A
OV
S
VI
S
VOO
Input leakage current CL 1
ILl2
-10
10
p.A
OV
S
VI
S
VOO
Input leakage current ports 10, 11
ILl3
10 (Note 1)
p.A
10 (Note 2)
p.A
= 12V
VI = 9V
IOH = -80p.A
Output voltage high POI' P02,
. ports 8-11
Output voltage low POI,
ports 10,11
~,
Output voltage low port 8
VOH
Min
Typ
V
VOO -1.0
0.5
VOL
ILOI
Output leakage cu rrent ports 8-11
IL02
Data retention mode
POI, P02: IOL = 350 p.A;
Ports 10,11: IOL = 350 p.A
V
IOL = 500 p.A
3
p.A
OVsVosVoo
10 (Notes 1, 2)
p.A
Vo
6.0
V
55
180
p.A
Voo
40.
150
p.A
VOO
25
80
p.A
Voo
18
60
p.A
Voo
-3
Supply voltage, data retention mode
VOOOR
Supply current, normal operation;
R oscillation (Note 3)
IDOl
Supply current, HALT mode;
R oscillation (Note 3)
1002
Supply current, STOP mode (Note 3)
1003
0.1
5
p.A
Supply current, data retention
mode (Note 3)
1000R
0.1
5
p.A
Pull-up/down resistance, port Q, RESET
RPI
23.5
47
70.5
kO
Pull-up resistance, ports 8-11
RP2
7.5
15
22.5
kO
2.0
II
VI
0.5
VOL
Output leakage current
V
Conditions
= 12 V ",PD7554; Vo = 9 V p.PD7554A
= 3 V ::1:0.3 V; R = 150 kO ::1:2%
= 2.5 V; R = 150 kO ::1:2%
= 3 V ::1:0.3 V; R = 150 kO ::1:2%
= 2.5 V; R = 150 kO ::1:2%
VOOOR
= 2.0 V
Notes:
(1) N-channel, open drain I/O ports, p.PD7554.
(2) N-channel, open drain I/O ports, p.PD7554A
(3) Current in built-in pull-up/down resistors excluded.
3-113
NEe
pPD7554/54A/64/64A
DC Characteristics 2; Voo
= -10 to +70°C; GND = 0 V
= 2.7 to 6.0 V; "PD7554/54A164/64A
TA
Parameter
Symbol
Input high voltage except CL 1
VIHl
0.7Voo
Min
Input high voltage CL 1 (Note 2)
Typ
Max
Unit
Voo
V
VIH2
Voo-0.5
Voo
V
Input high voltage ports 10, 11
VIH3
0.7Voo
12 (Note 1);
9 (Note 2)
V
Input high voltage RESET
VIHOR
Input low voltage except CL 1 (Note 3)
Input low voltage CL 1
Input leakage current except CL 1 (Note 3)
ILil
Input leakage current CL 1
ILl2
Input leakage current ports 10, 11 (Note 4)
ILl3
Output voltage high POl, P02, ports 8-11
0. 9VOOOR
VOOOR
+
0.2
V
VILl
0
0.3 VOO
V
VIL2
0
0.5
V
-3
3
p.A
-10
10
",A
10
",A
IOH
VOO -2.0
VOH
VOO - 1.0
Output voltage low POl, P02
VOL
Output voltage low ports 10, 11
VOL
Output voltage low port 8
VOL
Output leakage current
ILOl
Output leakage current, port 8-11 (Note 4)
IL02
Supply voltage, data retention mode
VOOOR
Supply current, normal operation;
ceramic oscillation (Notes 3, 5)
1001
Supply current, normal operation;
R oscillation (Note 3)
1001
Supply current, HALT mode;
ceramic oscillation (Notes 3, 5)
1002
Supply current, HALT mode;
R oscillation (Note 3)
1002
Supply current, STOP mode (Note 3)
1003
Supply current, data retention mode (Note 3)
1000R
Pull-up/down resistance, port 0, RESET
RP1
Pull-up resistance, ports 8-11
RP2
V
V
-3
2.0
0.4
V
0.5
V
0.4
V
2.0
V
0.5
V
2.0
V
Conditions
Data retention mode
oV S
oV S
0.5
V
3
",A
OVsVosVOO
10
p.A
Vo = 12 V ",PD7554/64; Vo
",PD7554A/64A
6.0
V
650
2200
p.A
VOO
120
360
p.A
Voo
270
900
p.A
80
240
p.A
450
1500
",A
65
200
p.A
120
400
p.A
35
110
",A
0.1
10
p.A
0.1
5
p.A
0.1
5
p.A
23.5
47
70.5
kO
7.5
15
22.5
kO
=9V
= 5 V ±0.5 V; fcc = 700 kHz
= 3 V ±10%; fcc = 300 kHz
Voo = 5 V ±0.5 V; R = 56 kO ±2%
VOO = 3 V ±10%; R = 100 kll ±2%
VOO = 5 V ±0.5 V; fcc = 700 kHz
VOO = 3.0 V ±10%; fcc = 300 kHz
VOO = 5 V ±0.5 V; R = 56 kO ±2%
VOO = 3 V ±10%; R = 100 kll ±2%
Voo = 5V ±0.5V
VOO = 3V ±10%
VOOOR = 2.0 V
(1) ",PD7554/64.
(4) N-channel, open-drain 1/0 ports.
(2) ",PD7554A/64A.
(5) ",PD7564/64A.
3-114
VI S VOO
= 9 V (7554A); or 12 V
VOO = 4.5 to 6.0 V; IOH = -1 mA
VOO = 2.7 V; IOH = -100 p.A
VOO = 4.5 to 6.0 V; IOL = 1.6 mA
IOL = 400 ",A
VOO = 4.5 to 6.0 V; IOL =' 1.6 mA
VOO = 4.5 to 6.0 V; IOL = 10 rnA
IOL = 400 ",A
VOO = 4.5 to 6.0 V; IOL = 15 mA
IOL = 600 p.A
VI
Notes:
(3) Current in built-in pull-up/down resistors excluded.
VI S VOO
NEe
DC Characteristics 3; VDD
pPD7554/54A/64/64A
= 2.0 to 3.3 V; p.PD7554A only
TA = -10 to +70'C; GND = 0 V
Parameter
Symbol
Min
Typ
Max
Unit
0.8 Voo
VOO
V
Voo-0.2
VOO
V
Conditions
Input high voltage except CL 1
VIHl
Input high voltage CL 1
VIH2
Input high voltage ports 10, 11
VIH3
0.85Voo
9
V
Input high voltage RESET
VIHOR
0.9VOOOR
VOOOR + 0.2
V
Input low voltage except CL 1
VILl
0
0.15Voo
V
Input low voltage CL 1
V IL2
0
0.2
V
Input leakage current except CL 1
ILil
-3
3
pA
Input leakage current CL 1
ILI2
-10
10
pA
oV
oV
Input leakage current ports 10, 11 (Note 1)
ILI3
10
pA
VI = 9V
Output voltage high POl, ~, ports 8-11
VOH
V
IOH = -70pA
Output voltage low POl, P02, ports 10, 11
VOL
V
POl, P02: IOL = 270 pA
Ports 10, 11: IOL = 300 p.A
Output voltage low port 8
VOL
Output leakage current
IL0 1
Output leakage current ports 8-11 (Note 1)
IL02
Supply voltage, data retention mode
VOOOR
Supply current, normal operation;
R oscillation (Note 2)
1001
Voo-1.0
0.5
Data retention mode
:s VI :s VOO
:s VI :s VOO
II
0.5
V
-3
3
pA
OV:s Vo :s'VOO
10
pA
Vo=gV
2.0
6.0
V
38
130
pA
VOO = 3.0 V ::t10%; R = 240 kO ::t2%
20
70
pA
VOO = 2.0 V; R= 240 kIl ::t2%
17
60
".A
Voo = 3 V ::t10%; R = 240 kIl ::t2%
8
25
pA
VOO = 2V; R = 240 kG ::t2%
0.1
5
pA
Supply current, HALT mode;
R oscillation (Note 2)
1002
Supply current, STOP mode (Note 2)
1003
Supply current, data retention mode
1000R
0.1
5
pA
Pull-up/down resistance, port 0, RESET
RP1
23.5
47
70.5
kO
Pull-up resistance, ports 8-11
RP2
7.5
15
22.5
kG
IOL = 400pA
VOOOR = 2.0 V
Notes:
(1) N-channel, open-drain I/O ports.
(2) Current In built-In pull-up/down resistors excluded.
3-115
NEe
pPD7554/54A/64/64A
AC Characteristics 1; Voo
TA
= -10 to
+70°C; GND
=0 V
= 2.5 to 3.3 V; p,PD7554/54A
Parameter
Symbol
Min
Typ
Max
Unit
Conditions
System clock oscillation frequency
fcC
140
180
220
kHz
R
System clock oscillation frequency, CL 1, CL2
fcC
140
175
210
kHz
Voo
External clock frequency. CL 1
fc
250
kHz
50% duty
200
ns
System clock rise time, CL 1
teR
System clock fall time, CL 1
teF
10
200
ns
50
I's
System clock pulse width, high
teH
2
System clock pulse width, low
tel
2
50
I's
fpoo
0
250
kHz
External clock frequency (POol
POo rise time
teRPoO
200
ns
POQ fall time
teFPO
200
ns
POa pulse width, high
tpooH
2
I's
POo pulse width, low
tpOOl
2
I's
INTO high time
tlOH
30
I's
INTO low time
tlOL
30
I'S
I's
= 150 kG ±2%
= 2.5 V; R = 150 kG ±2%
50% duty
RESET high time
tRSH
30
RESET low time
tRSl
30
i'S
RESET setup time
tsRS
0
I'S
RESET hold time
tHRS
0
I's
S'CR cycle time
tKCY
8.0
1'8
10.0
1'8
Output
tKH
4.0
I's
Input
tKl
5.0
I's
Output
tSIK
0.3
I's
tKSI
0.3
S'CR pulse width, high
S'CR pulse width, low
S I setup time to S'CR i
SI hold time after S'CR i
SO output delay time after S'CR i
3-116
tKSO
Input
I's
2.0
I's
COUT
= 100 pF max
NEe
pPD7554/54A/64/64A
AC Characteristics 2; Voo
TA
= -10 to
+70·C; GND
=0V
= 2.7 to 6.0 V; "PD7554/54A/64/64A
Parameter
Symbol
Min
Typ
Max
Unit
Conditions
System clock oscillation
frequency (Note 1)
fcc
400
500
600
kHz
Vee
200
2SO
300
kHz
Vee
External clock frequency, CL 1
fc
10
710
kHz
Vee
10
350
kHz
Vee
System clock oscillation
frequency (Note 2)
Oscillation stabilization time
fcc
tos
System clock rise time, CL 1
teR
System clock fall time, CL 1
teF
System clock pulse width
290
700
710
kHz
Vee
290
SOO
510
kHz
Vee
290
400
410
kHz
Vee
290
300
310
kHz
Vee
ms
Vee
20
200
ns
200
ns
50
= 4.5 to 6.0 V; R = 56 kO :1:2%
= 3 V :1:10%; R = 100 kO :1:2%
= 4.5 to 6.0 V; SO% duty
= 2.7 V; 50% duty
= 4.5 to 6.0V
= 4.0 to 6.0 V
= 3.5 to 6.0 V
= 2.7 to 6.0 V
= 2.7 to 6.0 V
teH
0.7
lIS
Vee 4.5 to 6.0 V
Syste!" clock pulse width, CL 1
tel
1.45
50
lIS
Vee
External clock frequency (POol
fPOO
0
710
kHz
Vee
0
350
kHz
Vee
200
ns
200
ns
POo rise time
teRPOO
= 2.7 V
= 4.5 to 6.0 V; SO% duty
= 2.7 V; SO% duty
POo lall time
teFPO
POo pulse width, high
1POOH
0.7
lIS
Vee
POo pulse width, low
1POOl
1.45
liS
Vee
INTO high time
fK>H
10
lIS
INTO low time
fK>l
10
lIS
RESET high time
iRsH
10
lIS
RESET low time
~Sl
10
liS
RESET setup time
taRS
0
liS
RESET hold time
\iRS
0
liS
~cycletlme
tKCY
2.0
liS
Input; Vee
2.5
liS
Output; ; Vee
5.0
liS
5.7
liS
= 4.5 to 6.0 V
= 4.5 to 6.0 V
Input; Vee = 2.7 V
Output; ; Vee = 2.7 V
1.0
liS
Input; Vee = 4.5 to 6.0 V
1.25
liS
Output; Vee
2.5
lIS
Input; Vee
2.85
liS
liS
~ pulse width
~ pulse width
lKH
lKl
SI setup time to ~ r
talK
0.1
SI hold time after ~ r
iKsl
0.1
SO output delay time after ~ r
tKSO
= 4.5 to 6.0 V
= 2.7 V
= 4.5 to 6.0 V
= 2.7 V
Output; Vee = 2.7 V
lIS
0.85
lIS
Voo
1.2
lIS
Veo
= 4.5 to 6.0 V; COUT = 100 pF max
= 2.7 V; COUT = 100 pF max
Notes:
(1) IIPD7554/54A.
(2) IIPD7564/64A.
3-117
t-{EC
pPD7554/54A/64/64A
AC Characteristics 3; Voo
TA
= -10 to
+70°C; GND
= 0V
= 2.0 to 3.3 V; I'PD7554A
Parameter
Symbol
Min
Typ
Max
Unit
Conditions
System clock oscillation frequency
fcc
65
120
145
kHz
R
System clock oscillation frequency, CL1, CL2
fcc
65
100
130
kHz
Voo
External clock frequency, CL 1
fc
10
150
kHz
System clock rise time, CL 1
teA
200
ns
teF
200
ns
50
p.s
System clock fall time, CL 1
= 240 kO ±2%
= 2.0 V; R = 240 kO
System clock pulse width, high
teH
3.3
System clock pulse width, low
tel
3.3
50
p.s
External clock frequency (POo)
fpoo
0
150
kHz
POo rise time
teAPOO
200
ns
POo fall time
teFPO
200
ns
POo pulse width, high
tpOOH
3.3
p.s
POo pulse width, low
tpOOl
3.3
p's
INTO high time
tlOH
50
p's
INTO low time
tlOl
50
p.s
RESET high time
tASH
50
p's
RESET low time
tASl
50
p.s
RESET setup time
tSAS
0
p.s
RESET hold time
tHAS
0
p's
SCK cycle time
tKCY
13.4
p.s
16.6
p's
Output
tKH
6.7
p.s
Input
tKl
8.3
p.s
Output
tSIK
0.5
p.s
tKSI
0.5
SCi< pulse width, high
SCi< pulse width, low
SI setup time to SCi< i
SI hold time after SCi< i
SO output delay time after SCi< i
3-118
tKSO
50% duty
Input
p.s
3.5
p.s
COUT
= 100 pF max
±2%
NEe
pPD7554/54A/64/64A
Datil Retention Mode, pPD7564/54A.
TIMING WAVEFORMS
Clocks
"PD7554If4. - - - - - S T O P Mode'-----+i
J--+-+-
VDD
1------lIlc----+I
Operating
Mode
(1) VIHI
(2) VDDD.
(3) VIHD.
tCL
CL1----,
(4)VILI
t
po, _ _ _ _
IC'
1/POO
1-
:POOL~FIPOOH
RESET
tSRS
83-002612A
=~:~
Dlltll Retention Mode, pPD7564/tUA
tpooRdLtPOOF
83-002609A
~PD756411-----sTOP MOde _ _ _ _~HI-A-LT-M-od~e _~~:r:ting
Externlllinterropt
VDD
83-002610A
Reset
RESET _ _ _ _ _ _ _ _ _ _ _ _J
83-002613A
1=I'SLTI'SH~=~:~
RESET _ _ _
83-002611 A
Serilllinterfllce
1----IKCy----.,
SCK---"""",
51----+--<\
SO
Output Data
V-
----"B3-002628A
3-119
II
JlPD7554/54A/64/64A
3-120
NEe
NEe
NEC Electronics Inc.
pPD75P54/P64
4-Bit, Single-Chip,
One-Time Programmable (OTP)
CMOS Microcomputers With Serial I/O
Description
Ordering Information
The J.lPD75P54 and J.lPD75P64 are 1024 x 8-bit on-chip,
one-time programmable (OTP) ROM versions of the
mask ROMs, J.lPD7554 and J.lPD7564. They have the
same functions as, and are pin-compatible with, their
mask ROMs. Because of their programming capabilities, the J.lPD75P54/P64 are suitable for evaluation and
small lot production for system development. Their
unique features will be described in this data sheet. For
information about the base part J.lPD7554/64, please
refer to its data sheet.
Part Number
Package Type
JlPD75P54CS
20 -pin plastic shrink DIP (OTP)
JlPD75P64CS
JlPD75P54G
20 -p in plastic SO P (OTP)
JlPD75P64G
Pin Configuration
o 47 instructions (subset of J.lPD7500 set B)
o Instruction cycle:
- External clock (J.lPD75P54): 2.86 J.ls/700 kHz, 5 V
- RC oscillator (J.lPD75P54): 4 J.lS/500 kHz, 5 V
- Ceramic oscillator (J.lPD75P64):
2.86 J.ls/700 kHz, 5 V
o
Program memory (ROM) of 1024 x 8 bits
o Data memory (RAM) of 64 x 4 bits
o 8-bit timer/event counter
o 8-bit serial interface
II
2O-Pin Plastic Shrink DIP or SOP (OTP)
Features
Vss
POO/INTONpp
P01/SCK
PO:!ISO
Pea/SI
P80/MOO
P113iD7
3
4
S
P112iDS
P111iDS
P110iD4
P81!t.101
6
P103iD3
P82!t.102
• CL2IM03 (P63/M03)
7
8
P102iD2
P101iD1
CL1 9
VOO _'-_ _ _1~1
P100iDO
RESET
• P63can be selected when using external clock on I1P07SP54 only.
CL2 can be selected when using RC oscillator.
49NR-GSOA
o I/O lines: 16-J.lPD75P54; 15-J.lPD75P64
o Data memory retention at low supply voltage
o CMOS technology
o Low-power consumption
o Single power supply:
- 4.5 to 6.0 V normal operation
-6.0 V OTP
o STOP, HALT standby functions
o 2O-pin plastic shrink DIP or SOP (OTP)
50287
3-121
1tt{EC
pPD75P54/P64
Pin Identification
CL 1 (Clock Input 1)
Symbol·
Function
POoIINTO/Vpp
4-blt Input port O/count clock Input/serial
Interface. Programming voltage supply
pin for program memory write/Verlfy.
~a
POalSl
P80-P82I'M00-M02
CL2JMD3 (P8afMD3)
VDD (Power Supply)
4-blt output port 8IOTP operation mode.
Connection for ceramic resonator or RC
(No P8a on "P075P64) (Note 1)
CL1
Connection for ceramic resonator or RC
Vee
4.5 to 6.0 V power supply, normal
operation. 6.0 V for OTP.
RESET
. Reset Input pin
4-blt va port 10 and 00-03 during
programming writetverify.
4:bit va port 1.1 and 04-07 during
programming wrlte/Verify.
Vss
. On the ",P075P54, CL 1 is one of the two pins to which a
resistor for RC oscillation is connected. On the
",P075P64, CL 1 is one of the two pins to which a ceramic
resonator is connected.
Ground
Note:
(1) MDO-M03 are us~ as mode select pins during programming.
Positive power supply. 4.5 to 6.0 V for normal operation.
6.0 V for program memory write/Verify.
RESET (Reset)
System reset input pin (active high). This pin is not
internally connected to a pull-down resistor.
P100-P103fDo-D3 (Port 10/Data I/O)
4-bit I/O port. This port can sink 10 mA and interface
12 V. If any of these pins are unused, connect them to
ground or Voo in the input state, or leave open in the
output state. The port is in the high impedance or
high-level output-state at reset. 00-03 are 4-bit I/O pins
for program memory write/Verify.
,n
PIN FUNCTIONS
POoIINTONpp, P011SCi<
POaISO, PO31'S I
. (Port O/Count Clock Input/Programming/
Serial Interface)
4-bit input port O/count clock input/serial I/O interface.
This port can be configured as a 4-bit parallel input port
or as the S-bit serial I/O interface, under control of the
serial mode select register. The serial input SI (active
high), serial output SO (active low), as the serial clock
SCK (active low-synchronizes data transfer) comprise
the S-bit serial I/O interface. If POollNTO is unused,
connect it to ground. If any of P01-P03 are unused,
connect them to ground. The port is in the input state at
reset.
P80-PSVMDO-MD2, P83/MD3 (CL2IMD3)
(Port 8/Clock Input/Mode Selection for OTP)
4-bit output port S. This port can sink 15 rnA and
interface 12 V. PS3 is a output port on the ",P075P64; On
the ",P075P54, CL2 is one of the pins to which a resistor
for RC oscillation is connected. On the ",P075P64, CL2
is one of the pins to which a ceramic resonator is
connected. If any of PSO-PS2 pins are unused, leave them
open. The port is in the high impedance state at reset.
MOO-M03 are used for OTP program memory write and
read mode selection. There is no PS3 on the ",P075P64.
3-122
P11o-P113fD4-Dr (Port 11/Data I/O)
4-bit I/O port. This port can sink 10 rnA and interface
12 V. If any of these pins are unused, connect them to
ground or Voo in the input state, or leave open in the
output state. The port is in the high impedance or
high-level output state at reset. 0 4 -07 are 4-bit I/O pins
for program memory write/Verify.
Vss (Ground)
Ground.
NEe
IIPD75P54/P64
Block Diagram
POO liNTON PP
POO·PO 3
P80·P82.1~1~
0-
P8 3 (CL2).] •
Program
Memory
1024 x 8 Bits
CL
PIOO .PI03/~~I~
III
System Clock
Generator
Stand By
Control
! ! ! !
Vpp Voo VSS Reset
@~~ For 75P54 and 75P84 (OTP)
\!II
For7564
For 77541P54/P64
83Yl-7180B
FUNCTIONAL DESCRIPTION
I/O Ports
Figure 1 shows the internal circuits at I/O ports 0, 8, 10,
and 11.
3-123
II
t-IEC
pPD75P54/P64
Figure 1. Interface at I/O Ports
Type P-A
Type A
(forTypeW)
VDD
~~
-Ch
Input
Data ---~-r""",
'
Mask option for
mask devices
N-ch
~--+----o In/Out
CMOS standard input buffer
Output Disable --+----,L~
TypeB-B
MDO·MD2
Input o--"t""-..,.j
-----0<:
TypeQ-A
I
RC
,
IL_o_s_ci_lIa_to_r...l~
To PROM unit
~pe
...<>--__-o0CLI
_
Mask
P83/MD3 (Cl2lMD3)
ift.ti~~sk
0
~devices
When a voltage of 21 V is applied'to this pin, Vpp Is supplied to the PROM
unit. When input of VSS to VDD i. applied, VDD is supplied to this pin.
TypeD
(for Types Wand X)
TypeR
VDD
DataE~_Ch
Input 0-_.--1
Output
N-ch
Output Disable
':"
Push·pull output where output can be placed in high impedance
when a RESET input is applied. P and N channels are tumed off.
TypeP
TypeS
VDD
Data ---~-r""",
h
l !
P-;h
Mask option for
mask devices
VOD
t. . .," " . . . . . .
Input 0---1---+----1
~--+---o In/Out
Output Disable ---+-'--L~
N-ch
49NR-677B
3-124
NEe
pPD75P54/P64
Figure 1. Interface at 110 Ports (cont)
Type X
TypeW
In/Out
Output
Disable
TypeY
r:-~""l-'----OCll
Data
Data
VoD
!
Mask option
for mask
devices
f
Output
Disable
In/Out
L.:=:::...t-T--<>CI.2IMD3.
VDD
!
i
MOS
~~!~ttion
devices
'(9NR-&78B
3-1.25
II
t\fEC
pPD75P54/P64
Table 1 compares the features of the p.PD7554/64 and
their aTP versions, p.PD75P54/P64.
Table 1. Product Differences and Comparisons. pPD7554/64 and pPD75P54iP64
Item
Instruction
cycle/system
clock (5 V)
,.PD7554
,.PD7564
,.PD75P54 (OTP)
RC
4,.s/
500 kHz
41£S/
500 kHz
4,.s/
500 kHz
'External
2.86 p.s/
700 kHz
Ceramic
,.PD75P64 (OTP)
2.86,.s/
700 kHz
2.86,.s/
700 kHz
3,.s/
660 kHz
Instruction set
47 (set B)
47 (set B)
47 (set B)
47 (set B)
ROM or PROM
1024 x 8 mask ROM
1024 x 8 mask ROM
1024 x 8 one·time
PROM
1024 x 8 one·time
PROM
RAM
64x4
64x4
64x4
64x4
I/O port total
16 (max)
15
16 (max)
15
PortO
POO·P03
POO·P03
POo·POsIMDO ·MD3
POo·POs/MDO·MD3
POo pin mask option
Available
Available
None
None
Port 8
P80·P82
P8s/CL2
P80·P82
P8o·P82/MDO·MD2
P8s1MD3
P8()"P82/MDO·MD2
CL2IMD3
P1Oo·P10s/Do·D3
Port 10
P10o•P103
P10o·P103
P10o·P10s/Do·D3
Port 11
P11o·Pl13
P11o·Pl13
P11o·P11s/D4·D7
P11o·P11s/D4·D7
Timer/event
counter
8·bit
8·bit
8·bit
8·bit
Serial interface
8·bit
8·bit
8·bit
8·bit
Sense input
INTO, INTS, INTT
INTO, INTS, INTT
INTO, INTS, INTT
INTO, INTS, INTT
Supply voltage
2.5 to 6.0 V
2.7 to 6.0 V
4.5 to 6.0 V
4.5 to 6.0 V
Process
CMOS
CMOS
CMOS
CMOS
Package
20'pin plastic SOP
20'pin plastic SOP
20·pin plastic SOP
20·pin plastic SOP
20·pin shrink DIP
20'pin shrink DIP
20'pin shrink DIP
2O·pin shrink DIP
Output and I/O pins
N-channel open drain
N·channel open drain
N·channel open drain
N-channel open drain
Input pins
Mask options
available
Mask options
available
No on·chip resistor
No on-chip resistor
RESET
Mask options
available
Mask options
available
No pull·down resistor
No pull·down resi stor
3-126
NEe
pPD75P54/P64
I£PD75P64 Application
Figure 2 shows an example of an application circuit for
remote-controlled data reception, key input, and LED
display for the ~PD75P64.
Figure 2. Remote-Controlled Data Reception, Key Input, and LED Display (pPD75P64)
-SCK
SO
51
-SCK
SO
J-
P113
RESET
Master
Microcomputer
I'PD750SHI
I'PD7519H
Chip Select
or Transfer
Request
SLEDS
!1PD75P64
r
r-
Output
Open Drain
Amplifier
Circuit
I'PC1473
Q~ G~
G~ G~
~
~
G~ G
~ Q~ G~
f--
~
PS1
PS 2
P112
Remo te
Cont
Is
Signaro:~
Driver
I'PASOC
outputt110
CMOS P111
51
...
.4~
A~
.4.
On.chip
Input P101
Pull-Up P102
Resistor P103
INTO
CL1
CL2
}1D~
r r
Key Input 4 x 4
49NR-676B
3-127
NEe
pPD75P54lP64
OTP PROM (Program Memory Write and Verify)
The p.PD75P54/P64 is a, one-time programmable (OTP)
PROM. version of the p.PD7554/64. The OTP is programmed by the pins and their functions listed in table 2.
During OTP programming, addresses are updated by
inputting clocks, instead of addresses, from the CL 1 pin,
Table 2. OW Access
Pin
Function
Vpp
OTP programming voltage pin (normally Voo)
Address update clock input during programming
CL1
Mode selection during OTP programming
MOO-M03
a-bit data I/O pins during OTP programming
Supply voltage pin: 4.5 to 6.0 V during normal
Voo .
operation; 6 V during OTP programming
Program Memory Write Procedure. The program memory write procedure follows (high speed write is enabled):
..
.
(1) Connect unused pins to Vss through a pull-down
resistor. RESET is pulled up to Voo through a resistor. Hold CL 1 low.
(2) Supply 5 V to Voo and Vpp.
(3) Select the program memory address clear mode.
(4) Change the voltage onVoo to 6 V, and on VPP to
21 V.
(5) Select the program inhibit mode.
(6) Write data in the 1 ms write mode.
(7) Select the program inhibit mode.
Notes:
The IIP075P54/P64 has no erasure window. The program memory
data cannot be erased with ultraviolet light
(8) Select the verify mode. If data is written correctly,
proceed to step 9; if data is not written correctly,
repeat steps 6-8.
OTP Operation Mode
(9) Perform an additional write of X (number of times a
write was performed in steps 6-8) x 1 ms.
The p.PD75P54/P64 operates in the program memory
write/verify mode when +6 V is applied to Voo and 21 V
to Vpp. Mode pins MDO-MD3 select the operation modes
shown in Table 3.
(11) Increment the program memory address by one, by
inputting four pulses to CL 1.
(10) Select the program inhibit mode.
(12) Repeat steps 6-11 until the end address occurs.
Table 3. OW Ope,ation Mode Selection
Vpp = +21 V; voo = +6V
MOO MD1
MD2
M03
H
L
H
L
L
H
H
H
L
L
H
H
H
X
H
H
Operating Mode
Program memory address clear (Note 2)
Program memory write (Note 3)
Program memory verify (Note 4)
Program Inhibit (Note 5)
Notes:
Lor H.
While HLHL is being applied, the program counter continues to
be cleared.
(3) While LHHH is being applied, data applied to 00-07 continue to
be written to the OTP.
(4) While LL HH is being applied, the OTP contents at the address
that the program counter indicates continue to be output to
PO-07.
(5) While HXHH Is being applied, the OTP continues to be nonaecessible, and 00-07 remain at a high Impedance level.
(1) X =
(2)
3-128
(13) Select the program memory address clear mode.
(14) Change the voltage on Voo and VPP to 5 V.
(15) Turn off power.
The timing for steps 2-11 is shown in figure 3.
IIPD75P54/P84
Figure 3. Tlml. DIag,.", tor OTI'",...",
~
1Iemor, Wrll.
. X RepetllIona.
.1.
I--Wrfte
Verify
:I.
Additional Wr!te-...• f41·---Add,...I-:----I.1
~p---r------------------------~J,~r----------------------------------VpP
Voo
V o o J ..
VOO.1
Voo
J
r(
sir
ell
,
•
00·07
-------<{
InputDa1a
.~.F--{
InputDa1a
)>----------------------
..I1
M01 _____
M02J
M03
•rr
--.:I
Program Memory Read Procedure. The program memory read procedure follows:
(1) Connect unused pins to Vss through a pull-down
resistot RESET Is pulled up to Voo through a resistor. Hold CL 1 low.
(6) Select the verify mode. Data is read from "OOOH.Upon entry of a clock pulse to CL 1, data is sequentially output by one address In a cycle of four pulses.
(2) Supply 5 V to Voo and Vpp.
(7) Pulse input to the CL 1. Program memory address is
updated at the rising edge of the third pulse. Address after updated one (+ 1) Is updated every four
pulses. Repeat update to last address.
.
(3) Select the program memory address clear mode.
(8) Select the program memory address clear mode.
(4) Change the voltage on Voo to 6 V, and on Vpp to
21 V.
(9) Change the voltage on Voo and Vpp to 5 V.
(10) Turn off power.
(5) Select the program inhibit mode.
The timing for steps 2-9 is shown in figure 4.
3-129
•
pPD75P54/P64
Figute 4.
NEe
Timing Dillgram for Program Memory Read
~pVPP--J'~--------------------------------------~--------------~L(
VOO--/
Vo:o+l--jrr--------------------------------------------------------~J.~c-------VOO--/
ell
~-07----------~(~______o_~_p_ut_o_am______~)(~______o_~_pu_t_oa_m____--J)(~------~~----~)MOO)
\~--~--------~~l~
MOl
------------------------------------------------------------~L~(--------
M02)
$ ...
M03--./
49NR.saoB
··3"'-1'30
NEe
pPD75P54/P64
Capacitance
ELECTRICAL SPECIFICATIONS
TA = 25°C, Voo = Vss = 0 V; f = 1 MHz. Unmeasured pins
returned to Vss.
Absolute Maximum Ratings
TA = 25°C
Operating temperature, TOPT
-10 to +70°C
Storage temperature, TSTG
-65 to +150°C
Power supply voltage, Voo
-0.3 to +7.0 V
Input voltage, VI
Except ports 10, 11
Ports 10, 11 (Note 1)
Ports 10, 11 (Note 2)
-0.3 to Voo +0.3 V
-0.3 to Voo +0.3 V
-0.3 to +13V
Output voltage, Vo
Except ports 10, 11
Ports 10, 11 (Note 1)
Ports 10, 11 (Note 2)
-0.3 to Voo +0.3 V
-0.3 to Voo +0.3 V
-0.3 to +13 V
Output current, high 10H
One pin
All output pi ns, total
-5mA
-15mA
Output current, low 10L
P01, P02
Ports 10,11
PortS
All ports, total
5mA
15mA
30mA
100mA
Power dissipation, Po (T A = + 70°C)
Shrink DIP
SOP
Parameter
Symbol Min Typ Max Unit Conditions
Input capacitance
CI
50
pF
POo
15
pF
P03
Output capacitance Co
35
pF
PortS
1/0 capacitance
35
pF
Ports 10, 11 and
P01, P02
II
4S0mW
250mW
Exposure to Absolute Maximum Ratings for extended periods may
affect device reliability; exceeding the ratings could cause permanent
damage. The device should be operated within the limits specified
under DC and AC Characteristics.
Notes:
(1) CMOS I/O or N-channel open drain + internal pull up resistor.
(2) N-channel open drain 1/0.
3-131
ttlEC
pPD75P54/P64
DC Characteristics, Normal Operation; Voo = 4.5 to 6.0 V; Vss = 0 V
TA = -10 to +70"C
Parameter
Symbol
Max
Unit
Input high voltage except CL 1
VIH1
0.7VOO
VOO
V
Input high voltage CL 1
VIH2
Voo-0.5
VOO
V
Input high voltage ports 10, 11 (Note 1)
VIH3
0.7VOO
12
V
Input high voltage RESET
VIHOR
0.9 VOOOR
VOO OR + 0.2
V
Input low voltage except CL 1
VILl
0
0.3 VOO
V
Input low voltage CL 1
VIL2
0
0.5
V
3
p.A
10
p.A
oV :s VI :S VOO
oV :S VI :S VOO
10 (Note 1)
p.A
VI = 12 V
V
IOH = -1 mA
V
POj, ~: IOL = 1.6 mA;
Ports 10, 11: IOL = 1.6 rnA
Port 8: IOL = 15 rnA
Ports 10, 11: IOL = 10 rnA
Input leakage current except CL 1
Min
ILI1
-3
Input leakage current CL 1
ILI2
-10
Input leakage current ports 10, 11
ILl3
Output voltage high POl, P~, ports 8-11
VOH
Typ
Voo-2.0
Conditions
Data retention mode
Output voltage low POl, P~, ports 10, 11
VOL
0.4
Output voltage low ports 8, 10, 11
VOL
2.0
V
3
p.A
OV:sVo,.VOO
10 (Note 1)
p.A
Vo = 12V
Output leakage current
IL01
Output leakage current ports 8-11
IL02
Supply voltage, data retention mode
VOOOR
Supply current, normal operation
IDOl
Supply current, HALT mode
Supply current, STOP mode
Supply current, data retention mode
Notes:
(1) N-channel, open drain 1/0 ports.
3-132
-3
6.0
V
400
1400
p.A
p.PD75P54: VOO = 5 V ±10%;
R=56kD±2%
700
2300
p.A
p.PD75P64: VOO = 5 V ± 10%;
fcc = 700 kHz
120
400
p.A
p.PD75P54: VOO = 5 V ± 10%;
R = 56 kD ±2%
450
1500
p.A
p.PD 75P64: VOO = 5 V ±10%;
fcc = 700 kHz
1003
0.1
10
p.A
VOO = 5.0 V :tl0%
1000R
0.1
5
p.A
VOOOR = 2.0 V
1002
2.0
1tt{EC
pPD75P54/P64
DC Characteristics, Programming Mode; Voo = 6.0 ± 0.25 V; Vpp = 21 ± 0.5 V, Vss = 0 V
(Notes 1 and 2)
TA
= 25°C
Parameter
Symbol
Input high voltage except C L 1
VIHl
0.7VOO
Input high voltage CL 1
V IH2
Input low voltage except CL 1
VILl
Input low voltage CL 1
VIL2
Input leakage current
III
Min
Typ
Max
Unit
VOO
V
VOO -0.5
VOO
V
0
0.3VOO
V
0
0.5
V
10
p.A
Conditions
Output voltage high
IOH
V
IOH = -1 rnA
Output voltage low
VOL
0.4
V
IOL = 1.6 rnA
Voo supply voltage
100
30
rnA
Vpp supply current
Ipp
30
rnA
Voo-2.0
MOO
= VII.. M01 = VIH
Notes:
(1) Vpp, including an overshoot, should not exceed +22 V.
(2) Apply Voo before Vpp, and cut off aiter Vpp.
Figure 5. Recommended Circuit.
RC Oscillation
CL1
R
I'P075P54
CL2
Extemal Clock
CMOS
.....
.....
Cll
i1P075P54
Open- Cl2
Ceramic Resonatot
Cl
GJ.
~
C2
T
Cll
i1P075P64
R2
CL2
49NR·681A
3-133
II
NEe
pPD75P54/P64
AC Characteristics, Normal Operation; Voo = 4.5 to 6.0 V; Vss = 0 V
TA = -10 to +70·C
Parameter
System clock oscillation frequency
Symbol
Min
Typ
Max
Unit
Conditions
fcc
400
500
600
kHz
"PD75P54: R = 56 kQ ±2%
290
710
kHz
"PD75P64: R = 100 kll ±2%
710
kHz
"PD75P54: 50% duty
ms
"PD75P64 (Note 1)
External clock frequency, CL 1
fc
10
Oscillation stabilization time
tos
20
System clock rise time, CL 1
teR
0.2
System clock fall time, CL 1
teF
0.2
,,5
"s
"s
System clock pulse width
teH
0.7
50
System clock pulse width, CL 1
tel
0.7
50
"s
Event Input frequency (POol
fPO
0
710
kHz
POo rise time
tpOR
200
ns
POofall time
!POF
POo pulse width, high
ipaH
0.7
"s
Voo = 4.5 to 6.0 V
POo pulse width, low
tpOl
0.7
1'8
Voo = 2.7 V
INTO high time
tlOH
10
1'8
INTO low time
~Ol
10
RESET high time
tRSH
10
RESET low time
~Sl
10
"s
RESET setup time
!sRS
0
"s
RESET hold time
~RS
0
"s
Ij<;CY
2.0
"s
Input
2.5
"s
Output
S"CK cycle time
200
50% duty
ns
"s
,,5
S"CK pulse width, high
S"CK pulse width, low
tKH
1.0
"s
Input
tKL
1.25
"s
Output
SI setup time to ~ t
tSIK
0.1
SI hold time after ~ t
"s
tKSI
0.1
SO output delay time after ~ t
tKSO
Notes:
(1) Hold the RESET Signal at a high level until oscillation becomes
stable.
3-134
"s
0.85
"s
CL = 100 pF
NEe
pPD75P54/P64
AC Characteristics, Programming Mode; Voo
= 25°C
= 6.0 ± 0.25 V; Vpp = 21
±0.5 V, Vss
=0 V
TA
Parameter
Symbol
Note 1
Address setup time for MDO J, (Note 2)
tAS
tAS
2
",s
p,S
Min
Typ
Max
Unit
MDI setup time for MDO J,
tMIS
tOES
2
Data setup for MDO J,
tos
tos
2
p,S
Address hold time for MDO t (Note 2)
tAH
tAH
2
",s
Data hold time for MDOt
tOH
tOH
2
MDO t to data output float delay time
tOF
tOF
0
Vpp setup time for MD3 t
tvps
tvps
2
VOO setup time for MD3 t
tvos
tvcs
2
Initial program pulse width
lpw
tpw
0.95
Additional program pulse width
topw
topw
0.95
teES
2
MDO setup time for MDI t
iMos
Conditions
",s
200
ns
",s
",s
1.0
1.05
ms
21.0
ms
",s
MDO J, to data output delay time
toy
tov
p,S
MDO
= MDI =VIL
MDI hold time for MDO t
tM1H
tOEH
2
p,S
iM1H
+ tMIR
MDI recovery time for MDO J,
tM1R
tOR
2
p,S
",s
1 (Note 3)
Program counter reset time
tpCR
10
CL 1 input high- and low-level widths
tXH' tXL
0.7
CL 1 input frequency
fx
'" 50
"'S
"'s
710
kHz
Initial mode set time
lJ
2
"'s
MD3 setup time for MDI t
tM3S
2
",s
MD3 hold time for MC11 J,
tM3H
2
MD3 setup time for MDO J,
tM3SR
2
"'S
"'S
Address to data output delay time (Note 2)
tOAD
tACC
2
Address to data output hold time (Note 2)
tHAD
toH
0
MD3 hold time for MDO t
tM3HR
2
",s
MD3 J, to data output float delay time
tOFR
2
",s
During program memory read
p,S
300
ns
Notes:
(1) Symbol of the corresponding ",PD27C256.
(2) "1" is added to the internal address signal at the rising edge of
the third CL 1 input. The signal is not input to the pin.
(3) During CMOS output.
3-135
t\fEC
pPD75P54/P64
Timing Waveforms
Test
AC TeBt Points
.J
Clock
Cl1 Input
INTO
RESET
RESET
Serial Transfer
POD Input
3-136
ttlEC
pPD75P54/P64
Program Memory Write
tyPS
Vpp
Vpp
Jr-----------------------------{,:~--------------------------------------------~5~
VOO
IVOS
VOO-1
VOO
~----------------------------~}!~------------------------------------------_i/~
VOO
Cl1
II
MOO
.,
M01
M02
IM3~~-
--------------------~~--------------------------------~.,
~
49NR-686B
3-137
NEe
IIPD75P54/P64
Program Memory Read
tvps
VpP
VpP
VDD
IVDS
.r
VDD+1
VDD
VoD
CL1
-+-+...............41l\-...................._ _ _ _ _...J:"-_ _ _O_utpu_I_D_a_ta_ _ _...I
DO-D7 .....
~
O_U_IP~UI~
,,_ _ _
~
IM3HR
MDO
MD1
MD2
MD3
49NR-687B
3-138
NEe
pPD75P54/P64
Dlltll Retention Timing, pPD75P54
STOP Instruction
Execution
~------------------STOPMode-----------------1
Operation
Mode~
i+------Data Retention Mode *
VDD
VDDDR
RESET
VIHDR
• In the data retention mode. set all inputs to a value smaller than V DDDR.
49NR-6898
II
Dlltll Retention Timing, pPD75P64
STOP Instruction
Execution
HALT
Mode
I-~------------------STOPMode------------------~
00If- Operation
Mode-"'-
Ii+-----Data Retention M o d e ' VDD
I
' - - - _ -VDDDR
==_--J
tosl-• In the data retention mode, set all inputs to a value smaller than V DOOR.
49NR-&88B
3-139
pPD75P54/P64
3-140
ttlEC
NEe
IIPD7556/56A/66/66A
4-Bit, Single-Chip
CMOS Microcomputers
With Comparator
NEG Electronics Inc.
Description
Ordering Information
The J.lPD7556/66A and J.lPD7566/66A are low-end versions of J.lPD7500 series products. These microcomputers incorporate a 4-bit comparator input and are useful
as slave CPUs to high-end J.lPD7500 series or 8-bit
J.lCOM-87 series products.
Part Number
Package Type
IlPD7556CS
24-pin plastic shrink DIP
IlPD7556ACS
IlPD7566CS
IlPD7566ACS
The J.lPD7556/56A/66/66A has output ports that can
directly drive triacs and LEDs. Also, various maskoptional I/O circuits can be configured for a wide
selection of outputs allowing a reduction of external
circuitry in your design. There are two testable interrupts.
The J.lPD7556/56A and J.lPD7566/66A differ only in their
clock circuitry. The J.lPD7556/56A uses an external resistor with an internal capacitor for an RC oscillator clock,
where the J.lPD7566/66A uses a ceramic oscillator as a
clock. These microcomputers are ideally suited to control devices such as air conditioners, microwave ovens,
refrigerators, rice cookers, and audio equipment.
Features
24-pin plastic SOP
IlPD7556G
IlPD7556AG
IlPD7566G
11
IlPD7566AG
Pin Configurations
I
2O-Pin Plastic Shrink DIP
pP9o-P91
VDD -JNv-,
.
. .... 0 Mask Option
0
.-----(ll-
Data
~-o11 O-Pl13
VDD
Data
Mask Option
r-----+---O In/OUt
(Middle-Level Voltage.
Middle-Level CurrenQ
Mlddle·Level Voltage Input Buffer
Type 3 Input Cell: POl "'REF
vDD -JNv-,
. ,. . 0
Mask Option
Type 6 Schmitt-triggered Input: RESET
o
~r-----/1~Mas---ko-p~:n
Reference
Voltage
3-144
t
83SL-6852B
NEe
IIPD7556/56A/66/66A
Program Memory
Arithmetic Logic Unit
The ttPD7556/56A/66/66A has a mask-programmable
ROM with a capacity of 1024 words by 8 bits for program
storage. It is addressed by the program counter. The
reset start address is OOOH. Figure 2 shows the program
memory map.
The arithmetic logic unit (ALU) is a 4-bit arithmetic
circuit that performs operations such as binary addition,
logical operation, increment, decrement, comparison,
and bit processing.
Program Status Word
General-Purpose Registers
Two registers, H(2-bit) and L(4-bit) are provided as
general-purpose registers. Each register can be individually manipulated. The two registers also form pair
register HL; H being the high register and L being the low
one. The HL register is a data pointer to address data
memory. Figure 3 shows the configuration of the generalpurpose registers.
The L register also specifies an I/O port or mode register
when an I/O instruction (IPL or OPL) is executed. It also
specifies the bits of a port when the SPBL or RPBL
instruction is executed.
Data Memory
The data memory is static RAM with a capacity of 64
words by 4 bits. Part of this memory is used as the stack
area. The data memory is also used in 8-bit data processing when paired with the accumulator. Figure 4
shows the data memory map.
Data memory can be addressed directly, with the immediate data from an instruction; indirectly, with the contents of HL (including auto-increment and autodecrement); and indirectly by the contents of the stack
pointer.
You may use any area of the data memory as the stack.
The boundary of the stack is determined by how the
TAMSP instruction initializes the stack pointer. Once the
boundary is set, a call or return instruction automatically
accesses the stack.
When a call instruction is executed, the contents of the
program counter and the program status word (PSW) are
stored to the stack in the sequence shown in figure 5.
When a return instruction is executed, the contents of
the program counter are automatically restored, but the
PSW is not. The contents of data memory can be retained
with a low supply voltage during STOP mode.
The program status word (PSW) consists of two skip
flags (SKO and SK1), a carry flag (C), and bit 1, which is
always zero. Figure 7 shows the configuration of the
PSw.
The contents of the PSW are stored to the stack when a
call instruction is executed, but are not restored from
the stack by the return instruction.
The skip flags retain the following skip conditions: string
effect by LAlor LHLI instruction, and skip condition
satisfied by an instruction other than a string-effect
instruction. The skip flag is set or reset according to the
instruction executed.
The carry flag is set to 1 if an addition instruction (ACSC)
generates a carry from bit 3 of the ALU. If no carry is
generated, the flag is reset to zero. The SC instruction
sets the carry flag and the RC instruction resets it.
When a RESET is input, the SK1 and SKO flags are
cleared to zero and the contents of the carry flag are
undefined.
System Clock Generator
The system clock generator consists of a RC oscillator
(ttPD7556/56A), a ceramic resonator (ttPD7566/66A), a
1/2 frequency divider, standby modes (STOP/HALT), and
control circuit. Figure 8 is a circuit diagram of the system
clock generator for the ttPD7556/56A.
In the ttPD7556/56A, the RC oscillator operates with a
single external resistor connected across CL 1 and CL2
(the capacitor C is incorporated). When the RC oscillator
is not used, external clock pulses can be input by the
CL 1 pin. In this case, the RC oscillator functions as an
inverting buffer. The output from the R C oscillator serves
as the system clock (CL) which is then divided by two
and used as the CPU clock (cp).
Accumulator
The accumulator is a 4-bit register used in arithmetic
operations. The accumulator can process 8-bit data with
paired data addressed by HL. Figure 6 shows the configuration of the accumulator.
3-145
II
NEe
pPD7556/56A/66/66A
The standby mode control circuit is made up of a STOP
flip-flop and a HALT flip-flop. The STOP instruction sets
the STOP flip-flop and stops the system clock supply.
This flip-flop also stops the RC oscillator. The STOP
flipcflop is reset by the standby release signal that
becomes active when one of the test requests flags is set
or at the falling edge of the RESET signal. When the
STOP flip-flop is reset, the RC oscillator resumes operation and supplies the system clock.
The HALT and STOP instructions and RESET HIGH set
the HALT flip-flop which disables signals from going to
the 1/2 frequency divider that generates the CPU clock.
Only the CPU clock stops in HALT mode. The HALT
flip-flop is reset by the same conditions as the STOP
flip-flop.
Figure 9 shows the system clock generator circuit forthe
I'PD7566/66A.
(O)OOOH
(1023)3FFHU
83-002592A
Figure 3. Configuration of General Purpose
Registers
1
The HALT instruction sets the HALT flip-flop which disables signals from going to the 1/2 frequency divider that
generates the CPU clock. Only the CPU clock stops in
HALT mode. The HALT flip-flop is reset by the HALT
RELEASE signal (activated by setting at least one test
request flag) or the falling edge of RESET, resuming
supply of the CPU clock.
The HALT flip-flop is also set when RESET is active (high
level). At power on reset operation, the rising edge of
RESET starts ceramic oscillation; however, some time is
required to achieve stable oscillation. To prevent the
unstable clock from operating the CPU, the HALT flipflop is set and the CPU clock is stopped while RESET is
high. Accordingly, the high-level width of RESET must be
more than the required stable time for the ceramic
resonator.
0
~
3
0
r'-I-----'-II
.~I
Figure 4. Data Memory Map
On the I'PD7566/66A, the ceramic oscillator operates
with a ceramic resonator connected across CL 1 and
CL2. The output from the ceramic oscillator is used as
the system clock (CL); it is divided by two to produce the
CPU clock (c/».
The standby mode control circuit is made up of a STOP
flip-flop and a HALT flip-flop. The STOP instruction sets
the STOP flip-flop and stops the ceramic oscillation,
thus stopping the supply for all clocks. The STOP flipflop is reset by the RESET signal (high level) and restarts
ceramic oscillation. The supply of each clock resumes
when RESET goes low.
n
Figure 2. Program Memory Map
(0) DOH
64 words x 4 bits
(63) 3FH L -_ _ _-I
83-Q02594A
Figure 5. Call Instruction Storage to Stack
Stack Area
3
SP·4
SP·3
SP·2
Sp·1
°
°lolpc·l pC8
psw'
pc.·pc,
pc,·pc.
*Blt 1 of PSW
Is always O.
83-002595A
Figure 6. Configuration of the Accumulator
.J
Figure 7. Configuration of the Program Status
Word
.
3
2
0
SK,
SK,
c
I I I°I I
PSW
83-00.2597A
3-146
NEe
pPD7556/56A/66/66A
Figure B. System Clock Generator for pPD7556/56A
STOP F/F
S
Q
1 - - - - - - - - -__
STOP'
HALT F/F
R
Q
S
HALT'
RESET (High)
Standby Release
RESET ( _____ )
• (to CPU)
' - - - - - - - - - - - - - _ CL (System Clock)
*Executlon of Instruction
83-0025986
Figure 9. System Clock Generator for pPD7566/66A
STOP F/F
Q
S
J---------J.r-l-,-- STOP'
HALT F/F
Q
F~---I-- HALT'
S
CL1
RESET (High)
Ceramic
Oscillator
Standby Release
CL2
'-
\ - - - - RESET
'---f----------
RESET
"-~
(To CPU)
' - - - - - - - - - - - - - - _ CL (System Clock)
* Execution of Instruction
83-0025998
Clock Control Circuit
The clock control circuit consists of a 2-bit clock mode
register (bits CM1 and CM2), prescalers 1, 2, and 3, and
a multiplexer. It takes the output of the system clock
generator (CL) and event pulses (POc). It also selects the
clock source and prescaler according to the setting in
the clock mode register and supplies the timer/event
counter with count pulses. Figure 10 shows the clock
control circuit.
Table 2 lists the codes set in the clock mode register by
the OPL instruction to specify the count pulse frequency.
When you set the clock mode register with the OPL
instruction, clear bit 0 of the accumulator (corresponding to bit CMO of the EVAKIT-7500 or ILPD7500H during
emulation).
3-147
II
NEe
pPD7556/56A/66/66A
Test Control Circuit
Figure 10. Clock Control Circuit
The ~PD7566/66A has two test sources, as shown in
table 3.
The test control circuit consists of two test request flags
INTT RQF and INTO RQF) set by the two test sources,
the SM3 flag which determines whether INTO is enabled,
and a test request flag control circuit that checks the
contents of each test request flag by executing an SKI
instruction and resetting the flags.
CL
The OPL instruction (L = FH, corresponding to A3) sets
the SM 3 flag. INTO is enabled when SM 3 = 1.
Table 3. p,PD7556/56A/66/66A Test Sources
poo------t=~~==i~
"Instruction
Execution
Source
Function
Location
Request Flag
INTT
Overflow in timer/
event counter
Internal
INTT RQF
INTO
Test request signal
from POo pin
External
INTO RQF
83-002600A
Table 2. Selecting the Count Pulse Frequency
CM2
o
o
CM1
Frequency Selected
o
CL/256
o
CL/32
The request flag INTT RQF is set when a timer overflow
occurs in the. timer event counter. The SKI or TIMER
instruction resets it.
The logical sum of the outputs from the test request flags
releases HALT mode. The mode is released when one or
both flags are set. Both flags and SM3 are reset when the
RESET Signal is input. After reset, signal input to the
INTO pin is inhibited as the initial condition.
CL/4
Figure 12 is a block diagram of the test control circuit.
Timer/Event Counter
The timer/event counter is a binary 8-bit up-counter
which is incremented each time a count pulse is input.
The TIMER instruction or a RESET signal clears it to
OOH. When an overflow occurs, the counter is reset from
FFH to OOH. Figure 11 shows the inputs and outputs of
the counter.
Figure 11. TimerlEvent Counter
·TCNTAM--...,....-----+\
CP
"Timer
Reset
"Instruction Execution
83-002601A
ttlEC
Figure 12.
pPD7556/56A/66/66A
Test Control Circuit Block Diagram
Internal Bus
INn-+-----I
II
HALT
Release
INTOV--'-----J
Note (1)
Instruction execution
83-0026028
Standby Modes
Table 4. S TOP and HALT Modes
The ~PD7556/56A/66/66A has two standby modes to
reduce power consumption while the program is in the
wait state. The STOP and HALT instructions set these
modes.
Mode
CL
q.
POo
CPU
STOP
x
x
o
x
When the program enters a standby mode, program
execution stops and the contents of all registers and
data memory immediately before the program entered
standby mode are retained. The timer can operate even
in HALT mode.
The RESET signal or STANDBY release signal(1) releases
STOP mode. HALT mode is released when one or both of
the test request flags are set, or when the RESET signal
is input. The program cannot enter a standby mode
when a test request is being set, even if the STOP or
HALT command is executed.
If there is some uncertainty about the state of the test
request flags, execute the SKI instruction to reset them
so the program can enter standby mode.
Table 4 compares STOP and HALT modes. The. main
difference is that STOP mode stops the system clockand
HALT does not. Oscillation stops during STOP mode.
The power consumed by the oscillator is the difference
between the two modes. In STOP mode, data memory
can be retained with a lower supply voltage.
Note:
(1) Standby release signal for ~PD7556/56A only.
Timer
Released by
RESET input
INTTRQF,
INTO RQF
(,aPD7556/56A only)
HALT
0
x
o
x
o
INTTRQF
INTO RQF
RESET input
Notes:
(1) 0: operates. x: stops.
6.: operates depending on clock source. "PD7556/56A; if external
clock is used, STOP instruction will not stop CL. In this case
STOP mode acts as HALT mode.
Power-on Reset Circuit
Figure 13 shows a circuit example of the power-on reset
circuit using a resistor and a capacitor. This is the
simplest reset control circuit. Figure 14 shows the circuit
with a pull-down resistor internally connected to RESET
as a mask option.
"PD7556/56A/66/66A Applications
Figures 15-18 show examples of application circuits for
the ~PD7556/56A/66/66A.
Table 5 compares the features of the low-end products of
the 7500 series devices.
3-149
tt1EC
pPD7556/56A/66/66A
Figure 14. Power-on Reset Circuit with Pull-down
Resistor
Figure 13. Power-on Reset Circuit
!z
-
RESET
RESET
83-002603A
GND
83·Q02604A
Table 5. Product Comparison
Item
Instruction
cycle/system
clock (5 V)
"PD7554/54A
"PD7564/64A
"PD7556/56A
RC
4 "s/
500 kHz
4 "s/
500 kHz
External
2.86 "s/
700 kHz
2.86 "s/
700 kHz
Ceramic
"PD7566/66A
3 "s/
660 kHz
3 "s/
660 kHz
45
Instruction set
47
47
45
ROM
1024 x 8
1024 x 8
1024 x 8
1024 x 8
RAM
64x4
64x4
64x4
64x4
I/O port total
16 (max)
15
20 (max)
19
Port 0
POO·P03
POO•P03
POo-POl
POO•POl
P1o-P13
P01•P03
P8o-P~
P80·P82
Port 1
Port 8
P80·P82
P82/CL2
P80·P82
Port 10
Pl00·Pl03
Pl0o-Pl03
Pl00·Pl03
Pl0o-Pl03
Port 11
Pll 0•Pl1 3
Pll0·Pl13
Pll 0·Pl1 3
Pll0·Pl13
Timer/Event
counter
8·bit
8·bit
8·bit
8·bit
Serial Interface
8·bit
8·bit
4·channel
4·channel
Process
CMOS
CMOS
CMOS
CMOS
Package
20·pln plastic SOP
20·pin shrink DIP
20·pin plastic SOP
20·pin shrink DIP
24·pin plastic SOP
24·pin shrink DIP
24·pin plastic SO P
24·pin shrink DIP
P8a1CL2
Port 9
P9o-P9l
Comparator
3-150
P90·P9l
NEe
,.,PD7556/56A/66/66A
Figure 15. Refrigerator or Air Conditioner Circuitry
lED.4
l2VMax
RES
PBO
PB1
PI!:!
P90
P&,
.,....--I..
P1l3 t-'VII........
CtNo
CtN, Comparator
+-+-11--1 CtN2
CMOS
Output
Input
+--+-1-+--1 CIN3
II
, . . - - - - ; VREF
~VY~~---JV~-,P1~
r-'VY......>-------"'VII'v---i P102 Output
,---------1 Cll
t
Over·Current
Compressor
INTO
CMOS
WllhPull.Up
Detection
Resistor
With
PuIl·Down Pll0
P11j I---<:r
Reslstor
Motor
~
11---..,---1L..CL2
P112!-----0 Mask option
for mask
devices
I-~-+---Oo!lNT4
POltSCK
P02"SOISBO
POa/SI/SBl
P611KRl
Plio ""-
P60fKRO
P8l
P53
P52
P5l
P3l
PSO
psa
P3g
~
P7~R6
P731KR7
P20/PTOO
P2l
P2tPCL
P2aIBUZ
Nola: Vpp Is the programming pin In the 75POOB and should be
connected tD VOO' It Is not connected In the mask ROM ports.
83R~
Nola: Vpp Is the programming pin In the 75POO6 and should be
connected tD Voo. It Is not connected In the mask ROM ports.
83RlJ.I383A
4-4
NEe
Pin Identification
Symbol
Function
NC (Vpp)
No connection
(programming voltage for "PD75POO8
POolINT4
Port 0 input; interrupt 4
POl/SCi(
Port 0 input; serial clock
P02/S0/SBO
Port 0 input; serial out; serial interface
P03l'SI/SBl
Port 0 input; serial in; serial interface
Plo1lNTO
Port 1 input; interrupt 0
Pl l /INTl
Port 1 Input; interrupt 1
P12/INT2
Port 1 input; interrupt 2
P131'TIO
Port 1 input; timer 0 input
P201PTOO
Port 2 I/O; timer/event counter output
P2l
Port 2 I/O
P22/PCL
Port 2 I/O; clock output
P231'BUZ
Port 2 I/O; buzzer output
P30-P33
Port 3 I/O
P40-P43
Port 41/0
P50-P53
Port 51/0
P601KRO
Port 6 I/O; key scan input 0
P6l/KRl
Port 6 I/O; key scan input 1
P62/KR2
Port 6 I/O; key scan input 2
P631'KR3
Port 6 I/O; key scan input 3
P701KR4
Port 7 I/O; key scan input 4
P7l/KR5
Port 7 I/O; key scan input 5
P72/KR6
Port 7 I/O; key scan input 6
P731'KR7
Port 7 I/O; key scan input 7
P80-P8l
Port 81/0
RESET
Reset input
Voo
Positive power supply
Vss
Ground
Xl, X2
Main clock inputs
XT1, XT2
Subsystem ciock inputs
PIN FUNCTIONS
POo·POa, INT4, SCK, SO/S80, SI/S81
(Port 0, Interrupt 4, Serial Interface)
These pins can be used as 4-bit input port O. POo can
also be used for vectored interrupt 4, which interrupts on
either the leading edge or the trailing edge of the signal.
P0 1-P0 3 may also be used for the serial interface in the
SBI, 2-wireor3-wire mode. SI isthe serial input, SO isthe
serial output, and SCK is the serial clock. Reset causes
these pins to default to the port 0 input mode.
pPD7500x/75P008
P10·P1a, INTO·INT2, TIO (Port 1, Edge·Triggered
Interrupts, Timer Input)
These pins can be used as 4-bit input port 1. P10 and P1l
can also be used for edge-triggered interrupts INTO and
INT1. P12 can be used for INT2, which is also an
edge-triggered input, but one which generates an interrupt request and does not cause an interrupt. P13 can be
used as an input clock to the timer/event counter to
count external events. Reset causes these pins to default to the port 1 input mode.
P20·P2a, PTOo, PCl, 8UZ (Port 2, Timer/Event
Counter, Clock, or 8uzzer Output)
These pins can be used as 4-bit I/O port 2. When used as
an output the data is latched. When used as an input port
the port outputs are three-state. P20 can also be used as
the output of the timer/event counter flip flop (TOUT);
P22 can be used as the output for the clock generator
(PCl); and P23 can be used to output square waves for a
buzzer. Reset causes these pins to default to the port 2
input mode.
P30·P3a (Port 3)
These pins are used for I/O port 3. Each bit in this port
can be independently programmed to be either an input
or an output. This port has latched outputs, and can
directly drive LEOs. A reset Signal causes this port to
default to the input mode.
P4o·P4a, P5o·P5a (Ports 4 and 5)
Port 4 and 5 are 4-bit 110 ports which can be combined
together to function as a single 8-bit port. They have
latched outputs. Port 4 will directly drive LEOs. Outputs
are N-channel open drain, and can withstand up to 10
volts; pull-up resistor mask options are available for
these ports. A reset signal causes these ports to default
to the input mode.
p60·P6a, P7o·P7a, KRO·KR7 (Ports 6,7, and Edge
Detection)
Ports 6 and 7 are 4-bit I/O ports with latched outputs.
Each pin of port 6 can be independently programmed to
be either an input or an output, while port 7 can be
programmed to be either all inputs or all outputs. Ports 6
and 7 can be paired together to function as one 8-bit
port. Alternately, these pins may be used to detect the
falling edge of inputs KRO-KR3 (port 6) and KR4-KR7
(port 7). A reset signal causes these ports to default to
the input mode.
4-5
II
:,j
NEe
pPD750Ox/75P008
PSo-P81 (Port 8)
XT1, XT2 (Subsystem Clock Inputs)
Port 8 is a 2-bit I/O port. Outputs are latched. A reset
signal causes this port to default to the input mode.
These pins are the subsystem clock inputs. The clock
can be either a ceramic resonator or a crystal; an
external logic signal may also be used.
NCNpp (No Connection/Programming Pin)
RESET (Reset)
This pin maybe left unconnected when using the
J.tPD7500x. When using the programmable devices, this
pin is used to input the programming voltage during the
EPROM write/verify cycles. During normal operation of
the programmable device, this pin should be tied to Voo.
This is the reset input, and it is active low.
Voo (Power Supply)
The system positive power supply pin.
X1, X2 (Main System Clock Inputs)
Vss (Ground)
These pins are the main system clock inputs. The clock
can be either a ceramic resonator or a crystal; an
external logic signal may also be used.
System ground.
Block Diagram
POO·P03
P10·P13
P20·P23
TI0/P13
PTOO/P20
P30·P33
BUZlP23
Program
Memory
(ROM)
4096. a Bits
(!,PD75004)
6016. a Bits
(!,PD75006)
SI/SB1/P03
So/SBO/P02
P6o-P63
Decode
and
Control
Data Memory
P70·P73
(RAM)
512.4 Bits
8064. a Bits
(!'PD75008/
75POOa)
paO·pal
SCKlP01
INTO/P10
INT1/P1l
INT2IP12
INT4/POO
P60/KRO·
P~/KR3
System Clock
Clock
OUtput
Control
~~C:r
Generator
I---r---I
P701KR4-
~~~y
CPU Clock
t t t
P73/KR7
XT1 XT2
X1
X2
VDD VSS RESET
83YL·5732B
4-6
NEe
pPD7500x/75P008
Product Comparison
,.PD75006
,.PD75008
,.PD75P008CU/GB
Mask ROM
OOOH-FFFH
4096 x 8 bits
Mask ROM
OOOOH-I77FH
6016 x 8 bits
Mask ROM
00OOH-1F7FH
8064 x 8 bits
0000H-1F7FH
8064 x 8 bits
512 x 4 bits
Bank 0: 256 x 4
Bank 1: 256 x 4
512 x 4 bits
Bank 0: 256 x 4
Bank 1: 256 x 4
512 x 4 bits
Bank 0: 256 x 4
Bank 1: 256 x 4
512 x 4 bits
Bank 0: 256 x 4
Bank 1: 256 x 4
3-byte branch instruction
None
Provided
Provided
Provided
Other Instructions
Provided
Provided
Provided
Provided
Program counter
12 bits
13 bits
13 bits
13 bits
Item
Program memory
Data memory
OTP
Can be specified by software
Pull-up resistor,
ports 0-3; 6--8
Pull-up resistor,
ports 4, 5
Mask option
Operating voltage range
2.7 to 6.0 V
Mask option
Mask option
Not provided
2.7 to 6.0V
2.7 to 6.0 V
5V:!: 5%
42-pin plastic shrink DIP
44-pln plastic QFP (bent)
Package
Capacitance
ELECTRICAL SPECIFICATIONS
TA = 25°C; voo= 0 V
Absolute Maximum Ratings
TA = 25°C
Supply voltage, Voo
-0.3 to +7.0 V
Programming voltage, Vpp (.u,PD75P008 only)
-a.3 to +13.5V
Input voltage, VIN1
-0.3 to Voo + 0.3 V
-0.3 to 11 V
Input voltage, VIN2
(Ports 4 and 5 with open drain)
Output voltage, Vo
Symbol
Max
Unit
Input
capacitance
CIN
15
pF
Output
capacitance
COUT
15
pF
I/O
capacitance
CIO
15
pF
Min
Conditions
f = 1 MHz;
all unmeasured pins
returned to ground
-lOrnA
All pins
-30 mA
30 mA peak, 15 rnA rms
All ports except 0, 3-5
20 mA peak, 10 rnA rms
Total of ports 0, 3-5, 8
160 mA peak, 120 mA rms
Total of ports 2, 6, 7
Parameter
-0.3 to Voo + 0.3 V
High-level output current, IOH
Single pins
Low-level output current, IOL (Note 1)
Ports 0, 3-5 (one port pin)
42-pin plastic shrink DIP
44-pin plastic QFP (bent)
66 mA peak, 33 mA rms
Storage temperature, TSTG
-65 to +150°C
Operating temperature, TOPT (.u,PD7500x)
-40 to +85°C
Operating temperature, TOPT (.u,PD75P008 only)
-10to +70°C
Exposure to Absolute Maximum Ratings for extended periods may
affect device reliability; exceeding the ratings could cause permanent
damage.
Notes:
(1) Effective value = Peak value x (Duty)1/2
4-7
II
NEe
pPD750Ox/75P008
Main System Clock Oscillator Characteristics
"PD7500x: TA ,;. -4010 +85°C, Voo = 2.7 to 6.0 V
"PD75P008: TA = -10 to +70°C, Voo = 4.5 to 5.5 V
Oscillator
Parameter
Ceramic resonator
(Figure lA)
Oscillation frequency (Note 1)
Crystal resonator
(Figure lA)
Oscillation frequency (Note 1)
External clock
(Figure 18)
Symbol
Min
fxx
1.0
fxx
1.0
Typ
Oscillation stabilization time (Note 2)
Max
Unit
Conditions
5.0
MHz
After Voo reaches the minimum
oscillator operating voltage range.
4 (Note 3)
ms
5.0
MHz
10 (Notes 3, 4)
ms
4.19
Oscillation stabilization time (Note 2)
30 (Notes 3, 5)
ms
Xl input frequency (Note 1)
fxx
1.0
5.0
MHz
Xl input low- and high-level width
txH, tXL
100
500
ns
Notes:
(1) The oscillation frequency and Xl input frequency are included
only to show the characteristics of the oscillators. Refer to the AC
Characteristics table for actual instruction execution times.
(3) Values shown are for the recommended resonators. Values for
resonators not shown in this data sheet should be obtained from
the manufacture~s specification sheets.
(2) The oscillation stabilization time is the time required for the
oscillator to stabilize after voltage is applied or the STOP mode is
released.
(4) Voo = 4.5 to 6.0 V for 7500x or 4.5 to 5.5 V for "PD75P008.
(5) For "PD750OX only at Voo = 2.7 - 6.0 V
Subsystem Clock OSCillator Characteristics
"PD7500x: TA = -40 to +85°C; Voo = 2.7 to 6.0 V
"PD75P008: TA = -10 to +7ooC; voo = 4.5 to 5.5 V
Oscillator
Parameter
Symbol
Min
Typ
Max
Unit
Crystal resonator
(Figure 2A)
Oscillation frequency
fXT
32
32.768
35
kHz
1.0
2
s
See note 4 under Main System
Oscillator Characteristics
2
s
See note 5 under Main System Oscillator
Characteristics
External clock
(Figure 28)
4-8
Oscillation stabilization time
XT1 input frequency
fXT
32
100
kHz
XT1 input low- and high-level width
tXTH, tXTL
5
15
,..s
Conditions
NEe
JlPD7500X/75P008
Recommended Oscillator Circuit Constants (For 7500x only)
Main system clock = Ceramic; TA = -40 to +85°C
o.clliation Voltage
Part Number
(Note 1)
Frequency
C1
C2
Manufacturer
(MHz)
(pF)
(pF)
MlnM
MaxM
Murata
CSAx.xxMK
1.0-1.99
30
30
2.7
6.0
CSA x.xxMG093
2.0-2.44
30
30
2.7
6.0
CST x.xxMG093
2.0-2.44
(Note 2)
(Note2)
2.7
6.0
CSAx.xxMGU
2.45-5.0
30
30
2.7
6.0
CSTx.xxMGU
2.45-5.0
(Note 2)
(Note 2)
2.7
6.0
CSAx.xxMG
2.0-5.0
30
30
3.0
6.0
CSTx.xxMG
2.0-5.0
(Note 2)
(Note 2)
3.0
6.0
KBR 1000H
1.0
100
100
2.7
6.0
KBR 2.0MS,
2.0
47
47
2.7
6.0
KBR 4.0MS
4.0
33
33
2.7
6.0
KBR5.0M
5.0
33
33
3.0
6.0
Kyocera
Notes:
(1) X.xx Indicates frequency.
(2) Cl and C2 not required; they are. in the oscillator.
Figure 1. Main System Clock Conllguratlons
A. Ceramlc/Crystal Resonator
Figure 2. Subsystem Clock Configurations
A. Crystal Resonator
,
.---+---1
Xl
~~T
XTl
C4
'---4----1 X2
XT2
330
len
B. External Clock
B. Extarnal Clock
»-.---1 Xl
XTl
I1PD74HCU04
X2
Note: When the Input Is an extemal clock, the stop mode
cannot be set because the Xl pin Is connected
10 System ground (Vssl.
Open- XT2
Note : For 75PO08. C3 _ 22 pI and C4 _ 33 pI
I3RI).U.WA
4-9
a
NEe
pPD750OX/75P008
Recommended Oscillator Circuit Constants (For 7500x only)
Main system clock
= Crystal; TA = -20 to
+70'C
Frequency
Oscillation Voltage
Manufacturer
Part Number
(MHz)
C1 (Note 1)
(pF)
C2
(pF)
Min (V)
Kinseki
HC-6U
1.0-2.0
20
22
2.7
6.0
HC-18U, HC-431U, HC-491U
2.0-5.0
20
22
2.7
6.0
Max (V)
Notes:
(1) Keep Cl between 15 and 33 pF when adjusting the oscillation
frequency.
Recommended Oscillator Circuit Constants (For 7500x only)
Subsystem clock = Crystal; TA = -10 to +60'C
Oscillation Voltage
Manufacturer
Part Number
(MHz)
C3 (Note 1)
(pF)
C4
(pF)
Min (V)
Max (V)
Kinseki
P-3
32.768
18
18
2.7
6.0
Frequency
Notes:
(1) Keep C3 between 10 and 33 pF when adjusting the oscillation
frequency,
DC Characteristics
"PD750Ox: TA = -40 to +85'C, Voo = 2.7 to 6.0 V
"PD75P008: TA = -10 to +70'C, Voo = 4.5 to 5.5 V
Parameter
Symbol
Max
Unit
High-level input voltage
VIH1
O· 7Voo
Voo
V
Ports 2, 3, 8
VIH2
0.8Voo
Voo
V
Ports 0, 1, 6, 7, and RESET
VIH3
O· 7Voo
Voo
V
Ports 4 and 5; built-in pull-up resistor
O·7Voo
10
V
Ports 4 and 5 with open drain
Low-level input voltage
High-level output voltage
Low-level output voltage
Typ
Voo-0.5
Voo
V
Xl,X2, XTl
VIL1
0
0.3Voo
V
Ports 2, 3, 4, 5, 8
VIL2
0
0.2Voo
V
Ports 0, 1, 6, 7; RESET
VIL3
0
0.4
V
Xl, X2, XTl
VOH1
(Note 1)
Voo-l.0
V
Ports 0, 2, 3, 6, 7, 8; IOH = -1 rnA
VOH2
(Note 2)
Vo o-0.5
V
Ports 0, 2, 3, 6, 7, 8; Voo
IOH = -100 !LA
Ports 4 and 5; (Note 1); IOL = 15 rnA;
VOL1
= 2.7 to 6.0 V;
0.4
2.0
V
0.6
2.0
V
Port 3; (Note 1); IOL = 15 rnA
0.4
V
Ports 0, 2-8; (Note 1); IOL = 1.6 rnA
0.5
(Note 2)
V
Ports 0, 2-8; Voo
0.2Voo
(Note 1)
V
SBQ, 1 open drain; pull-up resistance." 1kG
0.2Voo
(Note 2)
V
580, 1 open drain; Voo = 2.7 to 6.0 V;
pull-up resistance." 5kll
= 4.5 to 6.0 V;
IOL = 400 !LA
ILIH1
3
All except Xl , X2, and XT1; VIN = Voo
/loA
--~---------------------------------------------------------------20
Xl, X2, and XT1; VIN = Voo
/loA
IUH2
20
4-10
Conditions
VIH4
VOL2
High-level input leakage current
Min
!LA
Ports 4, 5 with open drain; VIN
= 10 V
NEe
pPD750Ox/75POO8
DC Characteristics (cant)
Parameter
Symbol
Max
Unit
low-level input leakage current
IUL 1
-3
p.A
All except Xt, X2, andXTt; VIN = 0 V
IUL2
-20
p.A
Xl, X2, and XT1; VIN = 0 V
lLOHl
3
p.A
High-level output leakage
current
Min
Typ
Conditions
All except ports 4 and 5 with open drain;
= Voo
Your
Your = 10 V
lLOH2
20
p.A
Ports 4 and 5 with open drain;
low-level output leakage
current
ILOL
-3
p.A
Your
Built-in pull-up resistor
RL1
80
kG
Ports 0-3, 6-8 (except POol; VIN
Voo = 5.0 V ± 10%
= 0 V;
300
(Note 2)
kG
Ports 0-3, 6-8 (except POo); VIN
Voo = 3.0 V ±10%
= 0 V;
70
kG
Ports 4, 5; Your = Voo -2.0 V;
Voo = 5.0 V ± 10%
60
kG
Ports 4, 5; VO UT = Voo -2.0 V;
\'bo = 3.0 V ± 10%
15
40
30
(Note 2)
RL2
(Note 2)
15
40
10
Supply current
(Note 3)
IDOl
(Note 2)
2.5
8.0
mA
Voo
(Note 2)
0.35
1.2
mA
Voo
(Note 8)
1004
= 5.0 V ±
= 3.0 V ±
10% (Notes 4, 7)
5
15
mA
Voo = 5 V ±10%; (Notes 4, 6)
1500
p.A
HALT mode; Voo = 5 V ± 10% (Note 4)
(Note 2)
150
450
p.A
HALT mode; Voo
(Notes
2,5)
30
90
p.A
Voo = 3 V ± 10%
(Notes
5,8)
350
1000
p.A
Voo = 5V ±10%
(Notes
2,5)
5
15
p.A
(Notes
5,8)
35
100
=3V
± 10%
HALT mode; Voo
=3V
± 10%
p.A
HALT mode Voo
=5V
±10%
0.5
20
p.A
STOP mode; XTl
(Note 2)
0.1
10
p.A
STOP mode; XTI
(Note 2)
0.1
5
p.A
STOP mode; XTI
TA = 25'C
1005
II
10% (Notes 4, 6)
500
1002
1003
= OV
= 0 V; Voo = 5.0 V ±
= 0 V; Voo = 3.0 V ±
= 0 V; Voo = 3.0 V ±
10%
10%
10%;
Notes:
(1) Voo
= 4.5 to 6.0 V for 7500x and Voo = 4.5 to 5.5 V for 75P008.
(2) For 7500x only.
(3) Does not include pull-up resistor current.
(4) 4.19 MHz crystal oscillator; Cl
= C2 = 22 pF.
(5) 32.768 kHz crystal oscillator.
(6) When operated in the high-speed mode with the processor clock
control register (PCC) set to 0011.
(7) When operated in the low-speed mode with the PCC set to 0000.
(8) For 75P008 only.
4-11
NEe
pPD7500x/75P008
DC Characteristics
100 vs VOO (Crystal Oscillator at 4.19 MHz)
loovs Voo (Ceramic Oscillator at 4.19 MHz)
I=TA 25"C
I=TA
Main System Clock
5000
Hlgh·speed mode ......
PCC"()011
1000
13
Q.
~
I
Main System bOCk
f--
l~
C
~
:>
>-
Q.
Cl.
50
~
/
V
:>
'"
~
V
Operation mode;"
*
0..
100
=
I
=HALT mode
/
I
V
*
5
*
- * Meln system clock In STOP mode.
I I I I I
1
o
2
3
4
5
Power Supply Voltage VOO (V)
f---
1
6
7
./
./
0..
HALT mode
./
Operation mode'"
10
-
Subsystem Cock
50
~
./
./
V '"
ci!
10
5
mode
PCC=0010'" . /
,---LJ,.speed 1m ode /
PCC=Oooo
:>
U
>-
U
f - Middle-speed
f-
_0
./
100
500
~0
Subsystem C ock
HALT \node/
HALT mod
I
I
*
* Meln system clock In STOP mode.
I
o
I
I
I
I
2
3
4
5
Power Supply Voltage VOO (V)
Note: Values of 100 are about 10%
larger using a ceramic oscillator
as compared to a crystal oscillator.
4-12
~
1000
/'
Low·speed mode /
PCC=OOOO
~
Hlgh·speed mode ...-:::
PCC"()011 ".,
............
Mlddle.speed
PCC=0010
V
0
_0
~
.,.....
.......
500
~
c
I
m~e V
25'C
5000
6
7
t-{EC
pPD750Ox/75P008
DC Characteristics (cont)
100 va Voo (Ceramic Oscillator at 2.00 MHz)
100 va fxx (VOO = 5 V)
3
f:TA=25"C
~:
TA=25°C
Main Syatem Clock
5000
Hlgh·speed mode ,.. i-"'"'
V
.PCC..oo
I .
1000
I~
~
8:
PCC..oo:/
~
/"
pcc..oooo
./'
100
50
./
./
"
tJ)
J
./
Operation mode.l
Mlddl&-speed mode-
/
PCC=0010
/'
!-OW-speed rnocl~
~O_
HALT mod
*
••. aln Systen! Clock-
I
r---* Main SY1tam ciCCI In STar mode.
1
o
II
/. "
/"
/
/'
V
10
r--
/
./
*
V
l/
L.
Subsystem C ock
HAlTlnooe/
5
High-speed mode
2
~
-
PCC-0010
r - - Low-speed /node
c
~
~ I-
.
/'
500
~
.£l
E
F= Mlddl&-speed mode
i-"'"'
2
3
4
5
6
o
7
HAlTm~e
I
o
2
3
4
5
. Ixx (MHz)
Power Supply VollBg8 VOO (V)
100 va fxx (VOO =3 V)
II
~
0.5
r----r----r----r---...,..--...,
0.3
I---If--:""'-I---t---t---I
0.2
I----+----::,p..",.e:.==--t----t----\
0.1
I----+---+_-
l
_8
o
2
3
4
5
Ixx (MHz)
4-13
pPD750Ox/75P008
DC Characteristics (cont)
IOL ysvOL (Ports 0,2,6,7)
IOL vs VOL (Ports 4, 5)
40
40
I'--TA J5'C .
I---TA='25'C
30
VOO=6V
30 Voo= 6
voo=tv-
1--' '-nVoo=5V
I
/
10
I
II
rl
II /
VOO=3V
::...J
/'
---
/
~
10
-VOO =2.7V
1/
'I
'II
Jr
I'
II
I
4-14
Voo =3V
L---
I /"
II
VOO =2.7V
//
o
~VOO=4V
I
V
I
II /
I /
I /
11
III
11/
V VOO=5V
2
3
4
5
o
2
3
4
5
NEe
pPD7500X/75P008
DC Characteristics (cont)
IOL VB VOL (Port 3)
40...---.---.----.---.----,
15
Z
Z VOO =5V
I---VOO=6V
I
II
/
fJ /
II
l
1/
/II V _
~
_
11/
VOO =2.7V
""
5
~
2
3
II
11 II
!
0
VOO=4V
ll1L
VOO=3V
/"'"
'II
'II
~
I/"
J
10
~
II I
I
'1I
Vol>· VOH
- TA J50 C
VOO=6/~OO~VVOO=4V---t----t
I
VB
20
I--TA=1 250C-+---+--t----1
30
IOH
4
5
,
I~
o
.' VOO=3V
VOO =2.7V
fJl//
r!L
2
3
4
5
VOL (V)
4-15
NEe
pPD750Ox/75P008
AC Characteristics
"PD7500x: TA = -40 to +85'C. voo = 2.7 to 6.0 V
"PD75P008: TA = -10 to + 70'C. voo = 4.5 to 5.5 V
Parameter
Symbol
Min
Cycle time
(Note 1)
tCY
0.95
TIO input frequency
RESET low-level width
Unit
64
lIS
Conditions
Main system clock (Note 2)
3.8
(Note 3)
64
"s
Main system clock; Voo
122
125
"s
Subsystem clock
(Note 3)
275
0
0.48
1.8
Interrupt inputs
low- and high-level width
Max
114
0
TIO input low- and high-level width
Typ
(Note 3)
MHz
(Note 2)
kHz
Voo
= 2.7 to 6.0 V
= 2.7 to 6.0 V
"s
(Note 2)
= 2.7 to 6.0 V
lIS
Voo
(Note 4)
lIS
INTO
10
"s
INT1. INT2. INT4
10
"s
KRO-KR7
10
"s
Notes:
(1) Cycle time (minimum instruction execution time) is determined
by the frequency of the oscillator connected to the microcomputer. system .clock control register (SCC). and the processor
clock cont rol (PC C).
(2) Voo = 4.5 to 6.0 V for 7500x and Voo = 4.5 to 5.5 V for 75POO8.
(3) For 7500x only.
4-16
(4)
2tcy or
128/fx. depending on the setting of the interrupt mode
register QMO).
NEe
"PD750Ox/75P008
Figure 3. Guaranteed Operating Range
IlPD7500X
IlPD75P008
70
64
~~~
~~
~:::
~:::
~
.&
~
~:::
··III
6
5
~g
'·::1:1
.iEr .....
4
'}:J}}H
3
\It\1
2
II
III
1
F'"I
I--I--t--t--~~i----I!
05
o
g
234567
Power Supply VoIlag8 VDO (V)
0.5
o
2
3
5
6
I
7
Power Supply Voltage Voo (V)
4-17
NEe
pPD750Ox/75P008
Serial Transfer Operation
2-line/3-line Serial I/O mode (SCi<. .. internal clock output)
/tPD7500x: TA = -40 to +85"C, Voo = 2.7 to 6.0 V
I'PD75P008: TA = -10 to +70"C, voo = 4.5 to 5.5 V
Parameter
Symbol
SCi< cycle time
SCi< low- and
SI vs.
SI vs.
SCi< i
SCi< i
Min
Typ
Max
1600
ns
3800
(Note 2)
0.5tKCy-150
(Note 2)
ns
high-level width
setup time
tSIK1
hold time
SCK t - SO output delay time
(Note 3)
Unit
150
Conditions
(Note 1)
. Voo =2.7 to 6.0 V
ns
(Note 1)
ns
Voo= 2.7 to 6.0 V
ns
400
ns
tKS01
(Note 2)
250
ns
(Note 1)
1000
ns
Voo= 2.7 to 6.0 V
Serial Transfer Operation
2-line/3-line Serial I/O mode (SCR... external clock output)
/tPD7500x: TA = -40 to +85"C, Voo = 2.7 to 6.0 V
I'PD75P008: TA = -10 to +70"C, Voo = 4.5 to 5.5 V
Parameter
Symbol
Min
SCi< cycle time
tKCY2
800
3200
SCi< low- and high-level width
tKL2, iKH2
SCi< i setup time
SCi< i hold time
SCi< ~ - SO output delay time
SI vs.
tSIK2
100
tKSI2
400
(Note 2)
(Note 2)
Notes:
(1) Voo = 4.5 to 6.0 V for 7500x and Voo = 4.5 to 5.5 V for 75P008.
(2) For 7500x only.
(3) The rising edge of the output delay time must be less than 600 ns.
For example, if SBO and SB1 are pulled up with 5 kll resistors, the
total capacitance of the serial bus line must be no greater than
120 pF.
Unit
Conditions
ns
(Note 1)
ns
Voo= 2.7 to 6.0 V
ns
(Note 1)
ns
Voo = 2.7 to 6.0 V
ns
ns
tKS02
(Note 3)
4-18
Max
400
1600
SI vs.
Typ
(Note 2)
300
ns
(Note 1)
1000
ns
Voo = 2.7 to 6.0 V
NEe
pPD750Ox/75POO8
SBI Mode
S'CR. .. lnternal clock output (master)
~PD75OOx: TA
= -40 to +85"C. Voo = 2.7 to 6.0 V
= -10 to +70"C. Voo = 4.5 to 5.5 V
~PD75P008: TA
Parameter
Symbol
S'OR cycle time
ft*
Data Memory
(RAM)
512 x 4 Bits
SVSBI/P0 3
(1024
P6a-P63
x 4 Bits) *
SOISBO/P02
P70-P73
SCKlPOI
P80-P83
INTO/PIO
INTI/PI I
PIOO-PIOs
INT2IPI2
INT4IPOo
KRO-KR3/
PSo-P6a
KR4-KR7/Q'--_ _--'
P70-P73
P110-P113
fXl2N
AVDD
System Clock
AVREF+
AVREFAVSS
AID
Converter
Clock
Output
Control
Clock
Generator
Stand By
Control
Divider
CPU Clocks
ANO-AN3/
1 1 1 1
PI 10-PI 13
AN4-AN7
PCUP22
XTI XT2
XI
X2
VDD
VSS
RESET IC (Vpp)
MAFVPIOo
MAI/PIOI
MAZlPI02
MAT/ PI03
PPO/P2 1
Multifunction
Timer
*Applies to I'PD75P036
83RD-6563B
4-32
t-IEC
pPD75028/75P036
Specifications
ROM
8064 bytes (GPD75028)
Tlmer!Counter
Three timers. These Include an 8-blt
timer/event Counter, an 8-bIt basic
Interval timer, and a clock timet
Multifunction timer
Thle can be used as an 8-bIt timer/
event couflter, PWM output, 16-bIt
free-runnlng timer; or 16-blt counter for
an Integrating AID converter.
Serial Interface
NEC standard aerial bus Interface
(SBI)
External Interrupt.
Threa vector IntiirrllPts. one test Input.
Internal Interrupts
Four vector InterruPts, one test Input.
16256 bytes (GPD7l5P036j
RAM
512 x 4 bits (GPD75028)
1024 x 4 bits (GPD75P036j
General-purpose registers
4 bits x8 or8 bltsx4
Instruction cycle
0.95 111/1.91 l1li15.3 fl8 (with main
system clock operating at 4.19 MHz)
122 fl8 (with subsystem clock
operating at 32 kHz)
VO ports
AID converter
48 total lines. There are 12 N-channel
open-drain VO ports, each tolerating
as much as 10 volt•• Pull-up realstor
mask-option I. available In the
JlPD75028 only. The remaining 36 lines
are standard CMOS, Including 12
Input ports and 24 I/O port•• 01 theee,
Z1 have aoftwarHSlectabie pullup
resl.tors, and four have .oftwa....
selectable pulldown resl.tors.
8-blt x 8-channel
Low voltage operation p0881 ble
(Voo .. 2.7 to 6.0 V)
Clock serial Interface
BIt sequential buffer
Clock output
(PC~
16-blt, on-chlp
CPU clock "': 524 kHz, 262 kHz, 65.6
kHz (with main system clock operating
at 4.19 MHz)
Buzzer output (BU2)
2 kHz, 4 kHz, 32 kHz (with subsystem
clock operating at 32.768 kHz)
Package
64-pln plastic shrink DIP (750 ml~
64-pln plastic QFP (14 x 14 mm)
Operating voltage
Voo .. 2.7 to 6.0 V
4<-33
II
pPD7S028nSP036
4-34
NEe
t-IEC
NEG Electronics Inc.
pPD75048/75P056
General·Purpose 4·Bit Microcomputers
With EEPROM and AID Converter
Description
The pPD75048 is a single-chip CMOS microcomputer
containing CPU, ROM, EEPROM, RAM, I/O ports, several timer/counters, AID converter, vectored interrupts,
subsystem clock, and serial interface.
The instruction set allows the user to manipulate RAM
data and I/O ports in 1-, 4-, and 8-bit units. The devices
are ideally suited for controlling devices which require
EEPROM, such as meters requiring individual calibration.
Features
o 103 instructions
- Bit manipulation
-4-bit and 8-bit transfer
- GET! instruction, to convert one 2-byte or two
1-byte instructions into a single 1-byte
instruction
-1-byte relative branch instruction
o Fast execution time (@ 4.19 MHz)
- High-speed cycle: 0.95 ps
- Lower-voltage cycles: 1.91 and 15.3 ps
o 8064 bytes of program ROM: pPD75048
o 16256 bytes of program ROM: pPD75P056
o 1024 x 4 bits of EEPROM
o 512 x 4 bits of RAM
-Allows operation on 1, 4, or 8 bits
o Bit sequential buffer
-16-bit, bit manipulation memory
o Eight 4-bit registers
o Accumulators
-1-bit (CY)
-4-bit (A)
-8-bit (XA)
o 481/0 lines
-12 N-channel open drain; can withstand 10 V
-12 outputs directly drive LEDs
-43 lines can have an on-Chip pullup/pulldown
resistor
o Four timers
- 8-bit basic interval timer
- 8-bit timer/event counter
-14-bit watch timer
-16-bit multifunction timer/event counter which
can be used as an 8-bit timer/event counter,
PWM output, 16-bit free-running tinier, or 16-bit
counter for an integrating AID converter
o AID converter
- 8-channel, 8-bit
o Four zero cross detection pins
o 8-bit serial interface
-SBI mode
- 2- or 3-wire mode: data transfer can be full
duplex or receive only, and can be MSB or LSB
first
o Vectored interrupts
- Three external interrupts
- Four internal interrupts
- Nine inputs which each generate one interrupt
request
o Standby modes
- HALT mode: stops CPU only
- STOP mode: stops main clock generator
o Operates with oscillator or ceramic resonator
o OTP version: pPD75P056
o CMOS operation, with VDD from 2.7 to 6.0 V
Ordering Information
Part Number
Package Type
/lPD75048CW-xxx
64-pln plastic SDIP
Mask ROM
/lPD75048GC-xxx-AB8
64-pin plastic QFP
Mask ROM
/lPD75P056CW*
64-pin plastic SDIP
OTP
/lPD75P056GC-AB8*
64-pin plastic QFP
OTP
ROM
*Under Development
o One external event input
50202
4-35
II
NEe
pP1)7S048/75P056,
Pin Configurations
64-Pin SDIP"
.
SB1/sIIPOS
SBO/SOIP02
SCKtP01
Vss
P30
P31
1>:12
P33
P40
P41
P42
P43
P50
P51
P52
INT4IPOo
BUZlP2a
PCUP22.
PPO/P21
PrOolP20
MAT/P1Oa
MAZlP102
MAI/P10 l
MARlP100
RESET
X1
P53
P6oJKRO
P611KR1
X2
10 (Vpp)
XT1
XT2
P7o!KR4
"00
P711KRS
P6~R2
P6a1KR3
P7~R8
A"oO
AVREF+
AVREF_
AN7
P7a1K R7
P80
P81
ANa
ANS
P82
AN4
P90
AN3IP113
1'91
AN2IP112
AN11P111
ANOIP110
AVss
P92
TIOIP13
PBs
P93
...._ - _.......
P10/INTO
P11/INT1
P12/INT2
10: Should be Connected toVOO. Used !IS Vpp program pin In I'P075P058
,
4-36
I3RIJ.eI2OA
NEe
IIPD75048/75P056
64-PinQFP
P4a
P90
P42
P91
P41
P92
P40
P9s
PlotlNTO
P:J:j
P~
Pll'INTl
pSI
PI2'INT2
P30
vss
P1slTlO
SB1ISVP0:3
AVSS
ANO/P110
SBOISOIP02
ANIIPlll
SCKlPOl
INT4IPOO
AN2IPI12
BUZlP2S
PCUP22
AN4
PPOIP21
AN6
AN3IPllS
II
AN5
IC: Should be connected to VOO" Used as VPP programming pin In I'P075P056
83RD-6621B
4-37
NEe
pPD75048/75P056
Pin Identification
Symbol
Function
Symbol
Function
POoIINT4
Port 0 input; interrupt 4
Ie (Vpp)
Internally connected
(Programming voltage for "PD75P056)
X1,X2
Main clock inputs
XT1, XT2
Subsystem clock inputs
Port 0 input; serial clock
Port 0 input; serial out; serial interface
P0:JISI/SB1
Port 0 input; serial in; serial interface
P1of1NTO
Port 1 input; interrupt 0
Reset input
Port 1 input; interrupt 1
Voo
Positive power supply
P12f1NT2
Port 1 input; interrupt,2
Vss
Ground
P1:J1TI0
Port 1 input; timer 0 input
P201PTOO
Port 2 I/O; timer/event counter output
PIN FUNCTIONS
Port 2 I/O; multifunction timer output
POo/INT4, P01/SCK, P02/S0/SBO, POa/SI/SB1
Port 2 I/O; clock output
These pins can be used as 4-bit input port o. Or, POo can
also be used for vectored interrupt 4, which interrupts on
either the leading edge or the trailing edge of the signal.
P0 1-P03 may also be used for the serial interface in the
S81 or 2- or 3-wire mode. SI is the serial input, SO is the
serial output, and SCK is the serial clock. Reset causes
these pins to default to the port 0 input mode.
P2:J1BUZ
Port 2 I/O; buzzer output
Port 31/0
Port 4 I/O
Port 5 I/O
P601KRO
Port 6 I/O; key scan input 0
Port 6 I/O; key scan input 1
Port 6 I/O; key scan input 2
P~:JIKR3
Port 6 I/O; key scan input 3
P701KR4
Port 7 I/O; key scan input 4
Port 9 I/O
These pins .can be used as 4-bit input port 1. Or, P10 and
P11 can also be used for edge-triggered interrupts INTO
and INT1. P12 can be used for INT2, whic'h is also an
edge-triggered input, but one which generates an interrupt request and does not cause an interrupt. P13 can be
used as an input clock to the timer/event counter to
count external events. Reset causes these pins to default to the port 1 input mode.
Port 10 I/O; multifunction timer/event counter
output
P2o/PTOO, P21/PPO, P22/PCL, P23/BUZ
Port 7 I/O; key scan input 5
Port 7 I/O; key scan input 6
P7:J1KR7
Port 7 I/O; key scan input 7
Port 81/0
P100lMAR
Port 10 I/O; multifunction timer/event counter
output
Port 10 I/O; multifunction timer/event counter
output
P10:JIMAT
Port 10 I/O; multifunction timer/event counter
input
P1101ANO
Port 11 I/O; AID converter input 0
Port 11 I/O; A/D converter input 1
Port 11 I/O; AID converter input 2
P11:J1AN3
Port 11 I/O; A/D converter input 3
AN4-AN7
AID converter inputs 4-7
AVoo
AID converter positive power supply
AVss
A/D converter ground
AID converter reference voltages
4-38
P101INTO, P11/INT1, P12/INT2, P1afTIO
These pins can be used as 4-bit I/O port 2. When used as
an output, the da:ta is latched. When used as an input
port, the port outputs are three-state. P20 can also be
used as the output of the timer/event counter flip flop
(TOUT); P21 can also be used as the output for the
multifunction timer/event counter T flip flop; P22 can be
used as the output (PCL) of the clock generator; and P23
can be used to output square waves for a buzzer. Reset
causes these pins to default to the port 2 input mode.
P30·P33
These pins are used for I/O port 3. Each bit in this port
can be independently programmed to be either an input
or an output. This port has latched outputs, and can
directly drive LEOs. A reset signal causes this port to
default to the input mode.
NEe
pPD75048/75P056
P40-P43, P50-P53
AVo 0
Port 4 and port 5 are identical 4-bit I/O ports which can
be combined together to function as a single a-bit port.
Latched outputs will directly drive LEOs. Outputs are
N-channel open drain, and can withstand up to 10 volts;
pullup resistor mask options are available for these
ports. A reset signal causes these ports to default to the
input mode.
A/D converter positive power supply.
AVss
A/D converter analog ground.
AVREF+, AVREFA/D converter positive and negative reference voltages.
P60/KRO, P61/KR1, P62/KR2, P6a1KR3
P70/KR4, P71/KR5, P72/KR6, P7a1KR7
Ports. 6 and 7 are 4-bit I/O ports with latched outputs.
Each pin of port 6 can be independently programmed to
be either an input or an output, while port 7 can be
programmed to be either all inputs or all outputs. Alternately, these pins may be used to detect the falling edge
of inputs KRO-KR3 (port 6) and KR4-KR7 (port 7). A reset
signal causes these ports to default to the input mode.
P80-P83, P90-P93
Ports a and 9 are identical 4-bit I/O ports. Outputs are
latched. A reset signal causes these ports to default to
the input mode.
P10olMAR, P101/MAI, P102/MAZ, P10alMAT
These pins are used for I/O Port 10. Outputs are Nchannel open drain which can withstand up to 10 volts.
PlOo-P102 can also be used as the MAR, MAl, and MAZ
outputs from the multifunction timer/event counter's A/D
control logic. P10s can be used as the input MAT to the
multifunction timer/event counter's A/D control logic. A
reset signal causes this port to default to the input mode.
ICNpp
This pin should be connected to Voo when using the
~PD7504a. For the ~PD75P056, this pin is used as the
programming voltage input during the EPROM write/
verify cycles. When the device is not being programmed,
this pin should be connected to Voo.
1[11
X1,X2
These pins are the main system clock inputs. The clock
can be either a ceramic resonator or a crystal; an
external logic signal may also be used.
XT1, XT2
These pins are the subsystem clock inputs. The clock
can be either a ceramic resonator or a crystal; an
external logic signal may also be used.
This is the reset input, and it is active low.
Voo
The system positive power supply pin.
P110/ANO, P111/AN1, P112/AN2, P11a1AN3
These pins are used for I/O Port 11, or can alternately be
used as A/D converter inputs ANO-AN3. A reset signal
causes this port to default to the input mode.
Vss
System ground.
AN4-AN7
A/D converter inputs AN4-AN7.
4-39
1*{EC
pPD7S048nSPOS6
Block Diagram
TI0/P13
PTOO/P20
BUZlP23
P4o-P43
Program
Memory
(ROM)
DaIaMemory
6064 x8Blts
(16256 x 8 Bits)'
(RAM)
512x4BI1s
Decode
and
Control
SVSB1/P03
So/SBO/P02
DaIaMemory
(EEPROM)
SCKlP01
1024 x4 Bits
P70-P73
PBO-P83
INTO/P10
INT1/P11
INT2IP12
INT4IPOO
P100-P103
P11Q-P113
KRO-KR3/
P60-P63
KR4-KR71
P70-P73
AVoo"
AVREF+
AVREFAVSS
ANO-AN3/
P11Q-P113
AN4-AN7
System Clack
Clock
OUtput
Control
Clock
Divider
Generator
1---...----1 S6:c::r
XT1 XT2 X1
X2
CPU Clock 0
t t t t
Voo
VSS RESET IC (Vpp)
'Applies to I'I'075P056
83RD-8S668
4-40
NEe
pPD75048/75P056
Specifications
ROM
8064 bytes (j4PD75048)
16256 bytes (j4PD75P056)
RAM
512 x 4 bits
EEPROM
1024 x 4 bits
General-purpose
registers
4 bits
Instruction cycle
0.95 "s/I.91 "s/15.3 /IS
(with main system clock operating at 4.19 MHz)
48 total lines. There are 12 N-channel opendrain I/O ports, each tolerating as much as 10
volts. (Pullup resistor mask-option Is available
in the "PD75048 only). The remaining 36 lines
are standard CMOS, including 12 input ports
and 24 I/O pons. Of these, 27 have softwareselectable pullup resistors, and four have
software-selectable pulldown resistors.
NO converter
Three. These include an 8-bit timer/event
counter, an 8-bit basic interval timer, and a
clock timer.
This can be used as an 8-bit timer/event
counter, PWM output, 16-bit free-running timer,
or 16-bit counter for an integrating A/D
converter.
NEC standard serial bus interface (SBI)
Clock serial interface
External
interrupts
Three vector interrupts, one test input.
Internal
interrupts
Six vector interrupts, one test input.
Bit sequential
buffer
16-bit, on-chip
Clock output
(PCL)
CPU clock
524 kHz, 262 kHz, 65.6 kHz
(with main system clock operating at 4.19 MHz)
Buzzer output
(BUZ)
2 kHz, 4 kHz, 32 kHz (with subsystem clock
operating at 32.768 kHz)
Package
cp;
64-pin plastic SDIP (750 mil)
64-pin plastic QFP (14 x 14 mm)
8-bit x 8-channel
Low-voltage operation possi ble
(Voo= 2.7 to 6.0 V)
Timer/Counter
Serial interface
x 8 or 8 bits x 4
122"s
(with subsystem clock operating at 32 kHz)
I/O Ports
Multifunction
timer
Operating
voltage
=
Voo
2.7 to 6.0 V
EEPROM target specification
Voo = 2.7 to 6.0 V
4-41
II
pPD75048175P056
'l'
4-42
'.
NEe
!\fEe
pPD751xx/75P1xx
High-End 4-Bit Microcomputers
NEG Electronics Inc.
Description
[J
The J.lPD751XX/P1xx is a family of high-p~r~ormance
single-chip CMOS microcomputers. containing CPU,
ROM, RAM, I/O ports, comparator, interval ti~er: two
timer/counters, vectored interrupts, and a senal Interface.
The instruction set allows the user to manipulate RAM
data and I/O. ports in 1-, 4-, and 8-bit units. The devices
are ideally suited for controlling VCRs, telephones, and
meters.
Both EPROM and OTP versions are available. See ordering information.
Features
[J
[J
[J
[J
[J
136 instructions
- Bit manipulation
- 4-bit and 8-bit transfer, arithmetic, logical,
comparison, and increment/decrement
instructions
- 1-byte relative branch
- GETlinstruction, to convert one 2-byte,
one 3-byte, or two 1-byte instructions into a
single1-byte instruction
Fast execution time
(Main system clock @ 4.19 MHz)
- High-speed cycle: 0.95 J.ls
- Lower-voltage cycles: 1.91 and 15.3 J.ls
Program ROM
-J.lPD75104/104A: 4096 bytes
-J.lPD75106: 6016 bytes
-J.lPD75108/10BA/P108: 8064 bytes
-J.lPD75112: 12160 bytes
-J.lPD75116/P116: 16256 bytes
Data memory (RAM)
-J.lPD75104/104A/106: 320 x 4 bits
- Others: 512 x 4 bits
-Allows operation on 1, 4, or 8 bits
Bit sequential buffer
-16-bit, bit manipulation memory
[J
Four banks of eight 4-bit registers
[J
Accumulators
-1-bit (CY)
-4-bit (A)
-8-bit (XA)
58 I/O lines
-All outputs directly drive LEDs
(Islnk = 15 rnA rms)
-12 N-channel open-drain, can withstand 12V
-441/0 lines
-14 input-only lines
[J
4-input programmable threshold comparator
[J
Three timers
- One 8-bit basic interval timer
- Two 8-bit timer/event counters
[J
8-bit serial interface
- Data transfer can 'be full duplex or receive only,
and can be MSB or LSB first
[J
Vectored interrupts
- Two-level nesting
- Three external interrlJpts
- Four internal interrupts- Two inputs which generate an interrupt request
[J
Standby modes
- HALT mode: stops CPU only
-STOP mode: stops main system clock
[J
Power-on-reset and power-on flag
(always provided with J.lPD75P10B, n.ever on
J.lPD75P116, and available on the others as a mask
option)
[J
Mask option port pull-up resistors
(not available on J.lPD75P108/P116)
[J
Operates with oscillator or ceramic resonator
[J
CMOS operation, with Voo from 2.7 to 6.0 V
[J
Low operating current (@5 V and 4.19 MHz)
- Normal operation: 3.0 rnA typical
- HALT mode: 0.5 rnA typical
- STOP mode: 0.1 J.IA typical
[J
Programmable versions
- OTP & EPROM: J.lPD75P108
- OTP: J.lPD75P116
- OTP, low voltage: J.lPD75P108B (Note)
Note: Low voltage target spec of 2.7 to 6.0 V operation.
Contact your local NEC Sales Office for latest information; none of the electrical specifications in this
data sheet directly apply to this part.
4-43
II
NEe
IIPD751.xx/75P1xx
Ordering Information
Part Number
Package Type
IlPD75104CW-xxx
64-pin plastic SDIP (750 miQ
Mask ROM
IlPD75104G-xxx-l B
= 2.05 mm; pHch = 1.0 mm)
64-pin plastic OFP (resin thickness = 2.7 mm; pitch = 1.0 mm)
64-pin plastic OFP (resin thickness = 2.55 mm; pitch = O.S mm)
Mask ROM
IlPD75104GF-xxx-3BE
IlPD75104AGC-xxx-ABS
ROM
64-pin plastic OFP (resin thickness
Mask ROM
Mask ROM
IlPD75106CW-xxx
64-pin plastic SDIP (750 miQ
Mask ROM
IlPD75106G-xxx-l B
64-pin plastic OFP (resin thickness = 2.05 mm; pHch = 1.0 mm)
Mask ROM
IlPD75106GF-xxx-3BE
64-pin plastic OFP (resin thickness
IlPD7510SCW-xxx
64-pin plastic SDIP (750 miQ
= 2.7 mm; pitch = 1.0 mm)
Mask ROM
Mask ROM
IlPD7510SG-xxx-l B
64-pin plastic OFP (resin thickness = 2.05 mm; pitch = 1.0 mm)
IlPD7510SGF-xxx-3BE
64-pin plastic OFP (resin thickness
IlPD7510SAG-xxx-22
64-pin plastic OFP (resin thickness = 1.5 mm; pitch = O.S mm)
Mask ROM
IlPD7510SAGC-xxx-ABS
64-pin plastic OFP (resin thickness = 2.55 mm; pitch = O.S mm)
Mask ROM
OTP
= 2.7 mm; pitch = 1.0 mm)
IlPD75Pl0SCW
64-pin plastic SDIP (750 miQ
IlPD75Pl0SDW
64-pin shrink CERDIP (wI 350-mil window)
IlPD75Pl0SG-l B
64-pin plastic QFP (resin thickness
= 2.05 mm; pitch = 1.0 mm)
Mask ROM
Mask ROM
EPROM
OTP
IlPD75Pl0SBCW (Note 2)
64-pin plastic SDIP
Low voltage OTP
IlPD75Pl0SBGF-3BE (Note 2)
64-pin plastic OFP
Low voltage OTP
IlPD75112CW-xxx
64-pin plastic SDIP (750 miQ
Mask ROM
IlPD75112GF-xxx-3BE
64-pin plastic OFP (resin thickness = 2.7 mm; pitch = 1.0 mm)
Mask ROM
IlPD75116CW-xxx
64-pin plastic SDIP (750 miQ
Mask ROM
= 2.7 mm; pitch = 1.0 mm)
IlPD75116GF-xxx-3BE
64-pin plastic OFP (resin thickness
IlPD75PI16CW-xxx
64-pin plastic SDIP (750 miQ
OTP
IlPD75PI16GF-xxx-3BE
64-pin plastic OFP (resin thickness = 2.7 mm; pitch = 1.0 mm)
OTP
Notes:
(1) xxx indicates ROM code suffix.
(2) Contact your local NEC .sales office for latest information.
4-44
Mask ROM
NEe
pPD751xx/75P1:xx:
Pin Configurations
64-Pin Plastic SDIP and 64-Pin Ceramic SDIP
w/Window
64-Pin Plastic QFP (All Parts Except
pPD75104A/108Aj
*0:.
P13/INT3
Voo
P12/1NT2
P90
P11/1NT1
P9,
Pl0/INTO
P92
PTH03
P93
PTH02
PBO
PTH01
PB,
PTHOO
PB2
TIO
PB3
TI'
P70
P52
P23
P7,
PSI
P121
P22/PCL
P72
P122
P21JPT01
P73
~
P2o/PTOO
P60
P03/S1
P6,
P02/S0
P62
<>c~ 0
0 0 ;!
> z <>-
P41
P40
PS3
P131
0
P132
P133
P120
RESET
X2
POO/INT4
XI
POl/SCK
P123
P63
P02/SO
P01/SCK
P63
POo/INT4
X,
P123
X2
P122
RESET
P60
P21/PTOI
P121
PSo
P73
P22/PCL
P120
PS,
P72
P23
P133
PS2
P71
TI1
TIO
41
P62
P61
P03/S1
P20/PTOO
P132
PS3
P70
P131
POD
P83
PTHOO
P130
PO,
PTHOI
P143
P02
P8 2
P142
P03
P141
P30 (MOO)
P140
P31 (MD1)
*NC(Vpp)
*
*
P32 (MD2) *
Voo
P33(MD3)*
.....
0(1')(\1_0(1)
coCOCJ)CJ)CJ)cnCl)
c..o.o...c..a..I..>
~~~~~ :I:'"
~~';.~t t
a: a:: c:: a::
0
*Vppand MDO-MD3 are for
* Vpp and MOo-M03 are for
programming the j.l.PD75P10anSP116
programming the IlPD75Pl 08l7SP116
83-007156A
83YL-7157A
4-45
II
ttlEC
IIPD751XX/75P1xx
Pin Configurations (cont)
64-PIn PI••tlc QFP (pPD75104A/108A only)
P8s
~
0
Pal
PlIo
P8s
P9:z
I'9j
PlIo
Vss
jlPD75l04AGC
jlPD75l0SAGIGC
P1311NT3
P12/1NT2
PlllINTl
Pl0llNTO
PTH03
PTH02
PTHOl
&1RD-71(7B
.4-46
NEe
pPD751xx/75P1xx
Block Diagram
TID
PTOO/P20
Til
Program
Memory
PTQ1/P21
~D75104'104A:
SI/P03
SO/PO.
seK/P01
4096 x 8
IlPD751 06: 6016 x 8
IlPD15108f1 OaAlP1 08:
8064 x 8
IlPD75112: 12160x8
j.LPD75116fP116:
RAM
Decode
and
Control
Data Memory
~PD75l04/l04A1106:
320 x 4
Others: 512 x 4
II
16256 x 8
!NTO/P1 0
INT1/P11
INJ2/P1 2
INT3/P1 3
INT4/POo
P130·P133
1 1 1
Voo
Vss
P140·P143
RESET
83-0071558
4-47
NEe
"PD751 XX/75P1 xx
Pin Identification
PIN FUNCTIONS
Symbol
Function
POoIINT4
Port 0 Input; Interrupt 4
Port 0 Input; serial clock
P02I'SO
Port 0 input; serial out
POalSI
Port 0 Input; serial in
Plo1lNTO
Port 1 input; interrupt 0
Port 1 input; Interrupt 1
P121'1NT2
Port 1 Input; Interrupt 3
P20fPTOO
Port 2 110; timer/event counter 0
Port 2 110; timer/event counter 1
Port 2 110; clock output
Port 2110
Port 3 I/O; programming mode select 0
(uPD75Pl08/P116)
Port 3 I/O; programming mode select 1
(uPD75Pl08/P116)
P321'MD2
Port 3 I/O; programming mode select 2
(uPD75Pl08/Pl16)
P3a1MD3
Port 3 110; programming mode select 3
(uPD75Pl08/ Pl16)
P40·P43
Port 4 110
P50·P53
Port 5'1/0
P60·P63
Port 6 I/O
P70·P73
Port 71/0
P80·P83
Port 8 110
P90·P93
Port 91/0
Pl20·P123
Port 12 I/O
P1So·P133
Port 13110
P140·P143
Port 14110
PTHOO·PTH03
4·bit programmable threshold comparator
analog input port
RESET
Reset input
TIO/Tll
Event timer/counter external input
voo
Positive power supply
vss
Ground
Xl,X2
Main clock inputs
NC/Vpp
No connection; programming pin for
jJPD75Pl08/Pl16
4-48
These pins can be used as the 4·bit input port O. POe
can be used for vectored interrupt 4, which interrupts
on either the leading edge or the trailing edge of the
signal. P01·P03 may also be used for the serial interface;
SI is the serial input, SO is the serial output, and SCK is
the serial clock. Reset causes these pins to default to
the Port 0 input mode.
Port 1 Input; Interrupt 2
Pla1INT3
P301MDO
POolINT4, P01/SCK, P02/S0, POaiSI
P101INTO, P11/INT1, P12/INT2, P1a1INT3
These pins can be used as 4·bit input port 1. They can
also be used, respectively, for edge·triggered interrupts
INTO,INT1, INT2, and INT3. INTO and INT1 are triggered
by rising or falling edges, while INT2 and INT3 respond
to rising edges only and generate an interrupt request
but not an interrupt. Reset causes these pins to default
to the Port 1 input mode. Individual pull·up resistors can
be provided by mask option in the JlP075104A/108A.
P2o/PTOO, P21/PT01. P22/PCL, P23
These pins can be used as 4·bit I/O port 2. This port has
latched outputs, and can directly drive LEOs. PTOO and
PT01 are the timer/event counter output pins; PCL is
the clock output pin. Reset causes these pins to default
to the Port 2 input mode.
P301MDO, P31/MD1, P32/MD2, P3a1MD3
These pins are used for I/O Port 3. Each bit in this port
can be independently programmed to be either an input
or an output. This port has latched outputs, and can
directly drive LEOs. PSo·P33 are used as the program·
ming mode select pins for the JlP075P108/P116 during
EPROM/OTP programming and verification. A reset sig·
nal causes this port to default to the input mode.
P40·P43. P50·P53
Port 4 and Port 5 are identical 4-bit I/O ports which can
be combined together to function as a single 8·bit port.
Latched outputs will directly drive LEOs. A reset signal
causes these ports to default to the input mode. Indi·
vidual pull·up resistors are available as a mask option in
the JlPD75104A/108A.
t-IEC
pPD751xx/75P1xx
P60·P63, P7 O·P73
TIO, TI1
Port 6 and Port 7 are 4-bit I/O ports; port 6 is I/O bit
programmable. These ports may be combined together
to function as a single 8-bit port. Latched outputs will
directly drive LEOs. A reset signal causes these ports to
default to the input mode. Individual pull-up resistors
are available as a mask option in the pP075104A/108A
External event input for the timer/event counters. Each
pin can also act as an edge-triggered vectored interrupt
and a i-bit input port.
P80·P93, P90·P93
Port 8 and Port 9 are identical 4-bit I/O ports which can
be combined together to function as a single 8-bit port.
Latched outputs will directly drive LEOs. A reset signal
causes these ports to default to the input mode. Individual pull-up resistors are available as a mask option in
the pP075104A/108A
NCNpp
This pin may be left unconnected when using the
pP0751xx. For the pP075P108/P116, this pin is used as
the programming voltage input during the EPROM
write/verify cycles. When the devices are not being
programmed, this pin should be connected to VDD. Pin
must be connected to VDD if the same circuit board is
used for both programmable and non programmable
devices.
X1,X2
P120·P123, P130·P133
Port 12 and Port 13 are identical 4-bit I/O ports which
can be combined together to function as a single 8-bit
por"t. Latched outputs will directly drive LEOs. Outputs
are N-channel open drain, and can withstand up to 12
volts; pull-up resistor mask options are available for
these ports. A reset signal causes these ports to default
to the input mode.
These pins are the system clock inputs. The clock can
be either a ceramic resonator or a crystal; an external
logic signal may also be used.
This is the reset input, and it is active low.
Voo
P140·P143
Port 14 is a 4-bit I/O port. Latched outputs will directly
drive LEOs. Outputs are N·channel open drain, and can
withstand up to 12 volts; pull-up resistor mask options
are available for this port. A reset signal causes the port
to default to the input mode.
The system positive power supply pin.
Vss
System ground.
PTHOO·PTH03
4-channel comparator with 4-bit resol ution and on-chip
resistor ladder.
Product Comparison
Item
,.PD75104/104A
,.PD75106
"PD75108/108A
,.P075P108
,.P075112
,.P075116
,.P075P116
Program
memory
Mask ROM
OOOH-FFFH
4096 x 8 bits
Mask ROM
OOOH-177FH
6016 x 8 bits
Mask ROM
OOOH-1F7FH
8064 x 8 bits
EPROM/OTP
000H-1FFFH
8192 x 8 bits
Mask ROM
000H-2F7FH
12160 x 8 bits
Mask ROM
OOOH-3F7FH
16256 x 8 bits
OOOH-3FFFH
16384 x 8 bits
Data
memory
320 x 4 bits
Bank 0: 256 x 4
Bank 1: 64 x 4
320 x 4 bits
Bank 0: 256 x 4
Bank 1: 64 x 4
512 x 4 bits
Bank 0: 256 x 4
Bank 1: 256 x 4
512 x 4 bits
Bank 0: 256 x 4
Bank 1: 256 x 4
512 x 4 bits
Bank 0: 256 x 4
Bank 1: 256 x 4
512 x 4 bits
Bank 0: 256 x 4
Bank 1 : 256 x 4
512 x 4 bits
Bank 0: 256 x 4
Bank 1 : 256 x 4
Instruction
set
The BR laddr instruction is not provided in the JlPD751 04/1 04A.
Port lines
CMOS I/O lines: 32
12 open-drain outputs with 12 V breakdown. These outputs can have pull-up resistors as a mask option, except
for programmable parts. (Note 1)
Lines which directly drive LEDs: 44
Total number of lines: 52 (44 I/O and 8 input-only)
OTP
4-49
II
NEe
pPD751xx/15P1xx
Product Comparison
Item
"PD75104l104A
"PD75106
"PD75108/108A
"PD75P.108
"PD75112
"PD75116
"PD75P116
Power-onreset
circuit and
power-on
flag
Mask option
Mask!)ptlon
Mask option
Internally
provided
Mask option
Mask option
Not included
Operating
voltage
range
2.7 to 6.0 V
2,7 to 6.0V
2.7 to 6.0 V
5V ± 10%
2.7 to 6.0 V
2.7 to 6.0 V
5V± 10%
Package,
See ordering Information f9r a complete list of packages
Note.:
(1) The IIPD75104/104A have 24 additional VO port lines and 4 more
Input-only lines with mask option programmable pul~up resistors.
ADDRESS SPACES AND MEMORY MAPS
OOOOH to 0001 H:
The 75X architecture has two separate address spaces,
one for program memory (ROM), and another for data
memory (RAM).
Program Memory (ROM)
The ROM is addressed by the program counter. The size
of the program counter is 12, 13, or 14 bits; its size
depends on which member of the family is being used,
as does the amount of ROM present. The ROM contains
program object code,interriJpt vector table, a GETI
instruction reference table, and table data. Table data
can be obtained using the table reference instruction,
MOVT.
Figure 1 shows the addressing range which can be
made using a branch instruction or subroutine call
instruction. In addition, the BR PCDE and BR PCXA
instructions can be used for a branch where only the
low 8 bits of the PC are changed. The program memory
addresses are,
pPD75104/104A: OOOH to FFFH
pPD75106: OOOOHto 1nFH
pPD75108/108A: OOOOH to 1F7FH
pPD75P108: OOOOH to 1FFFH .
pPD75112: OOOOH to 2F7FH
pPD75116: OQooH to 3F7FH
IlPD75P116: OoaOH to 3FFFH
All locations of ROM except OOOH and 0001 H can be
used as program memory. However, if interrupts or
GETI instructions are used, the locations corresponding to those functions cannot be used. Addresses are
normally reserved as follows:
4-50
002H to oaOBH:
0020H to 007FH:
This address area contains the
program start address when a
RESET is applied, and Is also used
for setting the values of RBE and
MBE. Program execution can be
started from any address after a
RESET.
This area is used for interrupt vector
addresses and for setting the value
of RBE and MBE. Interrupts can
start from any location except
where noted.
This is the table area for GETI
instructions~ The GETl instruction
is used to access 1, 2 or 3-byte
instructions using one byte of
program memory. This is useful in
compacting code.
Program Counter (PC)
This is a 12/13/14-bit binary counter that contains the
address of the current program memory location. The
IlP075104/104A contain a 12-bit PC, the IlPD75106/108/
108A/P108 have a 13-bit PC, and theIlPD75112/116/P116
have a 14-bit PC.
When an instruction is executed, the PC is automatically incremented by the n\.lmber of bytes of the current
instruction. When a branch instruction (BR, BRCB) is
executed, the contents of the immediate data or register pair indicating the new address are loaded into some
or all the bits of the PO. When a subroutine call instruction (CALL, CALLF) is executed or an interrupt is
generated, the PC is incremented to point to the next
instruction, and this information is saved on the stack.
During an interrupt, the program s~atus word (PSW) is
NEe
also automatically saved on the stack. The address to
be jumped to by the CALL or interrupt is then loaded
into the PC.
When a return instruction (RET, RETS, or RETI) is
executed, the contents of the stack are restored to the
PC.
Data Memory (RAM)
The data memory contains three memory banks, 0, 1,
and 15. The RAM memory map is shown in figure 2. The·
memory consists of general purpose static RAM, general purpose registers, and peripheral control registers.
Memory banks are accessed by using the MBE (memory
bank enable) bit and by programming the BS (bank
select) register. If MBE = 0, the lower 128 nibbles of
memory bank 0 and the upper 128 nibbles of memory
bank 15 are accessed. If MBE = 1, the upper four bits in
the BS register will specify the memory bank. The values
are OH for memory bank 0, 1H for memory bank 1, and
FH for memory bank 15. Memory bank 0 contains 256
nibbles, while memory bank 1 contains either 64 or 256
nibbles depending on which member of the JiPD751XX/
P1XX family is being used. Although the memory is
organized in nibbles, the 75X architecture allows the
data to be manipulated in bytes, nibbles and individual
bits.
.
The data memory is used for storing processed data,
general purpose registers, and as a stack for subroutine
or interrupt service. Because of its static nature, the
RAM will retain its data when the chip is in the STOP
mode, provided VDD is at least 2 volts.
The on-chip peripheral control registers and ports reside in the upper 128 nibbles of bank 15. Bank 15
addresses which are not assigned to a register are not
available as random memory except for the is-bit sequential buffer. Also, the lower 128 nibbles of bank 15 do
not contain RAM.
There are four general-purpose register banks in RAM
BankO, beginning at address OOH. Each bank contains
eight 4-bit registers, (B, C, D, E, H, L, X, A), which may
be used together to form four 8-bit registers. Register
bank selection is accomplished by using the two loworder bits of the BS register and the RBE (register bank
enable) bit. A register bank is selected by setting RBE to
1 and programming BS to be OH-3H for register banks
0-3, respectively. If RBE = 0, the chip defaults to bank O.
Registers which are not used for any other purpose may
be used as general purpose RAM.
pPD751xxJ75P1xx
Each register can be used either in a 4-bit configuration
or in a 8-bit configuration when paired with one of the
others (BC, DE, HL, XA). There is also a "DL.:' pair
available. DL and pairs DE and HL can be used as data
pointers. For 8-bit manipulation, besides BC, DE, HL,
and XA, register pairs BC', DE', HL', and XA' are provided. If memory bank 0 is selected and BC' is referenced, BC' is register BC in memory bank 1. If bank 1 is
selected and BC' is referenced, BC' is register BC in
bank O.The same concept is true for register banks 2
and3
Figure 1. Program Memory Map
Address
OOOOH
7
6
I I
o
M BE RBE Internal reset start address
(high order six bits)
II
cJlF
l!addr
instruction
entry
MBE I RBE IINTBT/INT4 start address
(high order six bits)
address
Internal reset start address
(low order eight bits)
0002H
INTBT/INT4 start address
(low order eight bits)
0004H
BRCB
I caddr
instruction
branch
address
MBEI RBE IINTO/INT1 start address
(high order six bits)
INTO/INT1 start address
(low order eight bits)
0006H
MBEI RBEI
INTSIO start address
(high order six bits)
INTSIO start address
(low order eight bits)
OOOBH
MBEI RBEI
CAll
!addr
instruction
subroutine
entry
address
INTTO start address
(high order six bits)
INITO start address
(low order eight bits)
OOOAH
MBEIRBEI
I
BR !caddr
instruction
branch
address
INTT1 start address
(high order six bits)
INTT1 start address
(low order eight bits)
0002H
007FH
OOBOH
07FFH'f
OBOOHJ:
I
BR$addr
instruction
relative
branch
address
GETI instruction reference table
'f_
1;L
Subroutine
entry and
1
·branch
;L
address
by
GETI
1__-+- instruction
J,
1__+
J,
1 __-,---,,---,-
OFFFH' f t - - - - - - - - - - - - 1
100~J:
'f
2FFFHl'
3000HJ,
3F7FHl'
1FFFH
2000H~
49NR-724A
4-5.1
t\'EC
pPD751xx/75P1xx
Figure 2.
~
I 01FH
Data Memory Map fpPD75104/104A/106}
11purpose
General
registers
32x4
Data Memory
-----
Stack
area
224 x 4
1
I
Bank 1
Not
Internally
!
Bank 15
128 x 4
~
.f
h:~:~:;::~a
32x4
----~!~---
'T>~
I
Bank 1
L
~
Bank 15
~
H Register
004H
E Register
005H
D Register
006H
C Register
007H
B Register
I
I
I
I
017H
I
I
I
I
01FH
General
purpose registers
----
1
j
i
Same as the bank O.
Register bank 1
Same as the bank O.
Register bank 2
Same as the bank O.
Register bank 3
~
t
~
t
~
Stack
area
224x4
3
0
B
1
D
General purpose
static RAM
512x4
256x4
!
Not
Internally
r
H
perJheral
128 x 4
hardware area
C
3
~,
3
0
E
!5>
L
H
1
i'::>"
"'"
0
3
X
DPrOVided
3
H
0
3
A
83RO-7146A
----~!~--49NR·726A
4-52
L Register
003H
018H
II
BankO
X Register
002H
010H
Figure 28. Data Memory Map
fpPD75108 to pPD75116}
-
001H
I
I
I
I
OOFH
49NR-723A
~
I 01FH
A Register
008H
I
~DprOVided
OOOH
Register bank 0
General purpose
static RAM
320 x4
64 x4
L
o
ADDRESS 3
BankO
'T,,"
Figure 3. General Purpose Register
Configurations
t-IEC
pPD751xx/75P1xx
Addressing Modes
The pPD751xx/P1xx is able to address data memory and
ports as individual bits, nibbles, or bytes. The addressing modes are as follows:
1-bit direct data memory
4-bit direct data memory
Table 1.
4-bit register indirect (@rpa)
8-bit direct data memory
8-bit register indirect (@HL)
See table 1 for data memory addressing and table 2 for
peripheral control register addressing.
Data Memory Addressing Modes
Addressing Mode
Representation Format
How the Address Is Created
I-bit direct addressing
mem.bit
If MBE = 0, the memory bank is Bank 0 for addresses 00H-7FH, and Bank 15
for addresses 80H-F FH.
If MBE = 1, the memory bank is selected by the four bits of the MBS.
The bit to be manipulated is specified inmem.bit
4-bit direct addressing
mem
If MBE = 0, the. memory bank Is Bank 0 for addresses 00H-7FH, and Bank 15
for addresses 80H-F FH.
If MBE = 1, the memory bank is selected by the four bits of the MBS.
The bit to be manipulated is specified in memo
8-bit direct addressing
mem (must be an even address)
If MBE = 0, the memory bank is Bank 0 for addresses 00H-7FH, and Bank 15
for addresses 80H-F FH.
If MBE = 1, the memory bank is selected by the four bits of the MBS.
The bit to be manipulated is specified in memo
@HL, @HL+, @HL-
The memory bank is sele~ted by the four bits of the MBS, and the location
within the memory bank is contained in register HL
@HL+ : After addressing the L register automatically increments.
@HL-: After addressing, the L register automatically decrements.
@DE
The memory bank is always Bank 0, and the location within the memory bank is
contained in register DE
@DL
The memory bank is alwaYs Bank 0, and the location within the memory bank is
contained in register D L
8-bit register Indirect
addressing
@HL (must be an even address)
The memory bank is selected by the four bits of the MBS, and the location
within the memory bank is contained in register HL.
Bit manipulation
addressing
fmem.bit
The memory bank is Bank 15, and the location is fmem, where
fmem = FBOH- FBFH for interrupts
fmem = FFOH-FFFH
ports
The actual bit is specified in fmem.bit
4-bit register indirect
addressing
va
pmem.@L
(where pmem= FCOH to FFFH)
The memory location is independent of MBE and MBS. The upper 10 address
bits of the location are contained in the ten high order bits of pmem and the two
lower address bits are contained in the two upper bits of register L
The bit to be manipulated is specified by the two LSBs of register L
@H+ mem.bit
The memory bank is selected by the four bits of the MBS, and the location is
determined by the following:
The four upper bits are the contents of register H
The four lower bits are memo
The actual bit is specified in mem.bit.
Stack addressing
The memory bank is always Bank 0, and the location is indicated by the stack
pointer (SP)
MBE: memory bank enable bit
MB: memory bank
MBS: memory bank select register
mem: a location within a memory bank
mem.bit: a bit at a specified memory location.
fmem and pmem are specialized cases of memo
4-53
II
t-IEC
pPD751XX/75P1xx
Table 2. Addressing Modes During Peripheral Hardware Operation
Manipulation
Addressing Mode
Applicable Hardware
l-bit
With MBE = 0 (or MBE = 1 and MBS = 15) direct addressing
(address in mem.bit)
All hardware where bit manipulation can be
performed
.Direct addressing regardless of how MBE and MBS are set.
(address in fmem.bit)
ISTO, ISn, MBE, RBE
IExxx, IRQxxx, PORTn (n= 0 to 3)
Indirect addressing regardless of how MBE and MBS are set.
(address in pmem. @L)
BSBn.x
PORTn
With MBE = 0 (or MBE = 1 and MBS = 15) direct addressing
(address in mem.bit)
All hardware where 4-bit manipulation can be
performed
4-bit
With MBE = 1 and MBS = 15, register indirect addressing
(address in @HL)
B-bit
With MBE= 0 (or MBE = 1 and MBS = 15) direct addressing
(address in mem); mem must be an even address
All hardware where B-bit manipulation can be
performed
With MBE = 1 and MBS = 15, register indirect addressing (address
in @HL); L register must contain an even number
INSTRUCTIONS
The pPD751xx/p1xx provides a powerful set of 136
instructions.
Instruction Timing
The minimum instruction execution time is 0.95 ps with
a 4.19 MHz clock. The PCC register can be used to
program the CPU's minimum instruction cycle time to
0.95, 1.91, or 15,3 ps; all three speeds presuppose a
4.19 MHz crystal. Reducing the CPU clock speed will
reduce the microprocessor's power consumption.
Instruction Set
The instruction set contains the following features:
•
•
•
•
•
Versatile bit manipulation instructions
Efficient 4-bit manipulation instructions
a-bit instructions
GETI instruction to reduce program size
Vertically st()red instructions and base correction
instructions
• Table reference instructions
• 1-byte relative branch instructions
The instruction set is unusually powerful for a 4-bit
microcomputer. It consists of the full 75X instruction
set. It contains instructions that operate on 1-bit, 4-bit,
and a-bit data. It contains a-bit instructions generically
equivalent to virtually every 4-bit instruction type. Specifically, the instruction set contains the following a-bit
instruction types:
4-54
• Arithmetic: ADD W/CARRY, ADD W/SKlP,
.SUB W/BORROW, SUB W/SKIP
• Logical: AND, OR, XOR
• Comparison: SKE (skip if equal)
• Transfer: MOV, MOVT, XCH, IN, OUT, PUSH, POP, BR,
CALL
• Manipulation: INC W/SKJP, DEC W/SKIP
In addition, some of the 4-bit ports may be paired
together to function as one a-bit port. The combination
of 8-bit ports and 8-bit instructions allows IN and OUT
instructions to move full bytes of data at a time.
Organization. Tables 3 and 4 define the instruction set
symbols and operand formats, found in the instruction
set.
Clock Cycles. One machine cycle equals one CPU
Clock Cycle 4>. The PCC selects one of four available
CPU cycle speeds.
Skip Cycles. S equals the number of extra machine
cycles required for skip operation when executing a
skip instruction:
• S = 0; no skip
• S = 1; one- or two-byte instruction or GETI instruction is skipped
• S = 2; three-byte instruction is skipped (BR !addr,
CALL !addr)
NEe
pPD751XX/75P1xx
Table 3. Instruction Set Symbols
Table 4.
The devices use the following symbol definitions:
Symbol
Description
reg
regl
X, A, B, C, D, E, H, L
X, B, C, D, E, H, L
rp
rpl
rp2
rp'
rp'l
XA, BC, DE, HL
rpa
rpal
HL, HL+, HL-, DE, DL
DE, DL
n4
n8
4-bit immediate data or label
8-bit immediate data or label
mem (Note 1)
bit
8·bit immediate data or label
2·bit immediate data or label
fmem
pmem
FBOH·FBFH, FFOH-FFFH immediate data or label
FCOH-FFFH Immediate data or label
addr, caddr
JlPD75104: OOOH-FFFH immediate data or label
Symbol
A
B
C
D
E
H
L
X
XA
BC
DE
DL
HL
XA'
BC'
DE'
HL'
PC
SP
CY
PSW
MBE
RBE
PORTn
IME
IPS
IExxx
RBS
MBS
PCC
(xx)
xxH
Definition
A register; 4-bit accumulator
B register; 4-bit register
C register; 4-bit register
D register; 4-bit register
E register; 4-bit register
H register; 4-bit register
L register; 4-bit register
X register; 4-bit register
XA register pair; a-bit accumulator
BC register pair; 8-bit register
DE register pair; a-bit register
DL register pair; a-bit register
HL register pair; 8-bit register
XA' register pair; a-bit register
BC' register pair; a-bit register
DE' register pair; a-bit register
HL' register pair; a-bit register
Program counter
Stack pointer
Carry flag; bit accumulator
Program status word
Memory bank enable flag
Register bank enable flag
Port n (n = 0-9,12-14)
Interrupt master enable
Interrupt priority selection register
Interrupt enable flag
Register bank selection register
Memory bank selection register
Clock processor control register
Separation between address and bit
The contents addressed by xx
Hexadecimal data
Operation Representation Format
and Description Method
An operand is entered in the operand field of each
instruction according to the format of the instruction
(see assembler specifications). When two or more en
tries are indicated in the description method, one
should be selected. Capital letters and symbols must be
entered exactly as shown. For immediate data, a proper
numeric value or label should be entered as shown in
table 4.
Operand Formats
BC, DE, HL
BC, DE
XA, BC, DE, HL, XA', BC' DE', HL'
BC, DE, HL, XA', BC' DE', HL'
JlPD75106: OOOH-I77FH immediate data or label
JlPD75108: 000H-1F7FH immediate data or label
JlPD75Pl08: 000H-1FFFH immediate data or label
JlPD75112: 000H-2F7FH Immediate data or label
JlPD75116: 000H-3F7F immediate data or label
JlPD75P116: 000H-3FFFH immediate data or label.
faddr
II-bit immediate data or label
taddr
20H·7EH immediate data (where bit 0
PORTn
Port O·Port 9, Port 12·Port 14
IEBT, IESIO, IETO, IET1, IEO·IE4
RBO-RB3
MBO, MB1, MB15
IExxx
RBn
MBn
= 0) or label
Notes:
(1) Memory address must be an even number in 8·bit processing.
String Instructions
The jlPD751xx/P1xx family has the.following two types
of string effect instructions:
(1) MOV A, #n4 or MOV XA, #n8
(2) MOV HL, #n8
String effect means to place the same type instructions
in consecutive addresses. For example;
AO: MOVA, #0
A1: MOV A, #1
XA7: MOV XA, #07
4-55
II
ttlEC
pPD751XX/75P1xx:
If the first execution address is AO, the two subsequent
instructions are treated as NOP instructions during
program execution; if the first execution address is A1,
the instruction that follows is treated. as an NOP instruction during program execution. This means that
only the first string instruction is valid, with the follow-
ing string instructions being treated as NOPinstructions during program execution.
The string instructions increase efficiency when setting
constants into an accumulator (A register or Y.A
register-pair) or into a data pointer (HL register pair).
Instruction Set
Mnemonic
Operand
Bytes
Machine Cycle
Operation
Skip Condition
2
2
A- n4
reg1 -
String A
Transfer
MOV
A, #n4
reg1, #n4
XA, #n8
2
2
XA- n8
String A
HL, #n8
2
2
HL- n8
String B
rp2, #n8
2
2
A,@HL
2+S
A-
A,@HL-
2+S
A - (HL), then L+-L-1
A, @rpa1
L= 0
L= FH
A+- (rpa1)
XA +- (HL)
2
@HL,XA
2
2
(HL) - XA
A,mem
2
2
A- (mem)
XA,mem
2
2
XA .... (mem)
mem,A
2
2
(mem) -A
mem,XA
2
2
(mem) -XA
A, reg1
2
2
A-
XA, rp'
2
2
XA - rp'
reg1, A
2
2
reg1 +- A
rp'1, XA
2
2
rp'1
(HL) - A
A,@HL
(reg1)
+-
XA
A-(HL)
A,@HL+
2+8
A - (HL), then L+-L+1
L= 0
A,@HL-
2+S
A ... (HL), then L-L-1
L = FH
A, @rpa1
A - (rpa1)
XA,@HL
2
2
A,mem
2
2
A- (mem)
XA,mem
2
2
XA- (mem)
2
2
XA ... rp'
XA,@PCDE
3
XA +- (PC13-8+ DE)ROM
XA,@PCXA
3
XA
A, reg1
XA, rp'
4-56
(HL), then L-L+1
2
@HL,A
MOVT
rp2 - n8
A- (HL)
A,@HL+
XA,@HL
XCH
n4
XA- (HL)
A ... (reg1)
+-
(PC13-8+XA)ROM
NEe·
pPD751xx/75P1xx
Instruction Set (cont)
Mnemonic
Operand
Bytes
Machine Cycle
Skip Condition
Operation
Transfer (cont)
MOV1
CY, fmem.bit
2
2
CY, pmem.@L
2
2
CY - (pmem7_2+ '-3-2.bit(L1-0))
CY, @H+ mem.bit
2
2
CY - (H+ mema_o.blt)
fmem.bit, CY
2
2
(fmem.bit) - CY
pmem.@L, CY
2
2
(pmem7_2+ '-3-2.bit(L1-O)) - CY
@H+ mem.bit, CY
2
2
(H+ mema_o.bit) - CY
1+S
A- A+n4
Carry
2
2+S
XA - XA+n8
Carry
1+S
A- A+(HL)
Carry
XA - XA+rp'
Carry
rp'1 - rp'1 +XA
Carry
CY - (fmem.bit)
Arithmetic
ADDS
A, #n4
XA, #n8
A,@HL
ADDC
SUBS
SUBC
AND
XA, rp'
2
2+S
rp'1, XA
2
2+S
A,@HL
XA, rp'
2
2
rp'1, XA
2
2
A,@HL
A- A-(HL)
Borrow
2
2+S
XA - XA-rp'
Borrow
rp'1,XA
2
2+S
rp'1 - rp'1-XA
Borrow
XA, rp'
2
2
rp'1, XA
2
2
rp'1, CY - rp'1-XA-CY
A, #n4
2
2
A-A/\ n4
2
2
XA- XA/\ rp'
A,@HL
A, CY - A- (HL) - CY
XA, CY - XA-rp'-CY
A-A/\ (HL)
rp'1, XA
2
2
rp'1 - rp'1 /\ XA
A, #n4
2
2
A-AVn4
2
2
XA-XA V rp'
rp'1, XA
2
2
rp'1 - rp'1 V XA
A, #n4
2
2
A- AXOR n4
XA, rp'
2
2
XA - XA XOR rp'
rp'1, XA
2
2
rp'1 - rp'1 XOR XA
2
2
A-A
A,@HL
XA, rp'
XOR
rp'1, CY - rp'1 + XA+ CY
1+S
A,@HL
OR
XA, CY - XA+ rp'+ CY
XA, rp'
XA, rp'
a
A, CY - A+ (HL)+CY
A-A V (HL)
A,@HL
A - A XOR (HL)
Accumulator Manipulation
RORC
A
NOT
A
CY
+-
Ao,
Aa -
CY, An-1 - An
4-57
NEe
pPD751xx/75P1xx
Instruction Set (cant)
Mnemonic
Operand
Bytes
Machine Cycle
Operation
Skip Condition
reg - reg+ 1
=0
= OOH
(HL) = 0
(mem) = 0
reg = FH
rp' = FFH
Increment/decrement
INCS
DECS
reg
1+S
rpl
1+S
rp1 - rpl + 1
@HL
2
2+S
(HL) -
mem
2
2+S
(mem) -
1+S
reg - reg-1
2+S
rp' - rp'-l
reg
reg
rp1
(HL)+l
(mem) + 1
rp'
2
reg, #n4
2
2+S
skip il reg
@HL,#n4
2
2+S
skip il (H L)
1+S
skip il A
XA,@HL
2
2+S
skip il XA
A, reg
2
2+S
XA, rp'
2
2+S
Comparison
SKE
A,@HL
= n4
= n4
reg
= n4
= n4
(HL)
= (HL)
= (HL)
skip il A = reg
skip il XA = rp'
= (HL)
= (HL)
A = reg
XA = rp'
A
XA
Carry Flag Manipulation
SET1
CY
CLR1
CY
SKT
CY
NOT1
CY
CY-1
CY-O
1+S
skip il CY
CY
+-
=
1
+-
1
CY
=
1
CY
Memory Bit Manipulation
SET1
CLR1
SKT
SKF
4-58
mem.bit
2
2
(mem.bit)
Imem.bit
2
2
(Imem.bit) - 1
(pmem7_2+ l:3-2.bit(L1_0)) +- 1
pmem.@L
2
2
@H+mem.bit
2
2
(H + mem3-o.bit) +- 1
mem.bit
2
2
(mem.bit) +- 0
Imem.bit
2
2
(Imem.bit) - 0
pmem.@L
2
2
(pmem7_2+ L3_2.bit(L1-o))
@H+mem.bit
2
2
(H + mem3-o.bit)
<-
+-
0
0
=1
=1
mem.bit
2
2+S
skip il (mem.bit)
Imem.bit
2
2+S
skip if (Imem.bit)
pmem.@L
2
2+S
skip il (pmem7_2+ l:3-2.bit(L1-o))
@I;\+mem.bit
2
2+8
skip il (H+ mem3_0.bit)
skip il (mem.bit)
=1
=1
(pmem.@L = 1)
(mem.bit)
(Imem.bit)
=
=
1
(@H+ mem.bit)
=1
1
mem.bit
2
2+S
Imem.bit
2
2+8
=0
skip il (Imem.bit) = 0
pmem.@L
2
2+8
skip il (pmem7_2+ l:3-2.bit(L1-o))
@H+mem.bit
2
2+8
skip il (H+ mem3_0.bit)
=0
(Imem.bit) = 0
(pmem.@L = 0)
(mem.bit)
=0
=0
(@H+ mem.bit)
=0
NEe
IIPD751XX/75P1xx
Instruction Set (cont)
Mnemonic
Bytes
Machine Cycle
fmem.blt
2
2+S
skip if (fmem.bit)
pmem.@L
2
2+S
skip If (pmem7_2+ l:!-2.bit(Ll-ol)
@H+mem.bit
2
2+S
skip If (H+ mem3-o.blt)
Operand
Operation
Skip Condition
Memory Bit Manipulation (cont)
SKTCLR
ANDI
OR1
XORI
= 1 and clear
(fmem.bil)
= 1 and olear
= 1 and clear
CY, fmem.bit
2
2
CY - CY f\ (fmem.bil)
CY, pmem.@L
2
2
CY - Cy f\ (pmem7_2+ L3-2.bit(Ll-ol)
CY, @H+ mem.blt
2
2
CY - CY f\ (H+ mem3-Q.bit)
CY, fmem.blt
2
2
CY - Cy V (fmem.bil)
CY, pmem.@L
2
2
CY ... Cy V (pmem7_2+ l:!-2.blt(Ll-ol)
CY, @H+ mem.bit
2
2
Cy ... Cy V (H+ mem3-Q.bil)
CY, fmem.bit
2
2
Cy ... CY XOR (fmem.bil)
CY, pmem.@L
2
2
Cy ... CY XOR (pmem7_2+ l:!-2.blt(Ll-ol)
CY, @H+ mem.blt
2
2
Cy ... CY XOR (H+ mem3-Q.blt)
3
3
PCI3-Q ... addr
2
PC13-o ... addr
=1
(pmem.@L = 1)
(@H+ mem.blt)
=1
II
Branch
BR (Note 1)
addr
laddr (Note 1)
PCI3-Q - addr
$addr
BRCB
loaddr
2
2
PCI 3-o .... PCl3,12+caddrll-o
BA
PCDE
2
3
PC13-o -
PCI3-S+ DE
PCXA
2
3
PCI 3-Q -
PCI3-S+ XA
Subroutine Stack Control
CALL
laddr
3
3
(SP-4)(SP-l)(SP-2) ... PC11-o
(SP-3) - (MBE, ABE, PCI3,121
PCI3-0 - addr, SP - (SP-4)
CALLF
Ifaddr
2
2
(SP-4)(SP-l)(SP-2) ... PCll-o
(SP-3) - (MBE, ABE, PCI3.121
PCI 3-0 - 00, faddr, SP - (SP-4)
AET
3
(MBE, ABE, PCI3,121 ... (SP+ 1)
PC11 -0 -(SP)(SP+3)(SP+2)
SP-(SP+4)
AETS
3+S
RETI
3
PUSH
POP
2
2
2
2
rp
BS
Unconditional
(PCI3.121- (SP+l)
PCll-o - (SP)(SP+3)(SP+2)
PSW ... (SP+ 4)(SP+ 5), SP - (SP+6)
(SP-l)(SP-2) -
rp
BS
(MBE, RBE, PCI3.121- (SP+l)
PCll-o - (SP)(SP+3)(SP+2)
SP - (SP+4), then skip unconditionally
rp, SP ... (SP-2)
(SP-1) .... MBS, (SP-2) +- RBS, SP +- (SP-2)
rp -
(SP+1)(SP), SP ... (SP+2)
MBS +- (SP+l), ABS -
(SP). SP .... (SP+2)
4-59
t¥EC
pPD751xx/75P1xx
Instruction Set (cont)
Mnemonic
Operand
Bytes
Machine Cycle
Operation
Skip Condition
Interrupt Control
2
2
IME .... 1
2
2
IExxx
2
2
IME .... O
2
2
IExxx .... 0
A, PORTn
2
2
A .... PORTn : (n = 0 to 9, 12-14)
XA, PORTn
2
2
XA .... PORTn+ 1, PORTn: (n = 4,6,8, 12)
2
2
PORTn ... A: (n = 2 to 9, 12-14)
2
2
PORTn+ 1, PORTn .... XA: (n = 4,6,8, 12)
HALT
2
2
Set HALT mode (PCC.2 .... 1)
STOP
2
2
Set STOP mode (PCC.3 ... 1)
EI
IExxx
01
IExxx
+- 1
Input/Output (Note 2)
IN
OUT
PORTn,XA
CPU Control
No operation
NOP
Specisl
SEL
GETI
= 0-3)
RBn
2
2
RBS ... n: (n
MBn
2
2
MBS .... n: (n = 0,1,15)
3
When the table is specified by the TBR
Instruction,
PC 11 -0 .... (taddrla_o + (taddr+ 1)
When the table is specified by the TeALL
Instruction
(SP-4)(SP-1)(SP-2) .... PC11-o:
(SP-3) .... (MBE, RBE, PC13,12l:
PC l 3-D .... (taddr)s-o + (taddr+ 1):
SP-SP-4
When the table Is specified by any other
instructions, the (taddr), (taddr+ 1) Instructions
are executed. (Note 3)
taddr
Depends on the
referenced
instruction
Notes:
(1) Appropriate Instructions are selected from BR laddr, BRCB
Icaddr, and BR $addr by the assembler. (BR laddr is not available
on the pPD75104I104A)
(2) When executing the IN/OUT instruction, either MBE must be
reset to 0, or MBE and MBS must be set to 1 and 15, respectively.
4-60
(3) TBR and TCALL are pseudolnstructions used only to specify
these tables.
ttlEC
pPD751XX/75P1xx:
Table 5. Digital Port Features
Port Number
Type
Operational Features
Comments
Port 0
4-bit Input
Can be read or tested at any time regardless of
the functional mode of the shared pins.
Pins are also used for Sl, SO, SCt<, and INT4.
Port 1
4-bit input
Can be read or tested at any time regardless of
the functional mode of the shared pins.
Pins also used for INTO-INT3.
On the pP075104A/1OBA, Internal pul~up
resistors are available for each line as a mask
option.
Port 3
Port 6
4-blt
VO
Can be set for input or output mode In 1-blt
units.
On the pP075104A/108A, internal pul~up
resistors are available for each line of port 6 as
a mask option.
Port 2
(Note 1)
4-bItVO
Can be set for input or output mode in 4-bit
units.
Pins are also used for PTOO, PT01, and PCL
Port 4
Port 5
Port 7
Port 8
Port 9
(Note 1)
4-bit
Can be set for Input or output mode In 4-bit
units.
Ports 4-5, 6-7, and 8-9 can be paired together to
enable 8-blt data transfers.
On the pP075104A/108A, internal pul~up
resistors are available for each line as a mask
option.
Port 12
Port 13
Port 14
(Notes 1, 2)
4-bitVO
Can be set for Input or output mode In 4-bit
units; Ports 12 and 13 can be paired to form a
single 8-bit VO port.
Except for pP075P108/P116, internal pul~up
resistors are available for each line as a mask
option.
VO
Notes:
(1) Ports 2-9 and 12-14 can directly drive LEOs. Total current must
not exceed 200 mA (peak).
Input/Output Ports
There are thirteen 4-bit ports; some are I/O ports and
some are input only. Figure 4 shows the structure of the
ports and table 5 lists the features. Figure ~ also shows
the structure of inputs and outputs of the other pins.
(2) The output stage of ports 12-14 contains an N-channel open-drain
transistor capable of withstanding 12 V.
The PCC register controls the HALT and STOP logic and
can also be used to set the CPU to operate at one of
three speeds. The CLOM register controls the output
clock PCL
Basic Interval Timer
Clock Generator
The clock generator (figure 5) uses the crystal inputs X1
and X2 as a time base to provide clocks for the
JlPD751xx!P1xx . The generator consists of an oscillator, frequency dividers, multiplexers, and two control
registers, (PCC and CLOM). By programming PCC and
CLOM, frequencies derived from the crystal are supplied to the CPU, the interval timer, the timer/event
counter, the serial interface, and the output pin, PCL
The basic interval timer (figure 6) is used to provide
continuous real-time interrupts. It consists of a mUltiplexer, an a-bit free-running counter, and a 4-bit control
register (BTM). Each time the counter reaches FFH it
causes an interrupt, overflows to OOH and continues to
count. The BTM register is used to select one of four
clock inputs to the counter as well as clear the counter
and its interrupt request. The counter can generate 250
ms interrupts with a 4.19 MHz crystal and also provides
oscillator stabilization time when the chip comes out of
the STOP mode.
4-61
II
NEe
pPD751XX/75P1u
Figure 4. I/O Circuit.
Type A
Type E-A
(for Type E)
(P40-P43, P50-P53, P60-P63,
P70-P73. P8o-P83, P90-P93)
VOD
,
Input
~,,"" ~"P,,_Ch"
VDD
Resistor
~; Pull-Up
(Mask Option for
Data
, 75104A and 75108A only)
IntOut
Output Disable
N-ch
CMOS standard input buffer
TypeB
Input/output circuit composed of a Type D push-pull
output and a Type A input buffer.
(POo. P03, P10-P13, TIO, TI1, RESET)
VDD
Pull-Up Resistor .
(Mask option ~'
available at P10-P13
for75104Aand751~8A)
,
Input
"
,
,
TypeF
(P01)
Data
In/Out
Output Disable
Schmit! trigger input with
hysteresis characteristic.
TypeD
(For Type E, F)
Input/output circuit composed of a Type D push-pull
output and a Type B Schmit! trigger input
VDD
Datalli~"p-Ch"
""
Output Disable
Type M-A
(P120-P123. P130-P133. P140-P143)
,," N-ch
,
VDD
Output
-=
,
Pull-Up Resistor ~
(Mask option not available ~
in 75P108or75P116) ..
' - - - t " - O IntOut
.
Da~
Output Dlsab: -L..,/'- I
Push-pull output where output can be placed in high
Impedance. P and N channels are tumed o~.
N-ch
(+12V)
TypeE
(PO 2 ,P20-P23, P30-P33)
Data
In/Out
Output Disable
MediumVoltage Input Buffer (+12 V)
TypeN
(PTHOO-PTH03)
InputlOutput circuit Composed of a Type D
output and a Type A"lnput bUffer.
PU~h.:pull
'
"
VREF
(Threshold Voltage)
49NR-7258
4-62
NEe
pPD751 xx/75P1 xx
Figure 5. Clock Generator
Interval Timer: fxx/25, fxx/27, fxx/29 , fxx/2 2
Timer/EventCounter: fxx/24, fxx/26, fxx/28, fxx/210, fxx/212
XTAL
~
~
X1
J
fxx
System
Oscillator
X2
STOP
I
Serial Interface: 0 (CPU Clock), fxx/24, fxx/21 0
Frequency Divider
118 1116
1112
I
I
Multiplexer --<> P22/PCL
STOP
Logic
ENB
1
CPU Clock Multiplexer
'I SEL
-
,I
Output
1
1/4
1
1
n
HALT
Logic
1
1
I
SEL
0
(to CPU)
a
HALT
I
PCC Register
CLOM Register
1
4{
4{
Inter nal
DataBus
49NR·7226
Figure 6. Basic Interval Timer
fxX /2 5
fxx/27
fxx/29
fxx/212
Overflow
8-Bit Binary
Counter
S
Interrupt
Request
Flag
Vector
Interrupt
Request
8
I n l e r n a l . . - - - - ' - - - - - - - - ' ' - - - - - - - - ' - - - - -____
DataBus~--------------------~
49NR-721A
4-63
~EC
pPD751XX/75P1xx
Timer/Event Counters
Serial Interface
Each of the two timer/event counters (figure 7) consists
of an 8-bit modulo register, 8-bit comparator, 8-bit
count register, clock multiplexer, mode control register,
and a TOUT flip flop. There is also some control logic so
that the timer's TOUT flip flop can be sent to port 2.
The 8-bit serial interface (figure 8) allows the
pPD751xx/P1xx to communicate with other NEC or
NEC-like serial interfaces. It consists of an 8-bit shift
register, 3-bit counter, clock multiplexer, and control
register SIOM. The three-wire interface consists of the
serial data in (SI), serial data out (SO), and serial shift
clock (SCK).
The two timers differ only by the clock selection to the
count register. Timer 0 has an fxx/16 clock input, and
Timer 1 has an fxx/4096 clock input. TIO and TI1 can also
be used as external clock inputs to count events.
The 8-bit shift register is loaded with a byte of data, and
when bit 3 of SIOM is set, 8 clock pulses are generated.
These pulses shift data out the SO line and data in from
the SI line, thus, communicating in full duplex. Each
time bit 3 of SIOM is set, a burst of eight clock pulses is
generated and eight bits of data will be sent. Data may
be sent either LSB or MSB first. The interface may also
be set to receive data only; in this case SO is in the
high-impedance state. One of four internal clocks or an
external clock may be used to clock the data.
An 8-bit value is loaded into the modulo register, and a
count register clock is selected by the clock multiplexer,
via control register TMO (or TM1 for counter 1). The
count register is incremented each time it receives a CP
pulse. When the value in the count register is equal to
the count in the modulo register, the comparator generates a signal which toggles the TOUT flip flop and
causes the count register to be reset to OOH. The count
register will continue to count up unless stopped. Each
time TOUT changes state it causes an interrupt. This
signal can also be used as a clock for the serial
interface.
Figure 7. Timer/Event Counter
InternaI
Data Bus
I
i
Mode Register
(TMO)
8
8f
I
J
Modulo Register
(TMODO)
I
L
l
Comparator
~
TOUT
F/F
~~
(T1 n1 )
To
Selector ~~
Control
Logic
j---+-P2 n
8
TI0(TI1)
Ixx/21 a
Ixx/28
,•• /2 6
Ixx/24 (TO)
IT
~
CP
Clock
Multiplexer
-
Count Register
(TO)
I
Serial Interface
(from Timer/Event
Counter a only)
IROTn
l.x/2 12 (T1)
49NR-720B
4-64
NEe
Comparator Port
The four-input comparator port (figure 9) contains a
resistor ladder with 4-bit resolution, a 4-1 multiplexer, a
comparator, a 1-4 demultiplexer, and an input result
register, PTHO. This port is controlled by the 8-bit PTHM
register and operates in a sequential manner. When bit
7 of the PTHM starts the comparator, the comparator
reads and converts input PTH3, then the others in order,
ending with PTHO. Then the PTHO register may be read
to get the results.
pPD751XX/75P1xx
Figure B. Serial Interface Block Diagram
Intemal[=====::::;======::::::;===:l
Data
Bu.
POa/SI
P02/SO-----t-------'
The user may select a slow or fast conversion time.
With a 4.19 MHz crystal, total time required to convert
all four inputs is 258 jJs and 32.3 jJs, respectively.
IROSIO
SEL
Bit Sequential Buffer
The bit sequential buffer is 16 bits of general-purpose
RAM located in the upper half of memory bank 15, and is
the only general-purpose RAM in this area All other
locations in this bank contain either the on-chip peripheral control registers or are unused addresses. A typical
application of this buffer might be to store data for the
next serial output or to store data from a serial input. It
could also be used to store data which is to be sent from
a port. This area can be bit, nibble, or byte manipulated.
Interrupts·
The jJPD751xx/P1xx family interrupts (figure 10) are all
vectored; there are five external and four internal interrupts. Table 4 gives a summary of the interrupts. The
hardware provides two levels of interrupt nesting; interrupt priorities can be changed via register IPS. Inputs
INT2 and INT3 will detect rising edges and generate an
interrupt request flag which is testable. Neither INT2 nor
INT3 will cause an interrupt, but they can be used to
release the STANDBY mode.
-0(CPUCLK)
Clock
- Ixx/2 4
P01/SCK~~---<.---I
Multiplexer _lxx/210
_TOUTFIF
49NA-719A
Figure 9. Comparator Port
PTHOa-+
PTHO.a
PTH02""
Input
PTH01 .... Multiplexer
PTHD.2
PTHOo'"
PTHD.O
PTHD.1
'----'
PTHO
Register
VDD
Rl2
R
PTHM7
R
Resistor
Ladder
Multiplexer
SEL
~HMO
·PTHMa
R
4
PTHM
Register
4
Rl2
Internal
Data Bus
49NR-718A
4-65
II
ttiEC
pPD751XX/75P1xx
Figure 10. Interrupt Controller Block Diagram
Intemal
Dam Bus /
cib~
I
9
Interrupt Enable Flag
(IEXXX)
I
I
I
t~
(IME) I IPS
t
•
Decoder
J
-
'--
IRQBT
INTBT
~
INT41POO
Double Edge
Detection Circuit
INTOIP10
'-I Detection
Edge
~
Circuit
IRQ
4
IROO
-
"'--1 Delection
Edge
~
Circuit
INT11P11
IRQt
•
INTSIO
IROSIO
•
INTTO
IROTO
IROT1
INTT1
Rising Edge
Detection Circuit
IRQ2
INT31P13
~
-->L~
r---
1ST··
Rising Edge
Detection Circuil
IRQ3
~
TI
VR~
____
-D
-D
-D
-D
Priority
Control
=::)
Vector
Table
Address
Gen
--=0
-D
-D
Request
Flags
'---
-
~
------'-: ""-
Standby
Release
Signal
49NR-7178
Standby Modes
The standby mode is summarized in table 7 and consists of three submodes, HALT, STOP, and Data Retention.
HALT mode. The HALT mode is entered by executing
the HALT instruction. In this mode, the. clock to the CPU
is shut off (thus stopping the CPU), while all other parts
of the chip remain fully functional.
STOP mode. The STOP mode is entered by executing
the STOP instruction. In this mode, the chip's main
system oscillator is shut off, thereby stopping all portions of the Chip.
4-66
The HALT and STOP modes are released by a RESET or
by any interrupt request.
Data Retention mode. This mode may be entered after
entering the STOP mode. Here, supply voltage Voo may
be lowered to 2 volts to further reduce power consumption. The contents of the RAM and registers are retained. This mode is released by first raising Voo to the
proper operating range, then releasing the STOP mode.
NEe
pPD751xx/75P1xx
Table 6. Interrupt Sources
Interrupt
Source
Operation and Source
Internal/
External
INTBT
Reference time interval signal from basic
interval timer
Internal
INT4
Both rising and f ailing edge detection
External
INTO
Selection of rising or falling edge detection
External
INT1
Selection of rising or falling edge detection
External
INTSIO
Serial data transfer completion signal
INTTO
Coincidence signal between timer/counter 0,
or edge detect ion of TIO input
'
INTT1
Interrupt
Priority
Vectored Interrupt Request Signal
(Vector Table Address)
VRQ1 (002H)
2
, VRQ2 (OOO4H)
Internal
3
VRQ3 (OOO6H)
InternaVExternal
4
VRQ4 (OOOBH)
Coincidence signal between timer/counter 1,
or edge detection of TI1 input
InternaVExternal
5
VRQ5 (OOOAH)
INT2
RiSing edge detection
External
Testable input signals (IRQ2 and IRQ3 are set)
INT3
Rising edge detection
External
a
Table 7. Standby Mode Operation
Item
STOP Mode
HALT Mode
HALT Instruction
Setting the mode
STOP Instruction
Clock oscillator
The main system clock oscillator is stopped
Only CPU cloc::k
Basic interval
timer
Operation stopped
Can Operate (IRQBT is set by reference time intervaQ
Serial interface
Can operate only when external SCK Input Is
selected for serial clock. (Note 1)
Can operate if other than CPU clock
serial clock
Timer/event
counter
Can operate oniy when Tin (n = 0, 1) pin Input
is selected for count clock
Can operate
Clock output
circuit
Stops operation
Can operate if other than CPU clock
CPU
Operation stopped
Operation stopped ,
Retained data
Contents of all registers (general registers, flags, mode registers, and output latches) and contents of data
memory retained
Release signal
Interrupt request signal (enabled with Interrupt enable flag) from operating hardware or RESET
cp is stopPed (~cillation contin~es)
cP is speoified as
cP is specified
Notes:
(1) Can also operate with TIOselected as the serial clock, but only
when Timer/Event Counter 0 Is operated with an external TIO
Input.
4-67
NEe
pPD751XX/75P1xx
RESET and the Reset Generator
Figure 11. Power-On-Reset Signal Generator and
PONF
The power-an-reset (POR) generator (figure 11) is always· .present in the· pPD75P108, not present in the
pPD75P116, and available by mask option in the mask
ROM devices.
RESET
The POR circuit generates a one-shot pulse by detecting the supply voltage rising edge. Use of this pulse is
determined by mask option:
(1)
I
-I)-....--'--'---'DInternal
V ,--__.
Reset Signal
(RES)
Switch
B
Both SWA and SWB are ON.
When the power suPPly rising edge is detected,
the internal reset signal (RES) is generated and
the power-on flag (PONF) is set at the same time.
(2)
SWA only is ON.
When the power supply rising edge is detected,
PONF is set. (RES is not generated automatically.)
(3)
Both SWA and SWB are OFF.
The power-on reset generator and and power-on
flag are disabled. RES is generated only by the
RESET input.
Internal
Bus
83VL-71 ..8A
Table 8. State of the Device after ReSet
RESET Inputted
During Standby Mode
Hardware
The six low-order bits of program memory address OOOH are loaded
into PC13-PCa. The contents of address 0001H are loaded Into
PC7-PCO.
Program counter (PC)
psw
RESE'l'lnputted
Dudng Normal Operation
or Power-on
Carry flag (CY)
Held
Undefined
Skip flags (SKO, SK1, SK2)
o
o
o
o
Interrupt status flags (ISTO, IS11)
Bank enable flags (MBE, RBE)
Bit 6 of program memory address OOOH Is loaded into RBE and bit
7 Into MBE.
Stack pointer (SP)
Undefined
Undefined
Data memory (RAM)
Held (Note 1)
Undefined
General purpose registers
(X, A, H, L, 0, E, B, C)
Held
Undefined
Bank selection registers
(MBS, RBS)
0,0
0,0
Baslo Interval timer
Timer/event counter
(n=O, 1)
Serial interface
4-68
Counter (B1)
Undefined
Undefined
Mode register (BTM)
0
0
0
Counter (Tn)
0
Modulo register (TMODn)
FFH
FFH
Mode register (TMn)
0
0
TOEn, TOFn
0,0
0,0
Shift register (SIO)
Held
Undefined
Mode register (SIOM)
0
0
NEe
pPD751xx/75P1xx
Table B. State of the Device after Reset (cont)
REm Inputted
FiE!ETlnputted
During Standby Mode
During Normal Operation
or Power·on
Processor clock control register
(PC C)
0
0
Clock output mode register
(CLOM)
0
0
Hardware
Clock generator
and clock output circu it
Interrupt function
Digital ports
Interrupt request flags (IRQxxx)
Reset to 0
Reset to 0
Interrupt enable flags (IExxx)
0
0
Priority selection register (IPS)
0
0
INTO, and INTl mode registers
(IMO,IM1)
0,0
0,0
Output buffers
Off
Off
Output latches
Cleared (to 0)
Cleared (to 0)
Input/output mode registers
(PMGA, PMGB, PMGC)
0
0
Bit sequential buffer
Analog port
II
0
0
PTHOO-OS input latches
Undefined
Undefined
Mode register (PTHM)
0
0
Power-on flag (PONF)
Undefined
1, Undefined (Note 2)
Bit sequential buffer
(BSBO-S)
0
0
Notes:
(1) Addresses OF8H to OFDH are undefined after RESET.
(2) This value is 1 upon power-on-reset and undefined during normal
operation.
EPROM Write/Verify
Table 9. EPROM Write/Verify Pin Functions
The pPD75P108 contains 8192 bytes of EPROM, while
the pPD75P116 has 16256 bytes. Table 9 shows the pin
functions during the Write/Verify cycles. Note that it is
not necessary to enter an address, since the address is
updated by pulsing the clock pins. When VDD = 6 V and
Vpp = 21 V in the pPD75P108 (or Vpp = 12.5 V in the
pPD75P116) are applied, the EPROM is placed in the
write/Verify mode. The operation is selected by the
MDO-MD3 pins, as shown in table 10.
Pin Name
Functlori
Xl,X2
After a write/Verlfy write, the Xl, and X2 clock
pins are pulsed. (Note that these pins are
also pulsed during a read.)
MOO-MOO
These are the operation mode selection pins.
P4o-P43
(four low-order bits)
PSo-PS3
(four high-order bits)
8-bit data Input/output pins for write/verify
Vee
,Supply voltage. Normally S volts; 6 volts Is
applied during writetverlfy
Vpp
Normally S volts; Vpp
21 V in the
JlPD7SP108 (or V pp = 12.S V in the
JlPD7SPl16) during wrlte/Verlfy
=
Notes:
(1) A cover should be placed over the UV erase window. The OTP
. devices do not have windows, thus the EPROM contents cannot
be erased.
4-69
fttIEC
pPD751 XX/75P 1:xx:
Caution
Table 10.
Apart from their normal functions, The POo/INT4 and
RESET pins are used to test the internal operation of
the programmable devices. The test mode is entered by
applying a voltage greater than VDD to either of these
pins.
For this reason, care must be taken to limit the voltage
applied to these two pins. F or example, it is conceivable
that even during normal operation enough spurious
noise may be present to set the chip into the test mode.
If this happens, further normal operation is impossible.
Consequently, it is important that interwiring noise be
suppressed as much as possible. If this is inconvenient,
anti-noise measures, like those shown in figure 12,
should be implemented.
The write!verify mode is entered by applying 6 volts to
VDD and Vpp = 21 V in the pPD75P108 (or Vpp = 12.5 V
in the pPD75P116). Mode is determined by the setting of
the MDO-MD3 pins; all other pins are tied to ground by
pulldown resistors.
Figure 12. Noise Reduction Techniques
MOO
MOl
M02
0
M03
0
Clear program memory address
Write mode
0
0
Operation Mode
0
x
Verify mode
Program inhibit
Notes:
(1) X = Don't care.
EPROM WriteNerifY Procedure
EPROMs can be written at high speed using the follow
ing procedure:
( 1) Pull unused pins to Vss through resistors. Set the
X1 pin low.
( 2) Supply 5 volts to the VDD and Vpp pins.
( 3) wait for 10 ps.
( 4) Select the clear program memory address mode.
A. Connection of diode between
POo/INT4 or RESET and VOO
( 5) For the pPD15P108, supply 6 volts to VDD and 21.0
volts to Vpp. For the pPD75P116, supply 6 volts to
VDD, and 12.5 vcilts to Vpp.
I
Voo
..
WritelVerify Operation
vpp = 21 V intheIlPD75P108, vpp = 12.5 inthe1lPD75P116,
voo = +6.0V
Operation Mode SpeCification
( 6) Select the program inhibit mode .
POOIINT4 (RESET)
( 7) Write data in the 1 ms write mode.
( 8) Select the program inhibit mode.
( 9) Select the verify mode. If the data is. correct,
proceed to step 10. If not, repeat steps 7, 8, and 9.
B. Connection of capacitor between
POOIINT4 or RESET and VDO
+
(10) Perform one additional write with an MDO pulse
width equal in ms to the number of writes performed in step 7, times 1 ms.
I
voo
(11) Select the program inhibit mode.
POo/INT4 (RESET)
83R.D·7149A
(12) Apply four pulses to the X1 pin to increment the
program memory address by one.
(13) Repeat steps 7-12 until the end address is reached.
(14) Select the clear program memory address mode.
(15) Return the VDD and Vpp pins back to
(16) Turn off the power.
+ 5 volts.
NEe
pPD751XX/75P1xx
Figure 13. EPROM Write/llerify Cycle Timing
""'!-~----x Repetitions----~I
~Write-~'~I""--Verify---;~+-'-Additional Write-.....~I.---Address Increment---..j-I
Vpp= 12.SV - - - r-------------~ff_:...------------------VPP=VDD--f
r-------------->ff_-------------------
VDD=VDD+1- - VDD=VDD--f
X1
,
J
p~~:~~ -----«
InputDala
>--<
Output
Data~!---(
Input Data
)>-------------
II
MDO
(P30)
MD1
(P3 1)
MD2
/
---'
/
r--------------~~-------------------
(P3 2) - - '
MD3
/r--------------;f,~(--------------------(P3 3 ) - - - ,
49NR·S76B
EPROM Read Procedure
( 6) Select the program inhibit mode.
The EPROM contents can be read by using the following procedure:
( 7) Select the verify mode. Apply four pulses to the X1
pin. Every four clock pulses will output the data
stored in one address.
( 1) Pull unused pins to Vss through resistors. Set the
X1 pin low.
( 8) Select the program inhibit mode.
( 2) Supply 5 volts to the VDD and Vpp pins.
( 9) Select the clear program memory address mode.
( 3) Wait for 10 ps.
(10) Return the VDD and Vpp pins to
( 4) Select the clear program memory address mode.
(11) Turn off the power.
+ 5 volts.
( 5) For the pPD75P108. supply 6 volts to VD D and 21.0
volts to Vpp. For the pPD75P116. supply 6 volts to
VDD. and 12.5 volts to Vpp.
4-71
NEe
pPD751XX/75P 1xx:
rll/ure 14. EPROM Read Cycle Timing
r -----------------------------~----------~J~
Vpp= l2.SV Vpp.Voo--'
voO=VOO+l - I.,..
--~--------------------------------------~J~
voo·voo--'
'1/\
Xl
p~~~~----------~(~
______O_ut_pu_tO_a_m____
__J)(~______Ou_tP_ut_~_m
\
MOO)
(P3o)
J)(~__________~~~
______
r
~.------------------~-----------------------------,
MOl
(P31l __________
~----------------------------------------------~J~
r-------------------------------------------_a----
M02/
(P32l
M03
,r----------------oJ\.
(P33l - - - '
"49NR-517B
Program Memory Erase (pPD75P108DW only)
The pPD75P108DW allows the programmed data co~
tents to be erased by light rays whose wavelength IS
shorter than about 400 nm. The programmed data
contents may also be erased if the uncovered window is
exposed to direct sunlight or a fluorescent light for
several hours. Thus, to protect the data contents, cover
the window with an opaque film. NEe provides qualitytested shading film with each UV EPROM shipment.
4-72
F or normal EPROM erase, place the device under an
ultraviolet light source (254 nm). The minimum amount
of radiation exposure required to erase the
pPD75P108DW completely is 15 Ws/cm 2 (ultraviolet ray
strength times erase time). This corresponds to about
15 to 20 minutes when using a UV lamp of 12 Vpp pW/
cm2• However, the erase time may be prolonged if the
UV lamp is old or if the device window is dirty. The
distance between the light source and the window
should be 2.5 cm or less.
NEe
pPD751XX/75P1:xx
ELECTRICAL SPECIFICATIONS
Absolute Maximum Ratings (J1PD751xx)
TA
= 25°C
-0.3 to + 7.0 V
Supply voltage, Voo
Operating temperature, tOPT
-40 to + 85°C
Input voltage, VI1 (ports 12-14)
-0.3 to Voo + 0.3 V
Storage temperature, tSTG
-S5 to + 1500C
Input voltage, VI2 (ports 12-14;
internal pull-up resistor)
-0.3 to Voo + 0.3 V
Input voltage, VI2 (ports 12-14;
open drain)
-0.3 to +13V
(Note 1)
Exposure to Absolute Maximum Ratings for extended periods may
affect device reliability; exceeding the ratings could cause permanent
damage.
Output voltage, Vo
-0.3 to VOO + 0.3 V
High-level output current, IOH
(Single pin)
-15mA
High-level output current, IOH
(Total of all pins)
-30 mA
Low-level output current, IOL
(Single pin)
Low-level output current, IOL
(Total of ports 0, 2-4, 12-14)
Low-level output current, IOL
(Total of ports 5-9)
Notes:
(1) When applying more than 10 V to ports 12, 13, or 14, the external
pull-up resistor must be at least 50 ko'
(2) rms value
=
pk x (duty cycle) Yo.
Capacitance (J1PD751 xx)
30 mA pk
15 mA rms (Note 2)
100 mA pk
SO mA rms (Note 2)
100 mA pk
voo
=
0 V; TA
=
25°C
Parameter
Symbol
Max
Unit
Conditions
Input capacitance
CIN
15
pF
Output capacitance
COUT
15
pF
I/O capacitance
CIO
15
pF
f = 1 MHz;
all unmeasured
pins returned
to ground
SO mA rms (Note 2)
Oscillator Characteristics (All devices)
/lPD751xx: TA = -40 to + 85°C; Voo = 2.7 to S.O V
/lPD75Pl08: TA = -10 to + 85°C; VOO = 4.5 to 5.5 V
/lPD75PllS: TA = -40 to + 85°C; VOO = 4.5 to 5.5 V
Oscillator
Parameter
Symbol
Min
Ceramic resonator
(Figure 15A)
Oscillation frequency (Note 1)
!xx
2.0
Crystal resonator
(Figure 15A)
External clock
(Figure 159)
Oscillation stabilization time (Note 2)
Oscillation frequency (Note 1)
!xx
2.0
Oscillation stabilization time (Note 2)
Typ
Max
Unit
5.0
MHz
4 (Note 3)
ms
5.0
MHz
10 (Note 3)
ms
30 (Note 3)
ms
Xl input frequency (Note 1)
fXX
2.0
5.0
MHz
Xl input high/low level width
!xH, !xL
100
250
ns
Conditions
After Voo reaches
oscillation voltage
Voo
= 4.5 to S.O V
Notes:
(1) The oscillation frequency and Xl input frequency are included
only to show the characteristics of the oscillators. Refer to the AC
Characteristics table for actual instruction execution times.
(3) Values shown are for the recommended resonators. Values for
resonators not shown in this data sheet should be obtained from
the manufacturer's spec sheets.
(2) The oscillation stabilization time is the time required for the
oscillator to stabilize after voltage is applied or the STOP mode is
released.
4-73
II
NEe
pPD751 XX/75P 1xx
Recommended Ceramic' Resonators (tlPD751 xx)
Figure 15. System Clock Configurations
A. CeramlclCrystal Resonator
de
C21:
~
Manufacturer
Part Number
C1
(pF)
C2
CPF)
Murata
CSA2.00MG
30
30
VOO
CSA4.19MG
30
30
VOO
CSA4.19MGU
30
30
KBR-2.0MS
100
100
KBR·4.0MS
KBR·4.19MS
KBR·4.9152M
33
33
33
33
CST4.19T
(Note 1)
X2
Kyocera
B. Extarnal Clock
L>~t----I
Remarks
= 2.7 to 6.0 V
= 3.0 to 6.0 V
VOO = 2.7 to 6.0 V
VOO = 3.0 to 6.0 V
Voo
= 3.0 to 6.0 V
33
33
Note8:
X1
(3) Cl and C2 are contained in the oscillator.
"P074HCU04
X2
Note: When the Input Is an external clock, the stop mode
cannot be set because the X1 pin Is connected
to System ground (VSS).
83RD-6805A
Recommended Crystal Resonator (tlPD751 xx)
Manufacturer
Frequency (MHz)
Part Number (note 1)
C1 (pF)
C2 (PF)
4.19
HC-49/U
22
22
Kinseki
Remarks
Voo
= 2.7 to 6.0 V
Notes:
(1) Equivalent series resistance of crystal must be less than 80
n
Comparator Characteristics (All devices)
JIPD751xx: Voo = 4.5 to 6.0 V; TA = -40 to + 85°C
JIPD75Pl08: TA = -10 to + 85°C; Voo = 4.5 to 5.5 V
JIPD75P116: TA = -40 to + 85°C; Voo = 4,5 to 5.5 V
Parameter
Symbol
Min
Comparison accuracy
o
o
Threshold voltage
PTH input voltage
Comparator consumption
current
4-74
ICOMP
Typ
Max
Unit
±100
mV
Voo
v
Voo
Conditions
V
mA
Set PTHM7 to
1
NEe
pPD751xx/75P1xx
DC Characteristics (J.tPD751xx)
TA = -40 to +85°C; Voo = 2.7 to 6.0 V
Parameter
High-level input voltage
Low-level input voltage
High-level output voltage
Symbol
Min
Typ
Max
Unit
VOO
V
Except ports 0,1,12-14, TlO, Til, RESET, XI, X2
Ports 0, 1, TIO, Til and RESET
VIHI
VIH2
0.8VOO
VOO
V
VIH3
0· 7V 00
VOO
V
Ports 12-14; buitt-in pull-up resistor
V
Ports 12-14; open drain
0· 7V 00
12
VIH4
VOo-°·5
VOO
V
XI, X2
VIL 1
°
0.3VOO
V
Except ports 0, 1, TIO, Til, RESET, XI, X2
VIL2
°
0.2VOO
V
Ports 0, 1, TIO, Til and RESET
VIL3
°
VOo-l.0
0.4
V
XI, X2
V
VOO = 4.5 to 6.0 V; IOH = -1 mA
V
VOO = 2.7 to 6.0 V; IOH = -100 JiA
Ports 0, 2-9; VOO = 4.5 to 6.0 V; IOL = 15 rnA
VOH
Voo-°·5
Low-level output voltage
High-level input leakage current
Low-level input leakage current
High-level output leakage current
Conditions
O·7VOO
0.35
2.0
V
0.35
2.0
V
Ports 12-14; Voo = 4.5 to 6.0 V; IOL = 10 rnA
0.4
V
VOO = 4.5 to 6.0 V; IOL= 1.6 rnA
0.5
V
IOL = 400 JiA
IUHl
3
JiA
All except X1, X2, and ports 12-14; VIN = VOO
IUH2
20
J1A
Xl, X2; VIN = VOO
IUH3
20
JiA
Ports 12-14 (with open drain); VIN = 12 V
JiA
All except Xl, X2; VIN = ° V
VOL
IUL 1
-3
IUL2
-20
JiA
Xl,X2;VIN=OV
ILOHI
3
JiA
Other than Ports 12-14; VOUT = Voo
ILOH2
20
JiA
Ports 12-14 (open drain); VOUT = 12 V
Low-level output leakage current
ILOL
-3
JiA
VOUT =
Internal pull-up resistor
RL
70
kO
Ports 12-14; Voo = 5.0 V ± 10%
Supply current (Note 1)
1001
15
40
80
kO
Ports 12-14
9
rnA
Voo = 5 V ± 10% (Notes 2, 3)
0.55
1.5
rnA
Voo = 3 V ± 10% (Notes 3, 4)
600
1800
JiA
HALT mode; VOO = 5 V ± 10% (Note 3)
200
600
JiA
HALT mode; Voo = 3 V ± 10% (Note 3)
0.1
10
JiA
STOP mode; Voo = 3 V ± 10%
10
10D2
1003
oV
3
Notes:
(1) Does not include pull-up resistor current, current through the
power-on-reset circu it, or comparator current.
(3) fxx= 4.19 MHz; Cl = C2= 22 pF.
(4) When operated in the low-speed mode with the PCC set to 0000.
(2) When operated in the high-speed mode with the processor clock
control register (PCC) set to 0011.
4-75
II
NEe
pPD751XX/75P1xx
Figure 16. DC Characteristics (lJPD751xx)
100 vs Voo (4.19 MHz Crystal Rasonator)
100 vs fxx (Crystal Rasonator)
3.0
TA - 25"C
(Voo - 5.0 V. TA= 2S"C)
sooo
//
.....
Hlgrpeed rde
1000
~
=
SOO
~
f-
,-
~c
~
~
0
i
1'l
~(OO~ V
~
!
2.0
High-speed mode
(0011)
C
~
~
I'"
Mlddl&-speed mode
(0010)
1.5
<3
/'
Low-speed mode
(0000)
~
Q.
Q.
:>
UJ
HAL mode 0100) ,
J
100
so
1.0
V
----
J
HALTmre(0100)
r--
o
5
./
/
o
V
2
/
() Indicates set value for Pee
I
5
4
3
6
Power Supply Voltage VOO (V)
Mr
1
.
, .'
22pFr
4-76
X2
D
.
XTAL
4.194304 MHz
22PF
7
~
-
( ) Indicates set value for Pee
o
2
fxx (MHz)
10
1
.....-
0.5
:>
UJ
STOP mode (1000)
(When Power-on reset circuit and
Power-on flag are On-chIP~
I'"
/
'a.
Mlddl&-speed mode (0010)
Low-speed mod _~
(0000)
2.5
I
I
3
4
5
NEe
JlPD751xx/75P1xx
Figure 16. DC Characteristics (J.lPD751xx) (cont)
100 vs Voo (4.19 MHz Ceramic Resonator)
100 vs fxx (Ceramic Resonator)
3.0
PA
2S'C
(Voo = 5.0 V. TA= 2S'C)
""....
SOOO
......,.....,
Hlgrpeed r i e
1000
19
c.
SOO
~
1
F=
II-
0
l
/'
Low-speed mod
(0000)
I
/
I
/
"
(/J
Middle-speed mode
(0010)
1.S
Low-speed mode
(0000)
0.
SO
.,./'
V
l---'"
V--
,..-
r-
HALT mLe (0100)
O.S
( ) Indicates set value for
"a;
(/J
I--
~
0.
STOP mode (1000)
(When Power-on reset circuit and
Power-on flag are on-chl P
o
y
10
S
---
1.0
~
8
~
0-
High-speed mode
(0011)
2.0
0
..9
E
~
<.>
"
~
0-
....""
V
~
Middle-speed mode (0010)
HAL~mode (b100) .-
..9
E
100
~
19c.
(OO~ /
2.5
o
2
I
I
3
4
pce
S
fxx (MHz)
./
/
/
1
o
( ) Indicates set value for PCC
1/
3
2
I
I
I
4
S
6
7
Power Supply Voltage VOO (V)
j;t
o
1
X2
Ceramic resonator
4.19 MHz
30pF
r r
30PF
4-77
pPD751XX/75P1xx,
Figure 16. DC Chsracferlstlcs ClJPD751xx) (cont)
100 va fxx (External Clock)
3.0
(Voo. 5.0 V. TA- 25"0)
2.5
'8
~
~0
.9
i
(3
i
...............
,
2.0
.,../
Hlgh~speed mode
(0011)
1.5
Middle-speed mode
(0010)
1.0
Low-speed mode
::J
(0000)
rJ)
----
I
0.5
o
I
I
L
2
3
'xx (MHz)
4-78
--
~
() Indlc:ate8 set value lor pee -
HALT mLe (0100)
o
~
4
5
NEe
IIPD751 xx/75P1 xx
Figure 16_ DC CharacteristiCS (JiPD751xx) (cont)
IOL vs VOL (Ports 0, 2-9)
IOL vs VOL (Ports 12-14)
30
VOO~/
!VO°Vvr
://
VOO=4V
ij /
1/
/
V
VOO=3V
~V
A'L
o
2
4
3
VOl.. (V)
II
W
o
2
3
4
VOl.. (V)
IOH vs VOO -VOH (Ports 0, 2-9)
-15
'-r;,I
Voo~V
.I
VOO25V
JV/ V
~V
l(! V
f; V
o
~
o
/"'" r--
VOO-4V
VOO=3V
r-
2
3
4
VOO-VOH (V)
4-79
ttlEC
pPD751XX/75P1xx
Power-on-Reset Circuit Characteristics (All devices exept IlPD75P116... notes 3, 4)
JlPD751xx: TA = -40 to +85°C
JlPD75Pl08: TA
-10 to + 85°C
=
Parameter
Symbol
Min
Power-on reset voltage, high
VOOH
4.5
Max
Unit
VOO max
V
0
0.2
V
(Note 1)
Jls
10
100
JlA
VOO = 5 V.
2
20
JlA
VOO = 2.5 V
Power-on reset voltage, low
VOOl
Power supply voltage rise time
tr
10
Power supply voltage off time
foil
1
POR circuit consumption circuit ;
JlPD75108 only (Note 2)
IOOPA
Typ
Conditions
= 6.0 V
= 5.5 V
j./PD751xx: VOO max
JlPD75Pl08: VOO max
s
j:
10%
Notes:
(1) 217/1"" (31.3 ms atf"" = 4.19 MHz)
(2) Current consumed when POR circuit or power-on flag is provided
internally.
Power-On-Reset 17mlng
(3) Power supply voltage must be raised smoothiy. See "Power-OnReset" timing diagram.
(4) Power-on-reset circuit is available as a mask option on on all
JlPD751xx devices, Is always provided with the JlPD75Pl08, and
not available on the j./PD75Pl16.
Voo
Note: Start the power supply smoothly.
83RD·5852A
AC Characteristics (lJPD751xx)
TA = -40 to + 85°C; VOO
= 2.7 to 6.0 V
Parameter
Symbol
Min
Max
Unit
Cycle time
(Note 1)
tCY
0.95
32
Jls
VOO
3.8
32
JlS
VOO
TIO, Til Input frequency
frl
0
0
TIO, Til input high- and low-level width
SCK cycle time
SCK high and low level width
4-80
Typ
MHz
275
kHz
0.48
j./s
1.8
j./s
0.8
j./s
0.95
j./s
3.2
j./s
3.8
Jls
.0.4
Condition.
= 4.5 to 6.0 V
= 2.7 to 6.0 V
VOO = 4.5 to 6.0 V
VOO = 2.7 to 6.0 V
VOO = 4.5 to 6.0 V
VOO = 2.7 to 6.0 V
Input; VOO = 4.5 to 6.0 V
Output; VOO = 4.5 to 6.0 V
Input; VOO = 2.7 to 6.0 V
Output; VOO = 2.7 to 6.0 V
JlS
Input; Voo = 4.5 to 6.0 V
0.5tKCy-50
ns
Output; VOO = 4.5 to 6.0 V
1.6
j./s
Input;. VOO
0.5 tKCy-l50
ns
Output; VOO
= 2.7 to 6.0 V
= 2.7 to 6.0 V
NEe
pPD751XX/75P1xx
AC Characteristics
~PD751xx)
(cont)
Symbol
Min
SI va SCK t setup time
tSIK
100
SI va SCK t hold time
tKSI
400
Parameter
Typ
Max
Unit
Conditions
ns
ns
SCK ~ to SO output delay time
300
ns
Voo
1000
ns
Voo
INTO-INT4 high- and low-level width
5
j./s
RESET low level width
5
/ls
= 4.5 to 6.0 V
= 2.7 to 6.0 V
Notes:
(1) Cycle time (minimum instruction execution time is determined
by the freque(1CY of the oscillator connected to the microcomputer, system clock control register (SCC), and the processor
clock control (PCC). See figure 17.
Figure 18. AC Timing IIeasurement Points
(except Ports 0, I, 710, 711, XI,X2,
lind RESET)
Figure 17. Guaranteed Operating Range
0.7 Voo _
(pPD751xx)
Measurement-O.7 Voo
O.3Voo -
poIn'"
II
- 0 .3Vco
tcy vs VDD (With main system clock)
Figure 1M Clock Timing IIeasurement Points
Clock TIming
Figure IBB.
71 71mlng
TITlming
TIO,Tll
0.8Voo
0.2Voo
ii
r-+--r-+~--+-~~I
0.5 ....._ - ' - _......._ ......._......l"--_"'"-_......_....I
°
2
3
4
5
8
7
Power Supply Voltage VOO (V)
4-81
NEe
pPD151XX/75P1xx
Figure
IBC~
Serial Transfer Timing
Figure IBF. fll VS Voo
fTl vsVOO
~---tKCY---~
5000
SI
I==+==+==t=~r==+==+===l
O.SVoo
0.2Voo
SCK
----t---::
::
1
~'"
~"
~
....
,.,. ....
,.,.
,. ...,
••••••••
\i;;. ,,."'
oT T T T T'FiTT
o
4-90
2
3
4
5
6
,.
~
'Ii
7
NEe
pPD751.xx/75P1:xx
, Data Memory STOP Mode Low Voltage Data Retention Characteristics (JLPD75P1 xx)
/lPD75Pl08: TA = -10 to + 85"C; voo = 4.5 to 5.5 V
/lPD75P116: TA = -40 to + 85"C; voo = 4.5 to 5.5 V
Parameter
Symbol
Min
Data retention voltage
VOOOR
2.0
Data retention current (Note 1)
IOOOR
Release signal set time
tSREL
Oscillation stabilization time (Note 2)
tWAIT
Typ
Max
Unit
5.5
V
0.1
10
/lA
/lPD75PI16; VOOOR = 2.0 V (Note 4)
15
40
/lA
/lPD75Pl08; VOOOR = 2.0 V (Note 4)
o
Conditions
/ls
217/fxx
s
Release by RESET input
(Note 3)
ms
Release by interrupt request
Notes:
BTM3
(1) Includes current in the power-on-reset circuit, but excludes current in the comparator circuit.
(2) Consult the manufacturer's resonator or crystal specification for
this value.
(3) Oscillation stabilization WAIT time is the time during which the
CPU is stopped and the crystal is stabilizing. This time is
required to prevent unstable operation while the oscillation Is
started. The interval timer can be used to delay the CPU from
executing instructions using the basic interval timer mode
register (BTM) according to the following table:
BTM2
BTMl
BTMO
WAITtime (fxx = 4.19 MHz)
0
0
1
1
0
1
0
1
0
1
1
1
220lfxx
217lfxx
2 15lfxx
213/fxx
(Approx 250 ms)
(Approx 31.3 ms)
(Approx 7.82 ms)
(Approx 1.95 ms)
(4) IOOOR Is less for the /lPD75P116 because it does not contain the
power-on-reset or power-on flag circu ity
DC Programming Characteristics (JLPD75P1 xx)
/lPD75Pl08: VOO
/lPD75PI16: VOO
= 6.0 ± 0.25 V; Vpp =
= 6.0 ± 0.25 V; Vpp =
21.0 ± 0.5 V; Vss
12.5 ± 0.3 V; Vss
= 0 V; TA = 25"C
= 0 V; TA = 25"C
Parameter
Symbol
High-level input voltage
VIH1
O·7VOO
VIH2
Voo-0.5
VIL1
0
VIL2
0
Low-level input voltage
Input leakage current
III
High-level output voltage
VOH
Low-level output voltage
Min
Typ
Max
Unit
VOO
V
All except XI, X2
VOO
V
Xl,X2
0.3VOO
V
All exc.ept XI, X2
0.4
V
Xl, X2
10
/lA
VIN
V
IOH
VOo-l.0
VOL
0.4
V
VOO supply current
100
30
rnA
Vpp supply current
Ipp
30
rnA
Conditions
= VIL or VIH
= -1 rnA
IOL = 1.6 rnA
MOO
= VIL;
MOl
= VIH
Notes:
(1) Vpp must not exceed +22.0 V (J.tP 075 Pl08) or + 13.5 V
(J.tPD75PI16), including overshoot.
(2) VOO must be applied before Vpp, and should be removed after
Vpp is removed.
4-91
II
WEe
pPD751XX/75P1xx
AC Programming Characteristics (IlPD75P1 xX)
J.lPD75Pl08: VOO
J.lPD75Pl16: VOO
= 6.0 :!: 0.25 V; Vpp = 21.0:!: 0.5 V; Vss = 0 V; TA = 25·C
= 6.0 :!: 0.25 V; Vpp = 12.5:!: 0.3 V; VSS = 0 V; TA = 25·C
Parameter
Symbol
Address setup time to MOO , (Note 2)
tAS
MOl to MOO , setup
tM1S
Data to MOO , setup
tos
Address hold from MOO
Data hold from MOO
t (Note 2)
t
Data output float from MOO
t delay
t
MOO t
(Note 1)
Min
tAS
2
J.ls
tOES
2
J.ls
tos
2
J.ls
tAH
2
J.lS
tOH
tOH
2
tOF
tOF
0
tAH
Max
Unit
J.ls
130
ns
Vpp Setup to MOO
tvps
tvps
2
VOO Setup to
tvos
tvcs
2
Initialized, program pulse width
tpw
tpw
0.95
1.05
ms
Adc!itional program pulse width
topw
topw
0.95
21
ms
MOO setup to MOlt
tMOS
tCES
2
Data output from MOO' delay
tDl/
MOl hold to MOO
t
tOEH
2
MOl recovery from MOO ,
tM1R
tOR
2
Program counter reset
tpCR
Xl input hlgh/low level width
!xH. !xL
Xl input frequency
!xx
Initial mode set
MOO setup to MD1
t
J.ls
J.ls
J.ls
tDl/
tM1H
;
v!
10
J.ls
MOO
= MOl = VIL'
J.ls
tM1H
J.ls
tM1H
+
+
0.125
MHz
tl
2
J.ls
J.ls
tM3S
tM3H
2
J.ls
MOO setup to MOO'
tM3SR
2
J.ls
Address to deta output delay time (Note 2)
tOAo
'Acc
2
Address to deta output hold time (Note 2)
tHAO
tOH
0
Data output from MOO , float delay time
ns
2
J.ls
tOFR
2
J.ls
(1) These symbols correspond to these of the J.lP027C256 EPROM.
(2) The Internal address signal Is Incremented by one by the rising
edge of the fourth XI pulse.The address Is not connected to an
external pin.
4-92
J.ls
130
tM3HR
Notes:
tM1R :i!: 50 J.ls
J.ls
4.19
MOO hold to MD1 ,
t
tM1R :i!: 50 J.I,S
J.lS
2
MOO output hold from MOO
Conditions
During program read
cycle
t\fEC
pPD751xx/75P1xx
Figure 21. EPROM Program Memory Write/Verify Timing
'VPS
~--------------~G~--------------------~)~
'VOS
~--------------~6~--------------------~5~
'XH
Xl
'XL
II
MOO
MOl
M02
~__________________~~___________________________'W~~~
M03
83RD-70488
4-93
NEe
pPD751XX/1SP1xx
Figure 22. EPROII Program Memory Read Timing
tvps
Vpp
vpp
VDD
tVDS
VDD +1
VDD
VDD
Xl
~~:~: ......-+--+----
>
83RO·683OB
4-97
pPD752Ox/7521x/75CG2xx/75P216A
Pin Configurations (cont)
64-Pin Ceramic Piggyback SDIP
S3
voo
S4
S2
S1
SO
... ~
4 voo9 1
POoIINT4
62
r.,
....2s9Voo
61
S5
60
S7
I
P01/SCK
A129 2
I
P02/SO
P03/S1
A79 3
P1 0 "NTO
I
P11"NT1
P12/1NT2
A69 4
P13fT1O
A59 5
I
I
P20
P21
A49 6
P22
P23/BUZ
A39 7
I
P30
I
P31
A29 s
I
P32
P33
A19 9
P60
I
I
S6
279 Voo 59
SS
58
S9
I
269A1357
I
58
VpRE
259AS
VLOAO
T151S10
I
T14/S11
T131S121PHo
249A9
T121S131PH1
I
T111S14/PH2
239A11
I
50
229 Vss. 49
I
4S
21 9vss 47
I
46
209A10 45
I
44
P61
A09 10
199CE
P62
I
I
1s917
P63
109 11
P40
I
I
P41
119 12
1791s
43
T10/S151PH3
T9
TS
T7
T6
T5
T4
T3
T2
T1
TO
RESET
P42
I
I
P53
P43
PPO
129 13
16 9 14
PS2
I
I
X1
29
15 9 13
30 vss9
L 14
___
31
~
X2
VSS
P51
PSo
XT2
XT1
83R()..6831A
4-98
NEe
t-IEC
pPD7520xn521x/75CG2xx/75P216A
Pin Configurations (cont)
64-Pin Ceramic Piggyback QFP
~ro~Q~~G«aG~~~~~~EM~
52
10 NC
100
101413 12
Ao
0
11
A1
0
10
A2
0
9
A3
0
8
A4 A5 A6
000
7
6
5 40A7
32
~
30
12 015
3 OA12 29
V55016
20VDD 28
27
10NC 26
NC017
320V
25
DD 24
31 OVDD 23
22
24
Q 0
17 CE A10
8 9
o
23
25 26 27 28
0
0
0
0
V55 NC A11 A9
10 11 12 13 14 15
29 3'0
22
0
~3~
A8
20
16 17 18 19
P01/5CK
POO/INT4
50
51
52
53
VDD
54
55
56
57
58
59
II
83RD·6832B
4-99
NEe
pPD752Ox/7521x/75CG2XX/75P216A
Pin Identification
Symbol
POoIINT4
Function
Port 0 input; interrupt 4
Port 0 input; serial clock
P02l'SO
Port 0 input; serial out
PO:JISI
Port 0 input; serial in
Plo1lNTO
Port 1 input; interrupt 0
Port 1 input; interrupt 1
Pl~NT2
Port 1 input; interrupt 2
Pl:J1TIO
Port 1 input; timer 0 input
Port 21/0
P2:J1BUZ
Port 2 I/O; buzzer output
P30-P3:J1MDD-MD3
Port 3 I/O; OTP operation mode
l/IPD75P216A)
P40-P43
Port 4 I/O
P50-P53
Port 51/0
P6o-P63
Port 61/0
PHoITI3/S12
Port H output; digit select line; segment line
Port H output; digit select line; segment line
Port H output; digit select line; segment line
PH:JITID/SI5
Port H output; digit select line; segment line
PPO
Pulse output
RESET
Reset input
S0-89
FIP segment outputs
TO-T9
FIP digit select outputs
T14/S11
T15/S10
Digit selects T14 and T15; segment lines S10
and SII
Voo
Positive power supply
FIP high-voltage negative supply voltage
P10-P13, INTO-INT2, TIO (Port 1, Interrupts,
Timer Input)
These pins can be used as 4-bit input port 1. P10 and P11
can also be used for edge-triggered interrupts INTO and
INT1. P12 can be used for INT2, which is also an
edge-triggered input, but one which generates an interrupt request and does not cause an interrupt. P13 can be
used as an input clock to the timer/event counter to
count external events. Reset causes these pins to default to the port 1 input mode.
P20-P23, BUZ (Port 2, Buzzer Output)
These pins can be used as 4-bit I/O port 2. When used as
an output the data is latched. When used as an input port
the port outputs are three-state. P23 can also be used to
output square waves for a buzzer. Reset causes these
pins to default to the port 2 input mode.
P30-P33 (MDO-MD3) (Port 3)
These pins are used for input/output port 3. Each bit in
this port can be independently programmed to be either
an input or output. This port has latched outputs. MOO
through MD3 are used for the MPD75P216A OTP program
memory write and verify mode to select the operation
mode. A reset causes this port to be in the input mode.
P40·P43 (Port 4)
These pins are used for input/output port 4; this port has
latched outputs. Port 4 outputs can directly drive an
LED. Ports 4 and 5 can be paired together to function as
one 8-bit port. A reset causes this port to be in the input
mode.
FIP predriver negative supply voltage
Vss
Ground
XI, X2
Main clock inputs
XT1, XT2
Subsystem clock inputs
PIN FUNCTIONS
POo-P03, INT4, SCK, SO, SI (Port 0, Interrupt 4,
Serial Clock, Serial In/Out)
These pins can be used as 4-bit input port O. POD can
also be used for vectored interrupt 4, which interrupts on
either the leading edge or the trailing edge of the signal.
P01-P03 may also be used for the serial interface under
the control of the SIOM register. SI is the serial input, SO
is the serial output, and SCK is the serial clock. Reset
causes these pins to default to the port 0 input mode.
'4-100
P50·P53 (Port 5)
These pins are used for input/output port 5; this port has
latched outputs and its outputs can directly drive an
LED. Ports 4 and 5 can be paired together to function as
one 8-bit port. A reset causes this port to be in the input
mode.
p60·P63 (Port 6)
Port 6 is a 4-bit I/O port. Outputs are latched, and each
bit can be independently programmed to be either an
input or an output. Port 6 can have pull-down resistors
added as a mask option. A reset signal causes this port
to default to the input mode.
NEe
PHo-PH3, T10-T13, S12-S15 (Port H, Digit Select,
Segment Lines)
Port H is a 4-bit output-only port, with P-channel opendrain outputs capable of directly driving LEDs. Pulldown resistors can be selected as a mask-option. Alternatively, these pins can be used as high voltage digit!
segment outputs. A reset signal causes this port to
default to the high-impedance state; if mask-option resistors are present the output goes low.
SO-S9 (Segment Lines)
These are high-voltage outputs used as FIP controller
segment lines. Pull-down resistors can be selected as a
mask-option. A reset signal sets these pins to the highimpedance state; if mask-option resistors are present
the outputs go low.
pPD7520x/7521x/75CG2xx/75P216A
PPO (Timer/Pulse Generator Output)
This is an output Signal from the timer/pulse generator,
and can be either PWM (Pulse Width Modulated) or a
square wave. This pin can also be used as a 1-bit output
port. Pin assumes a high impedance state upon reset.
X1, X2 (System Clock Inputs)
These pins are the main system clock inputs. The clock
can be either a ceramic or crystal resonator; an external
logic signal may also be used as a clock source.
XT1, XT2 (Subsystem Clock Inputs)
These pins are the subsystem clock inputs. The clock
can be either a ceramic or crystal resonator; an external
logic signal may also be used as a clock source.
RESET (Reset)
TO-T9 (FIP Digit Select)
This is the reset input, and it is active low.
These are high-voltage outputs used as FIP controller
digit select timing signals. Pull-down resistors can be
selected as a mask-option. A reset signal sets these pins
to the high-impedance state; if mask-option resistors are
present the outputs go low.
VPRE (Predriver Power)
T14/S11, T15/S10 (Digit Select/Segment Lines)
These two pins provide additional digit select or segment
lines. When not used for the display they can be used as
static outputs. Internal pull-down resistors are available
as a mask option.
This is the power supply for the predrivers of the FIP
controller/driver.
VLOAD (FIP Power Supply)
This pin is used to supply power to the output drivers for
the segment lines and digit select pins of the FIP
controller/driver.
Voo (Power Supply)
The system positive power supply pin.
Vss (Ground)
System ground.
4-101
NEe
pPD7520x/7521 xnSCG 2xx/7SP216A
Block Diagram
J.lI'D75206
(6016 Bytes)
J.lI'D75208
(8064 Bytes)
SI/P03
Data Memory
(RAM)
fLPD75206
(369 x 4)
fLPD75208
(497 x4)
fLPD75212A1216AI
P216A
(512 x4)
Decode
and
Control
fLPD75212A
(12160 Bytes)
SOIP0 2
SCK/P01
TO-T9
T1 0/S15/PH3T131S121PHo
INTO/P10
T141S11
INT1/P11
T15!S10
fxxl2N
INT2IP12
INT4IPOo
SO-S9
System Clock
Generator
8
VpRE '
VLOAD
BUZlP23
XT1 XT2
X1
X2
! ! !
• Not on fLPD75P216A
VDD VSS RESET
83RD-6583B
4-102
NEe
JlPD7520x/7521x/75CG2xx/75P216A
Product Comparison
Item
IlPD75CG208
IlPD75CG216A
IlPD75206
IlPD75208
IlPD75212A
IlPD75216A
IlPD75P216A
Program
memory
(ROM)
Piggyback
EPROM
00OOH-1FFFH
8192 x 8 bits
Piggyback
EPROM
OOOOH-3FFFH
16384 x 8 bits
Mask ROM
OOOOH-177FH
6016 x 8 bits
Mask ROM
OOOOH-1 F7FH
8064 x 8 bits
Mask ROM
00OOH-2F7FH
12160 x 8 bits
Mask ROM
OOOOH-3F7FH
16256 x 8 bits
OTP
OOOH-3F7FH
16256 x 8 bits
Data
memory
(RAM)
497 x 4 bits
512 x 4 bits
369 x 4 bits
497 x 4 bits
512 x 4 bits
512 x 4 bits
512 x 4 bits
Port 6
None
None
Mask option
(each bit)
Mask option
(each bit)
Mask option
(each bit)
Mask option
(each bit)
None
pul~down
resistor
SO-S8,
TO-T9
On-chip
pul~down
resistor
On-chip
Each bit can be mask programmed either for a
pul~down resistor or as an open drain eutput
pul~down
resistor
Each bit can be mask programmed either for a
or as an open drain output
pul~down
resistor
Open drain
S9,
T10-T15
Open drain
Open drain
Number
of FIP
segments
19 - 12
9 - 16
9 - 12
9 -12
9 - 16
9 -16
9-16
Power-on
reset
circuitry
On-chip
On-chip
Mask option
Mask option
Mask option
Mask option
None
Low-power
data
retention
Not provided
Not provided
2 volts
2 volts
2 volts
2 volts
Not provided
Operating
voltage
range
5V ± 10%
5V ± 10%
2.7 to 6.0 V
2.7to 6.0V
2.7 to 6.0V
2.7 to 6.0V
5V ±10%
Package
64-pin piggyback ceramic
shrink DIP with window.
64-pin piggyback
ceramic QFP with window.
64-pin plastic shrink DIP
64-pin plastic QFP
II
64-pin
plastic
shrink DIP
4-103
NEe
pPD752Ox/7521 x/75CG 2xx/75P216A
Capacitance (All Parts)
ELECTRICAL SPECIFICATIONS
Voo
Absolute Maximum Ratings (All Parts)
TA = 25°C
Supply voltage, Voo
-0.3 to + 7.0 V
Supply voltage, VLOAO
VOO-40 to Voo+ 0.3 V
Supply voltage, VpRE (Note 1)
VOo-12 to Voo+ 0.3 V
Supply voltage, Vpp (Note 2)
Input voltage, VI
-0.3 to + 13.5 V
-0.3 to Voo + 0.3 V
Output voltage, Vo (other than display)
Output voltage, Voo (display pins)
= OV; TA = 25°C
Parameter
Symbol
Input capacitance
Output capac~ance;
other than display
Output capac~ance;
display only
I/O
capac~ance
Max
Unit
CIN
15
pF
COUT1
15
pF
COUT2
35
pF
CIO
15
pF
-0.3 to Voo + 0.3 V
VOO-40 to Voo+ 0.3 V
High-level output current, IOH
(single pin; other than display)
-15mA
High-level output current, IOH
(single pin; SO-S9)
-15mA
Operating Supply Voltage
Mask ROM parts: TA = -40 to + 85°C
Programmable parts: TA = -10 to + 70°C
Parameter
CPU (Note 2)
Min
Max
Unit
(Note 3)
6.0
V
(Note 4)
5.5
V
/lPD75CG208/CG216A
and /lPD75P216A only
High-level output current, IOH
(single pin; TO-T15)
-30mA
4.5
High-level output current, IOH
(total of all pins other than display)
-20mA
4.5
6.0
V
4.5
5.5
V
High-level output current, IOH
(total of all display outputs)
17mA
Low-level output current, IOL
(total of all pins)
60mA
Power dissipation, PT (Plastic QFP)
450mW
Pr (Plastic SDIP)
'600 mW
Storage temperature, tSTG
-65 to + 150°C
Operating temperature, tOPT (Note 3)
-40 to +85°C
Operating temperature, tOPT (Note 4)
-10 to +70°C
Exposure to Absolute Maximum Ratings for extended periods may
affect device reliability; exceeding the ratings could cause permanent
damage.
Notes:
(1) Does not apply to /lPD75P216A.
(2) For /lPD75P216A only.
(3) For mask ROM parts.
(4) For /lPD75CG208/CG216NP216A.
4-104
Conditions
-120 mA
Low-level output current, IOL (single pin)
Power dissipation,
Conditions
f = 1 MHz;
all unmeasured
pins returned
to ground
Timer/pulse
generator
4.5
6.0
V
(Note 4)
4.5
5.5
V
/lPD75CG208/CG216A
and /lPD75P216A only
Other hardwar:>-1>-----1 XI
XTI
I'PD74HCU04
X2
Open- XT2
Note: For 75P008, C3
Note: When the Input Is an external clock, the stop mode
cannot be set because the XI pin is connected
to System ground (Vss).
83RD·6444A
83RD-6443A
4-106
=22 pI and C4 =33 pI
NEe
JlPD7520x/7521 X/75CG 2xx/75P216A
Recommended Main System Clock OSCillator Circuit Constants
(Mask ROM Parts and "PD75CG216A)
.
Main system clock
= Ceramic; TA = -40 to
+85·C ~or mask ROM parts) and -10 to +70"C (for "PD75CG216A)
Remarks
Manufacturer
Product name (Note 1)
C1 (pF)
C2 (PF)
Murata
CSA2.00MG
30
30
CSA4.19MG
30
30
CSA4.91MG
30
30
CAT2.00MG
None
None
C on-chip type
CST4.19MG
None
None
C on-chlp type
CST 4.91MG
None
None
KBR-2.0 MS
47
47
KBR-4.0MS
33
33
KBR-4.19MS
33
33
KBR-4.91MS
33
33
FCR-3.58M2
30
30
FCR-4.00M2
30
30
FCR-4.19M2
30
30
FCR-4.19MC
None
None
Kyocera
TDK
C on-chlp type
.For mask ROM parts only
a
C on-chip type
Notes:
(1) Oscillation voltage range = 4.0 to 6.0 V for mask ROM parts and
Voo = 4.5 to 5.5 V for "PD75CG216A
Recommended Main System Clock Oscillator Circuit Constants
(Mask ROM Parts and "PD75CG216A)
Main system clock
Manufacturer
Klnsekl
= Crystal; TA =
-40 to +85·C (for mask ROM parts) and -10 to +70·C (for "PD75CG216Aj
Oscillator Voltage Range
Frequency
(MHz)
Retainer
Load Capacitance
CL (PF)
C1 (PF)
C2 (pF)
Min (V)
Max (V)
2.00
HC-18/U
16
20
20
4.5
(Note 1)
4.19
HC-49/U
16
20
20
4.5
(Note 1)
4.91
HC-43/U
16
20
20
4.5
(Note 1)
Notes:
(1) Oscillation voltage range max = 6.0 V for mask ROM parts and
5.5 V for "PD75CG216A.
Recommended Subsystem Clock Oscillator Circuit Constants
(Mask ROM Parts and "PD75CG216A)
Subsystem clock
= Crystal; TA = -10 to
+6O"C (for the mask ROM parts) and -10 to +70·C (for the "PD75CG216A)
OSCillator Voltage Range
Type
Load Capacitance
CL (pF)
C3 (pF)
C4 (PF)
R (kll)
Min (V)
Max (V)
Klnseki
P-3
12
22
22
330
(Note 1)
(Note 1)
Citizen
CFS-308
14
22
33
330
(Note 1)
(Note 1)
Manufacturer
Notes:
(1) Oscillation voltage range is 2.7 to 6.0 V for the mask ROM parts
and 4.5 to 5.5 V for the "PD75CG216A.
4-107
NEe
pPD752Ox/7521X/75CG2xxn5P216A
Recommended Main System Clock Ceramic Resonators (I'PD75CG208)
External Capacitors
Manufacturer
Product name
C1 (pF)
VDD Range
C2 (pF)
Min (V)
MaxM
4.5
5.5
Murata
CSA 4.19 MG
30
60
Kyocera
KBR-2.09 MS
68
68
4.5
5.5
KBR-3.58 MS
33
33
4.5
5.5
KBR-4.19 MS
33
33
4.5
5.5
KBR-4.9 M
33
33
4.5
5.5
Recommended Main System Clock Crystal Resonators (p.PD75CG208)
VDD Range
External Capacitors
Manufacturer (Note 1)
Product name
Kinseki
HC-49/U
C1 (pF) (Note 2)
C2 (pF)
Min M
MaxM
15
15
4.5
5.5
Notes:
(2) Variable range of C1 for frequency trimming should be 10 to 33
(pF).
(1) Equivalent series resistance of a crystal must be lower than 80 O.
Power-on Reset Characteristics (Note 1)
= -40 to +85'C, Voo = 2.7 to 6.0 (Mask ROM parts); TA = -10 to
TA
Parameter
Symbol
Min
POR high-level operating voltage
VOOH
4.5
+70'C, Voo
Typ
= 5 V :t10%
(,uPD75CG208 and "PD75CG216A)
Max
Unit
6.0
V
POR low-level operating voltage
VOOL
0
0.2
V
Supply vOltage rise time
Ir
10
(Note 2)
lIs
Supply voltage OFF time
toll
POR circuit current dissipation (Note 3)
IOOPR
Conditions
s
= 5 V :t
10
100
IIA
VOO
10
200
"A
VOO = 5 V :t10%
(,uPD75CG208/CG216A only)
2
20
"A
VOO
10%; (,uPD752Xx only)
= 2.7 V (,uPD752Xx only)
Notes:
(1) This circuit is present on the "PD75CG208 and "PD75CG216.ltis
a mask option on mask ROM parts and is not available on the
"PD75P216A.
(2) 217/fxx (31.3 ms at fxx
= 4.19 MHz).
Figure 3. Power-on Reset 77ming
VOO
(3) Current which flows when the internal reset circuit and power-on
flag are used.
Note: Start the power supply smoothly.
83RD-5852A
4-108
ttiEC
pPD7520x/7521x/75CG2xx/75P216A
DC Characteristics
TA = -40 to +85°C, voo = 2.7 to 6.0 V (Mask ROM parts); TA = -10 to +70OC; Voo = 4.5 to 5.5 V (Programmable Parts)
Parameter
Symbol
Max
Unit
High-level input voltage
VIH1
0.7Voo
Voo
V
VIH2
0.75Voo
Voo
V
Ports 0 and 1;
VIH3
Voe-0.4
Voo
V
Xl, X2, XT1
VIH4
0.65Voo
Voo
V
Port 6; Voo = 4.5 to 6.0 V (jlPD752xx only);
5 V ± 10% (programmable parts)
0.7Voo
Voo
V
Port 6; Voo = 2.7 to 6.0 V (jlPD752xx only)
All except poris 0,1,6; Xl, X2, XT1,
Low-level Input voltage
High~evel output voltage
Conditions
All except ports 0,1,6; Xl, X2, XT1, ~
RESET
FiESEf
VIL1
0
0.3Vo o
VIL2
0
0.2Voo
V
Ports 0, 1, and 6;
VIL3
0
0.4
V
Xl, X2,XT1
VOH
Voe-1.0
V
All outputs; 10H = -1
Voe-0.5
V
All outputs; 10H = -loopA (Note 11)
10-17; VIN = 0 V; I/.IPD75CG208/G216A only)
IlL
Low-level output voltage
VOL
Low-level Input
leakage current
Typ
V
Low-Ievel current
High-level input leakage current
Min
mET
rnA (Note 10)
-300
-BOO
~
0.4
2.0
V
Ports 4 and 5; 10L = 15 rnA (Note 10)
0.4
V
All output pins; 10L = 1.6 rnA (Note 10)
All output pins; 10L = 400 pA (jlPD752xx only)
0.5
V
IlIH1
3
~
All except Xl, X2, and XT1; VIN = Voo
ILIH2
20
~
Xl, X2, and XT1; VIN = Voo
ILIL1
-3
~
All except Xl, X2, and XT1; VIN = 0 V
ILlL2
-20
~
Xl, X2, and XT1; VIN = OV
II
High-level output leakage current
ILOH
3
~
All output pins; VOUT = Voo
Low-level output leakage current
ILOL1
-3
~
All except display output pins; VOUT = 0 V
ILOL2
-10
~
Display output pins; VO UT = VLOAO = Voo-35 V
Display output current
Internal pull-down resistor
(mask option)
100
Rpe
RL
-3
-5.5
mA
80-89 (Note 1)
see Recommended External Circuit
-3
-5.5
mA
80-S9; Voo = 4.5 to 6.0 V; Voo = Voo -2 V
I/.IPD75P216A only)
-1.5
-3.5
mA
80-89; All except "PD75P216A (Note 2) .
-15
-22
mA
TO-T15 (Note 1)
see Recommended External Circuit
-15
-22
mA
TO-T15;Voo = 4.5t06.0V;Voo =Voo-2V
I/.IPD75P216A only)
-7
-15
mA
TO-T15; All except "PD75P216A (Note 2)
30
80
200
kO
Port 6; Voo = 4.5 to 6.0 V (jlPD75206/208)
20
80
200
kG
Port 6; Voo = 4.5 to 6.0 V (jlPD75212A/216A only);
VIN = Voo
30
1000
kG
Port 6; Voo = 2.7 to 6.0 V I/.IPD75206/208)
20
1000
kG
Port 6; Voo = 2.7 to 6.0 V I/.IPD75212A/216A only);
VIN = Voo
25
70
135
kG
Display output pins; VOO-VLOAO = 35 V
I/.IPD75212A/216A/P216A)
40
70
120
kO
Display output pins; VOO-VLOAO = 35 V
I/.IPD75206/208/CG208/CG216A)
4-109
NEe
pPD752Ox/7521 x/75CG 2XX/75P216A
DC Characteristics (cont)
Parameter
Supply current
(Note 6)
Symbol
IDOl
(Note 3)
1002
(Note 3)
1003
1004
1005
Min
Typ
Max
Unit
Conditions
3.0
9.0
mA
Voe = 5 V :!: 10% (Note 4)
0.55
1.5
mA
Vee =3 V :!: 10% (Note 5; IIPD752xx only)
600
1800
HALT mode; Vee = 5 V:!: 10% (Note 12)
200
SOO
IIA
IIA
40
120
IIA
Vee = 3 V :!: 10% (Notes 7, 8; IIPD752xx only)
100
300
IIA
(Note 7; IIPD75CG208/CG216A and
IIPD75P21SA only)
5
15
IIA
HALT mode; Voo = 3 V :!: 10%
(Notes 7, 8; IIPD752xx only)
40
100
IIA
HALT mode (Notes 7, 8; ",PD75CG208/CG216A
and ",PD75P21SA only)
0.5
20
IIA
STOP mode; XTI = 0 V; Voo = 5 V :!: 10 %;
IIPD752xx only (Note 6)
0.1
10
IIA
STOP mode; XTt = 0 V; Voo = 3 V:!: 10 %;
IIPD752xx only (Note 6)
10
200
IIA
STOP mode; XTI = 0 V;
(Note 9; IIPD75CG208 and IIPD75CG216A only)
0.5
200
IIA
STOP mode; XTt
HALT mode; Vee = 3 V :!: 10% (,uPD752xx only)
= 0 V (,uPD75P216A only)
Notes:
(1) Voo = 4.5 to S.O V for mask ROM parts and Voo = 4.5 to 5.5 V
for programmable parts; Voo = Voo -2 V; VPRE = Voo -9:!: 1 V.
(2) Veo = 4.5 to 6.0 V for mask ROM parts and Voo = 4.5 to 5.5 V
for programmable parts; Voo = Voo -2 V; VpRE = 0 V.
(7) 32 kHz crystal osci lIator.
(8) Value when the system clock control register (SCC) is set to
1001, generation of the main system clock pulse is stopped, and
the CPU Is operated by the subsystem clock pulse.
(3) 4.19 MHz crystal oscillator; Cl = C2 = 15 pF.
(9) With the CE or OE of the piggybacked .EPROM set high.
(4) Value during high-speed operation and the processor control
clock (PCC) is set to 0011.
(10) Voo = 4.5 to 6.0 V for mask ROM parts and Voo = 4.5 to 5.5 V
for programmable parts.
(5) Value during low-speed operation and the processor control
clock (PCC) is set to 0000.
(11) Voo = 2.7 to 6.0 V for mask ROM parts and Voo = 4.5 to 5.5 V
for programmable parts.
(6) Does not include pull-down resistor current for SO-S8 and TO-T9.
In the mask ROM parts, the current for the power-on reset circuit
(mask option) is not included. In the IIPD75CG208/CG216A, the
current for the piggyback EPROM and the current in the on-chip
pull-up resistors for 10-17 is not included.
(12) For the IIPD75CG208/CG216A, the CE or OE pin of the piggyback EPROM is set to a high level.
4-110
(t3) No subsystem clock.
NEe
pPD752Ox/7521 x/75CG 2xx/75P216A
AC Characteristics
Mask ROM parts: TA = -40 to +85°C; Voo = 2.7 to 6.0 V
Programmable parts: TA = -10 to + 700C; Voo = 5 V ± 10%
Parameter
Symbol
Min
Max
Unit
Cycle time: minimum
instruction execution time
(Note 1)
Icv
0.95
32
"s
Main system clock; Voo = 4.5 to Voo max
3.8
32
"s
Main system clock; Voo = 2.7 to 6.0 V;
(p.PD752xx only)
TIO input frequency
Itl
114
Typ
122
125
"s
0
0.6
MHz
Voo = 4.5 to VOO max (.uPD752xx/P216A)
0
165
kHz
Voo = 2.7 to 6.0 V (.uPD752xx only)
MHz
0
TIO input lowand high-level width
SCK cycle time
SCK low- and high-level width
SCK i setup time
SI vs. SCK i hold time
SCK ~ - SO output delay time
S I vs.
Interrupt inputs lowand high-level width
RESET lOW-level width
tiL, tlH
tKCV
tKL, tKH
(.uPD75CG208/CG216A only)
"s
Voo = 4.5 to VOO max (.uPD752xx and
"PD75P216A only)
3
"s
Voo = 2.7 to 6.0 V (.uPD752xx only)
0048
"s
(p.PD75CG208/CG216A only)
0.8
"s
Input; Voo = 4.5 to Voo max
0.95
"s
Output; Voo = 4.5 to Voo max
3.2
"s
Input; Voo = 2.7 to 6.0 V (.uPD752xx only)
3.8
"s
Output; Voo = 2.7 to 6.0 V (.uPD752xx only)
004
"s
Input; Voo = 4.5 to Voo max
0.5tKcv- 50
ns
Output; Voo = 4.5 to Voo max
1.6
"s
Input; Voo = 2.7 to 6.0 V (.uPD752xx only)
Output; Voo
0.5 tKCV - 150
ns
100
ns
tKSI
400
tKSO
tRSL
Subsystem clock
0.83
tSIK
tINTL, tlNTH
Conditions
= 2.7 V to 6.0 V (p.PD752xx only)
ns
300
ns
Voo = 4.5 to Voo max
1000
ns
Voo = 2.7 to 6.0 V (.uPD752xx only)
(Note 2)
"s
INTO
2 Icv
"s
INT1
10
"s
INT2.INT4
10
"s
Notes:
(1) Cycle time is determined by the frequency of the oscillator
connected to the microcomputer. system clock control register
(SCC). Voo, and the processor clock control (PCC). See the
graph depicting the supply voltage vs. The cycle time when the
microcomputer is operating on the main system clock.
(2) 2tcv or 128/fxx • depending on the setting of the interrupt mode
register (IMO).
Recommended External Circuit
Voo
+5V
R09.1EL
'] ~ B.29-9.3V
VpRE
68kn
VLOAO
GN°h
-30V
83RD·6559A
4-111
II
t\fEC
pPD7520X/7521X/75CG2xx/75P216A
DC Characteristics C#£PD752xx only)
loovsVOO
I OL vs VOL (Ports 0, 2, 3, 6)
20
TA-25'C
5000
High-speed mode
reC-(OO 11) " .
Mlddl...speed mod~ " .
PCC-(0010)
1000
fl
15.
500
~
~
0
.J;l
i
<3,.,
R:
"
--
PCC (0000)
r--
HALT
(0,100)
/'
./
/'
f-- Subsystem clock
. f--' operaUon mode"
/
/
HALT mode
.'/
/
V
2
-
/'
( ) Indicates set1vaiue
3
I
VOO=2.7V
~
~
o
2
3
4
4
5
6
7
-20
~Co
~ -15
,,,L
-;::
~
<'
.5.
4.19
MHz
:r
Q 3 3 PF
C
~
"
If'/V -
-10
(.)
S
S-
a
Ir
fe-roo."
~VOO=5V
.9
-5
o
'//
~~
o
2
VOO=3V
I
VOO-2.7V
3
VOO-VQH(V)
4-112
5
IOH vs Voo - VOH (Ports 0, 2, 3, 6)
101 PCC
X2
15PF~
VOO =3V
1
. /.....
Low-level output voltage VOL (V)
Power Supply Voltage Voo(V)
Xl
/'
5
o
f-Voo";sv
STOP mode (1000)
(When Power-on reset
circuit and Power-on
flag are on-chip.)
r-- Subsystem clock
o
1
--'
/'
10
1
1
r
VOOj4V
V
'/
I
~
10
!
V
50
5
~
~
i
G
100
Ul
~
V........... / "
15
~
~ode
Tl a 2Jc
"rfl I/~
~Co
~
t-- Low-speed mod
t--
I
VOO =6V
4
5
~EC
pPD7520x/7521x/75CG2xx/75P216A
DC Characteristics (J£PD752xx only) (cant)
100 vs VOO - VOO (TO - T15)
I OL vs VOL (Ports 4 and 5)
20
t
~
~vriO=6r
h
~I "~-'~l
10
0
~
J
!t
'IV
~
~...J
~
Voo= 2.7V
~
E
8
~
~ ~~4--1-+--+~~~~~4--+~
~VOO~3V
~
"
1!
,-Volo=5V
15
~
~
T1= 25Jc
'I
5
1/
0
2
4
3
!"
100 vs VOO - VOO (50 - 59)
-10
/
0
-5
'"
:E
o
~
o
t
V
~
<
g
VOO=4V
// ".--
:;
~
VOO-VpRE=10V /
1!
'li
Vvoo= V
-10
T~=25'C
I V /'
/
-5
~
t,t
/'
"....
2
3
'/
Ih y
c3
Yoo-13V
r
I
1.
VOO-VPRE= 4V_
".....-
I.~
o
5
V~-VprE='V
~~
i;'
~
is
4
~
J~ V
B
7
/voo- jPRE j 8V
i/ /'
c
9
E
~
5
4
3
10H vs VOO - VOH (Ports 4 and 5)
-voo=~
0
1
.c
2
Voo-Voo(V)
1!'li
:J:
II
5
Tl~25~
9
1---I-..u.Il--,,4--I--+--I-~I---I--+~
Low-level oUlput voltage VOL (V)
-20
~
-10
is
0
~ -15
-20
1/
o
2
3
4
5
Voo-Voo(V)
4-113
NEe
pPD7520x/7521 x/75CG 2xx/75P216A
Figure 4. Guaranteed Operating RIInge
flPD75CG20S/CG216A and
flPD75P216A
flPD752XX
40
40
32
3~~r::
32
~~
~r:
::::r:::
3~~r::
6
6
5
5
:u!"'~"""9
4
4
3
3
~r::
~~
~~
~r::
1'7 err
~r:
Ii
I
'"~,~,
Up";:~~'e
Ii
•••••••••••
2
2
,
,
~
~
~
~
0.5
2
3
4
5
Power Supply Voltage VDD (V)
4-114
6
7
~
0.5
o
~
2
3
4
5
Power Supply Voltage VDD (V)
6
7
t¥EC
JlPD7520x/7521 x/75CG 2xx/75P216A
Figure 5. AC Timing Measurement Points
Figure 7.
Serial Transfer Timing
Serial 1/0 Mode (3·Llne)
All Except X1 andXT1
1+----tKCY---~
tKL
0.75 VDD _
tKH
Measurement- 0.75 VDD
0.2 VDD - -
points
- . 0.2 VDD
SCK
tSIK
X1 and XT1
SI----!-~
tKSO
0.4 V
so
tKsl
Input Data
f_______---'x'--__
OUtput Data
83RD·7213A
Figure 8.
Interrupt Input Timing
0.4V
83RO-7211A
INTO,1,2,4
83RD-7214A
Figure 6.
TID Timing
Figure 9. RESET Input Timing
4-115
II
NEe
pPD7S20X/7521X/7SCG2xX/75P216A
Data Memory STOp· MOde Low Voltage Data Retention Characteristics
Mask ROM parts: TA = -40 to +85"0
Programmable parts: TA = -10 to + 70"C
Parameter
Symbol
Min
Data retention voltage
VOOOR
2.0
Data retention current (Note 1)
IOOOR
Release signal SET time
tSREL
Oscillation stabilization time (Note 2)
tWAIT
Typ
Max
Unit
VOomax
V
0.1
10
pA
VOOOR
10
200
pA
VOOOR
0
~
ms
Release by mET input
(Note 3)
ms
Release by Interrupt request
(1) Excludes the on-chlppull-down resistor and power-on reset
circuit (mask option) in the mask ROM parts.
(2) Consult the vendor's resonator specification for this value.
(3) Oscillation stabllizatlOl) WAIT time is the time during which the
CPU is stopped and the crystal Is stabilizing. This time Is
required to prevent unstable operation while the oscillation is
started. The Interval timer can be used to delay the" CPU from
executing Instructions using the setting of the basic interval
timer mode register (BTM) according to the following table:
4-116
BTM2
BTM1
BTMO
WAIT time (fxx
0
0
1
1
0
1
0
1
0
1
1
1
2?-O/txx
217/txx
215/txx
213/txx
= 2.0 V (,uPD752xx and ~PD75P216A)
= 2.0 V (,uPD75CG208ICG216A)
2171fx
Notes:
BTM3
Conditions
= 4.19 MHz)
(Approx 250 rns)
(Approx 31.3 ms)
(Approx 7.62 ms)
(Approx 1.95 ms)
NEe
pPD752Ox/7521 X/75CG 2xx/75P216A
Figure 10. Data Retention Timing
A. STOP mode Is released by RESET Input
Internal reset
operaHon
t:
VDD
I
II
STOP mode
HALT mode
I
I
Data retention mode _ _
t
VOOOR
Operation
mode
/
ExecuHon 01
STOP Instruction
\ "---J
tWAIT
_tSREL
II
B. STOP mode Is released by Interrupt signal
HALT mode
t:
VOO
t
Executional
STOP Instruction
Stand by release signal
(Inlerrupt request)
I
I
STOP mode
OperaHon
mode
Data retention mode _ _
VOOOR
/
tSREL
J
~
4-117
NEe
pPD752OX/7521 X/75CG 2xx/75P216A
DC Programming Characteristics (J£PD75P216A only)
TA
= 25 :!: 5°C; Voo = 6.0 :!: 0.25 V; Vpp = 12.5 ±0.3 V; Vss = 0 V
Parameter
Symbol
Max
Unit
High-level input voltage
VIHl
0.7Voo
Voo
V
All except Xl, X2
VIH2
Vo o-0.5
Voo
V
Xl, X2
VIL1
0
0.3Voo
V
All except Xl, X2
0
0.4
V
Xl, X2
10
p.A
VIN
V
IOH
Low-level input voltage
Min
VIL2
Input leakage current
IlL
High-level output voltage
VOH
Typ
Voo-l.e
Low-level output voltage
VOL
0.4
V
Voo supply current
100
30
mA
Vpp supply current
Ipp
30
mA
Conditions
= VIL or VIH
= -1 mA
IOL = 1.6mA
MDO
= VIL; MDl = VIH
Notes:
(1) Vpp must not exceed +22.0 V, including overshoot.
4-118
(2) Voo is to be applied prior to Vpp and to be removed after Vpp is
removed.
NEe
pPD752Ox/7521 x/75CG 2xx/75P216A
AC Programming Characteristics (,4PD75P216A only)
= 25 ± 5'C; Voo = (t.0 ± 0.25 V; Vpp = 12.5 ± 0.3 V; Vss = 0 V
TA
Parameter
Symbol
Address setup time (Note 2)
tAS
Typ
Max
Unit
EPROM Symbol (Note 1)
Min
tAS
2
/,S
MDI to MDO J, setup
tM1S
tOES
2
/,S
Data to MDO J, setup
tos
tos
2
/,S
Address hold from MDO f (Note 2)
tAH
tAH
2
/'S
Data hold from MDO f
tOH
tOH
2
I'S
Data output float delay from MDO f
tOF
tOF
0
Vpp setup to MD3 f
tvps
tvps
2
VOO setup to MD3 f
tvos
tvcs
2
Initialized program pulse width
tpw
tpw
0.95
1.05
ms
Additional program pulse width
topw
topw
0.95
21
ms
tCES
2
MDO setup to MDI f
tMOS
Data output delay from MDO J,
tov
130
Conditions
ns
/'S
/'S
I'S
tov
/,S
MDO
= MDI = VIL
+
+
MDI hold to MDO f
tM1H
tOEH
2
I'S
tM1H
MDI recovery from MDO J,
tM1R
tOR
2
/'S
tM1H
Program counter reset
tpCR
10
I'S
Xl input high/low level width
tXH' tXL
Xl inputfrequency
fxx
0.125
tM1R '" 50 liS
tM1R '" 50 liS
/los
4.19
MHz
Initial mode set
tl
2
/,S
MD3 Setup to MDI f
tM3S
2
/,9
MD3 hold to MDI J,
tM3H
2
/,S
MD3 setup to MDO J,
tM3SR
2
I'S
Address ...... data output delay time (Note 2)
tOAD
tACC
2
/,S
Address ...... data output hold time (Note 2)
tHAD
tOH
0
MD3 output hold from MDO f
tM3HR
2
/,S
Data output float delay from MD3 J,
tOFR
2
liS
130
During program read cycle
ns
Notes:
(1) These symbols correspond to those of the /,PD27C256 EPROM.
(2) The internal address signal is incremented by the rising edge of
the fourth Xl pulse; it is not connected to an external pin.
4-119
II
pPD7S2Oxns21xnsCG2xxJ7SP216A
Figure 11.
NEe
OTP Memory Write Timing (Programmable)
tvps
vpp
vpp
~--------------~G~--------------------~S~
VDD
tVDS
~~------------~S~--------------------~5~
X1
83RO-e836B
4-120
t-fEC
Figure 12.
pPD7520x/7521 x/75CG 2xx/75P216A
OTP Memory Read Timing (Programmable)
tvps
Vpp
vpp
vDD
tVDS
Xt
~~g:~~; --+-+----<1
Data OUtput
Data Output
;~
1 ' - - - - - - - " "'--_ _---J '------',~tDFR
tDV
MDO
MDt----+--+------------------------~r-~~---
MD2
t M3SR
MD3
83RD-6461B
4-121
pPD7520x/7521 X/7.5CG 2xx/75P216A
4-122
NEe
NEG Electronics Inc.
Description
The Il-PD75268 is a low-cost, high-performance, singlechip CMOS microcomputer containing CPU, ROM, RAM,
I/O ports, several timer/counters, a FIP controller, vectored interrupts, main and subsystem clocks, and serial
interface. The devices are ideally suited for controlling
VCRs, microwave ovens, electronic stoves, washing machines, electronic cash registers, audio equipment, and
meters.
(For the programmable equivalents, use Il-PD75CG 216 or
Il-PD75P216A.)
pPD75268
4-Bit Microcomputer
With FIP® (VF) Controller/Driver
o 8-bit serial interface
- Data transfer can be full duplex or receive only,
and can be MSB or LSB first
o Vectored interrupts
- Three external interrupts
- Four internal interrupts
o Two interrupt requests
o Standby modes
- HALT mode: stops CPU only
- STOP mode: stops main system clock
o Operates with oscillator or ceramic resonator
Features
o CMOS technology, with VDD from 2.7 to 6.0 V
o 103 instructions
- Bit manipulation
- 4-bit add and subtract
- 4-bit and 8-bit transfer
- GETI instruction, to convert one 2-byte or two
1-byte instructions into a single 1-byte instruction
- 1-byte relative branch
Ordering Information
Part Number
Package Type
ROM
"PD75268CW-xxx
64-pin plastic SDIP
Mask ROM
"PD75268GF-xxx-3BE
64-pin plastic QFP
Mask ROM
Note:
xxx indicates ROM code.
o Fast execution time (@ 4.19 MHz)
- High-speed cycle: 0.95 Il-S
- Lower-voltage cycles: 1.91 and 15.3 Il-S
o 8064 bytes of program ROM
o 512 x 4 bits of program RAM
o Eight 4-bit registers
o 32 port lines
- 20 general-purpose I/O, 8 outputs directly drive
LEDs (lsink = 15 rnA rms)
- 8 input-only lines
o Three timers
- 8-bit basic interval timer
- 8-bit timer/event counter
- 14-bit watch timer with buzzer output
o Programmable FIP controller with memory area
- Up to 16 segments
- Up to 16 digits
FIP is a registered trademark of NEC Corporation
50211
4-123
II
ttfEC
"PD752G8
Pin Configurations
tu-I'In SDIP
voo
S3
52
Sl
S5
so
sa
POofINT4
P01ISCK
P02fSO
PO:3/s1
P10/INTO
Pll/INT1
P12/INT2
PlI lTIO
P20
P21
P22
P2aIBUZ
S7
P30
P31
P32
P3a
P60
P61
P62
PBs
P4Q
P41
P42
P43
NC
Xl
X2
Vss
S4
sa
S9
VpRE
VLOAO.
T151S10
T14/S11
Tl31S121PI-'o
T121S131PHl
Tll/S14/P1i2
T10/SlS/PH:!
T9
T8
T7
T6
T5
T4
T3
T2
Tl
TO
RESET
PSa
P52
PSl
P50
XT2
XTl
83RD-6557A
4-124
NEe
pPD75268
Pin Configurations
64-PlnQFP
~~~~~
~1
••
«.~~~~~~~$M~
~
~
P42
P43
NC
P01/5CK
POO/INT4
so
51
52
53
XI
VDD
54
55
56
57
58
59
o
2345678
II
83R().6558B
Pin Identification
Symbol
Function
Symbol
Function
POoflNT4
Port 0 Input; Interrupt 4
T14/S11
T15/S10
Digit selects T14 and T15; segment selects S10 and
Sll.
Port 0 Input; serial clock
P~/SO
Port 0 input; serial out
POa/SI
Port 0 Input; serial In
Plof1NTO
Port 1 input; Interrupt 0
Port 1 input; interrupt 1
P1i1NT2
Pla/TIO
Port 1 Input; Interrupt 2
Port 1 Input; timer 0 Input
Port 21/0
P2a/BUZ
Port 2 I/O; buzzer output
Port 31/0
Port 41/0
Port 51/0
Port 61/0
PHoIT13/S12
Port H output; digit select line; segment select line
Port H output; digit select line; segment select line
Port H output; digit select line; segment select line
PHa/T101S15
Port H output; digit select line; segment select line
S0-59
FIP segment outputs
TO-T9
FIP digit select outputs
Xl, X2
Main clock Inputs
XT1,XT2
Subsystem clock Inputs
VPRE
FIP predrlver negative supply voltage
VLOAD
FIP high-voltage negative supply voltage
Reset Input
Voo
Positive power supply
V55
Ground
PIN FUNCTIONS
POo/INT4, P01/SCK, P~SO, POafSI
These pins can be used as 4-bit input port O. Or, POo can
also be used for vectored interrupt 4, which interrupts on
either the leading edge or the trailing edge of the signal.
P01-P03 may also be used for the serial interface in the
2/3 wire mode. SI Is the serial input, SO is the serial
output, and SCK is the serial clock. Reset causes these
pins to default to the port 0 input mode.
4-125
NEe
pPD75268
P1o/1NTO, P11/INT1, P1z/INT2, P13IT10
TO-T9
These pins can be used as 4-bit input port 1. Or, P10 and
P1, can also be used for edge-triggered interrupts INTO
and INT1. P12 can be used for INT2, which is also an
edge-triggered input, but one which generates an Interrupt request and does not cause an interrupt. P1s can be
used as an input clock to the timer/event counter to
count external events. Reset causes these pins to default to the port 1 Input mode.
These are high-voltage outputs used as FIP controller
digit select timing signals. pulldown resistors Can be
selected as a mask-option. A reset signal sets these pins
to the high-impedance state; if mask-option resistors are
present the outputs go low.
P20,P21,P22'P~
These pins can be used as 4-bit I/O port 2. When used as
an output, the data Is latched. When used as an input
port the port outputs are three-state. P2s can also be
used to output square waves for a buzzer. Reset causes
these pins to default to the port 2 input mode.
P30.p33, P4o-P43, P5o-P53
Ports 3, 4, and port 5 are 4-bit I/O ports with latched
outputs. Ports 4 and 5 will directly drive LEOs. Each bit of
port 3 can be independently programmed to be either an
input or an output, while ports 4 and 5 can be programmed to be either an input port or an output port. A
reset Signal causes these ports to default to the input
mode.
T14/S11, T15/S10
These two pins provide additional digit or segment
selectors. When not used for the display they can be
used as static outputs. Internal pulldown resistors are
available as a mask option.
X1,X2
These pins are the main system clock inputs. The clock
can be either a ceramic resonator or a crystal; an
external logic signal may also be used.
XT1,XT2
These pins are the subsystem clock inputs. The clock
can be either a ceramic resonator or a crystal; an
external logic signal may also be used.
RESET
This is the reset Input, and it is active low.
P60-P63
Port 61s a 4-blt I/O port. Outputs are latched, and each
bit can be independently programmed to be either an
Input or an output. Port 6 can have pulldown resistors
added as a mask option. A reset signal causes this port
to default to the input mode.
PHo/T13/S12, PH1/112/S13, PH:zIT11/S14,
PH3fT10/S15
Port H Is a 4-bit output-only port, with P-channel opendrain outputs capable of directly driving LEOs. Output
pulldown resistors can be selected as a mask-option.
Alternatively, these pins can be used as high-voltage
digit/segment outputs (T13/S15 - T10/S12). A reset signal
causes this port to default to the high-impedance state;
if mask-option resistors are present the output goes low.
$0-S9
These are high-voltage outputs used asFIP controller
segment Signals. pulldown resistors can be selected as a
mask-option. A reset signal sets these pins to the hlghImpedance state; if mask-option resistors are present
the outputs go low.
4-126
VPRE
This is the power supply for the predrivers of the FIP
controller.
VLOAD
This pin is used to supply power to the output drivers for
the segment and digit select pins of the FIP controller.
VDD
The system positive power supply pin.
Vss
System ground.
NEe
pPD75268
Block Diagram
4-127
t-IEC
pPD75268
ELECTRICAL SPECIFICATIONS
Absolu~e
TA = 25"C
Maximum Ratings
-0.3 to +7.0 V
Supply wltage, Voo
Supply wltage, VUlAO
Voo -40 to Voo +0.3 V
Supply wltage, VPRE
Voo -12 to Voo+0.3'V
Low-Ievel output current, IOL
(sfl'lgle pin)
17 rnA
Low-Ieve/ output current, IOL
(total of aU pins)
60mA
Input wltage, VIN
-0.3 to Voo + 0.3 V
Power dissipation,
Output wltage, Vo (other than display)
-0.3 to Voo + 0.3 V
Power dissipation,
Output wltags, Voo (display pins)
Voo -40 to Voo +0.3 V
High-level output current, IOH
(single pin; other than display)
-15 rnA
High-level output current, IOH
(elngle pin; 80-89)
-15 inA
High-level output current, IOH
(single pin; 1O-T15)
-SOmA
High-level output current, IOH
(total of ,III, pins other than display)
-20mA
High-level output current, IOH
(total of all display outputs)
Po (plastic QFp)
Po (plastic SDIp)
450 mW (Note 1)
600 mW (Note 1)
Storage temperature, tsrG
-85 to + 150"0
Operating temperature, tOPT
-4Oto +85"C
Exposure to Absolute Maximum Ratings for extended periods may
affect device reliability; exceeding the ratings could cause permanent
damage. The device 8hculd be operated within the limits apeclfled
under DC and AC Characterlatlca.
Note.:
-120mA
(1) Care must be taken whIm designing the mICrocomputer that the,
total power dissipation does not exceed the maximum allowable.
Power Is dissipated In three areas:
a. At the CPU. Po Is calculated by the product of Voo (max)
and I001(max).
b. By the output pins. '/btal power dissipation Is the sum of the
values for each pin when maximum current Is applied.
c. By the pulldown resistors.
Main System Clock Oscillator Characteristics
TA .. -40 to +85"C; voo .. 2.7 to 6.0 V
Oaclllator
Parameter
Ceramic resonator
(FIgure 1A)
Oscillation frequency (Note 1)
Crystal resonator
(FIgure 1A)
Oscillation frequency (Note 1)
External clock
(FIgure 18)
Symbol
Min
fxx
2.0
fxx
2;0
Typ
Oscillation stabilization time (Note 2)
Oscillation stabilization time (Note 2)
X1 Inputfrequency
X1 Input hlgh- and low-level width
fx
txH, tlCL.
4.19
Max
Unit
5.0
MHz
4 (Note 3)
ms
5.0
MHz
10 (Note 3)
ms
30 (Note 3)
ms
2.0
5.0
MHz
100
250
ns
Condition.
Voo .. 4.5 to 6.0 V
Notea:
(1) The oscillation frequency and X1 Input frequency are Included
only to show the frequency range of the oscillators. Refer to the
AC Characterlstlce table for actual Instruction execution times.
(2) The oscillation stabilization time Is the time required for the
oscillator to stabillzeaftsr Voo Is applied or the STOP mode Is
released.
4-128
(3) Valuss shown are typical values for resonators. Actual values
should be obtained from the manufacturer's specification
sheets.
NEe
pPD75268
Subsystem Clock Oscillator Characteristics
TA = -40 to +85°C; Voo = 2.7 to 6.0 V
Oscillator
Parameter
Symbol
Min
Typ
Max
Unit
Crystal resonator
(FIgure 2A)
Oscillation frequency (Note 1)
fxr
32
32.768
35
kHz
External clock
(FIgure 28)
Oscillation stabilization time (Note 2)
1.0
2 (Note 3)
s
10 (Note 3)
s
XT1 Input frequency
fxr
32
100
kHz
XTl Input high- and low-level width
IxTH. IxTL
10
32
""
Notes:
(1) The oscillation frequency and Xl Input frequency are Included
only to show the frequency range of the oscillators. Refer to the
AC Characteristics table for actual Instruction execution times.
Conditions
Voo = 4.5 to 6.0 V
(3) values shown are typical values for resonators. Actual values
should be obtained from the manufacturer's specification
sheeta.
(2) The oscillation stabilization time Is the time required for the
oscillator to stabilize after Voo Is applied or the STOP mode Is
released.
Figure 1. Mllin System Clock Conflgurlltloll8
II
Figure 2. Subsystem Clock ConfigurlltlOll8
A. Crystal Resonator
A. Ceramic/Crystal Resonator
.--_--IXT1
~~
T
\l33PF
'---~-IX2
XT2
330
kG
B. External Clock
B. External Clock
.;>0_.----1
*
X1
»--~-IXT1
X2
Open- XT2
~P074HCU04
83RD-6443A
83RD-6444A
4-129
NEe
pPD75268
Capacitance
Operating Supply Voltage
voo = OV;TA = 25°C
TA
Parameter
Symbol
Input capacitance
Min
Max
Unit
~N
15
pF
Output capacitance;
Other than display
output pins
Coun
15
pF
Output capacitance;
Display output pins
COUT2
35
pF
1/0 capacitance
CIO
15
pF
Conditions
= -40 to
+85°C
Parameter
Min
Max
Unit
(Note 2)
6.0
V
Display controller
4.5
6.0
V
Other hardware (Note 1)
2.7
6.0
V
CPU (Note 1)
=
f
1 MHz
All unmeasured
pins returned
to ground
Notes:
(1) The CPU does not Include the system clock oscillator and the
display controller.
(2) Varies according to the cycle time. See AC .Characterlstlcs.
DC Characteristics
TA
= -40 to
+85°C; voo
= 2.7 to 6.0 V
Typ
Parameter
Symbol
Max
Unit
High-level Input voltage
V.Hl
0.7Voo
Voo
V
VIH2
0.75Voo
Voo
V
Ports 0 and1;.RESET
VIH3
Voo-0.4
Voo
V
X1, X2, XTt
VIH4
O.65Voo
Voo
V
Port 6; Voo
0.7Voo
Voo
V
Port 6; Voo
VILl
0
0.3Voo
V
All except ports 0,1, and 6; RESET; X1, X2, XTt
VIL2
0
0.2Voo
V
Ports 0, 1 and 6; RESET
VIL3
0
0.4
V
X1, X2,XTt
VOH
Voo-1.0
V
All outputs; Voo
Voo-0.5
V
All outputs; Voo
Low-level Input voltage
High-level output voltage
Low-level output voltage
Min
0.4
VOL
2.0
V
0.4
V
Conditions
All except ports 0 and 1; RESET; X1, X2, XT1
= 4.5 to 6.0 V
= 2.7 to 6.0 V
= 4.6 to 6.0 V; 10H = -1 rnA
= 2.7 to 6.0 V; 10H = -100 IlA
Ports 4 and 5; Voo = 4.6 to 6.0 V; 10L = 15 rnA
All output pins; Voo = 4.6 to 6.0 V; 10L = 1.6 mA
All output pins; Voo = 2.7 to 6.0 V; 10L = 400 pA
All exceptX1, X2, and XT1; VIN =Voo
X1, X2, and XT1; VIN = Voo
All except X1, X2, and XT1; VIN = 0 V
X1, X2, and XT1; VIN = 0 V
All output pins; VOUT = Voo
All except display output pins; VOUT = 0 V
0.5
V
ILIHl
3
p.A
ILIH2
20
p.A
ILILl
-3
p.A
ILIL2
-20
p.A
High-level output leakage current
ILOH
3
p.A
Low-level output leakage current
ILOL 1
-3
p.A
ILOL2
-10
p.A
Display output pins;
VOUT = VLOAO = Voo-35 V
High-level Input leakage current
Low-level input leakage current
Display output current
4-130
100
-3
-5.5
rnA
SO - S9; (Note 1) and Recommended External
Circuit (figure 3)
-1.5
-3.5
rnA
SO -89; (Note 2)
-15
-22
rnA
TO - T15; (Note 1) and Recommended External
Circuit (figure 3)
-7
-15
rnA
TO - Tt5; (Note 2)
ttlEC
pPD75268
DC Characteristics (cont)
Parameter
Symbol
Internal pulldown reslltor
(mask option)
RP6
Min
Typ
Max
Unit
20
80
200
kO
1000
kO
Port 6; Voo '" 2.7 to 6.0 V; VIN - Voo
70
135
kO
Display output pins; VOo-VLOAO - 35 V
20
25
Supply current
(Note 6)
Condition.
Port 6; Voo '" 4.5 to 6.0 V; VIN .. Voo
= 5 V :I: 10'11> (Notes 3, 4)
= 3 V :I: 10'11> (Notes 3, 5)
3.0
9.0
rnA
Yeo
0.65
1.5
rnA
Voo
800
1800
800
1003
40
120
1004
5
15
/IA
/IA
/IA
pA
HALT mode; Voo .. 5 V :I: 10% (Note 3)
200
10DS
0.5
20
/IA
STOP mode; XT~ .. OV; Voo .. 5 V :I: 10 'II>
0.1
10
pA
STOP mode; XT1 '" OV; Voo
1001
1002
HALT mode; Yeo '" 3 V :I: 10% (Nete 3)
Voo .. 3 V :I: 10'11> (Notel 7, 8)
HALT mode; Yeo .. 3 V :I: 10% (Notes 7, 8)
= 3 V :I: 10 'II>
Nota.:
(5) value durlnglow-speed operation; processor control clock (POC)
Is set to 0000.
(1) Voo - 4.5 to 6.0 V; Voo '" Voo -2 V; VPRE '" Voo -9:1:1 V
(2) Voo .. 4.5 to 6.0 V; Veo .. Voo -2 V; VPRE .. 0 V
(3) 4.19 MHz crystal oscillator, C1 .. C2 .. 15 pF.
(6)' Does not Include Internal pulldown reslltor current.
(7) 32 MHz crystal oscillator
(8) value when the system clock control register (SCC) II set to 1001,
(4) value during hlgh-epeed operation; processor control clock
(pCC) II set to 0011.
main system clock Is ItOpped, and the lubsystem clock operates
the chip.
PIC Characteristics
TA .. -40 to +85"C; voo
= 2.7 to 6.0 V
Min
Cycle time
minimum Instruction execution time -
tcv
Max
Unit
32
pi
CPU using main system clock;
voo '" 4.5 to 6.0 V
3.8
32
pi
CPU using main system clock;
Voo ",'2.7 to 6.0 V
125
pi
CPU using lubayatem clock;
Voo '" 2.7 to 6.0 V
0.6
MHz
Vpo .. 4.5 to 6.0 V
165
kHz
" Voo .;. 2.7 to 6.0, V
(Note 1)
114
TIO Input frequency
fori
TIO Input high- and Iow-Ievel width
~cycletlme
~ high- and Iow-Ievel width
Typ
0.95
lKcv
o
o
122
Condition.
0.83
pi
Voo - 4.5 to 6.0 V
3
pi
Voo = 2.7 to 6.0 V
0.8
pi
Input; Voo
0.95
pi
Output; Voo '" 4.5 to 6.0 V
3.2
pI
Input; Voo '" 2.7 to 6.0 V
3.8
pi
Output; Voo
0.4
pi
Input; Voo
= 4.5 to 6.0 V
0.5iKcr50
ns
= 2.7 to 6.0 V
= 4.5 to 6.0 V
Output; Voo = 4.5 to 6.0 V
1.6
pi
Input; Voo = 2.7 to 6.0 V
0.5tl(Cy-150
ns
Output; Voo '" 2.7 to 6.0 V
4-131
II
NEe
pPD75268
AC Characteristics (cont)
Parameter
Symbol
Min
SI to ~ i setup time
tSIK
100
SI to ~ i hold time
~I
400
~ ,J. to SO output delay time
~o
Interrupt Inputs
low- and high-level width
tlNlH,
tlNTL
mE'I' low-level width
tRSL
Typ
Max
Unit
Conditions
ns
ns
300
ns
VOO = 4.5 to S.O V
1000
ns
VOO = 2.7toS.OV
(Note 2)
p.S
INTO
2tCY
p.S
INT1
10
p.S
INT2,INT4
10
p.S
Notes:
(1) Cycle time Is determined by the frequency of the oscillator
connected to the microcomputer, system clock control register
(SCC), and the processor clock control (PCC). See the graph
depicting the Supply Voltage to the cycle time (fIgure 4) when the
microcomputer Is operating on the main system clock.
(2) 2tcY or 128/1xx, depending on the setting of the Interrupt mode
regl ster OMO).
Data Memory STOP Mode Low Voltage Data Retention Characteristics
TA = -40 to +85°C
Parameter
Symbol
Min
Data retention voltage
VOOOR
2.0
Data retention current
IOOOR
Release signal SET time
tsREL
Oscillation stabilization tll1"e (Note 2)
tWAfT
Typ
0.1
0
Max
Unit
S.O
V
10
/loA
Conditions
VOOOR = 2.0 V (Note 1)
p.S
(2)
ms
Release by mET Input
(2)
ms
Release by Interrupt request
Notes:
(1) Excludes current In the Internal pull down resistors.
(2) Oscillation stabilization WAIT time Is the time during which the
CPU Is stopped and the crystal Is stabilizing; consult the vendo~s resonator or crystal specifications sheet for this value. This
time is required to prevent unstable operation while the oscillation is started. The interval timer can be used to delay the CPU
from executing instructions using the basic interval timer mode
register (BTM) according to the following table:
BTM3
BTM2
o
o
1
1
4-132
BTM1
BTMO
o
1
o
o
1
1
1
1
WAIT time
2,20/fxx (Approx 250 ms)
217!fxx (Approx 31.3 ms)
215!fxx (Approx 7.82 ms)
213!fxx (Approx 1.95 ms)
Figure 3. Recommended Externa' Circuit
VOO
+5V
R09.1EL
~ ( ' 8.29·9.3V
VpRE
681<0
VLOAO
-30V
GNOn
83RO-6559A
t'tIEC
pPD75268
TIMING WAVEFORMS
Figure 4. GUllranteed Operating RIInge
tcvvsVoo
AC Timing lIellSurement Point.
(Excluding X1 and XT1 input pins)
(Operation on main system clock)
40
32
~~P:
:::~
0.75 VOD--- Measurement _0.75 VOO
:::~
::::=::
0.2 VOO -
points
- - 0.2 VOO
6
83RD-s457A
5
ng
Clock Timing
4
3
II
2
1
83RD-6714A
0.5
°
2
3
4
5
6
I
110 Timing
7
Power Supply Voltage VOO (V)
83R0-6458A
Serial Transfer Timing
tKCY
I+-tKL-+ f - t K : j
-SCK
\
tSIK
SI
',00_
so
f
"'"
tKSI
Input Oata
OulputOata
X
83RD-6712A
4-133
ttiEC
pPD75268
,
1fESi!'f Input 71""ng
Interrupt Input TImIng
INTO,1,2,4
83RD-I713A
"'t. Retention TIming
A. STOP mode Is released by RESET Input
Internal reset
operation
I
t:
I
I
STOP mode
VDDDR
I
I
Data retenUon mode _ _
t
HAlT mOde
OperaUon
mode
/
ExewUonof
STOP Instruction
\
>0......1
_tSREL
tWAIT
B. STOP mode Is released by Interrupt signal
HALT mode
t:
_
t
. ExewUon of
STOP Instruction
Standby release signal
(Interrupt request)
4-134
I
ss------STOPmode _ _ _ _ _ _ _--I~_I--I~- ~:uon
Data retention mode
VDDDR
tSREL
NEe
pPD7530x/31X/P308/P316
4·Bit Microcomputers
With LCD Controller/Driver
NEG Electronics Inc.
Description
The pPD753Ox/31x is a family of high-performance
single-chip CMOS microcomputers containing CPU,
ROM, RAM, I/O ports, several timer/counters, vectored
interrupts, subsystem clock, and serial interface.
The instruction set allows the user to manipulate RAM
data and I/O ports in 1-, 4-, and 8-bit units. The devices
are ideally suited for controlling VCRs, telephones,
meters, handheld instruments, and devices with LCDs.
Development tools include a low-cost in-circuit emulator, relocatable assembler, and C-like structured assembler.
Both EPROM and OTP versions are available. See ordering information.
Features
o 103 instructions
- Bit manipulation
-4-bit and 8-bit transfer
-1-byte relative branch
- GETI instruction converts one 2-byte/3-byte or
two 1-byte instructions into a single 1-byte
instruction
o Fast execution time
(Main system clock @ 4.19 MHz)
- High-speed cycle: 0.95 ps
- Lower-voltage cycles: 1.91 and 15.3 ps
o Program ROM
- /.lPD75304: 4096 bytes
-pPD75306: 6016 bytes
- pPD75308/P308: 8064 bytes
-pPD75312: 12160 bytes
- pPD75316/P316/P316A: 16256 bytes
o Data memory (RAM)
-512x 4 bits
- Allows operation on 1, 4, or 8 bits
o Bit sequential buffer
-16-bit, bit manipulation memory
o Eight 4-bit registers or four 8-bit registers
o Accumulators
-1-bit (CY)
-4-bit (A)
-8-bit (XA)
o 241/0 lines
50244
-All outputs directly drive LEDs
(Is ink = 15 mA rms)
- 8 N-channel open-drain, can withstand 10 V
- 8 input-only lines
o One external event input
o Subsystem clock allows watch timer and LCD
controller to operate in STOP mode
o Three timers
- 8-bit basic interval timer
- 8-bit timer/event counter
-14-bit watch timer
o LCD controller/driver
- 32 segment lines
- 4 common lines
-4 operating modes: static; multiplexed 1/2 bias;
triplexed 1/2 or 1/3 bias; quadruplexed 1/3 bias
- LCD resistor ladder available as a mask option
o 8-bit serial interface
-SBI mode
- 2- or 3-wire mode: Data transfer can be full
duplex or receive only, and can be MSB or LSB
first
o Vectored interrupts
- Three external interrupts
- Three internal interrupts
- Nine inputs which generate an interrupt request
o Standby modes
- HALT mode: stops CPU only
- STOP mode: stops main system clock
o Optional pull up resistors
- By software: 23 lines
- By mask option: 8 lines
o Operates with oscillator or ceramic resonator
o CMOS operation, with Voo from 2.7 to 6.0 V
o Programmable versions
-
OTP & EPROM: pPD75P308
OTP: pPD75P316
OTP, low voltage: pPD75P316AGF (Note)
EPROM, low voltage: pPD75P316AK (Note)
o Low operating current (@5 V and 4.19 MHz)
- Normal operation: 2.5 mA typical
- HALT mode: 0.5 mA typical
- STOP mode: 0.1 mA typical
Note: Low voltage target spec of 2.7 to 6.0 V operation.
Contact your local NEC Sales Office for latest information; none of the electrical specifications in this
data sheet directly apply to these parts.
4-135
II
t-{EC
pPD753Ox/31x/P308/P316
Ordering Information
Part Number
Package Type
ROM
Part Number
Package Type
ROM
"PD75304GF-xxx-3B9
SO-pin plastic QFP
Mask ROM
"PD75316GF-xxx-3B9
SO-pin plastic QFP
Mask ROM
"PD75306GF-xxx-3B9
SO-pin plastic QFP
Mask ROM
"PD75P316GF-3B9
SO-pin plastic QFP
OTP
"PD75308GF-xxx-3B9
SO-pin plastic QFP
Mask ROM
"PD75P316AGF-3B9
SO-pin plastic QFP
"PD75P30SGF-3B9
SO-pin plastic QFP
OTP
Low
voltage
OTP
"PD75P30SK
SO-pin ceramic Lee
w/Window
EPROM
"PD75P316AK
SO-pin ceramic Lee
w/Window
"PD75312GF-xxx-3B9
SO-pin plastic QFP
Mask ROM
Low
voltage
EPROM
Notes:
(1) xxx indicates ROM code suffix.
Pin Configurations
~ ~ ~ ~ ~ ~ ~ ~ ~ ~
S12
0
R mm~
~ ~
64
P70/KR4
P63/KR3
P62/KR2
61
P61/KR1
60
P60/KRo
59
X2
X1
NC orVpp
XT2
S21
XT1
S22
VDD
P33/MD3 t
P32/MD2 t
S23
S24/BPO
S25/BP1
51
P31/SYNC/MD1 t
S26/BP2
50
P30 ILCDCLlMDO t
S27/BP3
49
P23/BUZ
S26/BP4
P22/PCL
S29/BP5
P21
S3Q/BP6
P20/PTOQ
S31/BP7
P131T10
COMO
P12/1NT2
COM1
COM2
P11I1NT1
P10/lNTO
COM3
P03/SI/SB1
• Pin 57 is Vpp in the programmable package. Connect this pin to VDD in the fLPD75P306/P316/P316A.
t MDO-MD3 are used as the programming mode selection pins on the fLPD75P306/P3161P316A during EPROM and OTP programming and verification.
49NR-5S2B
4-136
NEe
pPD7530x/31x/P308/P316
Pin Identification
Symbol
Function
Symbol
Function
BIAS
LCD power bias output
VLC1
LCD drive level 1
BPoIS24
BP1/S25
BP2/S26
BPa/S27
BP4fS28
BP&'S29
BPelS30
BP7/S31
1-bit output ports BPo-BP7;
LCD segments S24-831
VLC2
LCD drive level 2
Xl, X2
Main clock inputs
XT1, XT2
Subsystem clock inputs
COMO-COM3
LCD Common output 0-3
NCIVpp
No connection (programming pin for
POoIINT4
Positive power supply
Vss
Ground
PIN FUNCTIONS
~PD75P308/P316/P316A)
POo/lNT4, P01/SCK, P02/S0/SBO, POa/SI/SB1
Port 0 input; interrupt 4
These pins can be used as 4-bit input port o. POo can
also be used for vectored interrupt 4, which interrupts on
either the leading edge or the trailing edge of the signal.
P01-P03 may also be used forthe serial interface. SI is
the serial input, SO is the serial output, and SCK is the
serial clock. Reset causes these pins to default to the
port 0 input mode.
Port 0 input; serial clock
Port 0 input; serial out
POa/SI/SB1
Port 0 input; serial in
P1of1NTO
Port 1 input; interrupt 0
P21/1NT2
Port 1 Input; interrupt 2
P1a/T10
Port 1 input; timer 0 input
P2ofPTOo
Port 2 I/O; timer/event counter output
P21
Port 21/0
Port 1 input; interrupt 1
P22/PC L
Port 2 I/O; clock output
P2a/BUZ
Port 2 I/O; buzzer output
P301LCDCL/MDO
Port 3 I/O; LCD clock output; programming
mode select 0 (p.PD75P308/P3l6/P3l6A)
P31/SYNC/MDl
Port 3 I/O; SYNC output; programming mode
select 1 (p.PD75P308/P316/P3l6A)
P~/MD2
Port 3 I/O; programming mode select 2
(p.PD75P308/P3l6/P3l6A)
P3a/MD3
Port 3 I/O; programming mode select 3
(p.PD75P308/P3l6/P3l6A)
P40-P43
Port 4 I/O
P50-P53
Port 5 I/O
P601KRO
Port 6 I/O; key scan input 0
P61/KR1
Port 6 I/O; key scan input 1
P~KR2
Port 6 I/O; key scan input 2
P6a/KR3
Port 6 I/O; key scan input 3
P701KR4
Voo
P10/INTO, P11/INT1, P12fINT2, P1a/TIO
These pins can be used as 4-bit input port 1. P10 and P1l
can also be used for edge-triggered interrupts INTO and
INT1. P12 can be used for INT2, which is also an
edge-triggered input, but one which generates an Interrupt request and does not cause an Interrupt. P13 can be
used as an input clock to the timer/event counter to
count external events. Reset causes these pins to default to the port 1 input mode.
P20/PTOO, P21, P22/PCL, P2a/BUZ
These pins can be used as 4-bit I/O port 2. When used as
an output the data is latched. When used as an input port
the port outputs are three-state. P20 can also be used as
the output of the timer/event counter flip flop (TOUT);
P22 can be used as the output (PCL) for the clock
generator; and P23 can be used to output square waves
for a buzzer. Reset causes these pins to default to the
port 2 input mode.
Port 7 I/O; key scan input 4
Port 7 I/O; key scan input 5
Port 7 I/O; key scan input 6
P7a/KR7
Port 7 I/O; key scan input 7
Reset input
S0-823
LCD segment output
LCD drive level 0
4-137
..
...
NEe
pPD753Ox/31X/P308/P316
P30/LCDCLlMDO, P31/SYNC/MD1, P3a/MD2,
P33/MD3·
These pins are used for I/O Port 3. Each bit in this port
can be independently programmed to be either an input
or an output. This port has latched outputs, and can
directly drive LEOs.P3o and P3l can also be used
respectively as LCD clock and LCD sync outputs. P30P33 are used as the programming mode select pins for
the p.P075P30SIP316/P316A during EPROM/OTP programming and verification. A reset signal causes this
port to default to the input mode.
P40-P43, P50-P53
Port 4 and Port 5 are identical 4-bit I/O ports which can
be combined together to function as a single S-bit port.
Latched outputs will directly drive LEOs. Outputs are
N-channel open drain, and can withstand up to 10 volts;
pull-up resistor mask options are available for these
ports. A reset signal causes these ports to default to the
input mode.
P6ofKR0, P61/KR1, PS2IKR2, P6a1KR3
P7ofKR4, P71/KR5, P721KR6, P7a1KR7
Ports 6 and 7 are 4-bit I/O ports which can be combined
together to function as a single S-bit port. Outputs are
latched. Each pin of port 6 can be independently programmed to be either an input or an output, while port 7
can be programmed to be either all inputs or all outputs.
Alternately, these pins may be used to detect the falling
edge of inputs KRO - KR3 (port 6) and KR4 - KR7 (port 7).
A reset signal causes these ports to default to the input
mode.
SO-S23
Thes.e are the LCD segment drivers.
COMO-COM3
These are the LCD common input drivers.
BPoIS24-BP7/S31
The.se can be used either as eight 1-bit ports or as
additional LCD segment drivers. When used as segment
outputs they are selectable in 4-bit increments.
4":13S
VLCO-V LC2
These pins are used to set the drive levels for the LCD. If
the internal resistor ladder mask option is selected,
these pins are outputs; if .the internal resistor ladder is
not selected, these pins are inputs to which an external
resistor network must be connected.
BIAS
Thes output is used in conjunction with the VLCO - VLC2
pins to set the LCD contrast level.
NCNpp
This pin may be left unconnected when using the
p.P07530x/31x. For the p.P075P30S/P316IP316A, this pin
is used as the programming voltage input during the
EPROM write/verify cycles. When the devices are not
being programmed, this pin should be connected to Voo.
X1,X2
These pins are the main system clock inputs. The input
can be either a ceramic resonator or a crystal; an
external logic signal may also be used.
XT1,XT2
These pins are the subsystem clock inputs. The input can
be either a ceramic resonator or a crystal; an external
logic signal may also be used.
RESET
This is the reset input, and it is active low.
Voo
The system pOSitive power supply pin.
Vss
System ground.
NEe
IIPD7530x/31x/P308/P316
Block Diagram
POO-P03
P10-P13
P2o-P23
TI0/P13
P3o-P33 *
MDO-MD3
PTOO/P20
P40-P43
BUZlP2 3
P50-P53
ROM
Program Memory
(The Memory size
varies depending
on Ihe product
Iype.)
PaO-P6 3
Decode
and
Conlrol
SVSB1/P03
RAM
Data Memory
P70-P73
512 x4 bits
SO/SBO/P02
SO-S23
SCKlP01
S24/BPOS3l1BP7
COMO-COM3
INTO/P10
INT1/P11
VLCO-VLC2
INT2IP12
INT4/POO
KRO/P60
-KR7/P73
System Clock
Clock
Oulput
Control
g~~~:r I-_G_e_nTera_l_o_r--I s~~c::r
BIAS
CPU Clock "
LCDCUP30
SYNC/P31
4-139
II
NEe
pPD7530x/31X/P308/P316
Product Comparison (cont)
Item
"PD75304
"PD75306
"PD75308
"PD75P308
"PD75312
"PD75316
"PD75P316/A
Vpp, PROM
programming
pins
None
None
None
Included
None
None
Included
Operati ng voltage
range
2.7 to 6.0 V
2.7 to 6.0 V
2.7 to 6.0 V
5V±10%
2.7 to 6.0 V
2.7 to 6.0 V
5V±10%
2.7 to 6.0 V·
Package
aO-pin plastic QFP
aO-pin plastic
QFP
SO-pin
ceramic
LCCwith
window
aO-pin plastic QFP
SO-pin plastic
QFP
SO-pin ceramic
LCC w/Window·
·"PD75P316A only.
ADDRESS SPACES AND
MEMORY MAPS
The 75X architecture has two separate address spaces,
one for program memory (ROM), and another for data
memory (RAM).
Program Memory (ROM)
The ROM is addressed by the program counter. The size
of the program counter is 12, 13, or 14 bits; its size
depends on which member of the family is being used, as
does the amount of ROM present. The ROM contains
program object code, interrupt vector table, a GETI
instruction reference table, and table data. Table data
can be obtained using the table reference instruction,
MOvr.
Figure 1 shows the addressing range which can be made
using a branch instruction or subroutine call instruction.
In addition, the BR PCDE and BR PCXA instructions can
be used for a branch where only the low 8 bits of the PC
are changed. The program memory addresses are:
75304: OOOH to FFFH
75306: OOOOH to 177FH
75308: OOOOH to 1F7FH
75P308: OOOOH to 1F7FH
75312: OOOOH to 2F7FH
75316: OOOOH to 3F7FH
75P316: OOOOH to 3F7FH
75P316A: OOOOH to 3F7FH
4-140
All locations if ROM except OOOOH and 0001 H can be
used as program memory. However, if interrupts or GETI
instructions are used, the locations corresponding to
those functions cannot be used. Addresses are normally
reserved as follows:
OOOH to 0001 H:
This address area is used as the
vector address for RESET, and also
contains the MBE bit.
0002H to OOOBH: This area is used for interrupt vector
addresses. Each vector address
contains an MBE bit value, and the
interrupts can start from any location
except where noted.
0020H to 007FH: This is the table area for GETI
instructions. The GETI instruction is
used to access one 2-byte/3-byte or
two 1-byte instructions using· one
byte of program memory. This is
useful in compacting code.
NEe
pPD7530x/31x/P308/P316
Figure 1. Program Memory Map
Address
OOOOH
7
o
6
I
.I
MBE
0
IInternal reset start address
I (high order six bits)
(CALL, CALLF) is executed or an interrupt is generated,
the PC is incremented to point to the next instruction,
and this information is saved on the stack. During an
interrupt, the program status word (PSW) is also automatically saved on the stack. The address to be jumped
to by the CALL or interrupt is then loaded into the PC.
J
When a return instruction (RET, RETS, or RETI) is executed, the contents of the stack are restored to the PC.
0004H
instruction
branch
INTO start address
(low order eight bits)
0006H
address
INT1 start address
(high order six bits)
CALL
laddr
INn start address
(low order eight bits)
instruction
subroutine
INTCSI start address
(high order six bits)
0008H
OOOAH
MBEI 0
I
entry
address
I
INTCSI start address
(low order eight bits)
BR laddr
instruction
INTTO start address
(high order six bits)
branch
address
I
INTTO start address
(low order eight bits)
0020H
Data Memory (RAM)
BRCB
Icaddr
INTO start address
(high order six bits)
GETI instruction reference table
007FH 1 - - - - - - - - - - - 1
BR$addr
instruction
relative
branch
address
(-15to
+16)
0080HI~1-_ _ _ _ _ _ _ _ _--1_~I
07FFH
0800H
OFFFHJ_ _ _ _ _ _ _ _ _--l:f_ _+
1000H
branch
destination
1FFFH'f.I---_---I:f---t2000H~
~
subroutine
entry
2FFFFII-----------I--+
3000H
3F7FH'tL--_ _ _ _ _ _ _ _
addrss
;.J,
G TI
instruction
address,
-I'f
The data memory contains three memory banks, 0, 1,
and 15. The RAM memory map is shown in figure 2. The
memory consists of general purpose static RAM and
peripheral control registers, and accessed by using the
MBE (memory bank enable) and by programming the BS
(bank select register). If MBE = 0, the lower 128 nibbles
of memory bank 0 and the upper 128 nibbles of memory
bank 15 are accessed. If MBE = 1, the upper four bits in
the BS register will specify the memory bank. The values
are OH for memory bank 0, 1H for memory bank 1, and
OFH for memory bank 15. Memory banks 0 and 1 each
contain 256 nibbles; while the memory is organized in
nibbles, the 75X architecture allows the data to be
manipulated in bytes, nibbles and individual bits.
The data memory is used for storing proces~ed data,
general purpose registers, and as a stack for subroutine
or interrupt service. The last 32 nibbles of bank 1 are
used to store the LCD display data. If this area is not
completely used by the LCD, it may be used as generalpurpose RAM. Because of its static nature, the RAM will
retain its data when CPU operation is stopped and the
chip is in the standby mode, provided Voo is at least 2
volts.
49NR-566A
Program Counter (PC)
This is a 12/13/14-bit binary counter that contains the
address of the current program memory location. The
75304 contains a 12-bit PC, the 75306/8 has a 13-bit PC,
and the 75312/16 each contain a 14-bit PC.
When an instruction is executed, the PC is automatically
incremented by the number of bytes of the current
instruction. When a branch instruction (BR, BRCB) is
executed, the contents of the immediate data or register
pair indicating the new address are loaded into some or
all the bits of the PC. When a subroutine call instruction
There are eight 4-bit general-purpose registers in bank 0
starting at location OOH. These registers may also be
used as four 8-bit registers. The on-chip peripheral
control registers and ports reside in the upper 128
nibbles of bank 15. Bank 15 addresses which are not
assigned to a register are not available as random
memory except for the 16-bit sequential buffer. Also, the
lower 128 nibbles of bank 15 do not contain RAM.
4-141
II
NEe
pPD753Ox/31X/P308/P316
Addressing Modes
Figure 2. Data Memory Map:
"oliiiH
007H
OOSH
-----
Slack
area
IiankO
256 x 4
r
The pPD753Ox/31x is able to address data memory and
ports as individual bits, nibbles, or bytes. The addressing modes are as follows:
11purpose
General
registers
ax.4
1
100H
General purpose
slatio RAM
256~4
Bank 1
lEBH
lEOH
1-bit direct data memory
4-bit direct data memory
4-bit register indirect (@rpa)
a-bit direct data memory
a-bit register indirect (@HL)
480(4
-----
lFFH
1dataDisplay
memory
32x4
BaLI l:aOHG]l2B.
x 4.
L.Em! .
See table 1 for data memory addressing and table 2 for
peripheral control register addressing.
General purpose
slatio RAM
perJherai
hardware area
_ _....1*_ __
49NR-567A
Table 1. Data Memory Addressing Modes
Addressing Mode
Representation Format
How the Address Is Created
1-bIt direct addressing
mem.blt
If MBE = 0, the memory bank is Bank 0 for addresses OOH-7FH, and Bank 15
for addresses 8OH-F FH.
If MBE = 1, the memory bank is selected by the four bits of the MBS.
The bit to be manipulated Is specified In mem.blt
4-blt direct addressing
mem
If MBE = 0, the memory bank Is Bank 0 for addresses .OOH-7FH, and Bank 15
for addresses 80H-F FH.
If MBE = 1, the memory bank Is selected by the four bits of the MBS.
The bit to be manipulated is specified in memo
8-bltdlrect addressing
mem (must be an even address)
If MBE = 0, the memory bank is Bank 0 for addresses OOH-7FH, and Bank 15
for addresses 8OH-F FH.
If MBE = 1, the memory bank is selected by the four bits of the MBS.
The bit to be manipulated Is specified in memo
4-bit register Indirect
addressing
8-blt register indirect
addressing
4-142
@HL
The memory bank is selected by the four bits of the MBS, and the location
.
within the memory bank Is contained In register HL.
@DE
The memory bank is always Bank 0, and the location within the memory bank is
contained in register DE
@DL
The memory bank is always Bank 0, and the locatlori within the memory bank Is
contained in reg later 0 L
@HL (must be an even addreas)
The memory bank is selected by the four bits of the MBS, and the location
within the memory bank is contained In register HL.
NEe
Table 1.
pPD7530x/31x/P308/P316
Data Memory Addressing Modes
Addressing Mode
Representation Format
How the Address Is Created
Bit manipulation
addressing
fmem.bit
The memory bank is Bank 15, and the location is fmem, where
fmem = FBOH·FBFH for interrupts
fmem = FFOH·FFFH 1/0 ports
The actuai bit is specified in fmem.bit
pmem.@L
The memory location is independent of MBE and MBS. The upper 10 address
bits of the location are contained in the ten high order bits of pmem and the two
lower address bits are contained in the two upper bits of register L.
The bit to be manipulated is specified by the two LSBs of register L.
@H
+ mem.bit
The memory bank is selected by the four bits of the MBS, and the location is
determined by the following:
The four upper bits are the contents of register H
The four lower bits are memo
The actual bit is specified in mem.bit.
The memory bank is always Bank 0, and the location is indicated by the stack
pointer (SP)
Stack addressing
MBE:'memory bank enabie bit
MB: memory bank
MBS: memory bank select register
mem: a location within a memory bank
mem.bit: a bit at a specified memory location.
fmem and pmem are specialized cases of memo
II
Table 2. Addressing Modes During Peripheral Hardware Operation
Manipulation
Addressing Mode
Applicable Hardware
l·bit
With MBE= 0 (or MBE = 1 and MBS = 15) direct addressing
(specification in mem.bit)
All hardware where bit manipulation can be
performed
Direct addressing regardless of how MBE and MBS are set.
(specification in fmem.bii)
ISTO, MBE
IExxx, IRQxxx, PORTn.x
Indirect addressing regardless of how MBE and M BS are set.
(specification in pmem. @L)
BSBn.x
PORTn.x
With MBE = 0 (or MBE = 1 and MBS = 15) direct addressing
(specification in mem.bit)
All hardware where 4·bit manipulation can be
performed
4·bit
With MBE = 1 and MBS = 15, register indirect addressing
(specification in @HL)
B·bit
With MBE = 0 (or MBE = 1 and MBS = 15) direct addressing
(specification in mem); mem must be an even address
All hardware where B·bit manipulation can be
performed
With MBE = 1 and MBS = 15, register indirect addressing
(specification in @HL); L register must contain an even number
4-143
twEC
pPD753OX/31X/P308/P316
Instruction Execution Times
Operation Code Symbols
The minimum instruction execution time is 0.95 /-IS with
a 4.19 MHz clock. The PCC register· can be used to
program the CPU's minimum instruction. cycle time to
0.95, 1.91, or 15.3 "s; all three speeds presuppose a
4.19 MHz crystal. Reducing the CPU clock speed will
reduce the microprocessor's power consumption.
The following opcode symbols are used with the
"PD7530xi31x family.
Instruction Set
The instruction set contains the following features:
•
•
•
•
•
Versatile bit manipulation instructions
Efficient 4-bit manipulation instructions
B-bit data transfer instructions
GETI instruction to reduce program size
Vertically stored instructions and base correction
instructions
• Table reference instructions
• 1-byte relative branch instructions
Symbol Definitions
The "PD7530xi31x family uses the following symbol
definitions:
Symbol
A-B
C
D
E
H
L
X
XA
BC
DE
DL
HL
PC
SP
CY
P&N
MBE
PORTn
IME
IExxx
MBS
PCC
(xx)
xxH
4-144
Definition
A register; 4-bit accumulator
B register; 4-bitaccumulator
C register; 4-bit accumulator
D register; 4-bit accumulator
E register; 4-bit accumulator
H register; 4-bit accumulator
L register; 4-bit accumulator
X register; 4-bit accumulator
XA register pair; B-bit accumulator
BC register pair
DE register pair
DL register pair
HL register pair
Program counter
Stack pointer
Carry flag; bit accumulator
Program status word
Memory bank enable flag
Port n (n = 0-7)
Interrupt master enable
Interrupt enable flag
Memory bank selection register
Clock processor control register
Separation between address and bit
The contents addressed by xx
Hexadecimal data
reg, reg1
R2
·-O~·
o
o
o
1
1
1
1
R1
-0- ~
o
o
1
o
1
1
1
o
o
o
1
o
1
1
1
Register
A (reg only)
X (reg, reg1)
L (reg, reg1)
H (reg, reg1)
E (reg, reg1)
D (reg, reg1)
C (reg, reg1)
B (reg, reg1)
@rpa,@rpa1
~
9.L
~
1
1
0
0
o
o
~
o
o
o
o
o
o
1
1
0
~
o
o
1
1
1
1
Addressing
@HL (@rpa only)
@DE (@rpa, @rpa1)
@DL(@rpa, @rpa1)
1
1
!!L.- ~
o
o
1
o
o
o
1
o
1
o
1
o
o
1
1
register pairs
reg-pair
P2
P1
0 0 XA
o 1
HL
DE
1
0
1
1
BC
IExxx
IEBT
lEW
IETO
IECSI
lEO
1
IE2
IE4
IE1
o
o
!L !I!!..
x
x
x
x
x
x
x
x
x
Operation Representation Format and
Description Method
An operand is entered in the operand field of each
instruction according to the format of the instruction
(see assembler specifications). When two or more entries are indicated in the description method, one should
be selected. Capital letters and symbols must be entered exactly as shown. For immediate data, a proper
numeric value or label should be entered.
NEe
IIPD7530x/31X/P308/P316
Table 3. Symbol Abbreviations
Symbol
Description
Symbol
reg
regl
X,A,B,C,D,E,H,L
X,B,C,D,E,H,L
addr, caddr
rp
rpl
rp2
XA, BC, DE, HL
BC, DE, HL
BC, DE
rpa
rpal
HL, DE, DL
DE, DL
n4
n8
4-bit immediate data or label
8-blt Immediate data or label
mem (Note 1)
bit
8-blt Immediate data or label
2-bit Immediate data or label
fmem
pmem
Description
/lPD75304: OOOH-F F FH immediate data or label
/lPD75306: OOOOH-l77FH immediate data or
label
/lPD75308/P308: OOOOH-l F7FH immediate data
or label
/lPD75312: OOOOH-2F7FH Immediate data or
label
/lPD75316/P316: ooooH-3F7F immediate data or
label
FBOH-FBFH, FFOH-FFFH immediate data or
label
FCOH-FFFH immediate data or label
faddr
ll-bit immediate data or label
taddr
20H-7FH Immediate data (where bit 0 = 0) or
label
PORTn
Port 0 -Port 7
IEBT, IECSI, IETO, IEO-IE4, lEW
MBO, MB1, MB15
IExxx
MBn
II
Notes:
(1) Memory address must be an even number in 8-bit processing.
Instruction Set
Mnemonic
Operand
Operation
Skip Condition
A-- n4
String A
Bytes
Machine Cycle
regl, #n4
2
2
regl -- n4
XA, #n8
2
2
XA--n8
String A
HL, #n8
2
2
HL-- n8
String B
rp2, #n8
2
2
Transfer
MOV
A, #n4
rp2 -- n8
A,@HL
A -- (HL)
A, @rpal
A- (rpal)
XA,@HL
2
2
@HL,XA
2
2
(HL) - XA
A,mem
2
2
A-- (mem)
XA,mem
2
2
XA- (mem)
mem,A
2
2
(mem) -A
mem,XA
2
2
(mem) -XA
A, regl
2
2
A .... (regl)
@HL,A
XA - (HL)
(HL) --A
XA, rp
2
2
XA- rp
regl, A
2
2
regl .... A
rpl, XA
2
2
rpl
<-
XA
4-145
NEe
pPD753Ox/31X/P308/P316
Instruction Set (cont)
Mnemonic
Operand
Bytes
Machine Cycle'
"
", Skip Condition"
Operation
TrBnsfer(coht)
XCH
A,@HL
1
A - (HL)
A-(rpa1)
A, Ci&)r"a1
XA,@HL
2
2
A,mem
2
2
A- (mem)
XA,mem
2
2
XA- (mem)
A, reg1
MOVT
XA - (HL)
A- (reg1)
XA, rp
2
2
XA-rp
XA, @PODE
1
3
XA .... (PC12-S+ DE) ROM
3
XA .... (PC12-S+XA)ROM
XA,@PCXA
Arithmetic
~
.
ADDS
A, #n4
1
A,@HL
1+S
A .... A+n4
"
Carry
1+S
A .... A+(HL)
Carry
A, CY .... A+ (HL)+ oy
AD DC
A,@HL
1
SUBS
A,@HL
1
1+S
SUBC
A,@HL
AND
A, #n4
2
2
2
2
2
2
A, CY - A - (HL) - CY
A,@HL
OR
A, #n4
A, #n4
A....AA n4
A-A A (HL)
A,@HL
XOR
Borrow
A - A-(HL)
A-AVn4
A-AV(HL)
A,@HL
A-AXOR n4
A .... AXOR (HL)
Accumulator Manipulation
CY .... Ao,
Aa .... CY, An-1
RORO
A
1
NOT
A
2
2
1+S
reg .... reg+ 1
reg =0
@HL
2
2+S
(HL) .... (HL)+1
(HL) .. 0
mem
2
2+S
(mem) .... (mem)+1
(mel)'l) = 0
1+S
reg - reg-1
,eg'= FH
reg = n4
- An
A-A
Increment/Decrement
INOS
'DECS
reg
reg
Comparison
SKE
reg, #n4
2
2:t S
skip If reg = ';4
@HL, #n4
2
2+S
,skip H (HL) = n4
A,@HL
A, reg
2
(HL) = n4
1+S
, . skip if A = (HL)
A = (HL)
2+S
skip If A = reg
A,= reg
Carry Flag Manipulation
SET1
oy
OY .... 1
OLR1
oy
OY .... O
SKT
oy
NOT1
OY
4-146
1+S
skip HCY = 1
OY .... OY
CY= 1
ttlEC
pPD7530X/31X/P308/P316
Instruction Set (cont)
Mnemonic
Operand
Bytes
Machine Cycle
Operation
Skip Condition
Memory Bit Manipulation
SETI
CLRI
SKI'
SKF
SKI'CLR
ANDI
ORI
XORI
mem.bit
2
2
(mem.bit) -- 1
Imem.bit
2
2
(Imem.bit) -- 1
pmem.@L
2
2
(pmem7_2+ La_2.bit(Ll-Q)) -- 1
@H+mem.bit
2
2
(H +mem3-Q.bit) -- 1
mem.bit
2
2
(mem.bit) -- 0
Imem.bit
2
2
(lmem.bit) -- 0
pmem.@L
2
2
(pmem7_2+ Ls_2.bit(L1-o)) -- 0
@H+mem.bit
2
2
(H + memS-Q.bit) -- 0
mem.bit
2
2+S
skip il (mem. bit) = 1
Imem.bit
2
2+S
skip il (/mem.bit) = 1
(Imem.bit) = 1
pmem.@L
2
2+S
skip il (pmem7_2 + La-2.bit(Ll-0)) = 0
(pmem.@L = 1)
(mem.bit) = 1
@H+mem.bit
2
2+S
skip il (H+memS-Q.bit) = 1
(@H+mem.bit) = 1
mem.bit
2
2+S
skip il (mem.bit) = 0
(mem.bit) = 0
Imem.bit
2
2+S
skip il (/mem.bit) = 0
(Imem.bit) = 0
pmem.@L
2
2+S
skip il (pmem7_2 + LS_2.bit(Ll_ol) = 0
(pmem.@L = 0)
@H+mem.bit
2
2+S
skip il (H+mems_o.bit) = 0
(@H+mem.bit) = 0
Imem.bit
2
2+S
skip il (Imem.bit) = 1 and clear
(lmem.bit) = 1
pmem.@L
2
2+S
skip if (pmem7_2 + La_2.bit(L1_0)) = 1 and
clear
(pmem.@L = 1)
@H+mem.bit
2
2+S
skip il (H + memS-Q.bit) = 1 and clear
(@H+mem.bit) = 1
CY, Imem.bit
2
2
Cy -- CY A (/mem.bit)
CY, pmem.@L
2
2
CY -- CY A (pmem7_2+Ls_2.bit(Ll-Q))
CY, @H+mem.bit
2
2
CY -- CY A (H+mems-Q.bit)
CY, Imem.bit
2
2
CY -
CY, pmem.@L
2
2
CY - CY V (pmem7_2+L3-2.bit(Ll-Q))
CY, @H+mem.bit
2
2
CY - CY V (H+mems_o.bit)
CY, Imem.bit
2
2
CY -- CY XOR (/mem.bit)
CY, pmem.@L
2
2
CY -- CY XOR (pmem7_2+LS_2.bit(L1-Q))
CY, @H+mem.bit
2
2
CY -- CY XOR (H+mems_o.bit)
3
3
PC12-0 - addr
2
PC12-0 -- addr
2
2
PC12-0 -
CY V (/mem.bit)
Branch
BR (Note 1)
addr
laddr
PC12-0 -- addr
$addr
BRCB
Icaddr
PCI2-0+caddrl1-0
Subroutine Stack Control
CALL
!addr
3
3
(SP-4)(SP-l)(SP-2) -- PC11-0
(SP-3) - (MBE, 0, O,PC 1
PC12-0 - addr, SP -- (SP-4)
CALLF
!faddr
2
2
(SP-4)(SP-l)(SP-2) -- PC 11 -0
(SP-3) -- (MBE, 0, 0, PC1:V
PC 12-0 -- 00, laddr, SP - (SP-4)
:v
4-147
II
NEe
pPD753Ox/31x/P308/P316
Instruction Set (cont)
Mnemonic
Operand
Bytes
Machine Cycle
Skip Condition
Operation
Subroutine Stack Control (cont)
RET
3
RETS
3+S
RETI
3
PUSH
POP
Unconditional
(PCl2l- (SP+1)
PC11-O - (SP)(SP+3)(SP+2)
PSW - (SP+4)(SP+5), SP - (SP+6)
rp, SP .... (SP-2)
2
2
(SP-1) - MBS, (SP-2) - O,SP -
2
2
MBS -
2
2
I.ME --1
2
2
IExxx .... 1
2
2
IME -- 0
2
2
IExxx .... 0
rp
BS
(MBE, PC12l .... (SP+1)
PC11-O -- (SP)(SP+3)(SP+2)
SP - (SP+4), then skip unconditionally
(SP-1)(SP-2) -
rp
BS
(MBE, PCl2l .... (SP+1)
PC11-0 .... (SP)(SP+3)(SP+2)
SP -- (SP+4)
rp -
(SP+1)(SP), SP (SP+1), SP -
(SP-2)
(SP+2)
(SP+2)
Interrupt Control
EI
IExxx
01
IExxx
Input/Output (Note 2)
IN
OUT
= Oto 7)
A, PORTn
2
2
A .... PORTn; (n
XA, PORTn
2
2
XA -- PORTn + 1, PORTn; (n
PORTn, A
2
2
PORTn .... A; (n
PORTn, XA
2
2
PORTn+1, PORT n - XA; (n
= 4,6)
= 2 to 7)
= 4,6)
CPU Control
HALT
2
2
Set HALT mode (PCC.2 .... 1)
STOP
2
2
Set STOP mode (PCC.3 .... 1)
No operation
NOP
Special
SEL
MBn
GETI
taddr
2
MBS - n; (n
When (taddrh_6 = 00,
PC 12-O - (taddrko + (taddr+1)
When (taddrh_6 = 01,
(SP-4)(SP-1)(SP-2) - PC11-O;
(SP-3) .... (MBE,O,O,PC l 2l;
PC12-0 -- (taddr)4_0 + (taddr+ 1);
SP .... SP-4
When (taddrh_6 = 10,
(taddr), (taddr+ 1) instructions are
executed.
Notes:
(1) Appropriate instructions are selected from BR laddr, BRCB
Icaddr, and BR $saddr by the assembler.
(2) When executing the IN/OUT instruction, either MBE must be
reset to 0, or MBE and MBS must be set to 1 and 15, respectively.
4-148
= 0,
2
3
1, 15)
Depends on the
referenced instruction
ttlEC
pPD7530X/31X/P308/P316
Input/Output Ports
There are eight 4-bit ports; some are I/O ports and
some are input only. Figure 3 shows the structure of the
ports and table 4 lists the features. Figure 3 also shows
the structure of inputs and outputs of the other pins.
Table 4.
Types and Features of Digital Port.
Port
Function
Operation and Features
PORT 0
----PORT 1
4-blt input
Can always be read or tested regardless of the
operation mode.
PORT 3 (Note 1)
4-bit Input/output
Can be placed In input or output mode in 1-bit
units.
Pins also used for lCDCl, SYNC and MOO-MOO,
(Note 2)
~-~----------Pins also used for KRO -KR3.
4-blt input/output
Can be placed in input or output mode In 4-bit
units. Ports 6· and 7 can be paired for data
input/output in 8-bit units.
Port 2 pins are also used for PTOO, PCl and BUZ.
PORT 6
PORT 2
PORT 7
Remarks
Pins also used for INT4, SCK SO/S80, SVSB1.
Pins also used for INTO-2 and TIO.
Pins also used for KR4-KR7.
PORT 4 (Note 1)
PORT 5 (Note 1)
4-blt input/output
(N-channel
open
drain, 10 volts)
Can be placed in input or output mode in 4-bit
units. Ports 4 and 5 can be paired for data
input/output in 8-bit units.
Internal pull-up resistor can be specified in 1-bit
units by using mask option.
BPO-BP7
1-bit output
Data Is output in 1-blt units. The BPO-BP7 pins
are also used as LCD segment pins S24-831.
BPO-BP7 and S24-831 can be changed by using
software.
The capacity of drive Is very small. Used for
CMOS load drive.
Notes:
(1) These ports directly drive lEDs.
(2) PORT 3 lines are also used for MOO-MOO in J.lPD75P308/P316/
P316Aonly.
4-149
II
t\fEC
pPD753Ox/31x/P308/P316
Figure 3. I/O Circuits
Type A
Type E·B
(for Type E-B)
(P20-P23. P30-P33)
VDD
VDD
_Ch
Input
~~
N-ch
Data
InlOut
Output Disable
CMOS standard input buffer
TypeB
(POO. RESET)
Input~
Type F·A
(P01. P60-P63. P70-P73)
Schmitt trigger input with
hysteresis characteristic.
VDD
Type B-C
(P10-P1 3)
VDD
Data
IniOut
Output Disable
Type F·B
TypeD
(P0 2)
(For Type E-B. F-A)
VDD
VDD
Data~~_Ch
Output Disable
-=
Output
Pull-Up Resistor Enable
Output Disable (P)
P-ch
----I
P-ch
Push-pull output where output can be placed in high
impedance. P and N channels are tumed off.
Data
Output Disable
---+---1
------------1
Output Disable (N) - - - - - - - - '
4-150
--J:>o--1
N-ch
'---4-<: InlOut
N-ch
NEe
pPD7530x/31x/P308/P316
Figure 3. I/O Circuit. (conI)
TypeG-A
TypeG-B
(SO-S23)
(COMO-COMa)
..L P-ch
..L PoOh
VLCO
VLCO
VLC1----+
VLC1----+
T
T
PoOh
Output
SEG Data
N-ch
t---t--<> Output
VLC2
COM Data
------+.----1
N-ch
T
P-ch
II
VLC2----+
T
N-Ch
T
TypeG-C
(BPO-BP7)
TN'Ch
..L P-ch
TypeM
Voo
(P40 -P4 a. P50-P5a)
..L P-ch
Veo
I
Pull-Up Resistor ~
(Mask option not on ~
75P308 or 75P316)
VLCO
..L
+-_--.-<> In/Out
Data~
Output Disable--L-/'l
VLC1
NoOh
(+10 V)
T
SEG Datal
Bit Port Data
Output
Medium Voltage Input Buffer (+10 V)
VLC2
Type M-C
(POa)
VDD
P-ch
,..----+-0 In/Out
Data~
Output Disable ~. I
49NR-560B
4-151
NEe
pPD753OX/31X/P308/P316
Clock Generator
The clock generator (figure 4) uses the crystal inputs X1
and X2 as a time base to provide clocks for the
p.PD7530xJ31x. The generator consists of an oscillator,
frequency dividers, multiplexers, and three control registers, PCC, SCC, and CLOM. By programming PCC and
CLOM, frequencies derived from the crystal are supplied
to the CPU, the interval timer, the timer/event counter,
the watch timer, the serial interface, and the output pin,
PCL.
The PCC and SCC registers control the HALT and STOP
logic and can also be used to set the CPU to operate at
one of four speeds. The CLOM register controls the
output clock PCL.
The p.PD7530xJ31x family also contains a subsystem
clock, consisting of an oscillator driven by an external
crystal. It operates at 32-35 kHz, and can be used as a
clock source to the watch timer and the CPU.
Basic Interval Timer
The basic interval timer (figure 5) is used to provide
continuous real-time interrupts. It consists of a multiplexer, an 8-bit free-running counter, and a 4-bit BTM
control register. Each time the counter reaches FFH it
causes an interrupt, overflows to OOH and continues to
count. The BTM register is used to select one of four
clock inputs to the counter as well as clear the counter
and its interrupt request. The counter can generate 250
ms interrupts with a 4.19 MHz crystal and also provides
oscillator stabilization time when the chip comes out of
the STOP mode.
Figure 4. Clock Generator
XT1
XTAL=
L-
s~~~fi::;;n 1-~lxtL_ _ _ _ _ _- - - - - - - - - - + w a t c h T i m e r
Watch Timer: Ixx/27
XT2
Interval Timer: Ixx /2 5 , Ixx /27 , Ixx/29, Ixx/212
TimellEvent Counter: Ixx/24, Ixx/26, Ixx/28, Ixx/210
XTAL
~
T..-
I
X1 Main
System
Ixx
Oscillator
J
114 1/8 1/16
STOP
STOP
Logic
J
Frequency Divider
1112
X2
Serial Interlace: Ixx/23, Ixx/24, Ixx/26
1
1/64
l
JJ
Multiplexer
ENB
II
CPU Clock Multiplexer
SEL
1
Output
1/4
1
I
f----o P22/PCL
SEL
j
121
(to CPU)
)
HALT
Logic
1
1
HALT
'------+
' x t - Multiplexer
1
1
PCC Register
41'
1
I
SCC Register
21'
J
f---
l
CLOM Register
J
4f
Inte rnal
Data Bus
49NR-545B
4-152
t\'EC
pPD7530x/31x/P308/P316
Figure 5. B••ie 'nter",,' 7imer
1•• 125
1•• /27
1•• 129
Overflow
8-Bit Binary
Counter
Start
1••/212
Timer/Event Counter (TMO)
The timer/event counter (figure 6) consists of an 8·bit
modulo register, a·bit comparator, a-bit count register,
clock multiplexer,. mode control register TMO, and a
TOUT flip flop. There is also some control logic so that
the timer's TOUT flip flop can be sent to port 2.
Interrupt
Request
S
Interrupt
Request
Flag
8
Internal[=~=====~===~~===J
Data
Bus
"NR.-
Figure 6.
7imer/Event Counter
Interna1/
Data Bus
8
8f
I
T10/P 13
1",,/210
1••/2 8
l.xl26
1",,12 4
An 8-bit value is loaded into the modulo register, and a
count register clock is selected by the clock multiplexer,
via control register TMO. The count register is incremented each time it receives a CP pulse. When the value
in the count register is equal to the count in the modulo
register, the comparator generates a signal which toggles the TOUT flip flop and causes the count register to
be reset to DOH. The count register will continue to count
up unless stopped. Each time TOUT changes state it
causes an interrupt. This signal can also be used as a
clock for the serial interface.
D
Mode Register
(TMO)
L[>-:
Clock
Multiple.er
I
8,
---
CP
I
Modulo Register
(TMODO)
I
Comparator
8¥
Count Register
(TO)
J
r
3
TOUT
FIF
Control
Logic
I"-- P20/PTO
J
Serial Interface
and IRQTO
... R.....
4-153
II
NEe
pPD7530x/31x/P308/P316
Watch Timer
The watch timer (figure 7) generates interrupt requests
(but no interrupts) at 0.5 second intervals when using a
4.19 MHz crystal. It is commonly used as a time source
for keeping track of the time of day, can operate in the
STOP mode and is capable of generating a 2 kHz buzzer
output signal.
The watch timer consists of an input multiplexer, divider,
output multiplexer, control logic, and control register
WM. It is also used as a clock source for the LCD
controller.
Serial Interface
The 8-bit serial interface (figure 8) allows the
I'PD7530X/31x to communicate with other NEC or NEClike serial interfa.ces. It consists of an 8-bit shift register
(SIO), serial-out latch (SO), 8-bit address comparator,
slave address register (SVA), control registers CSIM and
SBIC, busy/acknowledge circuitry, bus release/detect
circuitry, serial clock counter, clock multiplexer, and
clock control circuitry. The three-wire interface consists
of the serial data in (SI/SB1), serial data out (SO/SBO),
and serial shift clock (SCI<).
Figure 7.
Watch Timer
Internal . . . - - - - - - - - - - - - - - - - ,
Data Bus ' - - - - - - , - - - - - r - - - - - - - - - '
SEL
Ixt
Interrupt
Request
IROW
L--------ILCD
(to LCD Controller)
49NR·550A
4-154
There are three modes of operation, 2-wire serial, 3-wire
serial, and 2-wire SBI. The simplest modes are the
2/3-wire serial. In these modes, the 8-bit shift register is
loaded with a byte of data and 8 clock pulses are
generated. These pulses shift data out the SO line and
data in from the SI line, thus, communicating in full
duplex. Each time a byte of data is sent, a burst of eight
clock pulses is generated and eight bits of data will be
sent. Data may be sent either LSB or MSB first. The
interface may also be set to receive data only; in this
case SO is in the high-impedance state. One of four
internal clocks or an external clock may be used to clock
the data.
The SBI mode uses a 2-wire interface (figure 9) with
devices in a master/slave configuration. At anyone time,
there is a single master, with all other devices being
slaves. The master can send addresses, commands, and
data over the bus. The slaves are able to detect in
hardware if their particular address has been sent, and
can also detect whether a command or piece of data has
been sent. There can be as many as 256 slave addresses,
256 commands, and 256 data types. All commands are
user-defined, and it is possible to send commands
which change slaves into masters; when this happens,
the previous master becomes a slave. This type of work
is done in firmware, and the bus can be as simple or
complex as the user wishes.
NEe
pPD7530x/31x/P308/P316
Figure 8. Seriallntertace Block Diagram
Internal
Bus
~
I
Bit
Test
Control Serial Interface
Mode Register (CSIM)
a
I
L I->
II
'--
POa/SVSB1
I),.
"'"
Selector
-5=
PD2/S0/SBO
r-
Bit
Manipulation
a
a
I
a-Bit Slave Address
Register (SVA)
I
a-Bit Address
Comparator
Serial Acknowledge Interface
Control Register (SBIC)
I
~,-.J:tW
~gnal
V
=u
RElT
CMDT
SET ClR
a-Bit Shift Register (SIO)
I- f-"
r
DSerialO
Output
latch
=::r-
-c-tIJ
I),.
"'"
~
Bit
Tes
'--Selector
I+-
~
ACKT BSYE
ACKE
~
II
ACk~!r~dge
-
Output Circuit
'--
t-- I-
t---
Bus Releasel
CommandJ
Acknowledge
Detection
Circuit
RElD
CMDD
ACKD
T
Ilo.
Serial Clock
Counter
"'"
r--P01
lQ"-~
latch
-
'--
r--
IROCSI
Control
Circuit
IROCSI
~
I~
Serial Clock
Control
Circuit
-4--fxx /2 3
- lxx /2 4
Clock
- lxx /2 6
Multiplexer
-TOUTF/F
~ =::JExternal SCK
L
J
49NR-558B
4-155
NEe
pPD753Ox/31x/P308/P316
Figure 9. SBI Mode Master/Slave Configuration
7
Master CPU
""D753XX
Slave CPU
I'PD753XX
(SB1), SBO
S80,(SB1)
Address 1
-
SCK
SCK
Slave CPU
SBO,(SB1)
Address 2
t
,
> - - + SCK
,
SlavelC
SBO, (SB1)
.
Address N
SCK
49NR-559A
LCD Controller/Driver
The LCD controller/driver (figure 10) can be pro·
grammed to operate in any of four modes, It can
operate in the static mode (drive 32 segments), the
multiplexed mode (drive 64 segments), the triplexed
mode (drive 96 segments), or quadruplexed mode
(drive 128 segments). The multiplexed mode uses 1/2
bias, the triplexed mode can use either 1/2 or 1/3 bias,
and the quadruplexed mode uses 1/3 bias.
The controller automatically refreshes the LCD by tak·
ing data from the upper 32 nibbles of RAM memory bank
1, and uses display data multiplexers, segment drivers
S0-S31 , and common drivers COM~OM3 to drive the
LCD. It is controlled by registers LCDM, LCDC, and
PGMA. The LCD main controller clock (fLCD) is provided
by the watch timer. Because the watch timer operates
while the chip is in the STOP mode, so does the LCD
controller.
The SYNC signal and clock LCDCL are provided so that
additional LCD controllers can be added. Drive levels
can be set internally by ordering the resistor ladder
mask option, otherwise, external resistors can be con·
nected to pins VLCo-VLC2 and the BIAS pin. The BIAS pin
can be used to control the contrast of the LCD.
Figure 10. LCD Controller Block Diagram
D~~~~I~_ _ _ _,---------------.-----------------~
Display Data
Memory
Display Data
Multiplexers
L---r-..l....---r-....I
Segment
Drivers
COM1
COM3
VLCl
49NR·5GOB
4-156
NEe
Bit Sequential Buffer
The bit sequential buffer is 16 bits of general-purpose
RAM located in the upper half of memory bank 15, and is
the only general-purpose RAM in this area All other
locations in this bank contain either the on-chip peripheral control registers or are unused addresses. A typical
application of this buffer might be to store data for the
next serial output or to store data from a serial input. It
could also be used to store data which is to be sent from
a port. This area can be bit, nibble, or byte manipulated.
IIPD7530x/31X/P308/P316
addition, INT2 will sense the rising edge inputs and
generate an interrupt request flag which is testable.
Inputs KRO-KR7 will detect falling edges, and generate
the same interrupt request flag as INT2. Neither INT2
nor KRO-KR7 will cause an interrupt, but they can be
used to release the STANDBY mode. All interrupts and
interrupt requests except INTO will release the
STANDBY mode.
Interrupts
The pPD7530x/31x family interrupts (figure 11) are all
vectored; there are three external and three internal
interrupts. Table 5 gives a summary of the interrupts. In
Figure 11_ Interrupt Controller Block Diagram
c====;==~===;:==;~===;::~~~=;::::;::=;======~==::;;:::===:~
Internal
Data
Bus -
INTBT
INT4IPOO
-----1-+-------1
-----+-+-1
INTO/P10
INT1/P11
INTCSI
Priority
Control
------------1
Vector
Table
Address
Gen
INTTO------------I
INTW-------------~
INT2/P12
Standby
Release
Signal
49NR.s61B
4-157
II
NEC
IIPD7530xl31x1P308/P316
Standby Modes
The standby mode is summarized in taple 6 and consists of three sul:>modes.
HALT mode. The HALT mode is entered by executing
the HALT instruction. Inthis mode, the clock to the CPU
is shut off (thus stopping the CPU), whi Ie all other parts
of the chip, with the exception of INTO, remain fully
functional.
STOP mode. The STOP mode is entered by executing
the STOP instruction. In this mode, the chip's main
system oscillator is shut off, thereby stopping all por-
tions of the chip except those which function off the
subsystem clock. If the subsystem clock is used, it
always remains on.
The HALT and STOP modes are released by a RESET or
by any interrupt request except INTO.
Data Retention mode. This mode may be entered after
entering the STOP mode. Here, supply voltage Voo may
be lowered to 2 volts to further reduce power consumption. The contents of the RAM and registers are retained.
This mode is released by first raising Vooto the proper
operating range, then releasing the STOP mode.
Table 5. Interrupt Sources
Internal/
External
Interrupt Priority
(Note)
Vectored Interrupt Request Signal
(Vector Table Address)
Interrupt Source
Operation
INTBT
Reference time interval signal from basic
interval timer
Internal
VRQl
(OOO2H)
INT4
Both riSing and falling edge detection
External
VRQl
(OO02H)
INTO
Selection of rising or falling edge detection
External
2
VRQ2
(OO04H)
INTl
Selection of rising or falling edge detection
External
3
VRQ3
(OO06H)
INTCSI
Serial data transfer end signal
Internal
4
VRQ4
(OO08H)
INTTO
Coincidence signal between programmable
timer/counter count register and modulo
register
Internal
5
VRQ5
(OOOAH)
INT2
Rising edge detection of input to INT2 pin, or
falling edge detection of any input to KRO-KR7
External
Testable Input signals
(IRQ2 and IRQW are set)
INTW
Signal from watch timer
Internal
Notes:
(1) The interrupt priority order is used to determine the priority when
two or more interrupts are generated simultaneously.
Table 6. Standby Mode Operation
Setting Instruction
STOP Instruction
HALT Instruction
System clock when standby mode is set
Can be set only during main system or
subsystem clock
Can be set during either main system or
subsystem clock
Clock oscillator
Only the main system clock oscillator is
stopped
Only CPU clock ¢ is stopped (oscillation
continues)
Basic interval timer
Operation stopped
Can Operate
Serial interface
Can operate only when external SCK input is
selected for serial clock
Can operate
Timer/event counter
Can operate only when TIO pin input is selected
for count clock
Can operate
Watch timer
Can operate only when txT is selected for count
clock
Can operate
4-158
NEe
IlPD753OX/31X/P308/P316
Table 6. Standby Mode Operation (cont)
Setting Instruction
STOP Instruction
HALT Instruction
LCD controller
Can operate only when txT is selected for
LCDCL
Can operate
INT1, INT2, INT4 can operate; INTO cannot
External interrupts
Operation stop
CPU
Interrupt request signal (enabled with interrupt enable flag) from operating hardware or RESET
Release signal
Reset
See table 7 for the state of the chip after a RESET is
applied.
Table 7. State of the Device after Reset
RESET Input During
Standby Mode
Hardware
Program counter (PC)
PSW
RESET Input During
Operation
JlPD75304
The low-order 4 bits of program memory address OOOOH are loaded
into PCll-PCB. The contents of address 0001H are loaded into
PC7-PCO.
JlPD75306
JlPD7530B
JlPD75P30B
The low·order 5 bits of program memory address OOOOH are loaded
into PC12-PCB. The contents of address 0001 H are loaded into
PC7-PCO.
JlPD753l2
JlPD753l6
JlPD75P316
JlPD75P316A
The low-order 6 bits of program memory address OOOOH are loaded
into PCl3-PCB. The contents of address 0001H are loaded into
PC7-PCO.
Carry flag (CY)
Held
Undefined
Skip flags (SKO-SK2)
o
a
a
o
Interrupt status flag (ISTO)
Bit 7 of program memory address OOOOH is loaded into MBE
Bank enable flag (MBE)
Stack pointer (SP)
Undefined
Undefined
Data memory (RAM)
Held (Note 1)
Undefined
General purpose registers
Held
Undefined
a
a
(X, A, H, L, D, E, B, C)
Bank selection register
(MBS)
Basic Interval timer
Timer/event counter
Counter (Bl)
Undefined
Undefined
Mode register (BTM)
a
a
Counter (fa)
0
a
Modulo register (TMODO)
FFH
FFH
Mode register (fMO)
a
a
TOEa, TOUT F/F
0,0
0, a
Watch timer
Mode register (WM)
a
0
Serial interface
Shift register (S 10)
Held
Undefined
Operation mode register (CSIM)
0
a
SBI control register (SBIC)
a
a
Slave address register (SVA)
Held
Undefined
4-159
II
NEe
pPD753Ox/31X/P308/P316
Table 7. State oft. Device after Reset (conI)
RESET Input During
Standby Mode
RESET Input During
Operation
Processor clock control register
(PCC)
0
0
System clock control register
(SCC)
0
0
Clock output mode register
(CLOM)
0
0
Display mode register (LCDM)
0
0
Display control register (LCDC)
0
0
Interrupt request flags (IRQxxx)
Reset to 0
Reset to 0
Interrupt enable flags (IExxx)
0
0
Interrupt master enable flag
(IME)
0
0
INTO, INn, and INT2 and mode
registers (IMO, IM1, and IM2)
0,0,0
0,0,0
Output buffers
Off
Off
Output latches
Cleared
Cleared
Input/output mode registers
0
0
0
0
Hardware
Clock generator
and clock output c Ircu it
LCD controller
Interrupt function
Digital ports
(PGMA, B)
Pullup resistor speciflcetion
register (POGA)
Bit sequential buffer
Held
Undefined
Pin conditions
Input
Input
With incorporated pullup resistor, high level; with open drain, high
Impedance
80-823
Undefined
Undefined
COMo-COM3
BIAS
Notes:
(1) The data of deta memory address OF8H'()FDH is undefined by
RESET.
4-160
With incorporated reslator ladder, low level; with no Incorporated
resistor ladder, high impedance
NEe
,.,PD7530X13'1xIP308IP316
EPROM Write and Verify
EPROM Write/Verify Procedure
The JlPD75P308 contains 8064 bytes of EPROM, while
the JlPD75P316/16A have 16256 bytes. Table 8 shows the
pin functions during the write and verify cycles. Note
that it is not necessary to enter an address, since the
address is updated by pulsing the clock pins. When 6 V
and 12.5 V are applied to the VDD and Vpp pins, respectively, the EPROM is placed in the write/Verify mode. The
operation is selected by the MDo-M[?3 pins, as shown
in table 9.
EPROMs can be written at high speed using the following procedure: (see figure 12)
Table B. EPROM Write and Verify Pin Functions
Pin Name
Function
X1,X2
After a wrlte/verlfy write, the X1, and X2 clock
pins are pulsed. (Note that these pins are also
pulsed during a read).
(1)
Pull unused pins to Vss through resistors. Set the
X1 pin low.
(2)
Supply 5 volts to the VDD and Vpp pins.
(3)
wait for 10 Jls.
(4)
Select the clear program memory address mode.
(5)
Supply 6 volts to the VDD and 12.5 volts to the Vpp
pins.
(6)
Select the program inhibit mode.
(7)
Write data in the 1 ms write mode.
(8)
Select the program inhibit mode.
(9)
Select the verify mode. If the data is correct,
proceed to step 10. If not, repeat steps 7, 8, and 9.
MOO-MD3
These are the operation mode selection pins.
P4o-P4a
(four Iow-order bits)
P50-P53
(four high-order bits)
a-bit data Input/output pins for write verify
Yoo
Supply voltage. Normally 5 volts; 6 volts is
applied during wrlte/verify
(12) Apply four pulses to the X1 pin to increment the
program memory address by one.
Ypp
Normally 5 volts; 12.5 volts is applied during
write/Verlfy
(13) Repeat steps 7-12 unti I the end address is reached.
(10) Perform one additional write.
(11) Select the program inhibit mode.
(14) Select the clear program memory address mode.
Notes:
(1) A cover should be placed over the UV erase window. The
pPD75P308GF/P316GF/P316AGF do not have windows, thus the
EPROM contents cannot be erased.
Table 9.
(15) Return the VDD and Vpp pins back to
+ 5 volts.
(16) Turn off the power.
Write/Verlfy Operation
Ypp= +12.5Y;Yoo= +6.0Y
Operation Mode Specification
MDO
MD1
MD2
o
o
o
MD3
Operation Mode
o
Clear program memory address
Write mode
o
Verify mode
x
Program Inhibit
Notes:
(1) x = Don't care.
4-161
a
NEe
pPD7530x131xJP308/P316
Figure 12. EPROM Write/Verify Cycle Timing
J
I-<-----x
Repetitionsi----:'I
I--Write--;oo.I.I,.,.--Verify-----;~-.-
Additional Write-.....+-I.f----Address Increment:---+l·1
r---------------:!f.,}:-c-------------------
Vpp= 12.5 V - - VPP=VDD--'
r--------------::Ilf.:.....----------------------
VDD=VDD+1- - VDD=VDD--'
X1
P:~~:~:-----c(
Input Data
>--<
Output Data
~~
Input Data
)>---__________
MDO
(P3o)
MD2
. /~-------------~If.
(P3 21 - '
MD3
/r------------~If.:.....-------------------(P33 1 - - ,
49NR-576B
EPROM Read Procedure
(6)
Select the program inhibit mode.
The EPROM contents can be read by using the following
procedure: (see figure 13)
(7)
Pull unused pins to Vss through resistors. Set the
X1 pin low.
Select the verify mode. Apply four pulses to theX1
pin. Every four clock pulses will output the data
stored in one address.
(8)
Select the program inhibit mode.
(2)
Supply 5 volts to the Voo and Vpp pins.
(9)
Select the clear program memory address mode.
(3)
Wait for 10/1s.
(10) Return the Voo and Vpp pins back to
(4)
Select the clear program memory address mode.
(11) Turn off the power.
(5)
Supply 6 volts to the Voo and 12.5 volts to the Vpp
pins.
(1)
4-162
+ 5 volts.
1t(EC
pPD7530x/31x/P308/P316.
Figure 13. EPROM Read Cycle Timing
Vpp= 12.5 V _ ,.,..
Vpp=VOO-'
--------------------------------------------~J~
--------------------------:lJJ.--
VOO=VOO+1- ....
VOO=VOOJ
X1
~~~~--------------~(~_______Ou_tP_ut_D_am__. ____~)(~______O_u_tPu_t_Da_m______~)(~____________~~~
MOO/
(P30)
.
\~--~~----------~!;--
M01
P3
( 1)
----------------------------------------------------------------------------------------------:JJ~
M02/~----------------------~~--
(P32)
M03--./
(P33)
'\.....
',,-. ...
49NR-517B
Program Memory Erase (p.PD75P308K1P31aAK
only)
The pPD75P308K/P316AK allows the programmed data
contents to be erased by light rayswhose wavelength is
shorter than about 400 nm. The programmed data
contents may also be erased if the uncovered window is
exposed to direct sunlight or a fluorescent light for
several hours. Thus, to protect the data contents, cover
the window with an opaque film.· NEe attaches qualitytested shading filrn to the UV EPROM products for
shipping.
For normal EPROM erase, place the device under an
ultraviolet light source (254 nm). The minimum amount
of radiation exposure required to erase the pPD75P308K
completely is 15 Ws/cm 2 (ultraviolet ray strength times
erase time). This corresponds to about 15 to 20 minutes
when using a UV lamp of 12000pW/cm2 . However, the
erase time may be prolonged if the UV lamp is old or if
the· device window is dirty. The distance between. th~
light source and the window should be 2.5 cm or less.
4-163
m
ttlEC
pPD753Ox/31x/P308/P316
ELECTRICAL SPECIFICATIONS
Absolute Maximum Ratings (All devices)
TA = 25·C
+ 7.0 V
+ 13.5 V
-0.3 to VOO + 0.3 V
-0.3 to VOO + 0.3 V
-0.3 to
Supply voltage, Voo
Supply voltage, Vpp (75P308/P316 only)
Input voltage, VI1 (other than ports 4, 5)
Input vofiage, VI2 (ports 4, 5; internal pullup
resistor; 753Ox/31x only)
-0.3 to
-65 to
Storage temperature, tSTG
Operating temperature, tOPT (75P308/P316)
-10 to +.70·C
Exposure to Absolute Maximum Ratings for extended periods may
affect device reliability; exceeding the ratings could cause permanent
damage.
Notes:
High-level output current, IOH
(Single pin)
-15 mA
(1) rms value = peak x (duty cycle)¥...
High-level output current, IOH
(Total of all pins)
-30 mA
-0.3 to
-0.3 to Voo
Low-level output current, IOL
(Single pin)
Low-level output current, IOL
(Total of ports 0, 2, 3, 5)
Low-level output current, IOL
(Total of ports 4, 6, 7)
+ 85·C
-40 to
+ 11 V
+ 0.3 V
Input vo~age, VI3 (ports 4, 5; open drain)
Output voltage, Vo
+ 1SOOC
Operating temperature, tOPT (753Ox/31x)
Capacitance (All devices)
Voo = 0 V; TA = 2SOC
30 mA peak
15 mA rms (Note 1)
100 mA.peak
60 mA rms (Note 1)
Parameter
Symbol
Input capacitance
Output capacitance
I/O capacitance
Max
Unit
CIN
15
pF
COUT
15
pF
CvO
15
pF
Conditions
f = 1 MHz;
all unmeasured
pins returned
to ground
100 mA peak
60 mA rms (Note 1)
Main System Clock Oscillator Characteristics (All devices, see figure 16)
jlPD753Ox/31x: TA = -40 to + 85·C; VOO = 2.7 to 6.0 V
jlPD75P308/P316: TA = -10 to + 70·C; VOO = 5 V :!: 5%
Oscillator
Parameter
Symbol
Min
Ceramic resonator
(Figure 14)
Oscillation frequency (Note 1)
!xx
1.0
Crystal resonator
(Figure 14)
Oscillation frequency (Note 1)
External clock
(Figure 14)
Typ
Oscillation stabilization time (Note 2)
!xx
1.0
Oscillation stabilization time (Note 2)
4.19
Max
Unit
5.0
MHz
4 (Note 3)
ms
Conditions
After Voo reaches oscillator
operating voltage
5.0
MHz
10 (Note 3)
ms
Voo = 4.5 to Voo max
30 (Note 3)
ms
Voo = 2.7 to 6.0 V
(jlPD7530X/31 x only)
Xl input frequency (Note 1)
fxx
1.0
5.0
MHz
Xl input low- and high'level width
tXH, txL
100
500
ns
Notes:
(1) The oscillation frequency and Xl input frequency are included
only to show the characteristics of the oscillators. Refer to the AC
Characteristics table for actual instruction execution times.
(2) The oscillation stabilization time is the time required for the
oscillator to stabilize after voltage is applied or the STOP mode is
released.
4-164
(3) Values shown are for the recommended resonators. Values for
resonators not shown in this data sheet should be obtained from
the manufacturer's spec sheets.
NEe
"PD753OX/31X/P308/P316
Figure 15. Subsystem C/~k CtjnliguratltjllS
Figure 14. Main System C/tjck ContiguratltjllS
A. CeramlclCrystal Resonator
A. Cryatal Resonator
;--1>---1 X1
;--1,.---1 XT1
'---4>---1 X2
'---4~W'r-l
B. External Clock
:><>_----1
XT2
: : ' 1.-_ _ _ _.......
B. External Clock
X1
~~----IXT1
I1P074HCU04
Open
II
XT2.
Note: When the Input Is an external clock, the stop mode
cannot be set because the X1 pin Is connected
to system ground (Vss).
Subsystem Clock OSCillator Characteristics (All devices, see figure 16)
IlPD753Ox/31x: TA = -40 to + 85'C; Voo = 2.7 to 6.0 V
jlPD75P308/P316: TA = -10 to + 70'C; Voo = 5 V :!: 5%
Oscillator
Parameter
Symbol
Crystal resonator
(Figure 14A)
Oscillation frequency
txT
External clock
(Figure 148)
Min
Typ
Max
.Unlt
32
32.768
35
kHz
Oscillation stabilization
time (Note 1)
1.0
Conditions
2
e
Voo
10
s
VOO
XT1 input frequency
txT
32
100
kHz
XT1 Input low- and
txTH, txTL
10
15
lIS
= 4.5 to Voo max
= 2.7 to 6.0 V (PD753Ox/31x only)
h igli-Ievel width
Notes:
(1) Values shown are for the recommended. Values for resonators not
shown in this data sheat should be obtained from the manufacturer's spec sheets.
4-165
NEe
IIPD7530x/31X/P308/P316
Figure 16. Clock AC Timing Points XI and XTI
Recommended Main System Crystal .
Resonators (,4PD7530x/31x only)
Manufacturer
Kinseki
Frequency
(MHz)
C1
C2
Retainer
(pF)
(pF)
Remarks
2.00
HC-18/U
22
22
Voo = 2.7
to 6.0 V
4.19
HC-49/U
22
22
4.91
HC-43/U
22
22
Recommended Subsystem Crystal Resonators
(,4PD7530x131 x onl y)
O.4V
83RD-5884A
Recommended Main System Ceramic
Resonators (,4PD7530x/31x only)
C1
C2
(pF)
(pF)
Remarks
15
15
Voo = 2.5
lo3.5V
CSB 1000020
220
220
CSA 2.00MG093
CSA4.19MGU
CSA4.91MGU
30
30
30
30
30
30
Voo = 2.7
10 6.0 V
CST 2.00MG093
C,ST 4.19MGU
CST4.91MGU
None
None
None
None
None
None
Voo = 2.7
106.0V
(Note 1)
KBR-l000H
100
100
KBR-2.0MS
68
68
Voo = 3.0
106.0V
KBR-4.0MS
KBR-4.19MS
KBR-4.91MS
33
33
33
33
33
33
Manufacturer
Part Number
Murata
CSA 2.00MG093
Kyocera
Notes:
(1) Cl and C2 are contained in the oscillator.
4-166
Manufacturer
Kinseki
C1
C2
Type
(pF)
(PF)
R
(Idl)
Remarks
P-3
22
22
330
Voo = 2.7106.0 V
ttlEC
pPD7530x131X/P308/P316
DC Characteristics (p.PD7530xJ31x)
TA = -40 to
+ 85'C; voo
= 2.7 to 6.0 V
Parameter
High-level input voltage
Low-level input voltage
Symbol
Low-level input leakage current
High-level output leakage current
LOW-level output leakage current
Unit
Conditions
Ports 2,3
O· 7V OO
VOO
VIH2
0.8VOO
VOO
V
Ports 0, 1, 6, 7; and RESET
VIH3
0.7VOO
VOO
V
Ports 4 and 5; built-in pullup resistor
0.7VOO
10
V
Ports 4 and 5; open drain
VIH4
VOn-°. 5
VOO
V
X1, X2, XT1
VIL1
0.3VOO
V
Ports 2, 3, 4, 5
0.2VOO
V
Ports 0, 1, 6, 7; RESET
VIL3
a
a
a
V
X1.
VOH1
VOn-1.O
V
Ports 0, 2, 3, 6, 7, BIAS; VOO = 4.5 to 6.0 V;
IOH = -1 rnA
VOn-°. 5
V
Ports 0,2,3,6,7, BIAS; VOO = 2.7 to 6.0 V;
IOH =-100 JlA
VOn-2.O
V
BP0-7 (WIth two IOL outputs)
VOO = 4.5 to 6.0 V;
IOH .. -100 JlA
VOn-1.O
V
BP0-7 (with two IOL outputs)
VOO = 2.7 to 6.0 V;
IOH = -30JlA
2.0
V
Ports 3, 4, 5; VOO = 4.5 to 6.0 V;
IOL= 15 rnA
0.4
V
Ports 0, 2-7; VOO = 4.5 to 6.0 V;
IOL= 1.6 rnA
0.5
V
Ports 0, 2-7; VOO = 2.7 to 6.0 V;
IOL= 400JlA
0.2VOO
V
sea, 1; VOO =
1.0
V
BP0-7 (With two IOL outputs)
VOO = 4.5 to 6.0 V;
IOL = 100 JIA
1.0
V
BI>0-7 (WIth two IOL outputs)
VOO = 2.7 to 6.0 V;
IOL = 50 JlA
IUH1
3
JlA
All except X1, X2, XT1 and ports 4, 5;
VIN = VOO
ILIH2
20
JlA
X1, X2, and XT1; VIN = VOO
IUH3
20
JlA
Ports 4 and 5 (with open drain); VIN = 10 V
ILIL 1
-3
JlA
All except X1, X2, and XT1; VIN =
IUL2
-20
JlA
X1, X2, and XT1; VIN =
Other than Ports 4 and 5; VOUT = Voo
VOL1
VOL2
High-level input leakage current
Max
VIH1
VOH2
Low-level output voltage
Typ
V
VIL2
High-level output voltage
Min
0.4
0.4
X2, XT1
II
2.7 to 6.0 V;
pullup resistance '" 1kO
aV
aV
ILOH1
3
JlA
ILOH2
20
JlA
Ports 4 and 5 (open drain); VOUT = 10 V
ILOL
-3
JlA
VOUT = OV
4-167
NEe
pPD753OX/31X/P308/P316
DC Characteristics Cl£PD7530X/31x) (cont)
Paramater
Symbol
Built-In pullup resistor
RL1
Min
Typ
Max
Unit
15
40
80
kO
Ports 0,-3, 6, 7 (except POa); VIN = 0 V;
Voo .. 5.0 V :I: 10%
200
kO
Ports 0-3, 6, 7 (except POo); VIN
VOO = 3.0 V :I: 10%
70
kO
Ports 4, 5; VOUT
:1:10%
60
kO
Ports 4, 5;
:1:10%
30
RL2
15
40
10
LCD drive voltage
VLCO
2.5
LCD split resistor
RLCO
60
LCD output voltage deviation;
common (Note 1)
VOOC
LCD output voltage deviation;
segment (Note 1) , ,
VODS
Conditions
= 0 V;
= V00"'2 V; VOO .. 5.0 V
Your = Vo0"'2 V; Voo = 3.0 V
VOO
V
150
kO
0
:1:0.2
V
10
:l:5pA;
VLCO = VLCOO = 2.75 V to VOO;
VLCD1 = 213 VLCO
VLCD2
1/3 VLCO
0
:1:0.2
V
10 = :1:1 pA;
VLCO = VLCOO" 2.75 V to VOO;
VLC01
213 VLCO
VLCD2 = 1/3 VLCO
100
=
=
=
Supply current
(Note 3)
= 5 V :I: 10% (Note 4)
2.5
8.0
mA
VOO
0.35
1.2
mA
VOO .. 3 V :I: 10% (Note 5)
IOD2
(Note 2)
500
1500
pA
HALT mode; Voo .. 5 V:I: 10%
150
450
pA
HALT mode; VOO
iOD3
30
90
pA
VOO
IOD1
(Note 2)
IOP4
5
15
pA
= 3 V :I: 10%
= 3 V :I: 10% (Note 5)
HALT mode; VOO = 3 V :I: 10% (Note 6)
IODS
0.5
20
pA
STOP mode; XT1 = 0 V; VOO = 5 V :I: 10%
0.1
10
pA
STOP mode; XT1
= 0 V; VOO .. 3 V
:I: 10%
0.1
5
pA
STOP mode; XT1
10%; TA
25°C
= 0 V; Voo .. 3 V
:I:
=
Notes:
(4) When operated in the high-speed mode with the processor clock
control register (PCC) setto 0011.
(1) Voltage devlatlon:ls the difference ~etween the Ideal value of
segment or com'mon output (VLCOn; n = 0, 1, 2) and the output
voltage.
(5) When operated In the low-speed mode with the PCC set to 0000.
(2) 4.19 MHz crystal oscillator; 01 =, 0,2 .. 22 pF.
(6) Main system clock stopped and subsystem clock running (SCC
(3) Does not Include pullup resistor current and current through LCD
resistor ladder.
= 1001).
.
NEe
pPD753Ox/31X/P308/P316
Figure 17. DC Characteristics
100 vs Voo (Crystal Resonator at 4.19 MHz)
f:TA
TA-2 'C
25'C
Main Syatem Clock
5000
Main System Clock
High-speed mode .,,PCG..oo
I
1000
Ci!
~ 500
I
Main System Clock
Mlddle.speed mode
PCC..o01
I
I
r---
?:'
r- Main System bOCk
1
r-
f-
Q
E
§
100
I
V
-
Main System Clock
High-speed mode .,,-
.....
.....
..........
1000
?:'
~
1
./
Main ystem Clock
.9
E
/
@l
=
PCC=0010
./
- MaIn System Clock
_
Low-speed mode
PCC..oOOO
Q
Subsystem Cock
../
V
./
Main System CI~/
HALT mode
Subsystem Cock
.,...".
100
8
()
~
c.
SOO
.....
PCC=oV --. /
~ =Middle-speed mode
-
a.
./
/
Main System Clock
IHALT mode
Main System Clock
5000
~
./
Low-speed mod~ ....
PCC.OOOO
I
.9
100 vs VOO (Ceramic Resonator at 4.19 MHz)
50
r-- Subsystem Cloc
"
CIJ
~
~
./
V
Operation mode"
I
0-
10
*
c.
""
/
/
I-'I-'1
o
* i n syrm
./
/
*
/
1== Su system Clock
5
*
eli
3
r-
HALT mode
*
* rln syslem Cloci In STOr mode.
J
t-
In STOr mode.
1
2
./
10
HALT mode"
II
I
I
t---Subsystem CI ~•
Operation mode /
j
r- Subsystem Clock
5 I-'-
II
50
"
CIJ
4
5
Power Supply Voltage V DO (V)
6
7
o
2
3
4
5
6
7
Power Supply Voltage V DO (V)
Note: Values of 100 are about 10% larger using a ceramic resonator
as compared to a crystal resonator.
4-169
NEC
pPD753Ox/31X/P308/P316
FIgure 17. DC ChIIret:ferlstlCtl (conI)
100 vs Voo (Ceramic Resonator at 1.00 MHz)
IDO vs VOO (Ceramic Rasonator at 2.00 MHz)
~A-2 OC
::TA-2 'C
5000
5000
~Iock
M.ln ! ystem
Maln System CI
Hglwpeed m~ ....-:::
PCC-0011 ..".
1000
Ir:
PCC-0010' /
~
, Maln System Clock /
Low-speed mode
0
~
!
~
g.
MaIn systitm Clock
Middle-speed mod.
500
V
PCC-Oooo
MaIn system Clock
100
v;:
,
Ir:
/'
i
d
t,
50
t--~b~stem CI......
Operadon mod.....
I
*
5
/'
,
50
/
/
Cperating mod. /
/
10
~Su system CI
t--
HALT
inod
5
o
osdllaUon and
I HALT linod.
1
2
3
4
Maln ~stem dock
STOP mod. + 32 KHz
r- *r n ~.rm d j k1 ST, mode.
5
Power Supply Voltage Voo (V)
4-170
Subsystem C ock
Maln System Clock
HALT mode
100
*
1
/'
PCC-O~/
I
~
/
10
Maln System Clock '"Y..
Low-speed m~
~
/
~
'PCC-OO'J.!l
500
~
Subsy.tein C ock
System ( lock
~
Maln SySt8m Clock
Middle-speed mode
~
/
HALT mode
til
PCC..ooll
1000
./
1/
~.In
Maln System,·Clock
High-speed mod~"
8
7
o
2
3
4
5
Power Supply Voltage VOO (V)
6
7
NEe
,..PD753Ox/31x/P308/P316
Figure 17. DC Characteristics (cont)
IOL vs VOL (Ports 0, 2, 6, 7)
IOL vs VOL (Ports 3, 4, 5)
40
40~---r----~--~----~--~
f---TA =1 25,<:
r---TA= k5'C--t----t---t---1
'-r-r
VOO=6V
30 1---'
I
_
VOO=5V
30 VOO -6V r T / V OO =4V
VOO=4V-
VOO =5V
".-
I
III /
I /
1
II
I /
20
/I
III
rl/
,....
If . /
I ~
10
'I
'I ../'
VOO=3V
~
V
----
VOO=3V
II
Voo = 2.7 V
I~
Voo = 2.7 V
'LL
10
//
'!/
1/
If
!fJl
:1
o
I
~
2
3
4
5
0
2
3
4
5
VQL(V)
4-171
t-{EC
IlPD753Ox/31X/P308/P316
Figure 17. DC Characteristics (cont)
VOL vs IOL (BPO· 3, BP4· 7)
VOL vs IOL (BPO· 3, BP4· 7)
200r---------~----------,-----------,
~Or------r----~;-----'-----~------'
*
(Voo = SV. TA= 25°C)
*
Number of
Number of
700
600
500
~
~
1-'
I~
2
400
100
1-'
_0
_0
3
100
300
4
200
50
* to BP7. BPO to BP3
or BP4
number of pins
outputting the sarne level.
100
I
a:
a
::l
2
3
VOL (V)
4-172
*
Of pins
4
5
a
Of pins BPa to BP3 or BP4
to BP7. number of pins
outputting the sarne level.
I
~
a
2
VOL (V)
3
NEe
pPD753Ox/31X/P308/P316
Figure 17. DC Characteristics {cont}
Voo· VOH vslOH (BPO· 3, BP4· 7)
Voo • VOH vslOH (Ports 0, 2·7)
20
r--TA=~S"C
-600
.----.,.--..,....---r----,.--....,
-soo
J---+--+--t-
* concurrent
Number of
outputs:
15 r--voo-avT VVoo_sv
/
-400
II
II
II I
./'"
I /'
JlI/
II II
/I
III . /
f/I ~---
S
---
VOOE4V
Ir:
,"
3
·200
VOO -3V
4
VOO -2.7V
-100
"V/
2
II
:J:
_0
~///
o
2
~ -300
3
Voo-VOH(V)
4
I
S
1---h-~~-7"''-+-~--+----I---I
2
3
4
S
VOO-VOH(V)
4-173
t\'EC
IlPD753Ox:/31x/P308/P316
Figure 17. DC Characteristics (conI)
Voo· VOH vs IOH (BPO· 3, BP4· 7)
fxx
3
-200 . . .- - - - . . , . . - - - - . . . . . , - - - - - - ,
.
I
VS
100
I
I
~:
f- (VOO = 5V, TA= 25°C)
* concurrent
Number of
outputs:
-150
1-----+--7""--1------1
High-speed mode
PCC=OO/,
2
~dle-speed
V
"5
c.
~
2
~ -100 J------j~+------:Ii:=----_I
~
_0
3
V
V
4
* toOf
pins BPO to BP3 or BP4
BP7, number of pins
outputting the same level.
o
VOO-VOH(V)
4-174
/'"
Low-speed modePCC=OOOO
I
1
o
-
Main systej Clock -
~
3
modePCC=0010
/
/'
~
~__~____~__~i
2
/
/
l/
HALTmJde
I
o
2
3
fxx (MHz)
4
5
NEe
pPD753Ox/31X/P308/P316
Figure 17. DC Characteristics (conI)
IxxvslOO
0.5 .....- - , - - - . . , . . - - . . . , . - - -.....- - - ,
High-speed mode
PCC-0011
0.4 t----t--1,..--+~~
~
C5.
0.3
~
!
C
~
0.2
0.1
II
o
!xx (MHz)
AC Characteristics (,£PD7530x131x only)
TA
= -40 to +85"0; Voo = 2.7 to 6.0 V
Parameter
Symbol
Min
Cycle time
(Note 1)
tOY
(Figure 19)
0.95
Jrl
(Figure 20)
TIO Input low- and high-level width
Interrupt Inputs
low- and high-level width
RESET low level width
Max
Unit
64
lIS
Conditions
Marn system clock; Voo= 4.5 to 6.0 V
64
lIS
Main system clock; VOO = 2.7 to 6.0 V
125
lIS
Subsystem clock
0
1
MHz
VOO =
0
275
kHz
VOO = .2.7 t~ 6.0 V
3.8
114
TIO Input frequency
Typ
122
4.5toMV
tTIH' trlL
(Figure 20)
0.48
lIS
Voo = 4.5 to 6.0 V
1.8
lIS
Voo = 2.7 to 6.0 V
tiNT HitlNTL
(Figure 21)
(Note 2)
lIS
INTO
10
lIS
INTt. 2.4
10
lIS
KRO-KR7
10
lIS
tRSL
(Figure 22)
Notes:
(1) Cycle time (minimum instruction execution time) is determined
by the frequency of the oscillator connected to the microcomputer. system clock control register (SCC). and the processor
clock control (PCC). See figure 19.
(2) 2tOY or 128/1x• depending on the setting of the interrupt mode
register (IMO).
4-175
NEe
pPD753Ox/31x/P308/P316
Figure 18. AC Timing Measurement Points
(exceptXI andXTI)
Figure 20.
TlO Timing
0.8 VDD _ _ Measurement _o.8 VDD
0.3 VDD -
points
-
0.3 VDD
83RI)..7302A
8aRD-845M
Figure 19. Guaranteed Operating Range
Figure 21. Interrupt Input Timing
(pPD753OX/31x only)
tCY
VS
Voo (With main system clock)
INTO,1,2,4
70
~~~~
KRO-7
83R().6747A
~~
~R:
~~
Figure 22. RESET Timing
6
RESET Input Timing
5
4
RESET
3
-.~'~'}'\..._
83RD-6748A
2
1
.'
i
a:
Ii!
.5
°°
4-176
2
3
4
5
Power Supply Voltage VDD (V)
6
7
NEe
pPD753OX/31X/P308/P316
Serial Transfer Operation (J£PD7530X/31x only) (see figures 18, 23)
2-lIne/3-lIne Serial VO mode (SCK = internal clock output)
TA = -40 to + 85°C; Voo" 2.7 to 6.0 V
Parameter
Symbol
Min
Unit
Conditions
SCK cycle time
IKCY1
1600
n8
VOO
3800
n8
Voo
0.5 tKCY1 -50
n8
Voo .. 4.5 to 6.0 V
0.5 tKCY1 -150
n8
Voo .. 2.7 to 6.0 V
n8
SCK low- and high-level width
tKH1/ t KL 1
SI va SCK t setup time
1sIK1
150
SI va SCK t hold time
tKSI1
400
SCK' to SO output delay time
Typ
Max
= 4.5 to 6.0 V
= 2.7 to 6.0 V
ns
tKS01
250
n8
VOO '" 4.5 to 6.0 V
1000
n8
VOO
= 2.7 to 6.0 V
Serial Transfer Operation (J£PD7530x131x only) (see figures 18, 23)
=
2-lIne/3-lIne Serial VO mode (SCK
external clock output)
TA" -40 to + 85°C; VOO
2.7 to 6.0 V
=
Parameter
SCK cycle time
SCK low- and high-level width
Symbol
Min
Unit
Conditions
IKCY2
800
n8
Voo .. 4.5 to 6.0 V
3200
n8
VOO" 2.7 to 6.0 V
400
n8
VOO .. 4.5 to 6.0 V
1600
ns
VOO
ns
tKHi tKl2
SI va SCK t setup time
tSIK2
100
SI va SCK t hold time
tKSI2
400
SCK l to SO output delay time
tKS02
Typ
Max
= 2.7 to 6.0 V
ns
300
n8
Voo
= 4.5 to 6.0 V
1000
n8
Voo
= 2.7 to 6.0 V
4-177
II
NEe
pPD753Ox/31x1P3081P316
SBI Mode ijlPD7530X/31 x only) (see figures 18,23)
SCK = internal clock output (master)
TA = -40 to +8S'C;Voo = 2.7 to 6.0 V
Parameter
Symbol
Min
Unit
Conditions
SCK cycle time
tKCY3
1600
ns
Voo = 4.S to 6.0 V
3800
ns
Voo = 2.7 to 6.0 V
SCK low- and high-level width
tKH:Y tKL3
O.S tKCY:;SO
ns
Voo = 4.5 to 6.0 V
0.5 tKCy:;150
ns
Voo = 2.7 to 6.0 V
ns
Typ
Max
SBO, SB1 vs SCK t setup time
tSIK3
150
SBO, SB1 vs SCK t hold time
tKSI3
0.5 tKCY3
tKS03
0
250
ns
Voo = 4.5 to 6.0 V
0
1000
ns
Voo = 2.7 to 6.0 V
SCK ~ to SBO, SB1 output delay time
ns
SCK tto SBO, SB1 ~
tKSB
tKCY3
ns
SBO, SB1 Ho SCK ~
tSBK
tKCY3
ns
SBO, SBl low-level width
tSBL
tKCY3
ns
tKCY3
ns
SBO, SB1 high,level width
tSBH
SBI Mode ijlPD7530x/31x only). (see figures 18, 23)
SCK = external clook output (slave)
TA= -40 to +8S'C; Voo = 2.7 to 6.0 V
Parameter
Symbol
Min
Unit
Conditions
SCK cycle time
tKCY4
800
ns
Voo = 4.5 to 6.0 V
3200
ns
Voo = 2.7 to 6.0 V
SCK low- and high-level width
tKH.v tKL4
400
ns
Voo = 4.5 to 6.0 V
1600
ns
Voo = 2.7 to 6.0 V
ns
SBO, SBl vs SCK t setup time
tSIK4
100
SBO, SB1 vs SCK t hold time
tKSI4
0.5 tKCY4
tKS04
0
SCK ~ to SBO, SB1 output delay time
0
Typ
Max
ns
300
.ns
Voo = 4.5 to 6.0 V
1000
ns
Voo = 2.7 to 6.0 V
ns
SCK flo SBO, SB1 •
tKSB
tKCY4
SBO, SB1 Ho SCK ~
tSBK
tKCY4
ns
SBO, SB1 low-level width
tSBL
tKCY4
ns
SBO, SB1 high-level width
tSBH
tKCY4
ns
4-178
NEe
pPD7530x131x/P308/P316
Figure 23. Serial Transfer Timing
Serial 110 Mode (3-Llne)
Serial 1/0 Mode (2-Llne)
tKCY1
I+-tKL1SCK
_ t KH
=!
\
'\
tSIK1
tKSI1
Input Data
SI
...
S80,1
~>f: -O-U~-u-tD-a-ta ~)(r
tKS01_
SO ...............
.....
...............
I]
SBI Mode Bus Release Signal Transfer Timing
SCK
S80,1
SBI Mode Command Signal Transfer Timing
S60,1
83RD-s904B
4-179
NEe
IIPD7530x/31X/P308/P316
Data Memory STOP Mode Low Voltage Data Retention Characteristics
(;£PD7530X131x) (see figure 24)
.
TA = -40 to + 85"0
Parmeter
Symbol
Min
Data retention voltage
VOOOR
2.0
Data retention current (Note 1)
IOOOR
Release elgnal eet time
tSREL
Oscillation etablllzation time (Note 2)
tWAIT
Typ
0.1
0
Max
Unit
6.0
V
10
!IA
Conditions
VOOOR
= 2.0 V
Jls
(Notes 3, 4)
ms
Release by RESET Input
(Note 3)
ms
Release by interrupt request
Notes:
(1) Excludes current In the pullup reslstore.
(2) Oscillation etablllzation WArr time Is the time during which the
CPU Ie stopped and the crystal ie stabilizing. This time is
required to prewnt unstable operation while the oscillation la
etarted. The Interval timer can be used to delay the CPU from
executing Instructions using the basic interval timer mode
register (BTM) according to the following table:
BTM3
4-180
BTM2
BTM1
BTMO
WArrtlme (fxx
0
0
1
1
0
1
0
1
0
1
1
1
220/fxx
2 17/fxx
2 15/fxx
213/fxx
= 4.19 MHz)
(Approx 250 ms)
(Approx 31.3 ms)
(Approx 7.82 ms)
(Approx 1.95 ms)
(3) Consult the manufacturer's resonator or crystal specification
aheat for this value.
(4) The Interval timer will cause a delay of 217Jfxx after a reset
NEe
pPD753Ox/31X/P308/P316
Figure 24. Data Retention Timing
A. STOP mode Is released by RESET Input
Internal reset
operation
t:'
t
VDD
I
II
STOP mode
I
1
Data retention mode _ _
VDDDR
HALT mode
Operation
mode
/
Execution of
STOP Instruction
\ I\.....J
I-- tSREL
tWAIT
II
B. STOP mode Is released by Interrupt signal
HALT mode
t:
_
t
-----STOPmode
5-S
I
--------*'11-'1_-14- ~:."tlon
Data retention mode
VDDDR
Execution 01
STOP Instruction
Standby release signal
(Interrupt request)
83RD-64568
4-181
pPD753Ox/31X/P308/P316
Recommended Ceramic Resonators
(,£PD75P308/P316)
voo
= 4.75 to 5.25 V; TA = -10 to + 7(1'C
C1
C2
Manufacturer
Part Number
(PF)
(PF)
Murata
CSA2.00MG
30
30
CSA4.19MG
CSA4.91MGU
30
30
30
30
CST4.19MG
(NOte 1)
(Note 1)
Remarks
Notes:
(1) 30 pF capacitors are Internally provided.
DC Characteristics, (JIPD75P308JP316)
TA = -10 to +7(1'0; VOO
=5V±
5%
Parameter
Symbol:,
Max
Unit
High-level input voltage
VIHI
' 0.7VOO
VOO
V
Ports 2, 3
VIH2
0.8VOO
VOO
V
Ports 0, 1, 6, 7; RESET
VIH3
0.7
10
V
Ports 4, 5; open drain
VIH4
Voo-O.5
VOO
V
X1, X2, XT1
VILI
0
0.3 VOO
V
Ports 2, 3,
VIL2
0
0.2VOO
V
Ports 0, 1, 6, 7, RESET
VIL3
0
0.4
V
X1, X2,XT1
VOHI
Voo-l.0
V
Ports 0, 2, 3, 6, 7, BIAS; 10H
VOH2
VOo-2.0
V
BPo-7; 10H =' -100 JlA (Note 1)
Low-Ievellnput voltage
High-level output voltage
Low-level outpu~voltage ,
High·levelinput leakage current
Low-level input leakage current
High-level output leakage current
Min
Typ
Conditions
4, 5'
= -1
mA
2.0
V
Ports 3, 4, 5; 10L= 15 mA
0.4
V
All output pins; 10L= 1.6 mA
VOL2
0.2VOO
V
SOO, SB1 ; open drain
pullup resistor ~ lkQ
VOL3
1.0
V
IUHl
3
/lA
All except X1 , X2, and XT1; VIN
IUH2
20
/lA
X1, X2, and XT1: VIN
IUH3
20
/lA
Ports 4 and 5: VIN
IUL 1
-3
/lA
All except X1;'X2, and XT1; VIN
IUL2
-20
/lA
X1, X2, and Xl1: VIN
ILOHI
3
/lA
All output pins except ports 4, 5: VOUT
0.4
VOL 1
BPo-7: 10L = 100 JlA (Note 1)
= VOO
= VOO
= 10 V
= {J V
= 0V
= 10 V
ILOH2
20
/lA
Ports 4, 5: VOUT
Low-level output leakage current
ILOL
-3
/lA
VOUT
Internal pullup resistor
RU
15
80
kQ
Ports 0-3, 6, 7 (except POol: VIN
LCD drive voltage
VLCO
2.5
VOO
V
LCD output voltage deviation:
common (Note 7)
VOOC
0
±0.2
V
LCD output voltage deviation:
segment (Note 7)
Voos
0
40
= OV
10 = ±5/lA:
VLCO
VLCOO
2.75 V to VOO:
VLCOI
2/ 3VLCO
VLCD2
1/3VLCO
=
=
=
±O.2
V
=
=
10
±1 JlA:
VLCO
VLCOO
2.75 V to VOO:
VLCOI = 2/3VLCO
VLCD2
1/3VLCO
=
=
=
=0V
= Voo
ttlEC
"PD753Ox/31X/P308/P316
DC Characteristics (J£PD75P30B/P316) (cont)
Parameter
Supply current
(Note 2)
Typ
Max
Unit
1001
5.0
15.0
rnA
(Notes 3, 4)
1002
500
1500
JlA
HALT Mode (Note 3)
1000
350
1000
JlA
(Notes 5, 6)
35
100
JlA
HALT mode (Notes 5, 6)
0.5
20
JlA
STOP mode; xn = OV
(Note 6)
Symbol
Min
10D4
Conditions
Notes:
(1) When any two pins of BPO-BP3 and any two pins of BP4-BP7 are
used simultaneously for output
(2) Does not Include pullup resistor current
(3) 4.19 MHz crystal oscillator; Cl = C2 = 15 pF, and subsystem
clock running.
(4) Value during high-speed operation and the processor control
clock (PCC) is set to 0011.
(5) Value when the system clock control register (SOO) is set to 1001 ,
generation of the main system clock pulse is stopped, and the
SOO is operated by the subsystem clock.
(6) 32 MHz crystal oscillator.
(7) Voltage deviation Is the difference between the ideal value of
segment or common output (VLCOn; .n = 0, 1, 2) and the output
voltage.
AC Characteristics (J£PD75P308/P316) (see figure 18)
= -10 to + 70"0; VOO = 5 V :I: 5%
TA
Symbol
Min
tcv
(Figure 20)
0.95
TIO Inputfrequency
frl
(Figure 20)
.0
MHz
TIO input low- and high-level width
trlH, trlL
(Figure 20)
0.48
Jls
Interrupt inputs
low- and high-level width
tiNT WtINTL
(Figure 21)
(Note 2)
Jls
INTO
10
Jls
INn, INT2, INT4
KRO-KR7
RESET low level width
tASL
(Figure 22)
10
JlS
114
Typ
Conditions
Parameter
Cycle time
(minimum instruction execution time - Note 1)
122
Max
Unit
64
JlS
.Main system clock
Jls
Subsystem clock
125
Notes:
(1) Cycle time is determined by the frequency of the oscillator
connected to the microcomputer, ,ystem clock control register
(SOO), and the processor clock control (POO). See figure 25.
(2) 2tcv or 128/fxx, depending on the setting of the interrupt mode
register(IMO).
4-183
II
NEe
pPD753Ox/31x/P308/P316
Figure 25. Guaranteed Operating Range fpPD75P308/P316)
tCY vs Voo (Using main system clock)
70
64
F
60
~~
6
~~
~~
~~
~~
~
~~
5
i
4
3
I
2
Ii
Ii
•••••••
I
Ii....
0.5
o
2
3
5
4
6
7
Power Supply Voltage VDO (V)
Serial Transfer Operation (J£PD75P308/P316) (see figures 18, 23)
2-line/3-line serial I/O mode (SCK = internal clock output
TA = -10 to + 70°C; Voo = 5 V ± 5%
Parameter
Symbol
Min
SCK cycle time
tKCY1
1600
ns
SCK low- and high-level width
tKL 1/tKH1
0.5 tKCY1-50
ns
SI set-up time (against SCK t)
tSIK1
150
ns
SI hold time (against SCK t)
tKSI1
400
SCK + to SO output delay time
tKS01
4-184
Typ
Max
Unit
ns
250
ns
Conditions
NEe
pPD753OX/31x/P308/P316
Serial Transfer Operation ij£PD75P308/P316) (see figures 18, 23)
2-line/3-line serial I/O mode (SCK = external clock input
TA = -10 to +70'C; Voo = 5 V ± 5%
Parameter
Symbol
Min
SCK cyole time
tKCY2
800
Typ
Max
ns
SCK low- and high-level width
tKl2" tKH2
400
ns
SI set-up time (against SCK t)
tSIl<2
100
ns
SI hold time (against SCK t)
tKSI2
400
SCK I to SO output delay time
tKS02
Unit
Conditions
ns
ns
300
S81 Mode ij£PD75P308/P316) (see figures 18, 23)
SCK = internal clock output (master)
TA = -10 to + 70'C; Voo = 5 V ± 5%
Parameter
Symbol
Min
SCK cyole time
tKCY3
1600
ns
SCK low- and high-level width
tKHaltKl3
0,5 tKCy:;-50
ns
SBO, SBl vs SCK t setup time
tSIK3
150
ns
SBO, SBl vs SCK t hold time
tKSI3
O,5tKCY3
ns
SCK I to SBO, SBl output delay time
tKS03
SCK t to SBO, SBl I
tKSB
tKCY3
ns
SBO, SBl Ito SCK I
tSBK
tKCY3
ns
SBO, SBl low-level width
tSBl
tKCY3
ns
SBO, SBl high-level width
tSBH
tKCY3
ns
Typ
0
Max
250
Unit
Conditions
II
ns
S81 Mode ("PD75P308/P316) (see figures 18, 23)
SCK = external clock input (slave)
TA = ~10 to + 70'C; Voo = 5 V ± 5%
Parameter
Symbol
Min
SCK cycle time
tKCY4
800
ns
SCK low- and high-level width
tKH¥ tKl4
400
ns
SBO, SBl vs SCK t setup time
tSIK4
100
ns
SBO, SBl vs SCK t hold time
tKSI4
0,5 tKCY4
SCK I to SBO, SBl output delay time
tKS04
0
SCK t to SBO, SBl I
tKSB
tKCY4
ns
SBO, SBl I to SCK I
tSBK
tKCY4
ns
SBO, SBl low-level width
tSBL
tKCY4
ns
SBO, SBl high-level width
tSBH
tKCY4
ns
Typ
Max
Unit
Conditions
ns
300
ns
4-185
NEe
pPD7530X131x/P308/P316
Data Memory STOP Mode Low Voltage Data Retention Characteristics
(p.PD75P308/P316) (see figure 24)
TA = -10to + 70°C
Parameter
Symbol
Min
Data retention voltage
VOOOR
2.0
Data retention ourrent (Note 1)
IOOOR
Release signal set time
tSREL
Osoillation stabilization time (Note 2)
tWArr
Typ
Max
Unit
6.0
V
10
JlA
0.1
0
Conditions
VOOOR
= 2.0V
Jis
(Notes 3, 4)
ms
Release by RESET input
(Note 3)
ms
Release by interrupt request
Notes:
(1) Exoludes current in the pullup resistors.
(2) Oscillation stabilization WAIT time is the time during whioh the
CPU Is stopped and the crystal is stabilizing. This time is
required to prevent unstable operation while the oscillation is
started. The interval timer can be used to delay the CPU from
executing instructions using the basic interval timer mode
register (BTM) aooording to the following table:
BTM3
BTM2
0
°
1
1
BTM1
0
1
0
1
BTMO
0
1
1
1
(3) Consult the manufacturer's resonator or crystal speoifioation for
this value.
(4) The interval timer will oause a delay of 2 17ffxx after a reset.
WAITtime (f"" = 4.19 MHz)
220ff"" (Approx 250 ms)
217ff"" (Approx 31.3 ms)
215ff"" (Approx 7.82 ms)
213ff"" (Approx 1.95 ms)
DC Programming Characteristics (p.PD75P308/P316)
TA = 25 ± 5°C; Voo ~ 6.0 ± 0.25 V; Vpp = 12.5 ± 0.3 V; Vss = 0 V
Parameter
High-level input voltage
Low-level Input voltage
Max
Unit
VIHI
O· 7V oo
VOO
V
All exoept X1, X2
VIH2
VOo-°·5
VOO
V
X1, X2
0.3VOO
V
All exoept X1, X2
0.4
V
X1,X2
10
JiA
VIN
V
IOH
Symbol
Min
VIL1
°
0
VIl2
Input leakage current
III
High-level output voltage
VOH
Typ
Voo-1.0
LOW-level output voltage
VOL
0.4
V
VOO supply ourrent
100
30
mA
Vpp supply current
Ipp
30
mA
Conditions
= Vll.or VIH
= -1 mA
IOl = 1.6 mA
MDO
= Vll; MD1 = VIH
Notes:
(1) Vpp must not exceed +13.5 V, including overshoot.
4-186
(2) VOO must be applied before Vpp and VOO should be removed
after Vpp is removed.
ttlEC
pPD7530x131xJP308/P316
AC Programming Characteristics (,£PD75P308/P316) (see figures 26, 27)
TA
= 25 ± 5'C; VOO = 6.0 ± 0.25 V; Vpp = 12.5 ± 0.3 V; Vss = 0 V
Parameter
Symbol
Address setup time to MOO ~ (Note 2)
tAS
MDl to MDO ~ setup
tM1S
Data to MDO ~ setup
Address hold from MOO
Data hold from MDO
t
(Note 2)
t
Data output float delay from MOO
t
(Note 1)
Min
Max
Unit
tAS
2
jlS
tOES
2
jls
tos
tos
2
jls
lAH
tAH
2
jlS
tOH
tOH
2
tOF
tOF
0
2
Conditions
jlS
130
ns
t
VOO setup to MD3 t
tvps
tvps
tvos
tvcs
2
Initialized program pulse width
tpw
tpw
0.95
1.05
ms
.Additional program pulse width
topw
topw
0.95
21
ms
tMOS
tCES
2
jls
t[N
t[}l
jls
MDO
= MDl = VIL
tM1H
tOEH
2
fJs
tM1H
tM1R
tOR
2
fJs
tM1H
+
+
10
fJs
Vpp setup to MD3
t
MOO setup to MDl
Data output delay from MOO ~
MDI hold to MOO
t
MDI recovery from MDO
~
Program counter reset
tpCR
jls
jlS
0.125
XI input low- and high-level width
txH, txL
Xl input frequency
Ix
Initial mode set
tl
2
fJS
tM35
2
fJS
MD3 hold to MDI ~
tM3H
2
fJs
MOO setup to MOO ~
tM3SR
2
fJs
Address to data output delay time (Note 2)
tOAD
1&.cc
2
fJs
Address to data output hold time (Note 2)
tHAD
tOH
0
MOO setup to MDI
t
MOO output hold from MOO
t
Data output float delay from MOO ~
tM1R :!: 50 fJI
tM1R :!: 50 jlS
fJs
4.19
130
MHz
During Program
Relid cycle
ns
tM3HR
2
fJS
tOFR
2
fJs
Notes:
(1) These sym bois correspond to those on the fJPD27C256 EPROM.
(2) The internal address signal Is Incremented by one at the rising
edge of the fourth Xl pulse; it is not connected to an external pin.
4-187
II
N'EC
pPD753Ox/31X/P308/P316
Figure 26. EPROM Progrsm Memory Write Timing
Vpp
vpp
~--------------~6------------~------~$~
VDD
tVDS
~------------~~~--------------~~--~5r--
Xl
S
tM1H
6
tM3S
~
S
'-~
5.
83RD-70488
4-188
NEe
pPD753Ox/31x/P308/P316
Figure 27. EPROM Program Memory Read Timing
IVPS
Vpp
Vpp
Voo
IVOS
XI
DataOUlpUI
~~g:~~~ --+-+----(1
~--------------~
II
OataOutpUI
IOV
MOO
MOI ..........~..........~........................................................................................................................~~..........~...............--
M02
I M3SR
M03
83RO-64618
4-189
pPD753OX/31X/P308/P316
NEe
NEe
pPD75328/75P328
4·Bit Microcomputers
With LCD Controller/Driver
and AID Converter
NEG Electronics Inc.
Description
The J.lPD75328 and J.lPD75P328 are high performance
single-chip CMOS microcomputers. They each contain
a CPU, ROM, RAM, interval timer, timer/event counter,
watch timer, LCD controller, A/D converter, subsystem
clock, serial interface, I/O ports, and vectored interrupts. The instruction set allows the user to manipulate
RAM data arid I/O ports in one-, four-, and eight-bit
units. The devices are suitable for controlling video
caS&ette recorders (VCRs), telephones, and meters.
The J.lPD75P328 is a one-time programmable (OTP)
version of the J.lPD75328.
Features
o 103 Instructions
- Bit manipulation instructions
- Four-bit and eight-bit transfer instructions
- One-byte relative branch instructions
- GETI instruction converting 1 two-byte or threebyte instruction or 2 one-byte instructions into 1
one-byte instruction
o Instruction execution cycles
- High-speed cycle: 0.95 J.lS/4.1.9 MHz
-Low-voltage cycle: 1.91 J.lS/4.19 MHz,
15.3J.ls/4.19 MHz,
o Program memory (J,lPD75328/75P328): 8064 bytes
o Data memory (RAM)
- Allows operation on one, four, and eight bits
- 512 x four-bit data
o Timers
- One eight-bit basic interval timer
- One eight-bit timer/event counters
- One fourteen-bit watch timer
o AID converter
- Six-channel
-Eight-bit
o LCD controller/driver
- Four common lines
- Twenty segment lines
- Operational modes
Static
Multiplexed 1/2 bias
Triplexed 1/2 or 1/3 bias
Quadriplexed 1/3 bias
II
o Eight-bit serial interface
-Serial bus in (SBI) mode
- Two or three wire mode
Data transfer (MSB or LSB first)
Full duplex mode
Receive only mode
o Vectored interrupts
- Three external interrupts
- Three internal interrupts
- Nine inputs generating one interrupt request
o Standby modes
- Halt mode: stops CPU only
- Stop mode: stops main system clock
o Bit-sequential buffer
-16-bit, bit manipulation memory
o Mask options (Not available on the J.lPD75P328)
- Pull-up resistors for ports 4 and 5
- LCD resistor ladder
-Subsystem clock feed back resistor
o Eight four-bit registers
o Operates with oscillator or ceramic resonator
o Accumulators
- One-bit accumulator (CY)
- Four-bit accumulator (A)
- Eight-bit accumulator (XA)
o CMOS technology (at 5 V and 4.19 MHz)
- Normal operation: 2.5 mA (typical)
- Halt mode: 0.5 rnA (typical)
- Stop mode: 0.1 J.lA (typical)
o 241/0 lines
- Twelve output ports that can directly drive LEDs
(sink 15 mA rms)
- Eight N-channel, open-drain outputs with 10 V
maximum
o One-time programmable (OTP) version
(J,lPD75P328) available
Ordering Information
Package
ROM
o 12 Input only lines
pPD75328GC-xxx-3B9
80-pin plastic QFP
Mask
o One external event input
pPD75P328GC-3B9
80-pin plastic QFP
OTP
Part Number
Notes:
(1) xxx indicates ROM code suffix.
50255
4-191
ttlEC
pPD7S32snSP32S
Pin Configuration
SO-Pin Plastic QFP
g
~ ~ ~ ~ ~ ~ ~ ~ ~
R m~
~ ~ ~ ~ ~ ~ ~
0
S311BP7
S30lBP6
S291BP5
1
2
3
S281BP4
4
P83
5271BP3
526IBP2
P82
523
5
6
7
8
9
522
521
520
10
11
12
519
518
13
14
517
516
15
16
515
514
17
P131T10
P1211NT2
18
19
20
P1111NT1
P101lNTO
P031511SB1
S25 1BP1
524IBPo
513
512
59
AN2
AN1
ANO
P81
P80
P331MD3·
P321MD2·
P3115YNCIMD1·
50
P30ILCDCUMDO·
49
P231BUZ
P221PCL
P21
P20lPTOO
41
• MDO-MD3 and Vpp are for programming the J1PD75P328.
49NR-G07B
4-192
~EC
IIPD75328/75P328
Pin Identification
Symbol
Function
POoflNT4
Port 0 input; Interrupt 4.
P01/S"CR
Port 0 Input; serial clock ~
POiSO/SBO
Port 0 input; serial data out
POalSI/SBl
Port 0 input; serial data in
P10-P2/1NTO-INT2
Port 1 inputs; interrupts INTO-INT2
Pla1TIO
Port 1 input; timer 0 Input TIO
P201PTOO
Four-bit I/O port 2 (P2o-P2a)/timer/event
-P2-=1----- counter output 0 (PTOO)/port clock output
_ _ _ _ _ _ (PCL)/buzzer output (BUZ)
P22/PCL
P2a1BUZ
P301LCDCL/
(MDo)
';"P3-1"::'S/'--Y-NC-/-(M-D-1-)-
Four-bit I/O port 3 (P3o-P3al/LCD clock
output (LCDCL)/sync output (SYNC)/OTP
operation mode (MDo-MD3 for "PD75P32B)
also used for the serial interface in the SBI or 2/3 wire
mode. The serial input (SI) and serial bus one (SB1),
serial output (SO) and serial bus zero (SBO), and the
serial clock (SCK) make-up the serial interface. Port 0 is
in the input mode at reset.
P13/T10, P12/INT2, P11/INT1, P1011NTO
(Port 1 , Edge-Triggered Interrupts, Timer Input)
Port 1 can be used as a four-bit input port. INTO and INT1
are edge-triggered vectored interrupts. INT2 is an edgetriggered input which generates an input request, but
does not cause an interrupt. TIO is an input clock to the
timer/event counter and is used to count external events.
Port 1 is in the input mode at reset.
P23/BUZ, P22/PCL, P21, P201PTOo
(Port 2, Clock, Buzzer, and Timer/Event Counter
Outputs)
P32-P3a1(MD2-MDal
P40-P43
Four-bit I/O port 4
P50-P53
Four-bit I/O port 5
peo-peal
KRo-KR3
Four-bit I/O port e (P6o-Peal/
key scan inputs 0-3 (KRo-KRal
Four-bit I/O port 7 (P7o-P73)/
key scan inputs 4-7 (KR4-KR7)
PBo-PB3
Four-bit I/O port B
LCD segment outputs 12-23
COMo-COM3
LCD common outputs 0-3
Eight one-bit output ports (BPO-BP7)/
LCD segments 24-31 (S24-8 31 )
LCD voltage drive level
BIAS
ANO-ANs
LCD power bias output
AID converter inputs (ANo-ANsl
AID converter reference voltage'
AVss
Port 2 can be used as a four-bit I/O port. When used as
an output port, the output data is latched. When used as
an input port, the outputs are high-impedance. P20 is
used to output the timer/event counter flip/flop signal
TOUT. P22 is used to out putt he PCl clock from the clock
generator and P23 is used to output square waves for a
buzzer. Port 2 is in the input mode at reset.
AID converter ground
NC (Vpp)
No connection (Vpp for "PD75P32B)
X2,Xl
Main clock inputs
XT2,XTl
Subsystem clock inputs
Reset Input
Voo
Positive power supply
Vss
Ground
PIN FUNCTIONS
P33/MD3, P32/MD2, P31/SYNC/MD1,
P30/LCDCL/MDo (Port 3, LCD Outputs,
OTP Operation Mode for I'PD75P328)
Port 3 is a programmable four-bit I/O port. Each bit can
be independently programmed to be either an input or an
output. The port has latched outputs and can directly
drive LEOs. P30 and P31 can be used to output the LCO
clock and LCO sync signal, respectively. MOo through
M03 are used for the ~P075P328 OTP program memory
write and verify mode to select the operation mode. Port
3 is in the input mode at reset.
P40·P43 (Port 4)
Port 4 isa four-bit I/O port. Ports 4 and 5 can be paired
together to function as one 8-bit port. Port 4 has latched
outputs and can directly drive LEOs. The outputs are
N-channel, open drain, 10 V max. An internal pull-up
resistor is available as a mask option. Port 4 is in the
input mode at reset.
P03/SI/SB1, PO:z/SO/SBO, P01/SCK, POo/INT4
(Port 0, INT4, Serial Interface)
Port 0 can be used as a four-bit input port. POo can be
used for INT4 which is an edge-triggered vectored interrupt triggered by a rising or falling edge. P01-P03 are
4-193
II
NEe
pPD75328/75P328
P50-P53 (Port 5)
BIAS (Bias Output)
Port 5 is a four-bit I/O port.Ports 4 and 5 can be paired
together to function as one a-bit port. Port 5 has latched
outputs and can directly drive LEOs. The outputs are
N-channel, open drain, 10 V max. An internal pull-up
resistor is available as a mask option. Port 5 is in the
input mode at reset.
BIAS output is used with VLca through VLC2 to set the
static, 1/2 bias, or 1/3 bias levels.
P631KR3-P601KRo
(Port 6, Edge Detection of KRo-KR3)
Port 6 is a programmable four-bit I/O port. Port 6 has
latched outputs and each bit can be independently
programmed to be either an input or an output. Ports 6
and 7 can be paired together to function as one a-bit
port. Port 6 can be used to detect the falling edge of
inputs KRo- KR3.Port 6 is in the input mode at reset.
P73/KR7-P701KR4
(Port 7, Edge Detection of KR4-KR7)
Port 7 is a four-bit I/O port. The port has latched outputs.
Ports 6 and 7 can be paired together to function as one
a-bit port. Port 7 can be used .to detect the falling edge
of inputs KR4 through KR 7. Port 7 is in the input mode at
reset.
P80-P83 (Port 8)
Port a is a four-bit I/O port with latched outputs. Port a is
in the input mode at reset.
S12-S23 (LCD Segment Outputs)
S1Z through S23 are the LCD segment output signals
which directly drive the LCD segment inputs.
COMo-COM3 (LCD CQmmon Outputs)
COMo through COM 3 are the LCD common output signals, which directly drive the common LCD inputs.
BPO/S24-BP7/S31
(One-Bit Output Ports, Segment Outputs)
BPo through BP7 call be used as a one-bit ports or as
additional LCD segment outputs. As LQD segment outputs, they are selectable in four-bit units: BPo-BPg/S24
-S27 or BP4-BP7/S28-S31·
VLCO-VLC2 (LCD Voltage Levels)
VLCO through VLC2 are used to set the LCD drive levels.
These pins are outputs when the internal resistor ladder
mask option is selected. When an external resistor
ladder is used, the pins are inputs and must be connected to set the LCD drive levels.
4-194
ANO-AN5 (AID Converter Inputs)
ANa through AN5 are inputs to the six-channel eight-bit
AID converter.
AVREF (AID Converter Reference Voltage)
AVREF is used to supply a reference voltage to the A/D
converter.
AVss (Analog Ground)
AVss is the analog ground pin for the AID converter.
NCNpp (No Connection, programming Pin)
This pin is connected when using the I'PD75P328 and
may be left unconnected when using the p.PD75328.
When programming a device, the programming voltage
Vpp is used during the EPROM write/verify cycles. When
a device is not being programmed, this pin should be
connected to Voo.
X2, X1 (Main System Clock Inputs)
X1 and X2 are the main system clock inputs. The clock is
controlled bya crystal or a ceramic oscillator. An
external logic signal can be used as a clock source. See
figure 1.
XT2, XT1 (Subsystem Clock Inputs)
XT1 and XT2 are the subsystem clock source inputs.
These pins use a crystal, ceramic oscillator, or a logic
Signal as an input. See figure 2.
RESET (Reset)
System reset input pin (active low).
Voo (Power Supply)
Positive power supply.
Vss (Ground)
System ground.
NEe
pPD75328/75P328
Block Diagram
ANO-ANS
AVREF
AVSS ~-"_ _ _""
T10/P1 3
PTOO/P20
P4o-P43
PSo-PS3
BUZlP23
ROM
Program Memory
P6o-P63
8064 x 8 bits
Decode
and
Control
SlfSBlIP03
SOiSBOIP02
RAM
Data Memory
P7o-P73
S12 x 4 bits
P8o-P83
SCKIPO;
S12-S23
S24 IBPOS31 IBP7
INTO/P1 0
INn/P1 l
COMo-COM3
INT2IP12
Ixxl2 N
INT4IP00
VLCO-VLC2
System Clock
Generator
BIAS
Stand By
Control
CPUClockf2J
LCDCUP30
SYNc/P3 1
PCUP2 2
XTl XT2 XI
X2
1 1 1
VDD
VSS
RESET
83Yl-574OB
4-195
II
NEe
pPD75328/75P328
Figure 1. Main System Clock Configurations
The I'PD75P328 contain a one-time programmable (OTP)
program memory and the I'PD75328 contains a mask
ROM program memory. The I'PD75328 and I'PD75P328
differ only in their program memory and mask options,
but otherwise are identical in their CPU functions and
internal hardware. Their differences are shown in table 1.
Crystal or Ceramic Oscillator
Table 1. Differences between pPD75328 and
pPD75P328
External Clock *
*
When the input is an external clock, the stop mode cannot be
set because the Xt pin is connected to system ground (V SS).
49NR-60SA
Figure 2. Subsystem Clock Configurations
r I-I
Crystal Oscillator
C3
f--t-I
~4
T
330 kn
I'PD75328 AND I'PD75P328 DIFFERENCES
XT1
XT2
Item
"PD75P328
Program memory
One-time EPROM
Mask ROM
a064 x a bits
8064 x a bits
Ports 4 and 5 pullup resistor
"PD75328
OOOOH - 1F7FH
OOOOH - 1F7FH
Not offered
Mask option
LCD resistor ladder Not offered
Mask option
Subsystem clock
oscillating feed
back resistor
On-chip
Mask option
Programming pin
connecti ons
Vpp pin and one-time
EPROM program pins
None
Operating supply
voltage range
5V ±5%
2.7 to 6.0V
Package
aO-pin plastic QFP
with bent leads
aO-pin plastic QFP
with bent leads
External Clock
I'PD75328 AND I'PD75308 COMPARISON
">0--...--1 XT1
XT2
49NR-G09A
4-196
The I'PD75328 provides 7 CMOS I/O ports; the I'PD75308
has 6. The I'PD75308 does not contain an AID coriverter.
However, the I'PD75308 does have an LCD controller
with 32 segment outputs versus 20 for the I'PD75328.
Table 2 compares the features of the two devices.
NEe
pPD75328/75P328
Table 2. pPD75328 and pPD753D8 Features
Comparison
Item
"PD75328
"PD75308
ROM
8064 bytes
Same as "PD75328
RAM
512 x 4 bits
Same as "PD75328
General
purpose
register
4 bits x 8 or 8 bits x4
Same as "PD75328
Selectable from .95
Same as "PD75328
Instruction
cycle
Input/
output
port
281/0 lines
8 input only
8 output only
241/0 lines
8 input
8 output only
CMOS
input
port
8 lines shared with
I NTIS 10. Can be
pulled by software,
except for POo
Same as "PD75328
CMOS
110 port
20 lines (4 lines can
directly drive LED).
Can be pulled by
software, except for
POo
16 lines (4 lines can
directly drive LED).
Can be pulled by
software, except for
CMOS
output
port
418 lines (shared
segment output and
selected by softwa re)
Same as "PD75328
N-
8 lines can be pulled
up by mask option,
directly drive LED,
have continuous 10 V
applied
Same as "PD75328
Timer
counters
Timerlevent counter,
basic Interval timer,
clock timer
Same as "PD75328
Serial
interface
NEC-SBI serial bus
interface
Same as "PD75328
Normal clock
synchronized serial
interface
Same as "PD75328
6-channel analog
Input, 8-blt precision
Not offered
6 vector Interrupts
(3 external and
31nternaQ
Same as "PD75328
2 test inputs
(1 external and
1 InternaQ
Same as "PD75328
Parallel edge
detection for key scan
Input
Same as "PD75328
AID
converter
Interrupt
Instruction
set
POo
"PD75308
Bit: data set/reset/lest/
boolean operation
4-blt data transferl
arlthmetic/increment/
decrement/
comparison
LCD
controllerl
driver
"s/1.91 "s/15.3 "s
(4.19 MHz) and 122,.s
(32 kHz)
channel
110 port
Item
8-bit data transfer
Same as "PD75328
20 segment Qutputs
32 segment outputs
4 common outputs
Display mode:
StatiC
Multiplexed
Trlplexed
Quadriplexed
Resistor ladder
network for
LCD drive voltage
supply (mask option)
Operating
voltage
2.7 to 6.0 V
Package
80-pin plastic QFP
(.65 pitch)
Same as "PD75328
SO-pin plastic QFP
(.8 pitch)
4-197
~EC
pPD75328/75P328
ELECTRICAL CHARACTERISTICS
Absolute Maximum Ratings, "PD75328/P328
TA = 25°C
Supply voltage, Voo
-0.3 to +7.0 V
Input voltage, VI1 (except ports 4 and 5)
-0.3 to Voo +0.3 V
Input voltage, VI2 &
9
"-
3
.,;
E
2
F
f'\.
~
is
0.5
o
3
2
~
r'\.
4
5
7
6
Supply Voltage, VOO (V)
49NR-70GA
II
A/D Converter Characteristics, "PD75328
TA = -10 to +85°C; Voo = 3,5 to 6,0 V; AVss = Vss = 0 V
Parameter
Symbol
Resolution
Min
Typ
8
8
Unit
Max
Absolute accuracy (Note 1)
8
bits
±1,5
LSB
Conditions
2,5 V s AVREF S VOO
Conversion time
teONV
168/fx
s
(Note 2)
Sampling time
tSAMP
44/fx
s
(Note 3)
Analog input voltage
AV'sS
V
AVREF
Analog input impedance
Mil
1000
1,0
AVREF current
2,0
mA
Notes:
(1) The absolute accuracy does not include the quantization error
(±1/2 LSB),
(2) The total conversion time until EOC =
fxx = 4,19 MHz,
1 is 40.1 p's at
(3) The time until completion of sampling is 10,5 p's (fxx= 4,19 MHz),
Note that the sampling time value is Included in the total
conversion time value,
(4) For detailed NO converter information refer to the
use~s
manual.
Serial Transfer Operatioh, "PD75328
2·Line/3·Line Serial I/O Mode (SCK, Internal Clock Output)
TA = -40 to +85°C; Voo = 2,7 to 6,0 V
Unit
Symbol
Min
tKCY1
1600
ns
sc:::K low- and high-level width
tKL1. tKH1
SI vs
sc:::K i
setup time
Typ
Max
Parameter
sc:::K cycle time
3800
ns
0,5tKCY1-5O
ns
0,5tKCY1-150
ns
ns
tSlK1
150
51 vs sc:::K i hold time
iKSl1
400
sc:::K ~ to SO output delay time
iKS01
Conditions
Voo = 4,5 to 6;0 V
Voo = 4,5 to 6,0 V
ns
250
ns
1000
ns
Voo = 4,5 to 6,0 V
4-203
t-rEC
pPD75328/75P328
Serial Transfer OpE!ratlon, "PD75328
2-Line/3-Line Serial I/O Mode (SCK, External Clock Input)
TA = -40 to +85°C; Vee = 2.7 to 6.0 V
Parameter
~oycletlme
Symbol
Min
iKcY2
800
Typ
Unit
ns
3200
ns
400
ns
Max
~ low- and high-level width
'KL2' ~H2
1600
ns
SI vs ~ f setup time
tSIK2
100
ns
SI vs ~ f hold time
~12
400
~ ~ to SO output delay time
~02
Conditions
Vee = 4.5 to 6.0 V
Vee = 4.5 to 6.0 V
ns
300
ns
1000
ns
Vee = 4.5 to 6.0 V
SBI Mode, "PD75328
SCK, Internal Clock Output (Master)
TA = -40 to +85°C; Vee = 2.7 to 6.0 V
Parameter
Symbol
Min
S'CK cycle time
~CY3
1600
ns
3800
ns
~wldth
'KL3, ~H3
Typ
Max
Unit
0.5iKcv3 -50
ns
0.5iKcY3 -150
ns
ns
SBO, SBI VS ~ f setup time
tSIK3
150
SBO, SBI vs ~ f hClld time
~13
0.5tKCY3
~ ~ to SBO, SBI output delay time
~03
0
Conditions
Vee
= 4.5 to 6.0 V
Vee = 4.5 to 6.0 V
ns
0
250
ns
1000
ns
~ flo SBO, SBI ~
~B
iKcY3
ns
SBO, SBI ~ to 'SC'K ~
tSBK
tKCY3
ns
SBO, SBI low-level width
tSBl
tKCV3
ns
SBO, SBI high-level width
tSBH
iKcY3
ns
Vee = 4.5 to 6.0 V
SBI Mode, "PD75328
SCK, External Clock Input (Slave)
TA = -40 to +85"C; Vee
= 2.7 to 6.0 V
Parameter
~CYCletlme
~ low- and high-level width
Symbol
Min
iKcv4
800
ns
3200
ns
400
ns
1600
ns
'KL4'~H4
Typ
Max
Unit
SBO, SBI VS ~ f setup time
tSIK4
100
ns
SBO, SBI VS ~ f hold time
~14
0.5~CV4
ns
~ ~ to SBO, SBI output delay time
~04
0
300
ns
0
1000
ns
~ftoSBO,SBI ~
tro-1
+---+-<> In/Out
N."h
NEe
,.,PD75328/75P328
Figure 13. Input/Output Circuits (cont)
TypeG-A
Type G-B
(S12-S31)
(COMo-COM3)
~P-Ch
~P-Ch
VLCO
VLCO
VLC1-----+
VLC1-----+
T
T
N-ch
P-ch
Output
SEG Data
+--+--<> Output
VLC2 - - - - - - - +
COM Data
-------+..---1
T
T
VLC2-----+
N- Ch
T
Type G-C
(BPO-BP7)
~
T
N-Ch
P-ch
Ilf'D75328 Type M
VDD
(P40-P43. P50-P53)
~P-Ch
VDD
VLCO
+--~-<>
Bi~~~rt~~~ - - - - - - - - - - 1
VLC2
-------+
InlOut
Data~
VLC1-----+
OutputDisable~
Output
Medium Voltage Input Buffer (+10 V)
ILPD75P328 Type M-B
(P40-P43. P50-P53)
..-----~-<>
Data~
Output Disable~
InlOul
N-ch
(+10 V)
Medium Voltage Input Buffer (+10 V)
49NR-627B
4-221
NEe
pPD7S328nSP328
Figure 13. Input/Output Circuit. (conI)
TypeM-C·
(P03)
Type V
TypaZ
(ANo-ANS)
(AVREF)
VDD
In 0--+----1
Pull-Up ResislD, Enable---t>o-1
P-eh
r---+-<>
Dala~
Output Disable
-L-/'-'
VDD
InfOut
N-ch
Reference Voltage
(From the voltage tap in
the series ,e_i_lDr ladder)
I
I
r
AVss
49NR-628B
Serial Interface
The a-bit serial interface allows the ~PD7532a to communicate with other NEC or NEC like serial interfaces.
The serial interface consists of an a-bit shift register
(SIO), serial output latch (SO), a-bit address comparator, slave address register (SVA), control registers (CSIM
and SBIC), busy/acknowledge circuitry, and bus release/
detect circuitry. See figure 14. The interface also contains a serial clock counter, clock mUltiplexer, and serjal
clock control logic. The serial interface contains a three
wire interface, which consists of the following:
• Serial Data In (SI/SB1)
• Serial Data Out (SO/SBO)
• Serial Shift Clock (SCI<)
The three serial interface operation modes are:
• Two-wire serial mode
• Three-wire serial mode
• Two-wire SBI mode
The two or three wire serial modes are the simplest
modes; the a-bit shift register is loaded with a byte of
data and eight clock.pulses are generated. The pulses
shift data out of the SO line and in from the SI line,
thereby communicating in full duplex. When a byte of
data is sent, a burst of eight clock pulses is generated
and a-bits of data are sent. The data may be sent with the
LSB or MSB first. The interfaGe can also be set to receive
data only, consequently SO will be in the high impedance
state. One of four internal clocks or an external clock
clocks the data.
4-222
The SBI mode uses a two-wire interface with devices in
a master/slave configuration. See figure 15. There is only
one master device at a time; all others are slaves. The
master sends addresses, commands, and data over the
bus. The slaves are able to detect in hardware if their
addresses were sent, a command was sent, or a portion
of data were sent. There can be up to 256 slave addresses, 256 commands, and 256 data types. All commands are user definable. Commands can be sent to
change slaves into masters; previous masters become
slaves. Firmware performs this type of operation and
thus the user decides whether the bus is simple or
complex.
NEe
pPD75328/75P328
Figure 14. Serial Interface Block Diagram
Interna I
Bus
~
I
Bit
Test
Control Serial Interface
Mode Register (CSIM)
a
a
I
L l-
II
'--
Pes /SIISB1
~
17
Selector
-4
PD2/S0/SBO
I-
->
Bit
Manipulation
a
I
a-Bit Slave Address
Register (SVA)
I
a-Bit Address
V
Comparator
=u
Bit
Tes
Serial Acknowledge Interface
Control Register (SBIC)
I
"~jj
~gnal
RElT
CMDT
SET ClR
a-Bit Shift Register (SIO)J- -->- D Serial 0
Output
latch
f-
f
-c-iJ "'~ """~
~
V
'---
Selector
l5=
'-
~
II
ACKE
Busyl
Acknowledge
Output Circuit
\.
-
'---Releasel RElD
I--- f- Bus
Commandl
CMDD
f-
Acknowledge
Detection
Circuit
T
~
V
Serial Clock
Counter
,--
lQ_,r
----
-1
--
IROCSI
Control
Circuit
IROCSI
~
POj
latch
ACKD
I'--
Serial Clock
Control
Circuit
~
"}
I
- lxx /2 3
-lxx/24
Clock
- lxx /2 6
Multiplexer
-TOUTF/F
~ =:JExternal SCK
I
49NR-558B
4-223
NEe
IIPD7S32snSP328
Figure 15. SBllIode MasterlSlare Configuration
Master CPU
I1f'D7532B
51aveCPU
I1f'D75328
(561), SBO
560,(561)
Addre.s1
-
SCi(
SCK
51aveCPU
560, (561)
Address 2
f---- 5CK
,
~
:
5lavelC
560,(561)
Address N
SCK
49NR·645A
LCD Controller/Driver
The liquid-crystal display (LCD) controller/driver can
directly drive up to a maximum of 80 segments. See
figure 16. The controller can be programmed to operate
in the static mode (drive 20 segments), multiplexed
mode (drive 40 segments), triplexed mode (drive 60
segments), or the quadriplexed mode (driva80 segments). The multiplexed mode uses 1/2 BIAS voltage;
triplexed mode uses 1/2 or 1/3 BIAS voltage; and the
quadriplexed mode uses 1/3 BIAS voltage,
The controller/driver automatically refreshes the LCD
with data from the upper 20 nibbles of RAM memory
bank one. To drive an LCD, the controller/driver uses
display data multiplexers, segment drivers S12-831. and
common drivers COMo-COM3. The LCD controller/driver
is controlled by registers LCDM, LCDC, and PGMA. The
LCD controller/driver clock (FLCD) is the main clock and
is supplied by the watch timer. The watch timer operates
while the chip is in the STOP mode, when it is driven from
the subsystem clock. Hence the LCD controller/driver
also operates in the STOP mode.
The SYNC signal and LCDCL clock are available as
outputs so that additional LCD controllers can be added.
The drive signals for the controller/driver can be set
internally by the resistor ladder mask option (ordered as
a mask option). However,; the levels can also be set by
using external resistors connected to pins VLCO-VLC2. To
control the contrast of the LCD, a BIAS pin is also
available.
Figure 16. LCD Controller/Drirer Block Diagram
Data6us
Internal
[====:::;:=============:::;:::====:;:====:::;====:::;:::=::=J
Display Data
Memory
L.T-T-.i-T--I-T-T-.........J
Display Data
Multiplexer.
Segment
Drivers
COM1
COM3
VLC1
49NR-663B
NEe
pPD75328/75P328
AID Converter
other locations in this bank contain either on-chip peripheral control registers or unused addresses. A typical
application for this buffer is data storage for the next
serial output or input. Another application is as a port
output data storage area. The bit sequential buffer can
be bit, nibble, or byte manipulated.
The 8-bit analog to digital (AID) converter is equipped
with six inputs and uses an successive approximation
routine (SAR) for the AID conversion. See figure 17. An
AID conversion occurs when one of six inputs is selected
by the ADM register. The conversion starts by setting bit
3 of the ADM register. The selected input is sampled by
using the sample and hold circuit and multiplexer. Then,
using the SAR with the comparator, resistor ladder, and
SA register, the input value is converted. The converted
value is stored in the SA register. When bit 2 of the ADM
register is set, conversion is complete and can be read
from the SA register.
Interrupts
The three external and three internal interrupts are all
vectored interrupts and are shown in figure 18. Table 7
lists a summary of the interrupts. Input INT2 detects
rising edge inputs and generates an interrupt request
flag, which is testable. Inputs KRo through KR7 detect a
falling edge and generate the same interrupt request flag
as INT2. INT2 and KRo through KR7 do not cause an
interrupt, but can be used to release the standby mode.
Interrupt requests and all interrupts except INTO release
the standby mode.
Bit Sequential Buffer
The 16-bit sequential buffer is the only general purpose
RAM in the upper half of data memory bank 15: all the
Figure IT_AID Converter Block Diagram
Internal Bus I
Jj
ADM Register [
o
• i"
IADM6iADMsiADM4i soci EOC i
o
T1
0
I
8
!
Sample Hold Circuit
1- - - - - - - - - - - - I
I
'1
r.....
1-
I
I
....
I
Multiplexer
Control Circuit
I
I
I
I
I
L _____________ I
I
I
~I
SA Register (8)
I
8
r
AVREF
Rl2
AVSS
K
Tap Decoder
r I
R
-
I
1
R
Series Resistor Ladder
R
Rl2
I
49NR-646B
4-225
II
pPD75328/75P328
NEe
Figure 18. Interrupt Controller Block Diagram
Internal
Dam Bus
~----------'-------r------'----~~--------~-.-'~r-r-.-'-.---------~~--r---~-.------~~
INTBT - - - - - H - - - , - - - - - - I
INTO/P10
INT1/P11
Priority
Control
INTCSI------------_I
Vector
Table
Address
Gen
INTTO---------------.I
INTW
-------------1
Smndby
Release
Signal
49NR·5618
4-226
NEe
pPD75328/75P328
Table 7. Interrupt Sources
Interrupt Source
Internal/External
Interrupt Priority
(Note 1)
Vectored Interrupt Request!
Table Address
INTBT
(Time reference interval signal from the basic
interval timer)
Internal
INT4
(Rising and falling edge detection)
External
INTO
(Rising/falling edge detection)
External
2
VR02/0004H
INT1
(Rising/falling edge detection)
External
3
VR03/0006H
INTCSI
(Serial data transfer end signal)
Internal
4
VR04/0008H
INTTO
(Signal generated when programmable timer/
counter count register and modulo register
coincide)
Internal
5
VR05/000AH
INT2
(Rising edge input detection to INT2 pin or
falling edge input detection to KRo-KR7)
VR01/0002H
II
Testable input signals (Tests if IR02 and IROW are set)
INTW
(Watch timer signaQ
Notes:
(1) The interrupt priority determines the order when two or more
simultaneous interrupts occur.
Standby Modes
Three standby modes, HALT, STOP, and data retention
reduce power consumption during a program standby
state. Table 8 summarizes the standby modes.
Execution of the HALT instruction selects the HALT
mode. In the HALT mode, the CPU clock q, is turned off
which stops the CPU. However, all other portions of the
chip except interrupt INTO are functional. Execution of
the STOP instruction selects the STOP mode. In the
STOP mode, the chip's main system oscillator is turned
off, stopping all portions of the chip except those operating from the subsystem clock. If the subsystem clock is
used, it remains on.
A RESET or any interrupt request except INTO releases
the HALT and STOP modes. The data retention mode can
be selected after the STOP mode has been selected. In
this mode, the supply voltage Voo can be lowered to
2 volts, further reducing the power consumption. The
contents of the RAM and registers are retained. The data
retention mode is released by first raising the supply
voltage Voo to its operating level. The chip will now be in
the STOP mode which may be released as described
above.
4-227
NEe
pPD75328/75P328
Table 8. Operation ofthe Standby Modes
Operating State
STOP Mode
Mode setting instruction
STOP instruction
HALT instruction
Clock oscillator
Only the main system clock oscillator is
stopped.
Only CPU clock q, is stopped. Main and
subsystem oscillators continue to operate.
Basic interval timer
Operation stops
Operation continues (IROBT is set at reference
time intervals).
Serial i nterf ace
Operates only when external ~ input is
selected for serial clock.
Operational.
Timer/event counter
Operates only when TIO pin input is selected for
clock count.
Operational.
Watch timer
Operates when flIT is selected for the clock
count.
Operational.
LCD controller
Operates only when flIT is selected for LCDCL.
Operational.
External interrupts
INT1, INT2, and INT4 are allowed to operate.
Only INTO cannot operate.
All operational except INTO
CPU
Operation stops.
Operation stops
Release signal
Enabled interrupt request signal (except INTO)
with Interrupt enable flag or RESET input.
Enabled interrupt request signal (except INTO)
with interrupt enable flag or RESET input.
HALT mode
RESET
Table 9 shows the status of the chip, after the RESET
signal is applied.
Table 9. Chip Status after RESET
Function
RESET during Standby Mode
Program counter (PC)
Contents of the low· order five bits of program memory address OOOOH are loaded
into program counter PC12-PC8; contents of address 0001 H are loaded into PC7 -PCO.
PSW - carry flag (Cy)
Held
Unknown
PSW - skip flag (SKO-Si<2)
o
o
PSW - interrupt status flag (IS TO)
0
PSW - bank enable flag (MBE)
RESET during Operational Mode
0
Bit 7 of program memory address OOOOH sets state of MBE.
Stack pointer (SP)
Unknown
Unknown
Data memory (RAM)
Held (note 1)
Unknown
General-purpose registers (X, A, H, L, 0, E, B, C)
Held
Unknown
Bank selection register (MBS)
0
0
Basic interval timer - counter (Bn
Unknown
Unknown
Basic interval timer - mode register (BTM)
0
0
Timer/event counter - counter (TO)
0
0
Timer/event counter - modulo register (TMODO)
FFH
FFH
Timer/event counter - mode register (TMO)
0
0
Timer/event counter - TOEO, TOUT F/F
0, 0
0, 0
Watch timer mode register (WM)
0
0
Serial Interface - shift register (SIO)
Held
Unknown
Serial interface - operation mode register (CSIM)
0
0
Serial interface - SBI control register (SBIC)
0
0
4-228
t\fEC
Table 9.
IIPD75328/75P328
Chip Status after RESET (cont)
Function
RESET during Standby Mode
RESET during O~ratlonal Mode
Serial Interface - slave address register (SVA)
Held
Unknown
Clock generator, clock output circuit -processor
clock control register (PCC)
o
o
Clock generator, clock output circuit -system
clock control register (SCC)
o
o
Clock generator, clock output circult-clock output
mode register (CLOM)
o
o
LCD controller - display mode register (LCDM)
o
o
o
o
LCD controller - display control register. (LCD C)
NO converter - mode register (ADM), EOC
04H (EOC = 1)
04H (EOC = 1)
NO converter - SA register
7FH
7FH
Interrupt function - lriterrupi request flags
ORQXXX)
Reset to 0
Reset to 0
Interrupt function - Interrupt enable flags OEXXX)
o
o
o
o
Interrupt function -INTO, INT1, and INT2 mode
registers OMO, IM1, and 1M2)
0,0,0
0,0,0
Digital ports - output buffer
Off
Off
Digital ports - output latch
Cleared to zero
Cleared to zero
Digital ports -.1/0 mode registers
(PMGA, PMGB, PMGC)
o
o
Digital ports ~ Pull-up resistor specification
register (POGA, POGB)
o
o
Pin states - POo-P03' P1o-P13' P2o-P23, P30-P33,
P60-P63, P7o-P73, PSo-P83
Input
Input
Pin states - P40-P43, P50-P53
Internal pul~up resistors (high leveO.
Open drain (hIgh Impedance).
Interrupt function - Interrupt master enable flag
OME)
Pin states - Sl::523' COMo-COM 3
Unknown
Pin states - BIAS
Internal resistor ladder Oow leveO.
External resistor ladder (high impedance).
BIt sequential buffer (BSBO-BSB3)
Held
II
Unknown
Unknown
Notes:
(1) Data In addresses OFSH-oFDH of the data memory Is undefined
when the RESET signal is Input.
4-229
NEe
IIPD75328/75P328
OTP PROM (Program Memory Write and Verify)
The ~PD75P328contain 8064 x eight-bits of one-time
programmable (OTP) program memory. The OTP is programmed by the pins listed in table 10. During OTP
programming, addresses are incremented by applying
clock pulses to the X1 input.
Program Memory WriteNerify. The· pro,gram memory
write/verify procedure follows (high speed write is enabled):
( 1) Connect unused pins to Vss through a pull-down
resistor. Hold X1 low.
( 2) Supply 5 V to VDD and Vpp.
( 3) Wait for 10 ~s.
Table 10. OTP Access
Pin
Function
Vpp
OTP programming voltage pin (normally Voo)
X1
Address increment clock input during
programming.
MDo-MDa
Mode selection during OTP programming
P4o-P4a
4-bit data 1/0 pins during OTP programming, loworder four bits
P50-P53
4-bit data I/O pins during OTP programming, highorder four bits
Voo
Supply voltage pin: 5 V ± 10% during normal
operation; 6 V during OTP programming.
( 4) Select the program memory address clear mode.
( 5) Change the voltage on VDD to 6 V and on Vpp to
12.5 V.
( 6) Select the program inhibit mode.
(7) Write data in the 1 ms write mode.
( 8) Select the program inhibit mode.
( 9) Select the verify mode. If data is written correctly,
proceed to step 10; if data is not written correctly,
repeat steps 7-9.
Notes:
(10) Perform one additional write.
(1) During OTP programming: Connect all unused pins (except XT2)
to Vss through a pull-down resistor. Do not connect the XT2 pin.
(11) Select the program inhibit mode.
(2) The IlPD75PS28 has no erasure window. The program memory
data cannot be erased with ultraviolet light.
(12) Increment the program memory address by one by
inputting four pulses to X1.
(13) Repeat steps 7-12 until the end address occurs.
OTP Operation Mode
(14) Select the program memory address clear mode.
The ~PD75P328 operates in the program memory write/
verify mode when + 6 V is applied to VDD and 12.5 V to
Vpp. Mode pins MDo-MDs select the operation modes
shown in Table 11.
Table 11. OTP Operation Mode Selection
vpp
= +12.5 V;
MDo
voo
= +6 V
MD1
MD2
MDa
H
L
H
L
Operating Mode
Program memory address clear
L
H
H
H
Program memory write
L
L
H
H
Program memory verify
H
X
H
H
Program inhibit
Notes:
(1) X
=
4-230
Lor H.
(15) Change the voltage on VDD and Vpp to 5 V.
(16) Turn off power.
The timing for steps 2-12 is shown in figure 19.
NEe
Figure 19.
IIPD75328/75P328
Timing Diagram for Program Memory Writel'lerify
""'~C------X Repetitions-----+l~1
j.---write--ooj~\"'--Verify-->t..--.-Additional Write-.....-t-j•.-----Address Increment---~.I
Vpp
VDD
c-------------------Vpp - - - r - - - - - - - - - - - - - - - : i / ; f VDD---'
r-----------------;£r-c- - - - - - - - - - - - - - - - - - - -
VDD+1 - - VDD---'
X1
p;~~~;i~ ------«
Input Data
>-<
Output Data
~~
Input Data
)>-------------
II
MDO
(P30)
rc
MD3~
(P33)
49NR-G64B
Program Memory Read. The program memory read
procedure follows:
( 7) Select the verify mode. When four clock pulses are
input to X1, one address of data is output.
( 1) Connect unused pins to Vss through a pull-down
resistor. Hold X1 low.
( 8) Select the program inhibit mode.
( 2) Supply 5 V to Voo and Vpp.
( 3) Wait for 10 p.s.
( 4) Select the program memory address clear mode.
( 9) Select the program memory address clear mode.
(10) Change the voltage on Voo and Vpp to 5 V.
(11) Turn off power.
The timing for steps 2-9 is shown in figure 20.
( 5) Change the voltage on Voo to 6 V and on Vpp to
12.5 V.
( 6) Select the program inhibit mode.
4-231
t-{EC
pPD75328/75P328
Figure 20.
Vpp
Timing Diagram for Program Memory Read
Vpp--,T--------------------------------------------------------~Jf
VDD
---I
~D+t--T--------------------------------------------------------~£~C--------
VDD VDD-./
rlL
Xt
~~~~----------~(~______O_u_tP_ut_D_a~______~)(~______O_u_tP_ut_Da_ta______~)(
MOO)
(P3o)
:
)-
\~--------------~f~
MDt
(
P3
t)
-------------------------------------------------------------,JJ.,F_'-------
MD2/r---------------------------------------------------------~£F-C-------(P32)
~L
>
49NR-665B
INSTRUCTIONS
Instruction Set
The I4PD75328 provides a powerful set of 103 instructions.
The instruction set contains the following features:
Instruction Timing
The minimum instruction execution time is 0.95 I4S with
a crystal frequency of 4.19 MHz. The processor clock
control (PCG) register is used to program the CPU
instruction execution time to 0.95 p.s, 1.91I4S, or 15.314S
(assuming a 4.19 MHz crystal). Power consumption can
be reduced by lowering the CPU speed.
4-232
•
•
•
•
•
•
•
Versatile bit manipulation instructions
Four-bit manipulation instructions
Eight-bit data transfer instructions
GETI instruction to reduce program size
Vertically stored and base correction instructions
Table reference instructions
One-byte relative branch instructions
NEe
pPD75328/75P328
Organization. Tables 12-15 define the operands, symbols, and addressing symbols found in table 16. Table 16
lists the instruction set encodings by instruction groups.
Clock Cycles. One machine cycle equals one CPU clock
cycle f/l. The PCC selects one of four available CPU cycle
speeds.
Skip Cycles. S equals the number of extra machine
cycles required for skip operation when executing a skip
instruction:
• S = 0, No skip
• S = 1, one- or two-byte instruction or G ETI instruction is skipped
• S = 2, three-byte instruction is skipped
(SR !addr, CALL !addr instruction)
Table 12. Operand Formats and Values
Format
Values
reg
X,A,B,C,D,E,H,L
regl
X,B,C,D,E,H,L
rp
XA,BC,DE,HL
rpl
BC, DE, HL
rp2
BC,DE
rpa
HL, DE, DL
rpal
DE, DL
n4
4-bit immediate data or label
nS
S-bit immediate data or label
mem (Note I)
S-bit immediate data or label
Table 13. Instruction Set Symbol Identifiers
Symbol
Description
A
A register (4-bit accumulator)
B
B register (4-bit accumulator)
C
C register (4-bit accumulator)
D
D register (4-bit accumulator)
E
E register (4-bit accumulator)
H
H register (4-bit accumulator)
L
L register (4-bit accumulator)
x
X register (4-bit accumulator)
XA
XA register pair (S-bit accumulator)
BC
BC register pair
DE
DE register pair
HL
HL register pair
DL
D L register pair
PC
Program counter
SP
Stack pointer
Cy
Carry flag (bit accumulator)
PSW
Program status word
MBE
Memory bank enable flag
PORTn
Port O-S
IME
Interrupt master enable flag
IExxx
Interrupt' enable flag
MBS
Memory bank selection register
PCC
II
Processor clock control register
Separation between address and bit
bit
2-bit immediate data or label
frnem
FBOH-FBFH, FFOH-FFFH immediate data or label
pmem
FCOH-FFFH immediate data or label
addr
0000H-177FH immediate data or label
caddr
12-bit immediate data or label
faddr
II-bit immediate data or label
taddr
20H-7EH immediate data (bit 0
PORTn
PORT O-S
IExxx
IEBT, IECSI, IETO, lEO, lEI, IE2, IE4, lEW
MBn
MBO, MBI, MBI5
(xx)
Contents addressed by xx
xxH
Hexadecimal data
= 0) or label
Notes:
(I) Only the even memory address is used in S-bit data processing.
4-233
NEe
pPD75328/75P328
Table 14. Instruction Code Symbols
Table 15. Addressing Symbols
reg,reg1
Symbol
Description
R2
R1
Ro
Register
*1
MB=MBE/\ MBS (MBS=O, 1, 15)
0
0
0
A
reg
*2
MB=O
0
0
X
reg,reg1
*3
L
reg,reg1
H
reg,reg1
MBE=O: MB=O (00H-7FH)
MB=15 (80H-FFH)
MBE=l: MB=MBS (MBS=O, 1, 15)
E
reg,reg1
*4
MB = 15, fmem = FBOH-FBFH,
FFOH-FFFH
D
reg,reg1
*5
MB=15, pmem=FCOH-FFFH
C
reg,reg1
*6
addr=000H-1F7FH
B
reg,reg1
*7
addr= (Current PC) -15 to (Current PC) -1
(Current PC) +2 to (Current PC) + 16
*8
caddr=OOOOH-OFFFH (PC12=0) or
1000H-1F7FH (PC12= 1)
@rpa
*9
faddr=0000H-07FFH
@DE
@rpa,@rpa1
*10
taddr= 0020H-007FH
@DL
@rpa,@rpa1
Notes:
0
0
0
0
0
0
0
@rpa,@rpa1
Q2
Q1
Qo
Addressing
0
0
1
@HL
0
0
0
Address
Area
Data
memory
Program
memory
(1) MB = Memory bank that can be addressed.
Register Pairs
(2) For symbol *2 (MB = 0, regardless of the status of MBE and
MBS).
P2
P1
reg-pair
0
0
XA
rp
HL
rp,rp1
DE
rp,rp1,rp2
BC
rp,rp1,rp2
0
0
IE-xxx
Ns
N2
N1
No
IExxx
0
0
0
0
IEBT
0
0
0
lEW
0
IETO
0
0
0
0
0
IECSI
0
0
0
4-234
lEO
IE2
0
0
IE4
0
IE1
(3) For symbol *4 and *5 (MB = 15, regardless of the status of MBE
and MBS).
(4) For symbol *6 through *10 indicates each addressable area.
(5) The addressing symbols are used in the "Addressing Area"
column of the instruction set encodings. See table 16.
WEe
Table 16.
Mnemonic
pPD75328/75P328
Instruction Set Encodings
Operand
Operation
Bytes
Machine
Cycles
2
2
Addressing
Area
Skip Conditions
Data Transfers
MOV
String A
A, #n4
A-n4
regl, #n4
regl - n4
XA, #n8
XA-n8
2
2
String A
HL, #n8
HL- n8
2
2
String B
rp2, #n8
rp2 - n8
2
2
A,@HL
A- (HL)
*1
A, @rpal
A - (rpal)
*2
XA,@HL
XA- (HL)
@HL,A
(HL) -A
@HL,XA
2
2
(HL) -XA
2
2
*1
A,mem
A- (mem)
2
2
*3
XA,mem
XA- (mem)
2
2
*3
mem,A
(mem) -A
2
2
*3
mem,XA
*3
*1
*1
(mem) -XA
2
2
A, regl
A - regl
2
2
XA, rp
XA-rp
2
2
regl, A
regl - A
2
2
2
2
rpl, XA
rpl -XA
A,@HL
A"" (HL)
A, @rpal
A"" (rpal)
XA,@HL
XA"" (HL)
2
2
*1
A,mem
A <-+ (mem)
2
2
*3
XA,mem
XA .... (mem)
2
2
*3
A, regl
A"" (regl)
XA, rp
XA .... rp
XA,@PCDE
XA -(PC12-8+DE)ROM
3
XA,@PCXA
XA - (PC12-8+XA)ROM
3
A, #n4
A-A+n4
I+S
A,@HL
A-A+(HL)
1+S
ADDC
A,@HL
A, CY -A+ (HL) +CY
SUBS
A,@HL
A-A-(HL)
SUBC
A,@HL
A, CY - A+(HL)-CY
AND
A, #n4
A - AA n4
A,@HL
A-AA(HL)
A, #n4
A-AVn4
XCH
MOVT
II
*1
*2
2
2
Arithmetic
ADDS
OR
XOR
A,@HL
A-A V (HL)
A, #n4
A - A-V-n4
A,@HL
A - A-V-(HL)
Carry
*1
Carry
*1
I+S
*1
Borrow
*1
2
2
2
2
2
2
*1
*1
*1
4-235
NEe
pPD7532sn5P32S
Table lB. Instruction Set Encodings (cont)
Mnemonic
Operand
Operation
Bytes
Machine
Cycles
2
2
Addressing
Area
Skip Conditions
Accumulator
RORC
A
CV -
NOT
A
A-A
Ao. Aa -
CY, An-l - An
Increme(lt/DBCfBmBnt
INCS
DECS
reg
reg - reg+1
@HL
(HL) - (HL)+l
2
2+S
*1
(HL) = 0
mem
(mem) - (mem) +1
2
2+S
*3
(mem) = 0
reg
reg - reg-1
reg. #n4
Skip if reg = n4
2
2+S
@HL.#n4
Skip if (HLJ = n4
2
2+S
*1
(HL) = n4
A.@HL
Skip If A = (HLJ
1+S
*1
A = (HLJ
A. reg
Skip if A = reg
CV-1
1+S
.reg = 0
1+S
reg = FH
Comparison
SKE
2
reg = n4
2+S
A = reg
1+S
CY = 1
Flags
SET1
CV
CLR1
CV
CV-O
SKT
CV
Skip ifCV = 1
NOT1
CV
CV-C'Y
Memory Bits
SET1
CLR1
SKT
SKF
SKTCLR
4-236
mem.bit
(mem.bit) -1
2
2
*3
fmem.bit
(fmem.bit) - 1
2
2
*4
pmem.@L
(pmem7_2+ - La-2.bit (Ll-oI) - 1
2
2
*5
@H+mem.blt
(H+mem~.bit)
2
2
*1
-1
mem.blt
(mem.bit) -0
2
2
*3
fmem.bit
(fmem.blt) - 0
2
2
*4
pmem.@L
(pmem7_2+La-2·bit (Ll-ol) - 0
2
2
*5
@H+mem.bit
(H+mema-o.bit) - 0
2
2
*1
mem;bit
Skip if (mem.blt) = 1
2
2+S
*3
(mem.blt) =1
fmem.bit
Skip if (fmem.bit) = 1
2
2+S
*4
(fmem.bit) = 1
pmem.@L
Skip if (pmem7_2 + La-2.bit (Ll -ol) = 1
2
2+S
*5
(pmem.@LJ = 1
@H+mem.blt
Skip if (H+mem3'1l.bit) = 1
2
2+S
*1
(@H+mem.blt) =1
mem.blt
Skip if (mem.bit) = 0
2
2+S
*3
(mem.bit) =0
fmem.bit
Skip if (fmem.bit) = 0
2
2+S
*4
(fmam.blt) =0
pmem.@L
Skip if (pmem7-2 + La-2.blt (Ll-ol) = 0
2
2+S
*5
(pmem.@L) =0
@H+mem.blt
Skip if (H+mema-o.bit) = 0
2
2+S
*1
(@H+mem.blt) =0
fmam.blt
Skip If (fmem.bit) = 1 and clear
2
2+S
*4
(fmem.blt) = 1
pmem.@L
Skip If (pmem7_2+ La-2.bit (Ll -ol) = 1
and clear
2
2+S
*5
(pmem.@LJ =1
@H+mem.blt
Skip if (H+mem~.blt) = 1 and clear
2
2+S
*1
(@H+mem.blt) =1
NEe
Table 16.
Mnemonic
pPD75328/75P328
Instruction Set Encodings (cont)
Operand
Operation
Bytes
Machine
Cycles
Addressing
Area
Skip Conditions
Memory Bits (cont)
ANDl
ORl
XORl
BR
CY, fmem.bit
CY +- CY 1\ (fmem.bit)
2
2
*4
CY,
pmem.@L
CY +- CY 1\ (pmem7_2+ L:!_2.bit (Ll-0))
2
2
*5
CY,
@H+mem.bit
CY +- CY 1\ (H+mem3_0.bit)
2
2
*1
CY, fmem.bit
CY - CY V (fmem.bit)
2
2
*4
CY,
pmem.@L
CY -CY V (pmem7_2+ L:!_2.bit (Ll-0))
2
2
*5
CY,
@H+mem.bit
CY - CY V (H + mema-o.bit)
2
2
*1
CY, fmem.bit
CY - CY¥(fmem.bit)
2
2
*4
CY,
pmem.@L
CY -CY¥(pmem7_2+L3_2·bit (Ll-0))
2
2
*5
CY,
@H+mem.bit
CY - CY¥(H+mem3_0.bit)
2
2
*1
addr
PC 12-O - addr (appropriate instructions
are selected from BR laddr, BRCB Icaddr,
and BR $addr by the assembler)
laddr
PC12-0 - addr
$addr
PC 12-0 -addr
Icaddr
PCll-O -caddrll-O
CALL
laddr
CALLF
Ifaddr
BRCB
II
*6
3
3
*6
2
*7
2
2
*8
(SP-l) - (PC7-4) , (SP-2) +-- PC3-0
(SP-3) +-- (MBE, 0, 0, PC l 2l,
(SP-4) +-- PCll-8, PC12-0 +-- addr,
SP - SP-4
3
3
*6
(SP-l) - PC7-4, (SP-2) +-- PC3-O
(SP-3) +-- (MBE, 0,0, PCl2l,
(SP-4) +-- PCll-8, SP +-- (SP-4),
PC +-(00, Al0-o)
2
2
*9
Subroutine
RET
PC11-8 - (SP). (MBE, PC1:!! - (SP+l),
PCa-o +- (SP+2), PC7-4 +-- (SP+3),
SP- (SP+4)
3
RETS
PCll-8 - (SP), (MBE, PC1:!!- (SP+l),
PC3-0 (SP+2), PC7-4 +-- (SP+3)
SP +-- SP+4, then Skip unconditionally
3+S
RETI
PCll-8 +-- (SP) , PC12 - (SP+l)
PCa-o - (SP+2), PC7-4 (SP+3)
PSWL - (SP+4), PSWH +-- (SP+6)
PUSH
POP
rp
(SP-l) (SP-2)
BS
(SP-l) - MBS, (SP-2)
rp
rp
BS
MBS
+--
+--
rp, SP
(SP+l) (SP) , SP
+--
+--
+-+--
Unconditional
3
SP-2
0, SP
+--
SP-2
2
2
2
2
SP+2
(SP+l), SP - SP+2
4-237
NEe
pPD15328n5P328
Table 16. Instruction Set Encodings (cont)
Mnemonic
Operand
Bytes
Machine
Cycles
IME-l
2
2
IExxx- 1
2
2
IME-O
2
2
IExxx - 0
2
2
Operation
Addressing
Area
Skip Conditions
Interrupt
EI
IExxx
01
IExxx
Input/Output
IN (Note 1)
OUT
(Note 1)
A, PORTn
A-
2
2
XA, PORTn
XA - PORT n +l, PORTn (n = 4,6)
2
2
PORTn, A
PORTn - A (n = 2-S)
2
2
PORTn, XA
PORT n + l , PORTn - XA (n = 4,6)
2
2
PORTn (n = O-S)
CPU Control
HALT
Set HALT Mode (PCC.2 -
1)
2
2
STOP
Set STOP Mode (PCC.3 -
1)
2
2
NOP
No Operation
Miscellaneous
SEL
MBn
MBS - n (n = 0, 1, 15)
2
GETI
taddr
When (taddrh_6 = 00;
PC12-o - (taddr)4_0 + (taddr+ 1)
3
When (taddrh_6 = 01;
(SP-4) (SP-l) (SP-2) - PC11-o
(SP-3) - (MBE, 0, 0, PC1:!!
PC12 -0 - (taddr)4-o + (taddr+l)
SP = SP-4
When (taddrh_6 = 10;
(taddr)(taddr+l)
instruction is executed
Notes:
(1) When executing an IN or OUT instruction, MBE = 0 or MBE = 1
and MBS = 15.
4-238
*10
Depends on the
referenced
instruction
t-IEC
IlPD7800 Series:
8-Bit Microcomputers
1
5-1
II
8-Bit, General·Purpose Microcomputers
Section 5
p.PD7800 Series:
8~B!t, Genera!~Purpose
P.4!crocomputers
"PD78C1X/78C1 xA/CG14/CP14
a-Bit CMOS Microcomputers
With AID Converter
5-2
5-3
NEe
NEe
IIPD78C1x/C1xA/CG14/CP14
8·Bit CMOS Microcomputers
With AID Converter
NEG Electronics Inc.
Description
The family of single-chip microcomputers covered by
this data sheet includes the following types:
pPD78C10
pPD78C11
pPD78C14
pPD78C10A
pPD78C11A
pPD78C12A
pPD78C14A
pPD78CG14
pPD78CP14
These microcomputers integrate sophisticated on-chip
peripheral functions normally provided by external
components. Their internal 16-bit ALU and data paths,
combined with a powerful instruction set and addressing, make the devices appropriate in data processing as
well as control applications.
The devices integrate a 16-bit ALU, 4K-, 8K-, or 16K-byte
ROM, 256-byte RAM, an eight channel A/D converter, a
multifunction 16-bit timer/event counter, two S-bit timers, a USART, and two zero-cross detect inputs on a
single die, allowing their use in fast, high-end processing applications. This involves analog signal interface
and processing.
ThepPD7SC1x/C1xA/Cx14 family includes: 4K-, 8K-, and
16K-byte mask ROM devices, embedded with a custom
customer program; ROM less devices for use with up to
64K-bytes of external memory; 16K-byte piggyback
EPROM device for prototyping; 16K-byte EPROM or OTP
ROM devices for prototyping and low-volume production. The pPD7SC11A/C12A/C14A also have mask optional pullup resistors available on ports A, B, and C.
Features
o CMOS technology
- 25 mA operating current
(7SC10/C10A/C11/C11A/C12A)
- 30 mA operating current (7SC14/C14A)
o Complete single-chip microcomputer
-16-bit ALU
-4K, 8K, or 16K x S ROM
- 256-byte RAM
o 441/0 lines
o Mask optional pull up resistors
- Ports A, B, and C
-pPD7SC11A/C12A/C14A only
o Expansion capabilities
- SOS5A-like bus
- 60K-byte external memory address range
o Eight-channel, 8-bit A/D converter
- Autoscan mode
- Channel select mode
o Full-duplex USART
- Synchronous and asynchronous
o 159 instructions
-16-bit arithmetic, multiply, and divide
- HALT and STOP instructions
o O.S-ps instruction cycle time (15-MHz operation)
o Prioritized interrupt structure
- Three external
- Eight internal
II
o Standby function
o On-chip clock generator
Ordering Information
Part Number
Package
ROM
JIPD78C10CW
64-pln plastic SDIP
ROMless
JIPD78C10G-36
64-pln plastic QUIP
JIPD78C10G-1 B
64-pin plastic QFP
(Resin thickness
2.05 mm)
JIPD78C10GF-3BE
64-pin plastic QFP
(Resin thickness
2.7mm)
JIPD78C10L
68-pin PLCC
JIPD78C10ACW
64-pin plastic SDIP
JIPD78C10AGF-3BE
64-pin plastic QFP
JIPD78C10AGQ-36
64-pin plastic QUIP
JIPD78C10AL
68-pin PLCC
JIPD78C11 CW-xxx
64-pin plastic SDIP
JIPD78C11 G-xxx-36
64-pin plastic QUIP
JIPD78C11 G-xxx-1 B
64-pin plastic QFP
(Resin thickness
2.05 mm)
JIPD78C11 GF-xxx-3BE
64-pln plastic QFP
(Resin thickness
2.7mm)
JIPD78C11 L-xxx
68-pin PLCC
ROMless
4Kmask ROM
o Two zero-cross detect inputs
o Two 8-bit timers
50248
5-3
NEe
pPD78C1x/C1xA/CG14/CP14
Pin Configurations
Ordering Information (cont)
Part Number
Package
ROM
IIPD78C11 ACW-xxx
64-pin plastic SDIP
4Kmask ROM
IIPD78C11 AGF-xxx-SBE
64-pin plastic QFP
IIPD78C11 AGQ-xxx-S6
64-f)ln plastic QUIP
IIPD78C11 AL-xxx
68-pin PLCC
IIPD78C12ACW-xxx
64-pin plastic SDIP
IIPD78C12AGF-xxx-SBE
64-pin plastic QFP
8K mask ROM
IIPD78C12AG-xxx-S6
64-pin plastic QUIP
IIPD78C12AL-xxx
68-pin PLCC
IIPD78C14CW-xxx
64-pin plastic SDIP
IIPD78C14G-xxx-36
64-pin plastic QUIP
IIPD78C14G-xxx-1 B
64-pin plastic QFP
(Resin thickness
2.05 mm)
IIPD78C14GF-xxx-SBE
64-pin plastic QFP
(Resin thickness
2.7mm)
IIPD78C14L-xxx
68-pln PLCC
IIPD78C14AG-xxx-AB8
64-pin plastic QFP
(Interpin pitch
0.8mm)
16K mask
ROM
JlPD78CG14E
64-pin ceramic
piggyback QUIP
4/8/16K
piggyback
EPROM
IIPD78CP14CW
64-pln plastic SDIP
16KOTP ROM
IIPD78CP14G-S6
64-pin plastic QUIP
IIPD78CP14GF-SBE
64-pin plastic QFP
IIPD78CP14L
68-pin PLCC
IIPD78CP14DW
64-pin ceramic SDIP
with window
IIPD78CP14R
64-pln ceramic QUIP
with window
16K mask
ROM
16KLN
EPROM
64-Pin QUIP or SDIP (plastic or Ceramic)
PAo
PA1
PA2
PAs
PA4
PAS
PAs
PA7
P80
P81
PB2
PBs
PB4
PBs
PBS
PB7
PCOfTxD
PC1/RxD
PC2/SCK
PCsfTviNr2
PC4fTO
PCS/CI
pcs/GOo
PC7/C01
NMI
INT1
MODE1
RESET
MODEO
X2
X1
Vss
VDD
STOP
PD7
POe
PDs
PD4
PDa
PD2
PD1
PDQ
PF7
PFs
PFS
PF4
PFs
PF2
PF1
PFo
ALE
WR
AD
AVDD
AVAREF
AN7
ANs
ANS
AN4
ANs
AN2
AN1
ANo
AVSS
83ML-6178A
Notes:
(1) xxx indicates ROM code suffix.
5-4
t-lEC
IIPD78C1 X/C 1xA/CG 14/CP14
64-Pin Plastic QFP
;a/il ~ ~ ~ ~ ~
P03
P04
PDs
P06
P07
STOP
~!3~:o:~!Il!l!~1nl;l;gj
52
53
54
55
56
S7
32
AN4
31
AN3
30
AN2
29
ANl
26
27
ANO
Vss
Xl
AVss
VDD
PAO
56
59
26
PAl
60
24
X2
PA2
61
23
MOOEO
PA3
62
22
REsET
PA4
63
S4
21
MODEl
PAS
25
0
.....
20
(\1('1)
...
.,,«),...
·INTl
0
..... N CI) . . an
co m .............................
~ ~ ~ ~
lilff'itlf~I~~§lli~
~!CcS't:::1I.
lI.e
II.
lJ
11.11.
83ML·818OB
.5-5
II
JiPD78C1X/C1xA/CG14/CP14
fJ4-Pln Ceramic PIgg_c~ QUIP
I',',
I
PAo
PAl
PA2
PAS
PA4
PAS
PA6
PA7
PBo
PBl
PB2
.. ,
VOO
STOP
r"
s2
voo91 .....2119 "00 61
60
1
1
A1292
1
279Vss 59
1
56
A79 s
1
269A1S S7
1
56
A69.i
1
259 A6
1
PBs
PB4
PBS
PBs
PB7
PCofTxO
As9 S
1
249Ag
1
As9 7
1
229Vss 49
1
46
I'C1/RxD
A29 8
1
21 9Al0 47
1
46
A19 9
1
209CE45
1
44
A09 10
1
19 9 17
1
109 11
1
18 9 16
1
119 12
1
17
129 1S
1
16 9 14
1
6
A4g
1
pc:!!SCK
PC3IINT2
PC4fTO
PCsJCl
I'CflICOo
PC7/COI
NMI
INTI
MODEl
RESET
MODEO
X2
Xl
Vss
29
e
52
239All Sl
1
50
91 15
30 vss9 14 1591S
'- _ _ _ ..I
Sl
P07
P06
POs
P04
POs
\,
PD2
POI
PDo
PF7
PF6
PFs
PF4
PFs
PF2
PFI
PFo
ALE
WR
RD
AVOO
VAREF
AN7
AN6
ANS
AN4
ANS
AN2
ANI
ANo
AVss
8SRD-6142A
5-6
~EC
pPD78C1x/C1xA/CG14/CP14
68-PinPLCC
N
.....
'lit
('I)
0
0
N
.....
I~
..
O<~«« en D.. a.. a.. Il. D.. a.. _
'lit
fD
C')
~
CD
PA7
10
PBO
11
PB1
CO ..... CO
Il)
fD
Il)
'lit
CI')
C\I
~fD~~~fa~
u;
60
0
P01
59
PDQ
12
58
PF7
PB2
13
57
PF6
PB3
14
56
PF5
PB4
15
55
PF4
PB5
16
54
PF3
PB6
17
53
PF2
PB7
18
52
PF1
PCo/TxO
19
51
PFO
PC1/RxO
20
50
ALE
WR
PC2iSCK
21
49
PCafTIIINT2
22
48
RO
IC
23
47
PC,VrO
24
46
AVOO
IC
PCstCI
25
26
45
PCs/COo
44
~
re
~
g
~ ~ ~ ~ ~ ~ ~ ~ ~ ~
- -It;;
WXX
0
'" Sl~ !zw
-§~§
~
gj
;
II
VAREF
AN7
~ ~
In!i!
In
Z
- Z
'" Z
'" Z
... Z
'"
!@
>;::«««<
83Ml..s1799
5-7
fttfEC
pPD78C1X/C1xA/CG14/CP14
Symbol
Pin Identification
Function
Pin Identification
"PD78CG14E Upper EPROM Pins
ALE
Address latch enable output
Symbol
Pin
ANO-AN7
AID converter analog inputs 0-7
Ao-A13
2-10,21
23-26
INT1
Interrupt request 1 input
MODEO
Mode 0 Input; 1/0 memory output
MODE1
Mode 1 input
NMI
Nonmaskable interrupt input
PAo-PA7
Port A 110
PBo-PB7
Port B 110
PCoITxD
Port C 110 line 0; transmit data output
20
Chip enable signal for 27C256/27C256A; highlevel output (during STOP or HALl), otherwise,
low-level output
10-17
11-13
15-19
8-bit input of data read from 27C256/27C256A
Same potential as lower Voo pin; Vee power
supply line (Vpp) for 27C256/27C256A
Voo
Voo
28
Same potential as lower Voo pin; Vee power
supply line {Vecl for 27C256/27C256A
Port C 110 line 2; serial clock 110
Vss
14
Same potential as lower Vss pin connected to
the 27C256/27C256A GND pin
Port C 110 line 3; timer input; interrupt request 2
input
Vss
22
Same potential as lower Vss pin; ()E signal
(always lOw) input to 27C256/27C256A
Vss
27
Same potential as lower Vss pin; A14 signal
(always low) input to 27C256/27C256A
PC4fTO
Port C 110 line 4; timer output
PCs/CI
Port C 110 line 5; counter input
Port ClIO lines 6, 7; counter outputs 0, 1
PDo-PD7
Port D 110; expansion memory address, data
bus (bits ADo-AD7)
PFo-PF7
Port F 110; expansion memory address,
(bits ABa-AB1sl
Read strobe output
Reset input
Stop mode control input
AID converter reference voltage
WR
Write strobe output
X1, X2
Crystal connections 1, 2
AVoo
AVss
AID converter power supply voltage
AID converter power supply ground
Voo
5 V power supply
Vss
Ground
IC
Internal connection
5-8
14-bit program counter (PCO-PC1:V output used
as 27C256/27C256A address signals
~
Port C 110 line 1; receive data input
PCalTIIINT2
Function
NEe
IIPD78C1x/C1xA/CG14/CP14
PIN FUNCTIONS
PAo·PA7 (Port A)
~LE
Port A is an 8-bit three-state port. Each bit is independently programmable as either input or output. Reset
makes all lines of port A inputs.' Mask ·O'ptional pullup
resistors are available on the "PD78C11A/C12A/C14A.
(Address Latch Enable)
The ALE output is used to latch the address of PDQ-PD7
into an external latch.
ANO·AN7 (Analog Inputs)
These are the eight analog inputs to the A/D converter.
AN4-AN7 can also be used as a digital input for falling
edge detection.
PBO·PB7' (Port' B)
CI (Counter Input)
Port B Is an 8-biUhree-state port; Each bit ialndependently programmable as either input or output. Reset
makes all lines of port B Inputs. Mask optional puUup
resistors are available' on the "PD18C11A/C12A/C14A.
External pulse input to timer/event counter.
PCO·PC7 (Port C)
COo, C01 (Counter Outputs)
Port C is an 8-bit three-state port. Each bit is independently programmable as either input or output. Alternatively, the lines of port C can be used as control lines for
the USART, interrupts, and timer. Reset makes all lines ?f
port C inputs. Mask optional puUup resistors are ayallable on the "PD78C11A/C12A/C14A.
Programmable waveform outputs based on timer/event
counter.
INT1 (Interrupt Request 1)
INT1 is a rising edge triggered, maskable interrupt input.
It is also an ac-input, zero-cross detection terminal.
PDo·PD7 (Port D)
If the optional pullup resistor is specified for this pin on
the "PD78C11A/C12A/C14A, the zero-cross detection
circuitry will not function.
Port 0 is an 8-bit three-state port. It can be programmed
as either 8 bits of input or 8 bits of outP\Jt. When external
expansion memory is used, port 0 acts as the multiplexed address/data bus.
INT2 (Interrupt Request 2)
INT2 is a falling edge triggered, maskable interrupt
input. It is also an ac-input, zero-cross detection terminal.
MODEO, MODE1 (Mode 0, 1)
The MODEO and MODE1 inputs select the amount of
external memory. MODEO outputs the 10 signal, and
MODE1 outputs the M1 signal. An external pull up resistor to Voo is required if the input is to be a logic high.
The value of this pull up resistor, R, is dependent on tcyc
and is calculated as follows: R in KO is 4 s R s 0.4 tcyc
where tCYC is in ns units.
NMI (Nonmaskable Interrupt)
PFo·PF7 (Port F)
Port F is an 8-bit three-state port. Each bit is independently programmable as either input or output. When
external expansion memory is used, port F outputs the
high-order address bits.
RD (Read Strobe)
The three-state RD output goes low to gate data from
external devices onto the data bus. RD goes high during
reset.
RESET (Reset)
When the Schmitt-triggered RESET input is brought low,
it initializes the device.
Falling edge, Schmitt triggered nonmaskable interrupt
input.
5-9
t\fEC
pPD78C1x/C1xA/CG14/CP14
RxD (Receive Data)
WR (Write Strobe)
Serial data input terminal.
The three~state \A/R output goes lov; to indicate that the
SCK (Serial Clock)
data bus holds valid data. It is a strobe signal for
external memory or I/O write operations. WR goes high
during reset.
Output for the serial clock when internal clock is used.
Input for serial clock when external clock is used.
STOP (STOP Mode Control Input)
A low-level input on STOP (Schmitt-triggered input)
stops the system clock oscillator.
X1, X2 (Crystal Connections)
X1 and X2 are the system clock crystal oscillator terminals. X1 is the input for an external clock.
AVOD (AID Converter Power)
TI (Timer Input)
This is the power supply voltage for the A/D converter.
Timer input terminal.
AVss (AID Converter Power Ground)
TO (Timer Output)
AVss is the ground potentialfor the A/D converter power
supply.
The output of· TO is a square wave with a frequency
determined by the timer/counter.
VOO (Power Supply)
TxD (Transmit Data)
Voo is the +5-volt power supply.
Serial data output terminal.
Vss (Ground)
VARE F
(AID Converter Reference)
vAREF sets the upper limit for the A/D conversion range.
5-10
Ground potential.
NEe
pPD78C1X/C1xA/CG14/CP14
Block Diagram
X1
Clock
X2
Generator
8
12
PC 1ITxD - - - - I
PC1IRxO---+\
PC2ISCK_--+\
1--:~~+-_C=-:--I}Ea~
H
NMi---+\
INT1---+\
L
1-=-+-::-'; =:
EA'
AN4-AN7
}
Program
Memory
Data
Memory
[256-byte]
.~.
~
TVINT2
~
II
..
PCSICIPC61C00+
PC7IC01+
t:
~
8
.
PB7-PBo
Insl
AN7-ANQ
Decoder
VAREF---+\
~~---.
A V s s - L . . -_ _-'
16
ReadlWrite
Note:
1. On-Chip ROM
78C10IC10A
78C11IC11A
78C12A
78C141C14A
78CP14
Control I
System
Control
I I I i t
:0
: 4096 Bytes
AD
WR
: 8192 Bytes
: 16384 Bytes
: 16384 Bytes EPROM/OTP ROM
ALE
MOOE1 MOOEO
pd~Cor I
RESET
t t
VOo
\ICc
(STOP)
(VOO)
Vss
83A~B
FUNCTIONAL DESCRIPTION
Memory Map
The p.PD7BC1x/C1xA/Cx14 family can directly address
up to 64K bytes of memory. Except for the on-chip ROM
(or PROM) and RAM (FFOOH-FFFFH), any memory location can be used as ROM or RAM. The memory map,
figure 1, defines the 0 to 64K-byte memory space for the
p.PD7BC1X/C1xA/Cx14 family.
The p.PD7BCG14 and the "PD7BCP14 can be programmed in software to have 4K, BK, or 16K bytes of
internal· program memory. This programming is transparent to the ROM-based device,allowing easy transfer
of code to a ROM-based device.
Input/Output
The p.PD7BC1 x/C1 xA/Cx14 family has 44 digital 1/0 lines,
five B-bit ports (ports A, B, C, D, F), and four digital input
lines (AN4-AN7).
5-11
ftfEC
pPD78C1 X/C 1xA/CG 14/CP14
Analog Input Lines. ANO-AN7 are configured as analog
input lines for the on-chip A/D converter. Lines AN4-AN7
can be used as digital input lines for falling edge detec..
tion.
Port A, Port S, Port C, Port F. Each line of these ports
can be individually programmed as an input or output.
When used as I/O ports, all have latched outputs and
high-impedance inputs. On the ~PD78C11 A/C12A/C14A,
mask optional pullup resistors are available for ports A,
B, and C.
Port D. Port D can be programmed as a byte input or a
byte output.
Control Lines. Under software control, each line of port
C can be configured individually as a control line for the
serial interface, timer, and timer/counter or as an VO
port.
Memory ~xpansion. In addition to the single"chip operation mode, the ~PD78C1x/C1xA/Cx14 family has four
memory expansion modes. Under soft"l'are control, port
D can provide a multiplexed low-order address and data
bus; port F can provide a high-order address bus. Table
1 shows the relation between memory expansion modes
and the pin configurations of port 0 ij.nd port F.
Table 1. Memory E1!Pllllllion Modes and Port
ConfiguratIons
.
Port Configuration
Memory Expan$lon
Port
None
PortO
. I!O port
Port F
110 port
256 bytes
Port 0
Multiplexed address!
data bus
Port F
I!O port
4K bytes
PortO
Multiplexed address!
data bus
Port F (PFo·PFa)
Address bus
Port F (PF4-PF7)
I/O port
Port 0
Multiplexed address/
data bus
16K bytes
60K bytes
5-12
Port F (PFo-PFsl
Address bus
Port F (PFs-PF7)
I/O port
Port 0
Multiplexed address/
data bus
Port F
Address bus
Timers
The two S-bit timers may be programmed independently
or cascaded as a 16-bit timer. The timer can be software
set to increment at intervals of four machine cycles
(0.8 ~s at 15-MHz operation) or 128 machine cycles
(25.6 ~s at 15-MHz), or to increment on receipt of a pulse
at TI. Figure 2 is the block diagram for the timer.
Timer/Event Counter
The 16-bit multifunctional timer/event counter (figure 3)
can.be used for the following operations:
•
•
•
'.
•
Interval timer
External event counter
Frequency measurement
Pulse width measurement
Programmable frequency and duty cycle waveform
output
• Single pulse output
a-Bit AID Converter
• 8 input channels
• 4 conversion result registers
• 2 powerful operation modes
- Autoscan mode
- Channel select mode
• Successive approximation technique
• Absolute accuracy: 0.6% FSR ± 1/2 LSB
• Conversion range: 0 to 5 V
• Conversion time: 38.4 ~s
• Interrupt generation
NEe
pPD78C1x/C1xA/CG14/CP14
Figure 1. Memory Map
o
Internal Program Memory
4,096 Bytes: 78C11/C11A
8192 Bytes: 78C12A
16,384 Bytes: 78C141C14A1
CG141CP14
(External Memory on 78C10/C10A)
0
ReseVStandby Release
4
IROO
8
IR01
10H
IR02
18H
IR03
20H
IR04
28H
lAOS
OFFFH
1000H
External
Memory
61,184 Bytes: 78C11/C11A
57,088 Bytes: 78C12A
48,896 Bytes: 78C141C14A1
CG14/CP14
FEFFH
FFOOH
Internal RAM
256 Bytes x8
FFFFH
~"I
SoftlNT
SOH
LowADDR
81H
HlghADDR
82H
LowADDR
83H
HighADDR
I
C8I1Table
BEH
LowADDR
BFH
COH
HlghADDR
}t=31
User's Area
83RD·6944B
5-13
NEe
pPD78C1X/C1xA/CG14/CP14
Figure 2.
Timer Block Diagram
. s - - - -.....-I
...----1
----,.
r:;:--------,I
TlmerO
~2----·1
To TlmeriEvent Counter
or Serial Clock Source
_~I
INITO
.s
B12
8384
I xtaI
Ixtal x .1/3
Ixtal x 1/12
Ixtal x 1/384
Input crysrallrequency
83RD.fI3688
5-14
NEe
pPD78C1x/C1xA/CG14/CP14
Figure 3. Block Diagram for the Timer!Event Counter
Internal Bus
612--1
PCstCI
TO Signal
from Interval
Timer FtF
Output
Control
Clock
Select
'-_ _ _ _--1
CP ,
CPo
INTEO
Interrupt
Control
INTEl
INTEIN
612='
1112
xtal x
'xtal: Input Crystal 'requency
83RD-s635B
Analog/Digital Converter
The jlPD78C1x/C1xA/Cx14 family features an 8-bit, highspeed, high accuracy A/D converter..The A/D converter
is made up of a 256-resistor ladder and a successive
approximation register (SAR). There are four conversion
result registers (CRO-CR3).
The eight-channel analog input may be operated in
either of two modes. In the select mode, the conversion
value of one analog input is sequentially stored in CROCR3. In the scan mode, either the upper four channels or
the lower four channels may be specified. Then those
four channels will be consecutively selected and the
conversion results stored sequentially in the four conversion result registers.
Figure 4 is the block diagram for the A/D converter. To
stop the operation of the A/D converter and thus reduce
power consumption, set VARE F = 0 V.
Interrupt Structure
There are 12 interrupt sources in the jlPD78C1x/C1xA/
Cx14 family of chips. Three are external interrupts and
nine are internal. Table 2 shows 11 interrupt sources
divided into seven priority levels where IROO is the
highest and IR06 is the lowest. See figure 5.
5-15
II
NEC
pPD78C1X1C1xA/CG14/CP14
Figure 4. AID Converter Block Diagram
AVC~------------~
AVSS------------,
VAREF-----------,
ANO -------I
AN 1 -------I
AN2 - - - - - - I
AN3 -------I
AN4 -----1ri
ANS ---.-1H
AN6 - ......+-1---1
AN7-P++-IH
Internal Bus
83RD-6638A
Figure 5. Interrupt Structure Block Diagram
NMI-INTTO-INTT1-INT1-INT2-INTEO-INTE1-INTEIN-INTAO-INTSR-INTST--
OV'---'--+ER-SB _ _
INTFNMI
Test
Control
• Skip Control
TFRequest
Register
Interrupt
Generation
Enable
Priority
Control
EI
S
01
R
~TF
Test
Flag
Register
INTFNMI--
AN4-AN7¢
Interrupt
Address
SOFTI-+-
5-16
Q
~I
83RD-6637B
NEe
pPD78C1X/C1xA/CG14/CP14
Standby Functions
The p.PD78C1xJC1xA/Cx14 family has two standby
modes: HALT and STOP. The HALT mode reduces power
consumption to 50% of normal operating requirements,
while maintaining the contents of on-chip registers,
RAM, and control status. The system clock and on-board
peripherals continue to operate, but the CPU stops
executing instructions. The HALT mode is initiated by
executing the HLT instruction. The HALT mode can be
released by any nonmasked interrupt or by RESET.
The STOP mode reduces power consumption to less
than 0.1% of normal operating requirements. There are
two STOP modes: type A and type B.
Type A is initiated by executing a STOP instruction. If
Vee is held above 2.5 V, the on-board RAM is saved. The
oscillator is stopped. The STOP mode can be released
by an input on NMI or RESET. The user can program
oscillator stabilization time up to 52.4 ms via timer 1. By
checking the standby flag (SB), the user can determine
whether the processor has been in the standby mode or
has been powered up.
Type B is initiated by inputting a low level on the STOP
input. The RAM contents are saved if Vee is held above
2.5 V. The oscillator is stopped. The STOP mode is
released by raising STOP to a high level. The oscillator
stabilization time is fixed at 52.4 ms; 52.4 ms after STOP
is raised, instruction execution will automatically begin
at location o. You can increase the stabilization time by
holding RESET low for the required time period.
Universal Serial Interface
The serial interface can operate in one of three modes:
synchronous, asynchronous, and I/O interface. The I/O
interface mode transfers data MSB first, for easy interfacing to certain NEC peripheral devices. Synchronous
and asynchronous modes transfer data LSB first. Synchronous operation offers two modes of data reception:
search and nonsearoh. In the search mode, data is
transferred one bit at a time from the serial register to the
receive buffer. This allows a software search for a sync
character. In the nonsearch mode, data transfer from the
serial register to the transmit buffer occurs eight bits at
a time. Figure 6 shows the universal serial interface block
diagram.
zero-Crossing Detector
The INT1 and INT2 terminals (used common to TI and
PC3) can detect the zero-crossing point of low-frequency
AC signals. When driven directly, these pins respond as
a normal digital input. Figure 7 shows the zero-crossing
detection circuitry.
Table 2. Interrupt Sources
Interrupt Request
Interrupt Address
Type of Interrupt
Internal/External
IROO
4
JijfiM .!Nonmaskable interrupt)
External
IRQ1
8
INTTO, INTT1 (Coincidence slynals from timers
0,1)
Internal
IRQ2
16
INT1,
IROO
24
INTEO, INTE 1 (Coincidence signals from timer/
event counter)
Internal
IRQ4
32
INTEIN (Falling signal of CI or TO Into the timer/
event counter)
Internal or External
INTAD (AID converter interrupt)
Internal
IRQ5
40
INTSR (Serial receive interrupt)
Internal
fN'i'2 (Maskable Interrupts)
External
INST (Serial send Interrupt)
IROO
96
SO FTI instruction
Internal
5-17
II
NEe
pPD78C1x/C1xA/CG14/CP14
Figure 6. Universal Serial Interface Block
Diagram
I
r
INTSR
-1>-
~
U
Receive Buffer
(RxB)
Serial Mode
Register
Transmit Buffer
(T xB)
n
~
Serial Register
(S-P)
Serial Register
(P-S)
!
1 !
i
Receive Control
~
l
r---- INTST
t---
Transmit Control
--ER
t
1
1_824
B24=lxtai x
e384
1
24
1 - Interval Timer FIF
/1384 = I xtal x 3:W
SK1,2J
Ixtai : Oscllla~on Frequency (MHz) 01 Crystal
PCo'TxD
83RD-66399
Figure 7. Zero-Crossing Detection Circuit
I
I
I~I
I
~L">.~/
II
I
II
I
Source
I
I
I.
--.-JI
Internal.
Signal
AC Input
I
--11--+0---..,....--1
1f1F
I
!rOutput
INT1
or
INT2
83RD-6643A
5-18
NEe
pPD78C1 X/C 1xA/CG 14/CP14
The zero-crossing detection capability allows you to
make the 50-60 Hz power signal the basis for system
timing and to control. voltage ph~se-sensitive devices.
To use the zero-cross detection mode, an AC signal of
1.0 to 1.8 V (peak-to-peak) and a maximum frequency of
1 kHz is coupled through an external capacitor to the
INT1 and INT2 pins.
Capacitance
TA =25'C; voo = Vss = 0 V
Max
Unit
10
pF
Output capacitance . Co
20
pF
1/0 capacitance
20
pF
Parameter
Symbol
Input capacitance
Cj
Cjo
Conditions
fc = 1 MHz;
unmeasured pins
returned to 0 V
For the INT1 pin, the internal digital state is sensed as a
the rising edge crosses the average DC level,
when it becomes a 1 and an INT1. interrupt is generated.
o until
For the INT2 pin, the state is sensed as a 1 until the
falling edge crosses the average DC level, when it
becomes a 0 and INT2 is generated.
ELECTRICAL SPECIFICATIONS
Absolut~
= 25"C
Maximum Ratings
TA
Power supply voltage, Voo
-C.5to +7.0V
Pow8r supply voltage, AVoo
AVss to Voo +0.5 V
Power supply voltage, AVSS
-0.5 to +0.5 V
Power supply voltage, VI'!' (IlPD78CP14 only)
Input voltage, VI
-C.5 to Voo +.5 V
STOP pin (IlPD78CP14 Only) .
-0.5 to '.+.1.3.5 V
-0.5 to Voo+.5 V
Output voltage, Vo
Output current, low; 10L
Each output pin
Total
4.0mA
100mA
Output current, high; 10H
Each output pin
Total
-2.0mA
-50mA
Reference input voltage,
II
-0.5 to + 13.5
V~EF
Operating temperature, TOPR
fxTAL :s 15 MHz
Storage temperature, TSTG
-0.5 to AVoo +0.3 V
-40 to +85'C
-65 to +15O'C
Exposure to Absolute Maximum Ratings for extended periods may
affect device reliability; exceeding the ratings could cause permanent
damage. The device should be operated within the limits specified
under DC and AC Characteristics.
5-19
NEe
pPD78C1x/C1xA/CG14/CP14
Oscillation Characteristics
TA = -40 to +85°C; voo = AVoo = 5 V :I: 10% (:1:5% I4PD78CP14);
VSS ;" AVss= 0 V; Voo - 0.8 V s AVoo s Voo; 3.4 V s VAREF S AVoo
Resonator
Ceramic resonator
(Note 1) or XTAL
(Note 2)
External clock
Recommended
Circuit
Parameter
(Note 3)
Oscillation frequency (fxx)
(Note 4)
Min
Xl inputfrequency (fx)
Xl input, rise, fall time (t,.,
Max
Unit
Conditions
15
MHz
AID converter not used
5.8
15
MHz
AID converter used
6
15
MHz
I4PD78CP14 only
4
15
MHz
AID converter not used
5.8
15
MHz
AID converter used
6
15
MHz
I4PD78CP14 only
0
20
ns
20
250
ns
20
167
ns
4
tr)
Xl input low- and high-level
width (!CPL, !CPH)
Typ
I4PD78CP14
Notes:
(1) Refer to the Resonator and Capacitance Requirements table for
the recommended ceramic resonators.
(2) For XTAL, the following external capacitances are recommended: Cl = C2 = 10 pF
(3) For XTAL, see the Recommended XTAL or Ceramic Resonator
Oscillation Circuit Diagram.
(4) See the following recommended external clock diagram.
When using an external crystal, it should be a parallel-resonant,
fundamental mode, "AT cur' crystal. Capacitors Cl and C2 are
required for frequency stability. The values of Cl and C2 (Cl =
C2) can be calculated from the load capacitance (CU, specified
by the crystal manufacturer:
CL =
Cl xC2 +Cs
Cl + C2
Where Cs is any stray capacitance in parallel with the crystal such as
the I4PD78Cl0, I4PD78Cll, or I4PD78C14 input capacitance between
Xl and X2.
5-20
NEe
"PD78C1x/C1xA/CG14/CP14
Recommentled XlJIlL or Ceramic Resonator
Oscillation Circuit Dillgram
Recommended Exter".' Clock Oisgram
Clock
.:>0_+----1 Xl
HCMOS
Inverters
X2
External oscillation circuit should be as close to the
Xl and X2 pins as possible.
Do not place other signal lines In the shaded area.
Resonator and Capacitance Requirements
= -40 to +85"C
TA
Manufacturer
Product Number
Murata
CSA15.0MX3
TDK
Cl, C2 (PF)
22
CSA10.0MT
30
CST10.0MT
Not required
CSA6.00MG
30
CST6.00MG
Not required
CSA12.0MT
30
CST12.DMT
Not required
.CSA15.00MXOO1
15
CSA7.37MT
30
CST7.37MT
Not required
FCR12.0MC
Not requl red
Conditions
"PD78C10, 78Cll, 78C14,
78C14A, 780014
II
Applies to all "PD78Clx1C.1xAJCG14
"PD78C10A/78C11 A/78Cl2A
"PD78C10I78C11/78C14/
78C14A/78CG14
5-21
NEe
pPD78C1x/C1xA/CG14/CP14
DC Characteristics
TA = -40" to +85°C; voo
= +5.0 V ±10%; voo = +5.0 V ±
Parameter
Qu.... 1vt.1
Input voltage, low
VIL1
Input voltage, high
5% IIIPD78C14 only); Vss
T,_
=0V
P.1ax
Unit
0
0.8
V
VIL2
0
0.2Voo
V
Note 1 inputs
VIH1
2.2
Voo
V
All except XI, X2, and Note 1 inputs
VIH2
0.8Voo
Voo
V
XI, X2, and Note 1 Inputs
0.45
V
IOL
Voo-l.0
V
IOH
Vo o-0.5
V
M!n
-1·"--
"I'
Conditions
All except Note 1 inputs
= 2.0 rnA
= 1.0mA
IOH = -100 ItA
Output voltage, low
VOL
Output voltage, high
VOH
Data retention voltage
VOOOR
V
STOP mode
Input cu rrent
111
:1:200
p.A
INTl (Note 2); TI (PCal (Note 3); 0 V S VI S
Voo
Input cu rrent
IIIPD78CG14 only)
112
:1:200
p.A
INTI (Note 2); TI (PCal (Note 3); 0 V S VI S
Voo
Input current
IIIPD78CG14 only)
'13
-300
p.A
10-17 (upper input pin); VI
Input leakage current
ILl
±10
p.A
All except INT1, TI (PCal, 0 V S VI S Voo
Output leakage cu rrent
ILO
±10
ItA
OV S Vo S Voo
AVoo supply current
Al001
0.5
1.3
mA
f
Al002
10
20
p.A
STOP mode
1001
13
25
mA
Normal operation; f = 15 MHz;
IIIPD78CI0/C10NCI1/CIINCI2A only)
1002
7
13
mA
HALT mode; f = 15 MHz;
IIIPD78CI0/CI0NCI1/CIINCI2A only)
1003
16
30
mA
Normal operation; f = 15 MHz
IIIPD78CI4/CI4NCGI4)
32
rnA
Normal operation; f
IIIPD78CP14 only)
15
mA
HALT mode; f = 15 MHz;
(.<1PD78CI4/CI4NCG14/CP14 only)
15
p.A
VOOO R
Voo supply current
2.5
1004
8
1005
Data retention current
1000R
300
10
Pull up resistor
RL
17
27
50
75
=0
= 15 MHz
= 15 MHz;
= 2.5 V (Note 4)
IIIPD78CP14 only·Note 4)
= 5.0 V :!: 10% (Note 4)
,.A
VOOOR
mA
IIIPD78CP14 only·Note 4)
KIl
PortA, B, C; 3.5V S Voo S 5.5 V; VI
IIIPD78CIINCI2NCI4A only)
= OV
Notes:
(1) Inputs RESET, STOP, NMI, SCK, INTP1, TI, and AN4·AN7.
(2) Assuming ZCM register is set to self·blas.
(3) Assuming ZCM register Is setto self·bias and the MCC register is
set to control mode.
5-22
(4) Hardware/software STOP mode and assuming ZCM register is
set to self·bias not selected.
t-rEC
JlPD78C1x/C1xA/CG14/CP14
Serial Operation
Parameter
Symbol
Min
~CYCletlme
tCYK
0.8
p.S
~ Input (Notes 1, 3)
0.4
p.S
~ Input (Note 2)
1.6
p.S
~ output (Note 3)
335
ns
~ Input (Notes 1, 3)
160
ns
~ Input (Note 2)
700
ns
~ output (Note 3)
335
ns
~ Input (Notes 1, 3)
160
ns
~ Input (Note 2)
~wldthlow
lKKL
~widthhigh
lKKH
Max
Unit
Conditions
700
ns
~ output (Note 3)
RxD setup time to ~ t
tAXI<
80
ns
(Note 1)
RxD hold time after ~ t
lKRX
80
ns
(Note 1)
~ ~ TxD delay time
ltax
ns
(Note 1)
210
Notes:
(3) fxTAl = 15 MHz.
(1) 1 x baud rate in synchronous or I/O Interface mode.
(2) 16 x baud rate or 64 x baud rate In asynchronous mode.
II
Zero-Cross Characteristics
Max
Unit
Vzx
1.8
VACp..p
Azx
±135
mV
1
kHz
Parameter
Symbol
Zero-eross detection Input
Zero-eross accuracy
Zero-eross detection Input frequency
fzx
Min
0.05
Condition
AC coupled 60 Hz sine wave
AC Characteristics (cant)
TA= -40' to +85"C; Voo = AVoo = +5.0V ±10'lb (±5'lb on "PD78CP14); Vss =OV
Parameter
Symbol
RESET pulse width high, low
tRSH, ~SL
Min
NMI pulse width high, low
fNIH, fNlH
10
Xl input cycle time
tC'I'C
86
tAL
30
lLA
tAR
Address setup to A LE
Address hold to ALE
Address to
~
~
AD ~ delay time
Max
10
Unit
Conditions
p.S
250
"s
ns
167
ns
(Note 1)
ns
(Notes 2,3)
35
ns
(Notes 2, 3)
100
ns
(Notes 2, 3)
RD ~ to address floating
tAFR
20
ns
(Note 2)
Address to data Input
tAD
250
ns
(Notes 2, 3)
ALE ~ to data input
It.OR
135
ns
(Notes 2, 3)
RD ~ to data input
tRO
120
ns
(Notes 2,3)
ALE Ho RD
~
delay time
Data hold time Ri5 t
RD t to ALE t delay time
RDwidth low
It.R
15
ns
(Notes 2, 3)
tRDH
0
ns
(Note 2)
till
80
ns
(Notes 2, 3)
tRR
215
ns
Data read (Notes 2, 3)
415
ns
Opcode fetch (Notes 2, 3)
5-23
ttiEC
pPD78C1X/cixA/CG14/CP14
AC Characteristics (cont)
Parameter
Unit
Conditions
90
ns
(Notes 2, 3)
IML
30
ns
(Note 3)
ILM
35
ns
(Note 3)
IlL
30
ns
(Note 3)
III
35
ns
(Note 3)
100
ns
(Notes 2, 3)
Symbol
Min
ALE width high
Ml setup time to ALE
~
Ml hold time after ALE ~
iO/M setup time to ALE ~
iO/M hold time after ALE ~
Address 10 WR ~ delay
Max
ALE Ho data output
lLow
180
ns
(Notes 2, 3)
WR ~ to data output
two
100
ns
(Note 2)
ALE ~ to WR ~ delay time
15
ns
(Notes 2,3)
Data setup time to WR i
tow
165
ns
(Notes 2, 3)
tWOH
60
ns
(Notes 2, 3)
WR i to ALE i delay time
80
ns
(Notes 2,3)
WRwidth low
215
ns
(Notes 2, 3)
ns
(Notes 2, 3)
ns
(Note 2)
Data hold time to WR i
tww
Address to data input
250
tACC
Data hold time from address
0
Notes:
(3) Values' are for 15-MHz operation. For operation at other frequencies, refer to the table called Bus Timing Depending on tC'I'C'
(1) Applies to "PD7SCPI4 only.
(2) Load capacitance CL
=
150 pF.
AID Converter Characteristics
TA = -40°·to +85°C; voo = +5,0 V ±10% (±5% on "PD78CPI4); Vss = AVss OV;
Voo -0.5 V ,;;. AVoo ,;; Voo; 3.4 V ,;; VAREF .,;; AVoo
Parameter
Symbol
Resolution
Min
Typ
Sampling time
tCONV
tSAMP
VIAN
Analog input impedance
RAN
Reference voltage
VAREF
VAREF current
IAREFI
AVoo supply current
TA = -10 to +700C; 66 ns ,;; tcyc
4.0 V ,;; VAREF S AVoo
%FSR
±0.6
%FSR
66 ns ,;; tcyc ,;; 170 ns; 4.0 V ,;; VAREF ,;; AVoo
±0.8
%FSR
66 ns ,;; tC'I'C ,;; 170 ns; 3.4 V ,;; VAREF ,;; AVoo
576
tcyc
66 ns ,;; tC'I'C ,;; 110 ns
432
tcyc
110 ns s tC'I'C s 170 ns
tcyc
66 ns ,;; tcyc ,;; 110 ns
tcyc
110 ns ,;; tC'I'C ,;; 170 ns
96
0
VAREF
V
M!l
1000.
AVoo
V
1.5
3.0
mA
Operation mode
IAREF2
0.7
1.5
mA
STOP mode
AlDOl
0.5
1.3
mA
Operation mode
Alo02
10
20
"A
STOP mode
3.4
Notes:
(1) Quantizing error (±1/2 LSB) is not inciuded.
(2) FSR = Full-scale resolution.
5-24
Conditions
±0.4
72
Analog input voltage
Unit
bits
Absolute accuracy
(Note 1)
Conversion time
Max
8
S
170 ns;
NEe
pPD78C1X/C1xA/CG14/CP14
Bus Timing Dependent on tCYK
Symbol
Min/Max (ns)
Calculation Formula
Symbol
tTIH' tTIL
Min
ST (TI input - peal
tiL
tCI1H. tCI1L
(Note 2)
Min
ST (TI input - pes)
tCI2H. tCI2L
(Note 3)
Min
48T (TI input - pes)
tllH' tilL
Min
3ST (INTI)
t12H. tl2L
tANH. tANL
Min
Min
Min
tAL
U
Min
tAR
Min
Min/Max (ns)
Calculation Formula
Min
2T - 100
tLi
Min
T-30
tAW
Min
3T - 100
tLOW
Max
T + 110
It.w
Min
T-50
tow
Min
4T - 100
3ST (AN4-AN7)
tWOH
Min
2T-70
2T - 100
tWL
Min
2T-50
tww
Min
4T-50
tCYK
Min
12T ~ input) (Note 1)
Min
24T (~ output)
Min
5T + 5 ~ input) (Note 1)
Min
12T - 100 ~ output)
Min
5T + 5 (SCR input) (Note 1)
Min
12T - 100 (SCK output)
3ST
QNT2)
T-30
3T -100
lAD
Max
7T -220
~OR
Max
5T - 200
tRo
Max
4T - 150
~
Min
T-50
tRL
Min
tKKL
tKKH
2T-50
Min
4T - 50 (Data read)
Notes:
Min
7T - 50 (Opcode fetch)
(1) 1 x baud rate in synchronous or I/O interface mode; T
~
Min
2T-40
tML
Min
2T - 100
tLM
Min
T-30
tRR
= tcyc =
1/fXTAL'
The items not included in this list are independent of oscillator
frequency (fXTAU'
(2) Event counter mode.
(3) Pulse width measurement mode.
Data Memory STOP Mode Data Retention Characteristics
TA
= -40 to 85'C
Parameter
Symbol
Min
Data retention power supply voltage
VOOOR
2.5
Data retention power supply current
IOOOR
Typ
15
Max
Unit
5.5
V
15
p.A
VOOOR
50
p.A
VOOOR
p.A
VOOOR
rnA
VOOOR
300
200
Conditions
= 2.5V
= 5.0 V ±10%
= 2.4 V (p.PD78CPI4)
= 5.0 V :1:5% (p.PD78CPI4)
p.s
VOO rise. fall time
tRv'o,1fvo
STOP setup time to VOO
STI5P hold time from VOO
tSSTVO
12T +0.5
p.s
tHvOST
12T+0.5
p.s
5-25
B
NEe
pPD78C1X/C1xA/CG14/CP14
Timing waveforms
Data Retention Timing
VOOOR
tFVO
tRVD
~~,----.-~
83RD-6847A
Read Operation
1t-4---T1----t-"I"~--T2---+rtO-----T3
-----10'
X1
AB1s-ABe
[PF7-PFo]
ADOR15-AOORe
~------------------tAD----------~----~
AD7-ADO
[PD7-PDO]
ADDR7-ADDRO
1
tRDH
Data In
t------I------tLDR --'---------~
tAFR
tRL
ALE
~--------tRD--------~
1-------tRR----------~
MODEO [iO]
[Note 1]·
Note:
[1] iO signal is output to the MOOED pin [II MOOED Is pulled up to VDD] during a
raad or write olspeelal ragI8ter,_ sr-sr2 or a write to ragister MM or MF. ReIer to
description 01 Port Emulatton Mode [PEM] In the Use,.s Manual lor lurther
explanation. This signal Is not output on the PPD78CP14.
83-0042768
5-26
NEe
IIPD78C1x/C1xA/CG14/CP14
Write Operation
1~·----------Tl--------~~----------T2--------~·+I·~--------T3--------~'I
Xl
AB15-ABS
[PF7-PF ol
ADDR15-ADDRS
AD7-ADO
[PD7-PD ol
Data-out
~-----------tow----------~
ALE
~--------------
tww ------------~
MODEO [iOl
[Note 11
Note:
[11 iO signalis output to the MODEO pin [if MODEO is pulled upto Vool during a
read orwrile of special, registers sr..sr2 or a write to register MM or MF. Refer to
description of Port Emulation Mode [PEMI in the Us.r's Manual for further
explanation, Thl. signal I. not output on the IlPD78CP14,
83-0042788
5-27
ttlEC
pPD78C1X/C1xA/CG14/CP14
Opcode Fetch Oper.tlon
~1'------T1----~'~I'~----T2------'~I.'------T3----~'~1'~----T4------'~1
X1
AB15-ABS
[PF7-PFO]
-y:)
ex -
ADDR15-ADDRB
I-
lAD
AD7-ADO
[PD7-PDo]
)
Opcode
ADDR7-ADDRo
IRDH
~------'1
ILDRILL-
-ILA-
..... I--IAFR
I---IRL-
/
ALE
~IAL
____
i-"--IRDIRR
!--ILR ....
IAR
MODE1 [!Mi']
[Nole1]
/
!.---IML-
~ ILM
Nole:
[1] M1 signal i. oulpullO Ihe MODEl pin during every Opcode Felch II MODE1
pin 18 pulled up 10 VDD. This IIgnalll nol output on the J,iPD78CP14.
83-0042798
5-28
NEe
pPD78C1x/C1xA/CG14/CP14
Serial Operation Transmit/Receive Timing
•
'CYK
~
_'KKL_I_'KKH_
/I
\
1-'KTx)
TxD
I
RxD
)
K
.'RXK. . 1 1•
'KRX
~
83R[)....69518
Timer Input Timing
Timer/Event Counter Input Timing:
Event Counter /IIode
83-003287A
83-Q0328SA
5-29
pPD78C1X/ClxA/CG14/CP14
11mer/EVent Counter Input Timing:
External Clock Timing .
Pulse Width Jleaillinlment lIode·
·1
~----~~----------~I
X1
83-003289A
83-003292A
Interrupt Input Timing
AC 11mlng "IiI.t PoInt.
NMI
~F·-=1[~'J.....--·
VDD-1.0==X: 2.2 V .... Test Points .... 2.2 V
0.45'1
.
0.8V ~
...... 0.8 V
C
83-003283A
,~ ~""J='""ll.....-
,~
AN4-AN7 Edge Detection 11mlng
J".=(..J.....-83-OO3290A
pPD7BCGI4E EPROM Read 11mlng
RESET Input 11mlng
RESET
J.tRSHJ[tRSLJ_
0.8 VDD
0.2VDD
63-003291A
7---- ----
10- 1
83RD-008OA
5-30
NEe
pPD78C1X/C1 xA/CG14/CP14
I'PD78CP14 PROGRAMMING
Table 3.
In the ~PD78CP14, the mask ROM of the ~PD78C1X/
C1XA is replaced by a one-time programmable ROM
(OTP ROM) or a reprogrammable, ultraviolet erasable
ROM (UV EPROM). The ROM is 16,384 by 8 bits and can
be programmed using a general-purpose PROM writer
with a ~PD27C256A programming mode. Refer to tables
3 through 5 and the AC and DC Programming Characteristics for specific information applicable to programming the ~PD78CP14.
The PA-78CP14CW/GF/GQ/L are the socket adapters
used for configuring the ~PD78CP14 to fit a standard
~PD27C256A PROM socket.
Table 4.
Pin Functions during EPROM
Programming
Pin
Function
PAo-PA7
Ao-A7
Description
Low-order S-bit address
PFo
As
High-order 7 -bit address
NMI
Ag
PFz-PF6
A1o-A14
PDo-PD7
Do-D7
Data input/output
PB6
mE
Chip enable input
PB7
()E
Output enable input
RESET
RESET
PROM programming mode requires a
low voltage on this pin
Mode 0
Mode 0
Enter PROM programming mode by
applying a high voltage to this pin
Mode 1
Mode 1
Enter PROM programming mode by
applying a low voltage to this pin
STOP
Vpp
High-voltage Input (write/verify) high
level (read)
Summary of Operation Modes for EPROM Programming
CE
OE
Vpp
Voo
RESET
MODEO
Program write
L
H
+12.5V
+6V
L
H
L
L
Program verify
H
L
+12.5V
+6V
L
H
L
L
Operation Mode
MODE1
A14
Program inhibit
H
H
+12.5V
+6V
L
H
L
L
Read
L
L
+5V
+5V
L
H
L
L
Output disable
L
H
+5V
+5V
L
H
L
L
Standby
H
L/H
+5V
+5V
L
H
L
L
Notes:
(1) The CE, OE, Vpp , and VOD pins are all compatible with the
",PD27C256A pins.
Caution: When Vpp is set to + 12.5 V and VOO is set to +6 V, you
cannot set both mE and OE to low level (L).
5-31
II
NEe
pPD78C1X/C1xA/CG14/CP14
Table 5. Recommended Connections tOl' UllUtled
Pins (EPROM Pr.ammlng.llode)
Recommended C-onnectlon Method
Pin
PROM Read Procedure
(1)
FIX the RESET pin, the MODE1 pin, and A14 pin to
a low level and connect the MOOEO pin to a high
level.
Connect to Vss
INT1
Xl
. Connect to Vss
X2
ANO-AN7
Connect to Vss
Apply
Input the address of the data to be read to pins
Ao-A14'
(4)
Read mode is entered with a pulse (active low) on
both the CE and OE pins.
(5)
Data is output to the 00-07 pins.
Connect to Vss
AVec
Connect to Vss
AVss
Connect to Vss
Remaining pins
Connect each pin via a resistor to Vss
+ 5 V to the Voo and Vpp pins.
(2)
(3)
Leave this pin disconnected
EPROM Erasure
PROM Write Procedure
( 1) Connect the RESET pin, the MOOE1 pin, and A14
pin to a low level and connect the MODEO pin to a
high level. Connect all unused pins as recommended in Table 5.
+6 V to the Voo pin and + 12.5 V to the Vpp
Data in an EPROM is erased by exposing the quartz
window in the ceramic package to light having a wavelength shorter than 400 nm, including ultraviolet rays,
direct sunlight, and fluorescent light. To prevent unintentional erasure, mask the window.
Typically, data is erased by 254-nm ultraviolet rays. A
minimum lighting level of 15W-s/cm2 (ultraviolet ray
intensity x· exposure time) is required to completely
( 3) Provide the initial address.
erase written data. Erasure by an ultraviolet lamp rated
at 12 mW/cm2 takes approximately 15 to 20 minutes.
( 4) Provide write data.
Remove any filter on the lamp and place the device
(.5) Provide 1-ms p~ogram pulse (active low) to the CE . within 2.5 cm of the lamp tubes.
pin.
( 2) Apply
pin.
( 6) This bit is now verified with a pulse (active low) to
the OE pin. If the data has been written, proceed to
step 8; if not, repeat steps 4 to 6. If the data cannot
be correctly written after 25 attempts, go to step 7.
( 7) Classify as defective and stop write operation.
( 8) Provide write data and supply program pulse (for
additional writing) for 3 ms times the number of
repeats performed between steps 4 to 6.
( 9) Increment the address.
(10) Repeat steps 4 to 9 until the end address.
5-32
NEe
pPD78C1x/C1xA/CG14/CP14
"PD78CP14 DC Programming Characteristics
TA
= 25 :l:5°C; MODE1
= VIL; MODEO = VIH; Vss = 0 V
Parameter
SymllCll
Symbol*
MIn
High-level Input voltage
VIH
VIH
2.2
-0.3
Low-level Input voltage
VIL
VIL
Input leakage current
ILIP
III
High-level output voltage
VOH
VOH
Low-level output voltage
VOL
VOL
Typ
Max
UnIt
Voop+0.3
V
0.8
V
:1:10
f!A
Output leakage current
ILO
Voop
VCC
5.75
4.5
Vpp power voltage
Vpp
Vpp
12.2
10H = -1.0mA
0.45
V
10L = 2.0mA
100
= VIH
:1:10
f!A
o :S; Vo
6.25
V
Program memory write mode
5.0
5.5
V
Program memory read mode
12.5
12.8
V
program memory write mode
V
Program memory read mode
30
mA
Program memory write mode
30
mA
6.0
Vpp=Voop
Voop power current
Os V1 S Voop
V
Voo-1.0
Voop power voltage
ConditIon
Icc
s VooP; 'OE
Program memory read mode;
= VIL; VI = VIH
'CE
Vpp power current
Ipp
Ipp
mA
30
Program memory read mode;
'CE - VII': 'OE - VIH
100
f!A
Program memory write mode
* Corresponding symbols of the "PD27C256A.
"PD78CP14 AC Programming Characteristics
TA = 25 :l:5°C; MODE1 = VIU Vss = 0 V
. Symbol*
Parameter
Symbol·
Address setup time to 'CE .).
tsAC
tAS
2
1'8
Min
Typ
Max
Unit
Data to OE .). delay time
tOOOO
tOES
2
1'8
Input data setup time to CE .).
tSIOC
tos
2
1'8
Address hold time from CE i
tHCA
tAH
2
1'8
Input data hold time from 'CE i
tHCIO
tOH
2
Output data hold time from 'OE i
tHOOO
tOF
0
Vpp setup time to 'CE J.
tSVPC
tvps
2
Voop setup time to 'CE .).
tsvoc
tvos
2
Initial program pulse width
tWL1
tpw
0.95
Additional program pulse width
tWL2
topw
2.85
MODEO/MODE1 setup time VB. 'CE.).
tSMC
Address to data output time
toAOD
tACC
CE .). to data output time
'OE .). to data output time
Data hold time from OE i or 'CE i
tocoo
tCE
toooo
tOE
tHCOO
tOF
0
Data hold time from address
tHADO
tOH
0
Condition
I'is
130
ns
1'8
1'8
1.0
1.05
ms
78.75
ms
2
2
1'8
MODE1 = VIL and MODEO = VIH
1'8
OE = VIL
"s
130
"s
ns
ns
OE = VIL
* Corresponding symbols of the "PD27C256A.
5-33
B
NEe
IIPD78C1x/C1xA/CG14/CP14
pPD711CP14 PROM Write lIIode Timing
Ao-A14
~1~----~----------~----------------~--------~~ J~--~---------------
.-J
-
Effective Address
-.
_tSAC
--<
Mode 1 VIH
MedeO V Il
-
Data
Input
~IDC_
~
_
Data
Output
tHeID
~-
---
tHooD
tSIDC _
=>--
-
Data
Input
--
I--
K
tHCA
tHeID
Mode 1 =Vll
Mode 0 =VIH
tSMC
VPP
VPP
VDOP
VDDP + 1
VDDP
VDOP
--.I
--
~
tsvPC
~VDC
r---;
tWl1
"'--
- ~L=o
tDDoo
_tWl2_
S
Notes:
(1)
VDOP must be applied before applying Vpp. It should be removed afterremovlng Vpp.
(2)
Vpp must not exceed +13 V, Indudlng overshoot.
83RD-6948B
5-34
ttiEC
pPD78C1xJC1xA/CG14/CP14
pPD7BCP14 PROM Relld Mode Timing
Effective Address
CE
HI-Z
Notes:
(1)
To read PROM within the tOAOD range, the delay of 5E~ from CE~must be within t OAOO - toooo-
(2)
tHCOD Is the time from the state In which either 5E or CE flrst becomes V IH83RD·69498
5-35
ItIEC
pPD78C1x/C1xA/CG14/CP14
Operand Definitions
Operand Symbols
Symbol
Registers
r
r1
r2
Allowable Dpernds
V, A, B, C, D, E, H, L
EAH, EAL, B, C, D, E, H, L
A, B, C
Special Registers
sr
PA;PB, PC, PD, PF, MKH, MKL, ANM, SMH, SML, EOM,
ETMM, TMM, MM, MCC, MA, MB, MC, MF, TXB,
.TMO, TM1, ZCM
sr1
PA, PB, PC, PD, PF, MKH, MKL, ANM, SMH, EOM, TMM, RXB,
CRO, CR1, CR2, CR3
sr2
sr3
sr4
PA, PB, PC, PD, PF, MKH, ANM, MKL, SMH, I!OM, TMM
ETMO, ETM1
ECNT, ECPT
Register Pairs
rp
rp1
rp2
rp3
SP, B, D, H
V, B, D, H, EA
SP, B, D, H, EA
B, D, H
Special Registers (sr-sr4)
PA= PortA
PB = Port B
PC = Port C
PD = Port D
PF = Port F
MA = Mode A
MB = Mode B
MC= Mode C
MCC = Mode control C
MF= Mode F
ECNT = Timer/event
counter upcounter
ECPT = Timer/event
counter capture
ETMM = Timer/event
counter mode
EOM = Timer/event
counter output mode
°
MM = Memory mapping
TMO = Timer register
TM1 = Timer register 1
TMM = Timing mode
ETMO = Timer/event counter
register 0
ETM1 = Timer/event counter
register 1
ZCM = Zero-cross mode
control register
Register Pair Addressing
Register Pairs (rp-rp3)
rpa
rpa1
B, D, H, D+ , H+ , D-, HB, D, H
rpa2
B, D, H, D+, H+, D-, H-, D+byte, H+A, H+B,
H+EA, H+byte
SP = Stack pOinter
B=BC
D= DE
rpa3
D, H, D++, H++, D+byte, H+A, H+B, H+EA, H+byte
Flags
CY,HC,Z
Interrupt Flags
irf
INTFNMI, INTFTO, INTFT1, INTF1, INTF2, INTFEO, INTFE1,
INTFEIN, INTFAD, INTFSR, INTFST, ER, OV, AN4, AN5, AN6,
AN7, SB
Immediate Data
wa
word
byte
bit
5-36
8-bit immediate data (low byte of working register address)
16-bit immediate data
8-bit immediate data
3-bit immediate data (b2, b1, bo)
TXB = Transmit buffer
RXB = Receive buffer
. SMH = Serial mode high
SML = Serial mode low
MKH = Mask high
MKL = Mask low
ANM = A/D channel mode
CRO to CR3= A/ Dconversion
result 0-3
H = HL
V=VA
EA = Extended accumulator
Register Pair Addressing (rpa-rpa3)
B = (BC)
D= (DE)
H = (HL)
D+ = (DE)+
H+ = (HL)+
D- = (DE)H- = (HL)-
D++ = (DE)++
H++ = (HL)++
D+byte = (DE+byte)
H+byte = (HL+byte)
H+A = (HL+A)
H+B = (HL+B)
H+EA = (HL+EA)
Flags (f)
CY = Carry
HC = Half-carry
Z = Zero
Interrupt Flags (Irf)
INTFNMI = NMI interrupt flag
INTFTO = flO
INTFT1 = FT1
INTF1 = F1
INTF2 = F2
INTFEO = FEO
INTFE1 = FE1
. INTFEIN = FEIN
INTFAD = FAD
INTFSR = FSR
INTFST= FST
ER = Error
OV = Overflow
AN4 to AN7 = Analog input 4-7
SB = Standby
fttfEC
pPD78C1x/C1xA/CG14/CP14
Operand Codes
Special Registers (sr3)
Registers (r, r2)
R2
Rl
Ro
Reg
r2
Uo
Special Reg
0
0
0
0
0
0
1
1
0
1
0
1
V
o
A
B
C
1
ETMO
ETMI
0
0
1
1
0
1
0
1
D
E
H
L
I
Special Registers (sr4)
Tl
To
Reg
0
0
0
0
1
1
1
1
0
0
1
1
0
0
1
1
0
1
0
1
0
1
0
1
EAH
EAL
B
C
D
E
H
L
S4
S3
S2
SI
So
Special Reg
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
1
1
1
0
0
0
0
1
1
0
1
1
0
0
1
0
1
1
0
1
0
1
PA
PB
PC
PD
PF
MKH
MKL
ANM
SMH
0
0
0
0
0
0
0
0
0
0
0
1
0
0
1
1
0
0
0
0
0
0
0
0
ETMM
TMM
0
0
0
0
0
0
0
1
0
0
0
0
1
1
0
0
0
1
1
0
1
0
0
1
0
1
0
1
0
MM
MCC
MA
MB
MC
MF
TXB
1
0
0
1
RXB
0
1
TMO
TMI
0
0
sr
srI
sr2
PI
Po
Reg Pair
0
0
0
0
0
0
1
1
0
0
1
0
1
0
SP
rp
0
0
0
0
0
0
1
1
0
1
0
1
CRO
CRI
CR2
CR3
0
0
0
ZCM
Q2
Ql
0
0
0
0
1
0
0
1
1
0
Qo
0
1
0
1
0
rp2
rp3
III
BC
DE
HL
EA
Reg Pair
VA
BC
DE
HL
EA
Register Pair Addressing (rpa, rpa1, rpa2)
A2
SML
EOM
1
0
0
0
0
0
P2
Register Pairs (rp1)
S5
0
0
0
0
0
0
0
ECNT
ECPT
Register Pairs (rp, rp2, rp3)
Special Registers (sr, sr1, sr2)
1
Special Reg
o
1
Registers (r1)
T2
Vo
I I
II
AO
Addressing
0
0
0
0
0
0
0
0
0
0
1
1
0
1
0
1
-
0
0
0
0
1
1
1
1
0
0
1
1
0
1
0
1
(DE)+
(HL)+
(DE)(HL)-
0
1
1
0
1
1
1
0
1
1
1
0
1
0
1
(DE+byte)
(HL+A)
(HL+B)
(HL+EA)
(HL +byte)
rpa2
(BC)
(DE)
(HL)
Register Pair Addressing (rpa3)
C3
C2
Cl
Co
0
0
0
0
1
1
1
1
1
0
0
1
1
0
1
1
1
1
1
1
0
0
1
0
0
1
1
0
1
0
1
1
0
1
0
1
Addressing
(DE)
(HL)
(DE)++
(HL)++
(DE+byte)
(HL+A)
(HL+B)
(HL+EA)
(HL+byte)
5-37
tttfEC
pPD78C1X/C1xA/CG14/CP14
Operand Codes (conI)
Graphic Symbols
Symbol
Flags (f)
Description
Transfer direction, result
F2
F1
Fo
Flag
0
0
0
1
0
1
1
0
0
0
1
0
/\
Logical product (logical AND)
CY
HC
V
Logical sum (logical OR)
Z
-¥
14
13
12
11
10
Flag
0
0
0
0
0
0
0
0
0
0
1
1
1
1
0
0
0
1
1
0
0
1
NMI
0
0
0
0
0
0
0
0
0
0
0
0
5-38
0
0
0
1
1
1
1
0
0
0
1
1
0
0
0
0
0
0
0
0
0
1
0
1
1
0
0
1
1
0
0
0
1
1
0
Exclusive-OR
Complement
Interrupt Flags (Irf)
0
1
0
1
0
1
0
1
0
1
0
0
1
0
1
0
FTO
FT1
F1
F2
FEO
FE1
FEIN
FAD
F5R
F5T
ER
OV
AN4
AN5
AN6
AN7
58
Concatenation
Instruction Set
Operation Gode
12
II
-
rilaemonic
Operand
Operation
7
6
5
13
4 3
0
0
0
0
0
stale
B4
2
1
0
7
6
5 4 3
2
1
0
(Nole 1)
lyleS
Skip
Condition
B-BltData Transfer
MOV
MVI
r1,A
A, r1
(r1) +- (A)
(A)+-(r1)
0
0
'sr,A'
'A,sr1
r,word
(sr)+-(A)
(A) +- (sr1)
(r) +- (word)
0
0
0
word,r
(word) +- (r)
0
'r,byte (r) +- byte
sr2,byte (sr2) +- byte
0
0
MVIW
'wa, byte ((V).(wa)) +- byte
0
MVIX
STAW
LDAW
STAX
LDAX
EXX
'rpa1,byte (rpa1) +- byte
((V).(wa)) +- (A)
'wa
(A) +- ((V}.(wa))
'wa
0
0
0
A3
A3
0
EXA
EXH
BLOCK
'rpa2
'rpa2
((rpa2)) -- (A)
(A) -- ((rpa2))
(B) - (B'), (C) - (C'), (D) - (0')
(E) - (E'), (H) - (H'), (L) - (L')
(V) - (V'), (A) - (A'), (EA) .... (EA')
(H) - (H'), (L) - (L')
((DE)) +- ((HL)), (DE) -- (DE) + 1,
(HL) -- (HL) + 1, (C) +- (C)-l
End if borrow
0
0
0
0
0
1
0
0
0
0
0
0
1
0
0
1
1 0 1
1 1 0 0
0 0 0 0
Lowaddr
1 0 0 0 0
Lowaddr
0 1 R2 R1 Ro
0 0 1 0 0
Data
1 0 0 0
Data
0 1 o A1 Ao
0 0 0 1 1
0 0 0 0
1
A2 A1 Ao
0
A2 A1 Ao
0 0 0
0
0
0
0
0
0
0
0
16-8H Data Transfer
DMOV
rp3, EA (rp3tJ -- (EAL), (rp3H) +- (EAH)
0
1
(rp~)
0
0
EA,rp3 {EAL) -- (rp3L), (EAH) --
4
4
T2 T1 To
T2 T1 To
0
0
0
0
0
0
0
0
S5S4S3~S1S0
Ro
10
10
17
2
2
4
Ro
17
4
7
0 0 OS2 S1 S0
14
2
3
Offset
13
3
Data
Offset
Offset
Data (Note 2)
Data (Note 2)
10
10
10
2
2
2
2
2
1
0
S5S4S3~S1So
0
1 0 1 R2 R1
High addr
1 1 1 R2 R1
High addr
Data
S3 0
7/13 (Note 3)
7/13 (Note 3)
4
4
4
13x
(C+1)
0
0
4
P1 Po
P1 Po
4
Notes:
(1) For the skip con~ition, the idle states are as follows:
2-byte instruction (with '): 7 states
1-byte instruction: 4 states
2-byte instruction: 8 states
3-byte instruction (with '): 10 states
3-byte instruction: 11 states
4-byte instruction: 14 states
~
~
(2) 82 (Data): rpa2 = D+byte or H+byte.
(3) Right side of slash (/) in states indicates case rpa2 or rpa3 = D+byte, H+A,
H+8, H+EA, or H+byte.
(4) B3 (Data): rpa3 = D+byte or H+byte.
"I:
"....
C
ext
(")
....
~
....
~
G)
....
~
(")
"....
en
I
(,)
~
<0
II
en
~
o
"C
Instruction Set (cont)
"'a
o
.....
Operation Code
II
Mnemonic
Operand
7
Operation
6
5
4
13
3
~
2
1
0
U
4 321
765
State
0
(Note 1)
Iytes
14
2
14
2
20
4
a
20
4
1 1 1
High addr
a
20
4
a a a a 1
a
20
4
14/20 (Note 3)
3
20
4
20
4
20
4
00001
High addr
20
4
a a a
14/20 (Note 3)
3
16-BII Data Transfer (conti
[)MOV
SBCD
a a
a a
a
a
5r3. EA (5r3) +- (EA)
EA.5r4
(EA) +- (5r4)
word
(word) +- (C). (word
a
+ 1) +- (B)
a a a
a a a
a a a 0
a
a a 1 Uo
1 1 a a a a a Vo
a a a 1 1 1 1 a
Lowaddr
SDED
word
(word)+- (E). (word
a
+ 1) +- (D)
High addr
100
a a
a
1
Lowaddr
SHLD
word
(word) +- (L). (wor{f + 1) +- (H)
SSPD
word
(word) +- (SPLl. (word
a
+ 1) + - (SPH)
100
Lowaddr
a
a a
1 a a 0 a
a a
Lowaddr
STEAX
rpa3
((rpa3»
+-
(EAL). (((rpa3))
+ 1)) + - (EAH)
a
0
1
High addr
High addr
a a 1 a a a
a a
1 C3 C2 C1 Co
Skip
Condition
CI)
n
....
~
n
....
~n
G)
....
~"'a
.....c;.
Data (Note 4)
LBCD.
LDED
word
word
(C)
(E)
+-
(word). (D) + - (word
+-
a
(word). (B) + - (word + 1)
a
+ 1)
1 a a
Lowaddr
1
1
1
;1
~ow
LHLD
word
(L)
(word). (H) + - (word
+-
+ 1)
0
1
1
a
0
0
a
00011111
High addr
00
00101
addr
0
High addr
a a
~
a a
Lowaddr
LSPD
word
(SPLl
+-
(word). (SPH)
+-
(word + 1)
0
a
1
High addr
0
a
0
Lowaddr
LDEAX
rpa3
(EAL)
+-
((rpa3)). (EAH)
+-
(((rpa3)
+ 1))
a
1
0
a
1.
a a a
C3 C2 C1 Co
Data (Note 4)
PUSH
POP
LXI
rpl
rpl
(((SP) -1))
(((SP) - 2))
+-
(rplH).
(rplLl. (SP)
(rplL) +- ((SP)). (rplH)
(SP) + - (SP) + 2
*rp2.word (rp2)
TABLE
+-
(0)
(B)
+-
+-
+-
+-
(((SP)
(word)
(((PC) + 3 + (A))).
+ 3 + (A) + 1))
0110020100
13
0100020100
10
(SP) - 2
+ 1)).
a
P2 P1 Po a 1
High byte
a
1
001
a
a a
0
a
Low byte
10101
a a a
+- (((PC)
10
3
17
2
8
8
8
8
2
2
2
2
8-Bit Arithmetic [Registerl
ADD
ADC
A.r
(A)
r.A
(r)
A.r
r.A
+-
(A)
+ (r)
+ (A)
(A) + - (A) + (r) + (CY)
(r)
+-
+-
(r)
(r)
+ (A) + (CY)
a
a
o
o
a a a a a
a a a a 0
0 a 0 0 0
o
0
o
0
0
0
0
1
1
~ ~
~
~
~
1
1
0
0
0
0
0
0
1
1
0
0
1
1
0 R2 R1 Ro
a R2 R1 Ro
~
~
o
Instruction Set (cont)
Operation Code
Bl
B3
Mnemonic
Operand
Operation
B2
B4
7
6
5
4
3
2
1
0
7
6
5
4
3
2
0
0
a
a
a
a
a
0
a
0
a
0
0
a
a
a
0
0
a
0
0
1
1
1
1
1
1
0
0
0
0
a
a
a
a
a
a
a
0
a
0
a
a
0
0
0
0
a
0
0
a
0
a
0
a
0
a
a
a
0
0
a
a
a
a
0
0
0
0
0
0
a
0
a
a
a
0
0
a
a
0
a
a
a
0
a
0
0
a
0
0
0
a
a
a
a
a
0
0
a
a
0
a
a
a
a
0
a
0
0
0
1
a
1
a
1
a
1
a
1
a
1
a
1
a
1
a
1
0
1
0
1
0
0
1
1
1
1
a
a
a
a
a
0
0
a
a
a
0
a
1
1
1
1
1
1
1
0
a
0
0
1
1
a
0
a
0
a
a
1
1
1
1
1
1
1
1
1
0
1
1
1
1
0
0
1
1
0
0
1
0
a
a
a
a
a
a
a
1
1
1
1
a
a
1
1
1
0
0
0
a
a
a
a
a
a
a
a
a
a
a
a
a
0
0
0
a
0
R2
R2
R2
R2
R2
R2
R2
R2
R2
R2
R2
R2
R2
R2
R2
R2
R2
R2
R2
R2
R2
0
0
0
1
1
1
1
1
1
0
a
a
0
0
0
0
0
a
a
0
a
0
0
0
0
1
1
1
1
1
1
0
a
a
a
o
a
a
a
a
0
a
a
a
0
a
a
a
a
a
a
a
a
a
a
a
a
1
a
a
a
1
a a
a 0
0
0
0
0
1
a
o
o
1
1
0
0
0
State
(Note 1)
Bytes
Skip
Condition
B-Bit Arithmetic [Reglsterl(cont]
ADDNC
(A) + (r)
(r) + (A)
(A) - (r)
(r) - (A)
(A) - (r) - (CY)
(r) - (A) - (CY)
(A) - (r)
(r) - (A)
(A) A (r)
(r) A (A)
(A) v (r)
(r) V (A)
(A)-V-(r)
(r)-v-(A)
(r) - 1
(A) - 1
(r)
(A)
(r)
(A)
(r)
EQA
A,r
r,A
A,r
r,A
A,r
r,A
A,r
r,A
A,r
r,A
A,r
r,A
A,r
r,A
A,r
r,A
A,r
r,A
A,r
r,A
A,r
(A) (r) (A) (r) (A) (r) (A) (r) (A) (r) (A) (r) (A) (r) (A) (r) (A) (r) (A) (r) (A) -
aNA
OFFA
r,A
A,r
A,r
(r) - (A)
(A) A (r)
(A) A (r)
SUB
SBB
SUBNB
ANA
ORA
XRA
GTA
LTA
NEA
8-Bit Arithmetic (Memory]
ADDX
rpa
(A) ADCX
ADDNCX
SUBX
SBBX
SUBNBX
ANAX
ORAX
rpa
rpa
rpa
rpa
rpa
rpa
rpa
(A)
+ ((rpa))
(A) - (A) + ((rpa)) + (CY)
(A) - (A) + ((rpa))
(A) - (A) - ((rpa))
(A) - (A) - ((rpa)) - (CY)
(A) - (A) - ((rpa))
(A) - (A) A ((rpa))
(A) - (A) v ((rpa))
a
a
a
a
a
a
o
a
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
(J1
I
~
11
RO
Ro
Ro
Ro
Ro
Ro
Ro
Ro
Ro
Ro
Ro
Ro
Ro
Ro
Ro
Ro
Ro
Ro
Ro
RO
RO
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
1
a
1
1 R2 Rl Ro
1 R2 Rl Ro
1 R2 Rl Ro
8
8
8
2
2
2
0
1
0
o
1
1
a
1
a
a
0
0
a
a
1
1
11
2
11
11
11
11
11
11
11
2
2
2
2
2
2
2
1
1
1
1
1
1
A2
A2
A2
A2
A2
A2
A2
A2
Rl
Rl
Rl
Rl
Rl
Rl
Rl
Rl
Rl
Rl
Rl
Rl
Rl
Rl
Rl
Rl
Rl
Rl
Rl
Rl
Rl
AI
AI
AI
AI
AI
AI
AI
AI
Ao
Ao
Ao
Ao
Ao
Ao
Ao
Ao
No carry
No carry
~
o
No borrow
No borrow
No borrow
No borrow
Borrow
Borrow
No zero
No zero
Zero
Zero
No zero
Zero
No carry
't:
'1:11
C
.....
01)
....
~....
(")
~
G)
No borrow
....
~'1:11
....
.r::..
t
'1:
Instruction Set (cont)
I\)
'V
Operation Code
Mnemonic
Operand
Operation
7
~
~
n
M
654
3
2
1
0
0
0
0
o
o
o
o
1·
o
o
o
o
o
o
o
o
o
o
7
C
N
654
3
2
1
0
o
o
o
0, 1
0 A2 A1
0
1
0
1
1 A2A1
0
1
1"
1
1
0 b 0
0 0 0
o
o
0
Ao
Ao
Ao
Ao
Ao
Ao
Ao
State
INote I)
Bytes
Skip
Condltloll
B-BH ArlthmBllc IMamoryllcontl
XRAX
GTAX
LTAX
NEAX
EOA",
ONAX
OFFAX
rpa
rpa
rpa
rpa
rpa
rpa
rpa
(A) - (A)-V-((rpa))
(A) - ((rp .
./>.
Instruction Set (cont)
't:
"U
Operation Code
Mnemonic
Operation
Operand
Immediate Data [conti
sr2,byte (sr2) - byte
NEI
7
6
5
B3
4 3
C
B2
Bl
~
B4
2
1
0
7
0
0
S3
0
0
1
0
0
1
0
0
S3
1
0
1
0
0
0
S3
6
5
4
3
2
1
0
State
(Note 1)
Bytes
Skip
Conditioll
0
0
*A,byte (A) - byte
r,byte (r)- byte
0
0
1
1
sr2,byte (sr2) - byte
0
0
S2 S1 So
14
3
No zero
~
0
0
0
7
11
2
1 R2 R1 Ro
3
Zero
Zero
~0
S2 S1 So
14
3
Zero
1 R2 R1 Ro
7
11
2
0
3
No zero
No zero
0
0
S2 S1 So
14
3
No zero
1 R2 R1 RO
7
11
2
1
3
Zero
Zero
S2 S1 So
14
3
Zero
Data
'Data
0
*A,byte (A)" byte
r,byte (r) " byte
0
0
sr2,byte (sr2) " byte
0
0
0
1
0
0
Data
Data
0
0
""'"
G)
Data
ONI
0
""'"
0
Data
EQI
CI)
0
""'"
~
0
"U
""'0l:Io"
Data
OFFI
*A,byte (A)" byte
r,byte (r)" byte
0
0
sr2,byte (sr2) " byte
0
0
1
0
0
1
0
1
0
0
0
0
0
S3
0
0
0
Data
Data
0
0
Data
Working Register
ADDW
wa
(A) -
(A)
+ ((V).(wa))
0
0
0
0
0
0
0
14
3
0
0
0
0
14
3
0
0
0
0
0
14
3
0
0
0
0
0
14
3
0
0
0
0
14
3
0
0
0
0
14
3
0
0
0
14
3
0
Offset
ADCW
wa
(A) -
(A) + ((V).(wa)) + (CY)
0
1
0
0
0
Offset
ADDNCW
wa
(A) -
(A)
+ ((V).(wa))
0
1
0
0
0
No carry
Offset
SUBW
wa
(A) -
(A) - ((V).(wa))
0
1
0
0
0
Offset
SBBW
wa
(A) -
(A) - ((V).(wa)) - (CY)
0
SUBNBW
wa
(A) -
(A) - ((V).(wa))
1
0
0
Offset
r~\""
0
1
0
0
0
0
0
0
0
Offset
ANAW
wa
(A) -
(A) " ((V).(wa))
0
1
0
Offset
0
0
No borrow
~
0
~
Instruction Set (cont)
Operation Code
Bl
12
-
B3
Mnemonic
Op.rand
Operation
7
Working Reglsler (cont)
ORAW
wa
(A) -
(A) V ((V).(wa))
0
XRAW
wa
(A) +- (AI-'f((V).(wa))
0
GTAW
wa
(A) - ((V).(wa)) -1
0
LTAW
wa
(A) - ((V).(wa))
0
NEAW
wa
(A) - ((V).(wa))
0
EOAW
wa
(A) - ((V).(wa))
0
ONAW
wa
(A) A ((V).(wa))
0
OFFAW
wa
(A) A ((\i).(wa))
0
ANIW
'wa,byte ((V).(wa)) +- ((V)o(wa)) A byte
0
6
5
3
21
0
0
0
Offset
1 0
Offset
1 0
Offset
1 0
Offset
1 0
Offset
1 1
Offset
1 0
Offset
1 0
Offset
1"
0
4
6
5
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
7
14
4 3
0
0
0
0
State
(Note I)
Bytes
Skip
Condnlon
2
1
0
0
0
0
14
3
0
0
0
14
3
0
0
0
14
3
No borrow
0
0
0
14
3
Borrow
0
0
0
14
3
No zero
0
0
0
14
3
Zero
0
0
0
14
3
No zero
0
0
0
14
3
Zero
0
0
0
0
Offset
19
3
0
Data
1 O·
Data
0
Offset
19
3
ORIW
'wa,byte ((V).(wa)) +- ((V)o(wa)) V byte
0
0
GTIW
'wa,byte ((V).(wa)) - byte - 1
0
0
0
0
0
Offset
13
3
No borrow
LTlW
'wa,byte ((V).(wa)) - byte
0
0
Data
1 0
Data
0
Offset
13
3
Borrow
NEIW
·wa,byte ((V).(wa)) - byte
0
0
0
0
Offset
13
3
No zero
EQIW
'wa,byte ((V).(wa)) - byte
0
Data
1 0
Data
0
Offset
13
3
Zero
ONIW
'wa,byte ((V).(wa)) A byte
0
0
0
0
0
Offset
13
3
No zero
0
Data
1 0
Data
0
Offset
13
3
Zero
OFFIW
'wa,byte ((V).(wa)) A byte
0
~
'I:
"
...
~
...
C
~
CX)
(")
~(")
...
"...
Q
~
(")
01
I
~
0l:Io
01
II
(J1
I
.j>.
"t:
Instruction Set (cont)
C1'I
"til
Operation Code
Mnemonic
DAN
DOR
DXR
DGl
lOll
EA,rp3
EA,rp3
EA,rp3
EA,rp3
EA,rp3
DNE
EA,rp3
DED
EA,rp3
DON
EA,rp3
DOFF
EA,rp3
Multiply/Divide
MUl
r2
DiV
r2
IncrementlDecrement
INR
r2
INRW
'wa
INX
rp
EA
OCR
r2
DCRW
'wa
DCX
rp
EA
Others
DAA
STC
ClC
7
Operation
Operand
16-Bit Arithmetic
EADD
EA,r2
DADO
EA,rp3
DADC
EA,rp3
DADDNC
EA,rp3
ESUB
EA,r2
DSUB
EA,rp3
DSBB
EA,rp3
DSUBNB
EA,rp3
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
(EA) - (EA) + (r2)
(EA) - (EA) + (rp3)
(EA) - (EA) + (rp3) + (CY)
(EA) - (EA) + (rp3)
(EA) - (EA) - (r2)
(EA) - (EA) - (rp3)
(EA) - (EA) - (rp3) - (CY)
(EA) - (EA) - (rp3)
(EA) - (EA) A (rp3)
(EA) - (EA) V (rp3)
(EA) - (EA)-'t-(rp3)
(EA) - (rp3) - 1
(EA) - (rp3)
(EA) - (rp3)
(EA) - (rp3)
(EA) A (rp3)
(EA) A (rp3)
654
1
o
o
o
o
(r2) - (r2) + 1
((V).(wa)) - ((V).(wa)) + 1
(rp) - (rpH 1
(EA) - (EA) + 1
(r2) - (r2) -1
((V).(wa)) - ((V).(wa)) - 1
(rp) - (rp) -1
(EA) - (EA) - 1
0
0
0
1
0
0
0
1
1 0 0
0 1 0
0 Pl Po
0 1 0
1 0 1
0 1 1
0 Pl Po
0 1 0
Decimal Adjust Accumulator
(CY)-l
(CY)-O
o
o
1
1
1
(EA) (EA) -
(A) x (r2)
(EA) -7- (r2), (r2) -
Remainder
o
B1
B2
B3
B4
3
2
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
0
1
1
1
0
1
1
1
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
o
o
0
7
0
0
0
0
0
o
0
0
0
0
0
0
1
1
o
4
3
2
0
o
0
0
1
0
0
0
Rl Ro
Pl Po
Pl Po
0
0
0
0
0
0
0
1
1
0
1
1
1
0
1
1
1
0
1
1
1
1
1
1
1
1
1
1
0
1
0
1
1
o
1
1 1
1 1
0 0
0 1
0 1
1 0
011
o
o
o
o
o
0
0
0
0
0
0
0
0
o
1
o
o
o
o
o
0
0
0 Rl Ro
0 0 0
0 1 0
0 0 0
0 Rl Ro
0 0 0
0 1 1
0 0 1
1 000 0 1
001 000
001 000
5
o
0
0
0
000
o 0
0
6
1
0
o
o
o
1
1
2
2
~
Pl
Pl
Pl
Pl
Po
Po
Po
Po
Rl Ro
Rl Ro
59
~
4
16
7
7
4
16
7
7
Offset
0
0
32
~
~
Rl Ro
Pl Po
~ Po
Pl Po
Pl Po
Pl Po
Pl Po
Pl Po
0 1 1
010
Bytes
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
11
11
11
11
11
11
11
11
11
11
11
11
11
11
11
11
11
Offset
o
o
State
(Note 11
4
8
8
Skip
Condition
(')
......
~......
No carry
~
Q
......
No borrow
~"til
......
oI:lo
No borrow
Borrow
No zero
Zero
No zero
Zero
2
Carry
Carry
2
Borrow
Borrow
2
2
....tJ
()C)
~
~
Instruction Set (cont)
~
Operation Gode
Mnemonic
RRD
0
000
o
0
o
o
0
000
o
0
000
o
0
000
o
0
o
001
000
o
0
0
o
Rotate left digit (Aa-O) - «HL))]-4, «HL)17-4 0
- «HL))3-0, «HL))3-O - (Aa-o)
Rotate right digit «HL))7-4 - (Aa-o),
o
«HL))3-0 - «HL))7-4, (A3-0) - «HL))3-0
o
(r2m+ 1) - (r2m), (r20) - (CY),
(CY)-(r27)
o
(r2m -1) - (r2m),(rq) - (CY),
(CY)-(r2o)
(r2m + 1) - (r2 m), (r2o) - 0, (CY) - (r27) 0
(r2m-1) ....:. (r2m), (r27) - 0, (CY) - (r2o) 0
(r2m + 1) - (r2m), (r20) - 0, (CY) - (r27) o
(r2m -1) - (r2m), (rq) - 0, (CY) - (r2o) o
o
(EAn + 1) - (EAn), (EAo) - (CY),
(CY) - (EA15)
o
(EAn -1) - (EA n), (EAl5l- (CY),
(CY)-(EAn)
o
(EAn + 1) , 0 - (EA n), (EAo) - 0,
(CY) - (EA15)
o
(EA" -1) '..- (EAn!, (EA15) - 0,
(CY)-(EAo)
RLL
r2
RLR
r2
SLL
SLR
SLLC
SLRC
DRLL
r2
r2
r2
r2
EA
DRLR
EA
DSLL
EA
DSLR
EA
Jump
JMP
'word
(PC)-word
word
'word
(PCH) - (B), (PCLl- (C)
(PC) - (PC) + 1 + jdisp 1
(PC) - (PC) + 2 + jdisp
(PC)-(EA)
JB
JR
JRE
JEA
6
o
(A)-(A)+1
1
2
1
5
4
3
2
1
0
o
Bytes
2
17
2
001101R1RO
17
8
2
000
001100R1Ro
8
2
001
001
001
000
000
000
000
000
001001R1RO
0 0 1 0 0 0 R 1 RO
0 0 0 0 0 1 R 1 RO
0 0 0 0 0 0 R 1 RO
101 1 0 1 0 0
8
8
8
8
8
2
2
2
2
2
o
0
000
001
000
1
0
000
o
1
3
State
INote 1)
8
o
1
1
1
B4
7
654
Operation
a
a
0
7
Operand
Others (contI
NEGA
Rotate and Shift
RLD
~
0
0
o
1
1
0
0
o
0
101
0
0
0
0
CALB
~
0
2
0
0
8
2
o
0
8
2
0
0
8
2
10
3
Carry
Carry
'I:
o
010100
High addr
001 0 0 0 0
1-jdisp1o 1 001 1 1
o 1 001 000
Lowaddr
'jdisp
00101
000
'word
«SP) -1) - «PC) + 3)H,
«SP) - 2) - «PC) + 3)L '
(PC) - word, (SP) - (SP) - 2
«SP) -1) - «PC) +2)H,
«SP) - 2) - «PC) + 2lL,
(PCJi) - (B), (PCLl- (C),
(SP) - (SP) - 2
o
1
0
o
1
001
0 0 0
High addr
0
0
000
Lowaddr
0010100
1
"'a
~
01)
4
10
10
8
2
2
16
3
17
2
Call
. CALL
Skip
Condition
....n
~
....
~
Ii)
....
~"'a
....
,a::..
~
II
0"1
I
.j>.
~
Instruction Set (cont)
CD
'V
Operation Code
B1
Mnemonic
Operation
Operand
7
6
5
4
B3
3
Calileont)
CALF
"word
CALT
word
SOFTI
((SP) 1)-((PC)+2)H,
((SP) - 2) - ((PC) + 2JL,
(PC'5-") - 00001,
(PC,o-o) - fa, (SP) - (SP) - 2
((SP)-I) - ((PC) + I)H,
((SP) - 2) - ((PC) + l)l,
(PCLl- (128 + 2ta), (PCH) - (129 + 2ta),
(SP) - (SP) - 2
((SP) - 1) - (PSW), ((SP) - 2) ((PC) + I)H,((SP) - 3) - ((PC) + l)l,
(PC) - 0060H, (SP) - (SP) - 3
0
1
1
0
o
B2
B4
2
1
0
7
6 .5
,
4
3
2
1
0
fa
State
(Note 1)
13
-ta---
Skip
Bytes
Conditil~n
2
....C
....0
~....
0)
~
16
....
Q
0
1
1
1
0
0
1
0
~
16
0
....'V
~
Return
(PCLl- ((SP)),(PCH) - ((SP) + 1)
(SP) - (SP) + 2
(PCl) - ((SP)), (PCH) <- ((SP) + 1)
(SP) - (SP) + 2, (PC) - (PC) + n
(PCLl- ((SP)), (PCH) <- ((SP) + 1)
WSW) - ((SP) + 2), (SP) - (SP) + 3
RET
RETS
RETI
0
0
0
0
0
0
0
0
0
0
0
10
10
0
Unconditional
Skip
13
Skip
BIT
SK
SKN
SKIT
SKNIT
"bit, wa Skip if ((V).(wa)) bit
irf
irf
0 1 1 B2 B, Bo
0 0 1 0 0 0
0 0
0 0 0
0 0
0 0 0
0 0
0 0 0
0
Skip if f = 1
Skip if f = 0
Skip if irf = 1, then reset irf
Skip if irf = 0
Reset irf if irf = 1 and don't skip
0
0
0
0
No operation
Enable interrupt
Disable interrupt
Set HALT mode
Set STOP mode
0
Offset
0
0
0
0
0
0
0
0
0
0
14
14
1 F2
F2
13 12
13 12
F, Fa
F, Fo
I, 10
I, 10
10
2
BitTest
8
8
8
8
2
2
2
2
f= 1
f=O
irf = 1
irf= 0
4
4
4
12
12
2
2
CPU Control
NOP
EI
DI
HLT
STOP
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
~
~
NEe
~PD78K2
Series: 8-Bit Microcomputers
1
6-1
II
ttlEC
8-Bit, Advanced Microcomputers
Section 6
"PD78K2 Series:
8=Blt, Advanced MiciOcomputers
"PD7821x
Advanced, a-Bit Real-Time Control
Microcomputers With AID Converter
"PD7822x
Advanced, a-Bit Real-Time Control
Microcomputers With Analog Comparators
"PD7823x
Advanced, a-Bit Real-Time Control
Microcomputers With AID and D/A Converters
6-2
6-3
6-63
6-119
ttlEC
NEe Electronics Inc.
Description
The f,tPD78213, f,tPD78214, and f,tPD78P214 are high-performance, 8-bit, single-chip microcomputers. They contain extended addressing capabilities for up to 1M byte of
·external memory. The devices also integrate sophisticated
analog and digital peripherals as well as two low-power
standby modes that make them ideal for low-power/bat·tery backup applications.
The f,tPD7821x family focuses on embedded control with
features like hardware multiply and divide, two levels of
interrupt response, four banks of main registers for multitasking, and macroservice for processor-independent
peripheral and memory DMA. Augmenting this high-performance core are advanced components like a high-precision A/D converter, two independent serial interfaces,
several counter/timers for PWM outputs as well as a real· time output port. On board memory includes 512 bytes of
RAM and 16K bytes o~ mask ROM, EPROM, or OTP ROM.
The macroservice routine allows data "to be transferred
between any combination of memory and peripherals independent of the current program execution. The four banks
of processor registe'rs allow simplified context switching to
be performed. Both features combined with powerful onchip peripherals make this part ideal for a wide variety o.f
embedded control applications.
Features
o Complete single-chip microcomputer
-8-bitALU
-16KROM
- 512 bytes RAM
- Both 1-bit and 8-bit logic
o Instruction prefetch queue
o Hardware multiply and divide
o Memory expansion
J.l.PD7821x
Advanced,8-Bit
Real-Time Control Microcomputers
With AID Converter
o Four timer-controlled PWM channels
o Two 4-bit real-time output ports
o Extensive interrupt handler
- Vectored interrupt handling
- Programmable priority
- Macroservice mode
o Two independent serial ports
o Refresh output for pseudostatic RAM
o On-Chip clock generator
- 12-MHz maximum CPU clock frequency
- 0.33-f,ts instruction cycle
o CMOS silicon gate technology
OS-volt power supply .
Ordering Information
PartNumber.
ROM
Package
",PD78213CW
",PD78213GQ-36
",PD78213GJ
",PD78213L
ROMless
64-pln plastic shrink DIP
64-pin plastic QUIP
74-pin plasticQFP
68-pinPLCC
",PD78214CW
",PD78214GQ-36
",PD78214GJ
",PD78214L.
16K Mask
ROM
64-pin plastiC shrink DIP
64-plastic QUIP
74-pin plastic QFP
68-pinPLCC
",PD78P214CW
",PD78P214GQ-36
",PD78P214GJ
",PD78P214L
16KOTP
ROM
64-pin plastic.shrink DIP
64-pin plastiC QUIP
74-pin plastic QFP
68-pinPLCC
",PD78P214DW
",PD78P214R
16K UV
EPROM
64-pin shrink cerdip
64-pinceramicQUIP
Note:
A 74-pin plastic QFP that can be reflow soldered will be available.
- 8085 bus-compatible
- 64K program address space
- 1M data address space
o Large I/O capacity: up to 54 I/O port lines
o Software pullup options
o Extensive timer/counter functions
- One 16-bit timer/counter/event counter
- Three 8-bit timer/counter/event counter
50070
6-3
6
t\'EC
~D7821x·
Pin Configurations
Pin Identification
Function
Symbol
64-Pln Shrink DIP and QUIP (PI••tlc or Ceramic)
Output port 0
P20/NMI
Input port 2/Non-maskable interrupt input
Input port2/External lnterrupt Input/timer
trigger
P23/INTP2/CI
P~/INTP3
Input port 2/Extemal interrupt input/
Clock input
Input port 2/Externai Interrupt inputltimer
trigger
P25/INTP4IASCK
Input port 2/External interrupt input!
Asynchronous serial clock
P2s/INTP5
Input port 2/External interrupt input
P27/S1
Input port 2/Seriaiinput .
P30/RxD
I/O port 3/Serial receive input
I/O port 3/Seiial transmit output
I/O port 3/Serial clock input/output
P33/S0/SBO
I/O port3/Serial output/Serial bus I/O
P34-P37ITOO-T03
I/O port 3mmeroutput
P4o-P4r/ADO-AD7
I/O port:4/Lowar address byte/data bus
I/O port 5/Upper address byte
Output port 6/Extended address nibble
I/O port 6/Read strobe output
P65/WR
I/O port 6/Write strobe output
P6s/WAIT/AN6
I/O port 6/Wait input/AID converter input
PSr/REFRQ/AN7
I/O port 6/Re!rellh output/AID converter input
P70-P75/ANO-AN5
Input port 7/A/D converter input
ASTB
Address strobe output
_._\._ P07
P67/R~FRQ/AN7
P6s/WAiT/ANS
Ps5IWR
P64tRD
P63 /A 19
P62/A18
P6l/A17
P60/A1S
RESET
X2
Xl
Vss
P57/A15
P56/A14
P55/A13
P54A12
P53 /All
P52/Al0
.P5l /Ag
P50/Ag
P47/AD7
P"s/ADs
P4s/A05
P44/,\°4
P43/A03
P42/A02
Vss
P02
POl
POo
P37/TOO
P3S/T02
P3s/TOl
P34/TOO
P70/AND
P7l/ANl
P72/AN2
P73/AN3
P74/AN4
P75/AN5
AVREF
Aliss
voo
EA
P33 /SQ/SBO
P32/SCK
P3l/TxO
·P30/RlcO
P27/SI
P26/INTP5
P25/INTP4/ASCK
P24/1NTP3
P23/INTP2/CI
P22"NTPl
P2l/INTPO
P2o'NMI
ASTB
P40/ADo
P4l/AOl
491'B-496A
RESET
External res~ input
EA
External mempry' access control input
X1,X2
P03
P04
P05
POs
External crystal or external clock input
A/D converter re~rence voltage
Analog ground
Voo
Positive power supply input
Vss
Power return; normally ground
NC
No connection
NEe
/-LPD7821X
68-PlnPLCC
P25/·INTP4/ASCK
P2S/INTPS
P27/SI
P30/RxD
P311TxD
P32/SCK
P33/SO/SBO
43
41
40
39
37
PS4/A12
P55/A13
P5S/A14
P57/A15
34
33
VSS
VSS
X1
X2
30
29
28
27
PSO/A1S
PS1/A17
PS2/A18
PS3/A19
PS4!Ro
EA
VDD
VDD
AVSS
RESET
AVREF
P7S/AN5
P74/AN4
P73/AN3
P72IAN2
P71/AN1
P51/Ag
PS2/A1O
P53/A11
49TB·500B
6-5
t\'EC
....PD7821x
74-Pin Plastic QFP
PSOIAS
P471AD7
P4SIADs
P4SIADs
P44AD4
P431AD3
P42'AD2
o
5S
55
54
53
52
P05
49
Vss
Vss
P41'AD1
P40lADo
ASTB
NC
P201NMI
P2111NTPO
P22'INTP1
P23'INTP2ICI
P2411NTP3
PS5'WR
PSS'WAIT'ANS
PS 7'REFRQIAN7
P07
NC
POs
44
P04
P03
NC
P02
P01
POo
P371T03
P3sIT02
P351T01
40
NC
P341TOO
P70lANO
49TB-5018
6-6
tiEC
fJ.PD7821x
Pin Functions
POO-P07' Port 0 is an 8-bit, tristate output port with direct
transistor drive capability. Port 0 can also be configured as
two 4-bit, real-time (timer-controlled) output ports.
P20-P27' Port 2 is an 8-bit input port with the programmable pullup option except for P20 and P21.
NMI. Non-maskable interrupt input.
INTPO-INTPS. External interrupt inputs. INTPO, INTP1,
and INTP3 are timer capture trigger inputs.
CI. Extemal clock input to the timer.
ASCK. Asynchronous serial clock input.
SI. Serial data input for three-wire serial I/O mode.
P30-P37' Port 3 is an 8-bit tristate I/O port with the programmable pullup option.
RxD. Receive serial data input.
TxD. Transmit serial data output.
SCK. Serial shift clock output.
SO. Serial data output for three-wire serial I/O mode.
SBO. I/O bus for the clocked serial interface.
TOO-T03. Timer flip-flop outputs.
P4o-P47' Port 4 is an 8-bit, bidirectional tristate port with
the programmable pullup option. Port 4 has direct LED
drive capability.
ADo-AD7' Multiplexed address/data bus used with external memory or expanded I/O.
P50~PS7'
Port 5 is an 8-bit, bidirectional tristate port with
the programmable pullup option. Port 5 has direct LED
drive capability.
P64-~' Pins P64-P~ of port 6 are tristate I/Os with the
programmable pullup option.
RD. Read strobe output used by external memory (or data
registers) to place data on the I/O bus during a read
operation.
WR. Write strobe output used by external memory (or data
registers) to latch data from the I/O bus during a write
operation.
WAIT. Wait signal input.
REFRQ. Refresh pulse output used by external pseudostatic memory.
AN6, AN7~ Analog voltage inputs to A/D converter.
P70-P7s. Port 7 is a 6-bit input port.
ANO-ANS. Analog voltage inputs to A/D converter.
ASTB. Address strobe output used by external circuitry to
latch the low-order 8 address bits during the first part of a
read or write cycle.
RESET. A low level on this external reset input sets all re- . .
gisters to their specified reset values. This pin, together . .
with P2o/NMI, sets the jl.PD78P214 in the PROM program- _
mingmode.
EA. Control signal input that selects external memory (EA
low) or internal ROM (EA high) as the program memory.
When EA is low, jl.PD78214 is set in ROMless mode and
external memory is accessed.
X1, X2. For frequency control of the internal clock oscillator, a crystal is connected to X1 and X2. If the clock is
supplied by an external source, the clock signal is connected to X1 and the inverteq plock signal is connected
toX2.
As-A1S' Upper-order address bus used with external
memory or expanded I/O.
P60-P63' Pins P6o-P63 of port 6 are outputs.
A16-A19' Extended-order address bus used with external
memory.
6-7
ttlEC
p,PD7821x
JJ.PD7821x Block Diagram
Bus Control
A1S-A lg l
PSO-PS3
SFR Address/Data Bus
AS,A1S I
PSO-PS7
ADO-AD71
P40-P47
PS4 /RD
P32/SCK
P33/SOiSBO
P27/S1
-~
PSSiWR
_ _ _ _...J
PSSiWAITI
ANS
INTP3
P34ITOO
PS7/REFRQI
AN7
P3SITOl
ASTB
Micro
Sequencer
INTPO
System Control
INTPl
P23/INTP2iCI
P3sIT02
P37IT03 4--;.._ _ _--1
- - VDD
- - VSS
Macroservice
Channels
(2S6 Bytes)
Internal Data Bus
Data Bus
P20
-P2 7
P30
-P37
P40
- P47
PSO
-PS 7
PSO
-PS 3
PS4
-PS 7
P70
-P7 S
83ML·6079B
fttfEC
/-LPD7821x
FUNCTIONAL DESCRIPTION
Timing
The maximum clock frequency is 12 MHz. The clock is deJived from an external crystal or an external oscillator. The
internal processor clock is two-phase and the machine
states are executed at a rate of 6 MHz. The shortest instructions require two states (333 ns). The CPU contains a
one-byte instruction prefetch. This allows a subsequent
instruction to be fetched during the execution of an instruction that does not reference memory.
Memory Map
The ""PD7821x has 1M byte of address space. This
address space is partitioned into 64K bytes of program
memory starting at address OOOOOH. (See figure 1.) The
remainder of the 1M bytes Can be accessed as data memoryspace.
External memory is supported by I/O port 4, an 8~bit mUltiplexed address/data bus.. The memory mapping register
controls the size of external memory as well as the number
of added wait states. The upper address byte is derived
from port 5, and the extended address nibble is derived
from port 6.
.
The ""PD78214 has on-chip mask ROM occupying the
space from OOOOOH to 03FFFH. When the ROM is used
and no other program or data space is required, ports 4, 5,
and 6 are available as additional I/O ports.
Figure 1. Memory Map
OOOOOH
OOOOOH
0003FH
00040H
en-ChipROM
16,384 Bytes
(Mu,1 be external : ~
memory
In ",,078213)
~
03FFFH
04000H
External Memory
~
OFCFFH
OFOOOH
~
S~ecial
Function
eglster (SFR)
Area
OFFFFH
l0000H
~
1
External
Memory
(Extended
Address
Area)
007FFH
OO6OOH
CALLT Table Area
II
Program Area
CALLF Entry
Area
OOFFFHI
01000H
Program Area
03FFFHi
+
OFDOOH
On-Chip RAM
512 Bytes
OFEFFH
OFFOOH
FFFFFH
~
0007FH
00060H
Interrupt Vector
Address Table Area
On-Chlp
RAM
I~
.
1
OFEOFH
OFEEOH
OFEFFH
General-Purpose
Registers
13ML-8081B
6-9
f.LPD7821x
General-Purpose Registers
Special Registers
The general-purpose registers are mapped into specific
addresses in data memory. They are made up of four
banks, each bank consisting of eight a-bit or four 16-bit
registers. The register bank used is specified by a CPU
instruction. This can be checked by reading RBSO and
RBS1 in the program status word (PSW}.The generalpurpose register configuration is shown in figure 2.
There are three different special registers. The first is a 16-
Figure 2. Register Mapping
7
OFEEOH ~'
Bank
I
~
2
For6-Bit
Processing
-
......, /
For 16-Bit
Processing
(R1) A
(RO) X
(RPO) AX
OFEF6H
(R3) B
(R2) C
·(RP1) BC
OFEFAH
(RS) D
(R4) E
(RP2) DE
OFEFCH
(R7) H
(R6) L
(RP3) HL
OFEFEH
'---
OFEFFH
o
- ,,
bit binary counter that holds the next program address to
be executed and is named the program counter. The stack
pOinter is the second special 16-bit register. The stack
pointer holds the address of the stack area (a lastin, first
out system). The third special register is ana-bit program
status word. This register contains various flags that are
set or reset depending on the results of instruction execution. The program status word format is as folloWs:
"
( ) = Absolute Name
83ML-6082A
IE
0
I z I RBS1 I
CY
ISP
RBSO,RBS1
AC
Z
IE
AC
I
RBSO
0
ISP
CY
Carry flag
Interrupt priority status flag
Register bank selection flags
Auxiliary carry flag
Zero flag
Interrupt request enable flag
Special Function Registers
These registers are assigned to special functions such as
the mode and control registers for on-chip peripheral
hardware. They are mapped into the 256-byte memory
space from OFFOOH to OFFFFH. Table 1 is a list of special
function registers.
NEe
f.LPD7821x
Table 1. Special Function Registers
Handleable
Bit Unit
1
Special Function Regllter (SFR) Name
Address
Symbol
R/W
8
16
Bit Bit Bit
On~et
OFFOOH
PortO
PO
R/W
0
0
Indeterminate
OFF02H
Port 2
P2
R
0
0
Indeterminate
OFF03H
Port 3
P3
R/W
0
0
Indeterminate
OFF04H
Port 4
P4
R/W
0
0
Indeterminate
OFF05H
Port 5
P5
RIW
0
0
Indetermlnale
OFF06H
PortS
PS
RIW
0
0
xOH
OFF07H
Port 7
P7
R/W
0
0
Indeterminate
OFFOAH
PortO buffer register (low)
POL
RIW
0
0
Indeterminate
OFFOBH
Port 0 buffer register (high)
POH
RIW
0
0
Indeterminate
OFFOCH
Real-time output port control register
RTPC
RIW
o.
0
OFFIOH,
OFFIIH
IS-bit compare register 0 (IS-bit timer/counter)
CROO
RIW
0
Indeterminate
OFFI2H,
OFFI3H
IS-bit compare register I (IS-bittlmer/counter)
CROI
RIW
0
Indeterminate
OFFI4H
S-bit compare register (S-bit timer/counter I)
CRIO
RIW
0
Indeterminate
OFFI5H
S-bit compare register (S-bittimer/counter 2)
CR20
RIW
0
Indeterminate
OFFISH
S-bit compare register (S-bittimer/counter 2)
CR21
RIW
0
Indeterminate
OFFI7H
S-bit compare register (S-bittimer/counter 3)
CR30
RIW
0
OFFI8H,
OFFI9H
IS-bit capture register (16-bittimer/counter)
CR02
R
OFFIAH
S-bit capture register (8-bHtimer/counter 2)
CR22
R
0
Indeterminate
OFFICH
8-bit capture/compare register (S-bittimer/counter I)
CRII
R/W
0
Indeterminate
OFF20H
Port 0 mode register
PMO
W
0
FFH
OFF23H
Port 3 mode register
PM3
W
.0
FFH
OFF25H
Port 5 mode register
PM5
W
0
FFH
OFF26H
Port 6 mode register
PM6
R/W
0
FxH
OFF30H
Capture/compare control register 0
CRCO
W
0
IOH
OFF31H
Timer output control register
TOC
W
0
OOH
OFF32H
Capture/compare control register I
CRCI
W
0
OOH
OFF34H
Capture/compare control register 2
CRC2
W
0
OOH
OFF40H
Pull-up option register
PUO
R/W
0
0
OOH
OFF43H
Port 3 mode control register
PMC3
R/W
0
0
OFF50H,
OFF51H
16-bittimer register 0
TMO
R
OFF52H
S-bittimerregister I
TMI
R
OOH
Indeterminate
0
OOH
0
0
Indetermimite
OOOOH
OOH
6-11
II
NEe
/-LPD7821x
Table 1. Special Function Registers (cont)
Handleable
Bit Unit
1
Address
Special Function Register (SFR) Name
8
16
Symbol
R/W
Bit Bit Bit
On Reset
OFF54H
8-bit timer register 2
TM2
R
0
OOH
OFF56H
8-bittimer register 3
TM3
R
0
OOH
OOH
OFF5CH
Prescaier mode register 0
PRMO
W
0
OFF5DH
Timer control register 0
TMCO
R/W
0
OOH
OFF5EH
Prescaler mode register 1
PRM1
W
0
OOH
OFF5FH
Timer control register 1
TMC1
R/W
0
OOH
OFF68H
AID converter mode register
ADM
RIW
0
0
OOH
OFF6AH
AID conversion result register
ADCR
R
0
0
Indeterminate
OFF80H
Clocked serial interface mode register
CSIM
R/W
0
0
OOH
OFF82H
Serial bus interface control register
SBIC
RIW
0
0
OOH
OFF86H
Serial shift register
SID
RIW
0
Indeterminate
OFF88H
Asynchronous serial interface mode register
ASIM
RIW
0
0
80H
OFF8AH
Asynchronous serial interface status register
ASIS
R
0
0
OOH
OFF8CH
Serial receive buffer:
RxB
R
0
Indeterminate
OFF8EH
Serial send shift register:
TxS
W
0
Indeterminate
OFF90H
Baud rate generator control register
BRGC
W
0
OOH
OFFCOH
Standby control register
STBC
R/W
0
OOOOxOOOB
OFFC4H
Memory expansion mode register
MM
R/W
0
0
20H
OFFC5H
Programmable wait control register
PW
RIW
0
0
80H
OFFC6H
Refresh mode register
RIW
0
0
OFFEOH
Interrupt request flag register L
RIW
0
0
OFFE1H
Interrupt request flag register H
IFOH
RIW
0
0
OFFE4H
Interrupt mask flag register L
MKOL
RIW
0
0
OFFE5H
Interrupt mask flag register H
MKOH
OFFE8H
Priority specification flag register L
PROL
UART
UART
RFM
IFOL
IFO
MKO
RIW
0
0
PRO
RIW
0
0
OOH
0
OOOOH
0
FFFFH
0
FFFFH
OOOOH
FFFFH
OFFE9H
Priority specification flag register H
PROH
RIW
0
0
OFFECH
Interrupt service mode specification flag register L
ISMOL ISMO
RIW
0
0
OFFEDi-t
Interrupt service mode specification flag register H
ISMOH
RIW
0
0
OOOOH
OFFF4H
External interrupt mode register 0
INTMO
RIW
0
0
OOH
OFFF5H
External interrupt mode register 1
INTM1
RIW
0
0
OOH
OFFF8H
Interrupt status register
1ST
RIW
0
0
OOH
6-12
FFFFH
0
OOOOH
fttIEC
J.1PD7821x
Input/Output Ports
A/D Converter
Port 0 is a byte programmable tristate output port. Port 2 is
bit selectable as input or control pins. Port 3 is bit programmable as input, output, or control pins. Port 4 is byte
programmable as an I/O port or as the external address I
cjata bus. Port 5 is bit programmable as 110 or the upper
address byte. Port 6 is bit programmable as 110, control
pins, or the extended address nibble. Port 7 is an input
only port.
The f.LPD7821x AID converter (figure 4) uses the successive-approximation method of converting any or all of the
eight multiplexed analog inputs into 8-bit digital data. this
data is stored in a result register that can be accessed at
any time. The conversion time is 30 f.LS at 12-MHz operation. Quantization error is ±1/2 LSB; maximum full-scale
error is 0.4%.
Real-Time Output Port
The real-time output port (figure 3) shares pins with port O.
The high and low nibbles may be treated separately or together. In the real-time output function, data stored beforehand in the buffer register is transferred to the output
latch simultaneously with the generation of either a timer
interrupt or external interrupt. USing the real-time output
function in conjunction with the macroservice function
enables port 0 to output preprogrammed patterns at preprogrammed variable time intervals.
There are two methods for starting the AID conversion
operation. Conversion may be started by hardware by
using an external interrupt as a trigger. The second method
of starting conversion is with a software eommand.
There are also two methods by which the f.LPD7821x will
operate after conversion has begun. The first, the scan
method, selects several analog input signals sequentially
and obtains data from each pin producing an interrupt with
each conversion. The converted data can be successively
transferred to memory by using the macroservice function.
The second, the select mode, chooses anyone input
and the result is updated continuously, with or without interrupt generation depending on the chosen start method.
Figure 3. Real-Time Output Port
Internal Bus
Buffer ~egister
4-Bit
Real-Time
Output (POH)
POH
POL
4-Bit Real-Time
Output (POL)
8
f--------14f----------.j4
8-Bit Real-Time
Output (PO)
EXTR
83ML-G0838
6-13
ttlEC
f.LPD7821x
Figure 4. Analog-to-Dlgltal Converter
ff,
, Resistor String
r-r'----,-,
ANO
I
I
II
Sample and
Hold Circuit
Rl2
,AV, 'REF
I
r----'
I
1-------.-0
I
R
I
I
I
Voltage
'
'S
I fIl
Comparator
lji
10.
Io!
Successive Approximation
Registcir [SAR]
I
I
I
1-'--------+·1
INTAD
"-----1
Trigger Enable
,'
8
,I,~'---I
AID Converter Mode
Register [ADM]
AID Conversion Result
8
8
I
=-~-"' ""
I
~
----,L
•
Selector
,Interrupt Request
Register IADCR]
Internal Bus
49TB-49GB
Serial Interface
The IlPD7821x has two independent serial interfaces.
• Asynchronous serial interface (UART) (figure 5)
• Clock-synchronized serial interface (figure 6)
A universal asynchronous receiver transmitter (UARn is
used as an asynchronous serial interface. This interface
transfers one byte of data following a start bit. The
/l-PD7821x contains a baud rate generator. This allows
data to be transferred over a wide range of transfer rates.
Transfer rates may also be defined by dividing the clock
input to the ASCK piri. Transfer rates may also be generated by 8-bit timer C9unter 3~
The clock-synchronized serial interface has two different
modes of operation:
• Three-line serial 1/0 mode.
In this mode, data 8 bits long is tral1sferred along three
lines: a serial clock (SCK) line and two serial bus lines
(SO and SI). This mode is convenient when the'
IlPD7821x is connected to peripheral I/0s and display
controllers that have the conventional clocksynchronized serial interface.
• Serial bus interface mode (SBI).
In this mode the IlPD7821 x can communicate data with
several devices using the serial clock (SCK) and the serial data bus (SBO) lines. This mode conforms to NEC's
serial bus format. In SBI mode, addresses that select a
device to communicate with, commands that direct the
device, and actual data are output to the serial data bus.
A handshake line, which was required for connecting
several devices in the conventional clock-synchronized
serial interface, is not needed.
ttlEC
f-LPD7821x
Figure 5. Asynchronous Serial Interface
Internal Bus
_I
r------j4
Coincidence
L-:..;.y.:.;.;.....--
INTSR
83ML-6085B
6-15
ttiEC
/-LPD7821z
Figure 6. Clock-Synchronized Serial Interface
N-ch Open-Drain
, Output Possible
Bus Releasel
Command!
Ac;knowledge
Detection
Circuit
INTCS1
From Timerl
. - - ' - - - - Counter 3
fClK'S
fClK132
83ML·8086B
6-16
tt{EC
~PD7821x
Timer/Counters
The fLPD7821X has four timer/counters: one 16-bit and
three 8-bit. The 16-bit timer/counter (figure 7) has the
basic functionality of an interval timer, a programmable
$quare-wave output, and a pulse width measurer. These
functions can provide a digital delayed one-shot output, a
pulse width modulated output, and a cycle measurer.
The first two 8-bit timer/counters can provide the basic
functions of an interval timer and a pulse width measurer.
Timer/counter 1 can also be used as a timer for output
trigger generation for the real-time output port. Timer/
counter 2 can also provide an external event counter, a
one-shot timer, a programmable square-wave output, a
pulse-width modulated output, and a cycle measurer.
Timer/counter 3 can operate as an internal timer or as a
counter to generate clocks for a baud rate generator. See
figures 8, 9, and 10.
Figure 7. 16-Bit Timer/Counter
Internal Bus
External
Interrupt
Mode Register
(INTM1)
Capturei
Compare
Control
Register
(CRCO)
P23ilNTP2
16
83ML·6076B
6-17
ttlEC
fJ.F'D7821x
Figure 8. 8-Blt Timer/Counter 1
<
L.,ternal Bus
Extemallnterrupl ....-.::{.-Mode Register 0
8
Capture!
Compare
ConI Reg I L-..,........L_..-..J.......,--I
(CRC1)
(INTMO)
INTPO
~~~~~~-----------+---+-----+~~ INTC10
fCLK/512
fCLKI256
fCLK /128
Overflow
fCLKi64
fCLK/32
fCLK/16
Capture
Trigger
Prescaler
Mode Regisler
(PRM1)
L.._.....J......,...-..l.._--l
I -____-I-_--l-_-L~H>-----~ INTCll
......J.......,r-.1...... Timer
Control
Regisler 1
(TMC1)
8
Inlernal Bus
83ML-8077B
6-18
fttfEC
f.1PD7821x
Figure 9. 8-Bit Timer/Counter 2
INTP1
'--------!--INTC21
'CLK /512 'CLK /256
'CLK /128
'CLK/64
'CLK/32
'CLK/16
Prescaler
Mode Register
(PRM1)
8
Inlema! Bus
83ML-60788
Interrupts
There are 20 interrupt request sources; each source is allocated a location in the vector table. (See table 2.) There is
one software interrupt request and one of the remaining 19
interrupts is non-maskable. The software interrupt and the
non-maskable interrupt are unconditionally received even
in the 01 state. These two interrupts possess the maximum
priority. The maskable interrupt requests are subject to
mask control by the setting of the interrupt mask flag.
There are default priorities associated with each maskable
interrupt and these can be assigned to either of two programmable priority levels. Interrupts may be serviced by
the vectored interrupt method where a branch to a desired
service program is executed. Interrupts may also be handled
by the macroservice function where a preassigned process is performed without program intervention.
6-19
NEe
,...,PD7821x
Figure 10. 8-81t Timer/Counter 3
Interna! Bus
8
8
ES41, ES40
INTP4/ASCK
fCLK/512
fCLK/256
fCLK/128-fCLK/64--
' - - - - - - . Serial Interface
8-Bit Timer 3
[TM3j
fCLK/32-fCLK/16
fCLK/8
I
I
I
Prescaler Mode PRS3
PRSt
PRSO
Register 0 [PRMOj L _ _.J_ _"""'_ _..J-_--.J.
Intemal Bus
49TB-4978
Table 2. Interrupt Sources and Vector Addresses
Interrupt
Request
Type
Default
Priority
Software
None
Non-maskable
None
Mask8ble
6-20
0
Interrupt Request Generation Source
Macroservlce
Mode
BRK instruction execution
Vector
Table
Address
003EH
NMI (pin input edge detection)
0002H
INTPO (pin input edge detection)
Yes'
0006H
INTP1 (pin input edge detection)
Yes
OOOBH
2
INTP2 (pininput edge detection)
Yes
OOOAH
3
INTP3 (pin input edge detection)
Yes
OOOCH·
4
INTCOO (TMO-CROO coincidence signal generation)
Yes
0014H
5
INTC01 (TMO-CR01 coincidence signal generation)
Yes
0016H
6
INTC10 (TM1-CR1 0 coincidence signal generation)
Yes
0018H
7
INTC11 (TM1-CR11 COincidence signal generation)
Yes
00lAH
8
INTC21 (TM2-CR21 coincidence signal generation)
Yes
00lCH
9
INTP4 (pin input edge detection)IINTC30 (TM3-CR30 coincidence signal generation)
Yes
OOOEH
10
INTP5 (pin input edge detection)/INTAD (end of AID conversion)
Yes
0010H
11
INTC20 (TM2-CR20 coincidence signal generation)
Yes
0012H
12
INTSER (generation of asynchronous serial interface receive error)
13
INTSR (end of asynchronous serial interface reception)
Yes
0022H
14
INTST (end of asynchronous serial Interface transmission)
Yes
0024H
15
INTCSI (end of clocked serial interface transmission)
Yes
0026H
0020H
ttlEC
Macroservice
The macroservice function can be programmed to transfer
data from a special function register to memory or from
memory to a special function register. Transfer events are
triggered by interrupt requests and take place without software intervention. There are 17 interrupt requests where
macroservicing can be executed. The macroservice function is controlled by the macroservice mode register and
the macroservice channel pointer. The macroservice
mode register assigns the macroservicing mode and the
macroservice channel pointer indicates the address of the
memory location pOinters. The location of each register
and its corresponding interrupt is shown in figure 11.
Refresh
The refresh signal is used with a pseudostatic RAM. The
re1resh cycle can be set to one of four intervals ranging
from 2.6 to 21.3 ,.,..s. The refresh is timed to follow a read or
write operation so there is no interference.
Standby Modes.
Halt and stop functions reduce system power consumption. In the halt mode, the CPU stops and the system clock
continues to run. A release of the halt mode is initiated by
an unmasked interrupt request, an NMI, or a RESET
input. In the stop mode, the CPU and system clock are
both stopped, reducing the power consumption even
further. The stop mode is released by an NMI input or a
RESET input.
Il-PD7821x
Figure 11. Macroservice Control Word Map
OFEDFH
Channel Pointer
OFEDEH
Mode Register
OFEDDH
Channel Pointer
OFEDCH
Mode Register
OFEDBH
Channel Pointer
OFEDAH
Mode Register
OFED9H
Channel Pointer
OFED8H
Mode Register
OFED7H
Channel Pointer
OFED6H
Mode Register
OFED5H
Channel Pointer
OFED4H
Mode Register
OFED3H
Channel Pointer
OFED2H
Mode Register
OFED1H
Channel Pointer
OFEDOH
Mode Register
OFECFH
Channel Pointer
OFECEH
Mode Register
OFECDH
Channel Pointer
OFECCH
Mode Register
OFECBH
Channel Pointer
OFECAH
Mode Register
OFEC9H
Channel Pointer
OFEC8H
Mode Register
OFEC7H
Channel Pointer
OFEC6H
Mode Register
OFEC5H
Channel Pointer
OFEC4H
Mode Register
OFEC3H
Channel Pointer
OFEC2H
Mode Register
INTSR
INTST
INTCSI
INTC10
INTC11
INTP4IINTC30
INTP5IINTAD
INTCOO
INTC01
INTC20
INTC2.1
INTPO
INTP1
INTP2
INTP3
83ML·6087A
6-21
ELECTRICAL· SPECIFICATIONS
Absolute Maximum Ratings
TA = +25OC.
Item
Operating vollage
Input voltage
Output voltage
Low-level output current
Symbol
Rating
Unit
Voo
Conditions
-0.5to+7.0
V
AVREF
-0.5toVoo
V
AVSS
.-0.5 to +0.5,
V
VI1
Note 1
-0.5tOVrio+ 0;5
V
VI2
Note 2
":0.5 10'AVREF + 0.5
V
VI3
Note 3; lor ",PD78P214
-0.5 to +13.5
V
Vo
One output pin
IOL
All output pins total
High-level output current
One output pin
All.output pins total
Operating temperature
Storage temperature
.TSTG
-0.5toVoo + 0,5
V
30 (peak)
rnA
15 (mean value)
rnA
150 (peak)
rnA
100 (mean vlilue)
rnA
-2
rnA
-50
rnA
-40 to +85
°C
-6510+150
°C
Notes:
(1) Pins P70-P7s/ANO-AN5, P6s/WAIT/AN6, and P67/REFRQ/AN7
except when Note 2 is applicable.
(2) Pin used as the A/D converter input or pin selected by bits ANIOANI2 01 the ADM register when the AID converter is not in operation.
(3) P20/NMI, EAlVpp, and P21/INTPO/Ag pins in the PROM programmingmode.
Operating Frequency
Oscillation Frequency
ixx=4t012MHz
Capacitance
Voo
+5V± 10%,
TA = +25°C; voo = vss = 0 V.
Item
Symbol Typ Max Unit Conditions
CI
20
pF 1= 1 MHz; pins not
Input capacitance
- ' - - - ' - - - - - - - ' - - - - - - - ' - - usedlormeasure_O_ut.:".p_ut_C8...;p_a_c_Ha_n_ce_ _ _C...;o=-_ _ _
20_-'-p_F mentareatOV
Input/output C8pacHance
6-22
CIO
20
pF
fttfEC
fJ-PD7821x
DC Characteristics
TA = -40 to +85'C; voo = +5 V ±10%; vss = 0 V.
Item
Low-level input voltage
High-level input voltage
Low-level output voltage
High-level output voltage
Symbol
Conditions
VIL
AVREF current
VOO power supply current
Unit
0.8
V
VIH1
2.2
VOO
V
VIH2
Specified pins (Note 1)
2.2
AVREF
V
VIH3
Specified pins (Note 2)
0.8VOO
VOO
V
VO L1
IOL =2.0mA
0.45
V
VO L2
IOL = 8.0 rnA (Note 3)
1.0
V
VOH1
IOH=-1.0mA
IOH =-5.0mA(Note4)
Voo-1.0
V
Voo-0.5
V
2.0
V
±10
ILl
."A
±10
."A
Operating mode, fxx = 12 MHz
1.5
5.0
mA
1001
Operating mode, fxx = 12 MHz
20
40
mA
1002
HALT mode, fxx = 12 MHz
7
20
rnA
ILO
AIREF
Data retention voltage
VOOOR
STOP mode
Data retention current
1000R
STOP mode
5.5
V
2
20
."A
5
50
."A
40
80
kG
2.5
VOOOR = 2.5V
VOOOR = 5V ±10%
Pullup resistor
Msx
Except the specified pins (Notes 1, 2)
VOH3
Output leakage current
Typ
0
VOH2
Input leakage current
Min
15
RL
Notes:
(1) Pins P70-P7s /ANO-AN5, P6s/WAIT/AN6, and P~/REFRQ/AN7
when the pin is used as the AID converter input or is selected by bits
ANI0-ANI2 of the ADM register when the AID converter is not in
operatio_n.__
'.,
(2) X1, X2, RESET, P20/NMI, P2 1/INTPO, P22/1NTP1, P23/INTP2/CI,
P24/1NTP3, P2s /INTP4/ASCK, P26/1NTP5, P27/SI, P32/SCK,
P33/S0/SBO, and EA pins.
(3) Pins P40-P47/ADo-A~ and P50-P~/A8-A1S'
(4) Pins POo-P07.
Figure 12. Voltage Thresholds for Timing Measurements
>C
0.8 VDD _
or 2.2 V
VDD-1_X._
0.8V
0.45 V - - - - - '
83ML-6089A
6-23
II
ttI£C·
~PD7821x.
Read/Write Operation
TA = -40 to +85OC; VOO '" +5 V ± 10%; Vss = 0 V; fxx = 12 MHz; CL = 100 pF.
Itein
Symbol
Conditione
Min
Max
Unit
xi inplltclockcycletime
tc;vx
8~
250
ns
Address setup time to ASTB ~
IsAST
52
ns
25
ns
ns
Address hold time from ASTB ~ (Note 1)
!tiSTA
AddressloRD ldelaytime
tOAR
129
Address float iimEi from RD ~
tFAR
11
Address 10 data input time
ASTB ~ to data inputtime
RD ~ to data input time
ASTB ~ to RD ~ delay time
DataholdtimefromRD t
RD t to address active time
RL=5kO,CL=50pF
ns
toAIO
228
ns
tOSTIO
181
ns·
tORIO
99
ns
tDSTR
52
ns
tHRIO
0
ns
ns
tORA
124
RD t toASTB t delay time
tORST
124
ns·
RmOw-level width
tWRL
124
ns
tWSTH
52
ns
AddresstoWR ~ delay time
tOAW
129
ns
ASTB high-level width
ASTB l to data output time
tOSTOO
142
ns
iNA .~ to data output time
toweD
60
ns
ASTB l toWR ~ delay time
tOSTW1
tosTW2
DatasetuptimetoWR t
DatasetuptimetoWR
~
52
Refresh mode
IsoOWR
(Note 1)
ns
146
ns
22
ns
DataholdtimefromWR t
tHWOO
20
ns
WR t toASTB t delay time
tOWST
42
ns
WR low-level width
twwL1
196
ns
IsoOWF
tWWL2
Address to WAIT ~ input time
ASTB ~ to WAIT ~ input time
WAIThoidtimefromX1
WAITsetuptimetoX1 t
~
Refresh mode
114
ns
tOAWT
146
ns
tOSTWT
84
ns
tHWTl(
0
ns
tSWTX
0
ns
Notes:
(1) The hold time Includes the time during which VOH and VOL are
retained under the following load conditions: CL = 100 pF and
RL =2kO.
6-24
Refresh mode
ns
129
NEe
J-LPD7821x
Figure 13. Read Operation Timing
Xl
!.------IOAIO -------.1
ADO-AD7
---<
I HSlA
o--~
14-"
......
,-----+
I FAR
IOSllD
•
ASlB
IORIO
'....o - - - - I W R L - - - - - + j
83ML-6091B
6-25
NEe
J.1PD7821x
Figure 14. Write Operation Timing
ro-tCyx--\
X1
Output Data
ADO-AD7 - - - {
-+----I~-tSODWR---+I +tHWOD
1+-,.--1-1+-1
ASTB
t SODWF
1+----1i-- t WWl1
tWWl2
t DSlW2 ---+\
83ML-6092B
Figure 15. External WAIT Input Timing
X1
1+----ltDAWT---~
ASTB
tOSTWT
83ML·5993B
6-26
fttlEC
Serial Port Operation
= -40 to +B5°C; voo = +5 V ±
TA
/-1PD7821x
10%; VSS
Item
Serial clock cycle time
= 0 V; fxx = 12 MHz; CL = 100 pF.
Conditions
Symbol
tcYSK
Input
Serial clock high-level width
tWSKL
tWSKH
Input
Unit
,...s
,..s
Internal clock/64
5.3
,..s
External clock
420
ns
Output Internal clock/16
556
ns
Internal clock/64
2.5
,...s
420
ns
Output Internal clock/16
Input
External clock
556
ns
Internal clock/64
2.5
"'S
ns
SI, SBO setup time to SCK t
tSSSK
150
SI, SBO hold time from SCK •
tHSSK
400
SO/SBO output delay time from SCK t
Max
1.3
Output Internal clock/16
Serial clock low-level width
Min
1.0
External clock
ns
tOSBSK1
CMOS push-pull output
(3-lineseriaIIiOmode)
0
300
ns
tOSBSK2
Open-drain output
(SBI mode), RL = 1 kG
0
800
ns
SBO high, hold time from SCK t
tHSBSK
SBlmode
4
tCYX
SBOlow, setup time to SCK.
tSSBSK
SBlmode
4
tCYX
SBO low-level width
tWSBL
4
tcyX
SBO high-level width
tWSBH
4
tCYX
RxD setup time to SCK t
tSRXSK
BO
ns
RxD hold time after SCK t
tHSKRX
BO
SCK • to TxD delay time
tOSKTX
ns
210
ns
6-27
II
NEe
rJ,PD7S21 x.
Figure 16. Three-Line Serial 110 Timing
SCK
SI------<
SO _ _ _
_.lX\..______. . .
~___O_ut_Pu_t_D_a~_ __.l)(~________J)(~________
SB/Mode
Bus Release Signal Transfer Timing
: --1-~tJRt'--'=_'}=L:.,......-1_\--,~~-!_-_-~='x:::
Command Signal Transfer Timing
tHSBSK
tSSBSK
SBO
83ML-G0908
6-28
tiEC
J.LPD7821x
Figure 17. Asynchronous Mode Timing
ICYSK
f4--I WSKL-. ~WSKH--
I
\
\
)
TxO
_IOSKTX-
K
)
RxO
ISRXSK
IHSKRX
83ML-5989B
AID Converter Operation
TA = -40 to +85°C; VOO = + 5 V ± 10%; Vss = AVss = 0 V.
Item
Symbol
Conditions
Resolution
Min
Max
8
Full-scale error
Bit
AVREF = 4.0VIoVOO;TA = "':1010 + 70°C
0.4
%
AVREF = 3.4 VtoVoo;TA = -1010 +70°C
0.8
%
AVREF=4.0VtoVoo
Quantization error
Conversion time
Sampling time
Analog input voltage
Input impedance
Analog reference voltage
AVREF current
tCONV
tSAMP
0.8
%
±1/2
LSB
82 ns;;; tcvx;;; 125 ns
360
tCYX
125 ns;;; tCYX;;; 250 ns
240
tCYX
82 ns;;; tCYX ;;; 125 ns
72
tcvx
125 ns;;; tCYX ;;; 250 ns
48
tCYX
0
VIAN
AVREF
1000
RAN
V
MO
Voo
V
Operating mode, fxx = 12 MHz
1.5
5.0
mA
STOP mode
0.2
1.5
mA
3.4
AVREF
AIREF
Unit
6-29
II
N'EC
J.LPD7821x
Interrupt Timing Operation
Item
NM! !c'.rA/-!evel width
Figure 18. Interrupt Input Timing
Symbol Conditions Min Max Unit
"'S
"'S
tWNIL
10
NMI high-level width
tWNIH
10
INTPO-INTP5Iow-level width
tWITL
24
tCYX
INTPO-INTP5 high-level width
tWITH
24
tCYX
RESET low-level width
tWRSL
10
RESET high-level width
tWRSH
10
"'S
"'S
NMI
INTPO·
INTP5
Figure 19. Reset Input Timing
RESET
Data Retention Characteristics
Item
Data retention voltage
Data retention current
Symbol
VOOOR
IOOOR
Conditions
Min
Typ
2.5
Max
Unit
5.5
V
VOOOR=2.5V
2
15
,..A
VOOOR = 5 V ±10%
5
20
",A
STOP mode
VOOrisetime
tRVO
200
VOO fall time
tFVO
200
"'s
Voo retention time
(for STOP mode setting)
tHvO
0
ms
STOP release signal input time
tOREl
0
ms
Oscillation stabilization wait time
tWAIT
30
ms
Low-level input voltage
V1L
High-level inputvoltage
VIH
Crystal oscillator
ms
Ceramic resonator
5
Specified pins (Note 1)
0
0.1 VOOOR
V
0.9VOOOR
VOOOR
V
Notes:
(1) RESET, P2o/NMI, P2 1 /INTPO, P22 /1NTP1, P23 /INTP2/CI, P2 4 1
INTP3, P25/INTP4/ASCK, P26I1NTP5, P27 /SI, P32 /SCK, P33 /S01
S80, and EA pins.
6-30
",s
ftt{EC
IJ.PD7821x
Figure 20. Data Retention Characteristics
Set STOP Mode
VOO
•
VOOOR
f4-----tWAIT - - - " ' l
tRVO
VOOOR
0.8 V
NMI
(Release by falling
edge input)
VOOOR
0.8 V
NMI
(Release by rising
edge input)
83UL-5992B
6-31
~EC
~PD7821x'
Timing Dependent on tcyx
Item
Xl inpulciockcyclelime
Calculation Formula
tCYX
MiniMax
12 MHz
Unit
Min
82
ns
Min
52
ns
Min
129
ns
ns
Address setup time to ASTB, !
tSAST
tcvx- 3O
AddresstoRD! delay time
tOAR
2tcYX- 35
Address float time from RD !
tFAR
tcvx /2 - 3O
Min
11
Max
228
ns
181
ns
Address to data input time
tOAIO
(4+2n)tcvx- 1OO
ASTB ! to data inputtime
tOSTIO
(3+2n)tcvx- 65
Max
RD ! to data inputtime
tORIO
(2+2n)tCYX-65
Max
99
ns
tOSTR
tcvx~30
Min
52
ns
ns
ns
~STB
! to RD ! delay time
RD t to address active time
tORA
2tCYX-40
Min
124
RD t to ASTB t delay time
tORST
2tCYX-40
Min
124
RD low-level width
tWRL
(2+2n)tcvx- 4O
Min
124
ns
tWSTH
tcvx- 3O
Min
52
ns
AddresstoWR! delay time
tOAW
2tCYx-35
Min
129 '
ns
ASTB ! to dat~ outputtime
tOSTOO
tcyx+60
Max
142
ns
ASTB ! to WR ! delay time
tOSTW1
tCYX-30
Min
52
ns
tOSlW2
2tcYX-35
(refresh mode)
Min
129
ns
DatasetuptimetoWR t
tSOOWR
(3+2n)tcvx- 1OO
Min
146
ns
Data setup time to WR !
tSOOWF'
tCYX-60
(refresh mode)
Min
22
ns
ASTB high-level wid1h
.,'''.
Symbol
WR t to ASTB t delay time
tOWST
tcvx- 4ci
Min
42
ns
WR low-level width
tWWL1
(3+2n) tcYX-50
Min
196
ns
tWWL2
(2+2n)tCYX-50
(refresh mode)
Min
114
ns
Address to WAIT ! input time
tOAWT
3tCYX-100
Max
146
ns
ASTB! to WAIT ! input time
tOSTWT
2tcvx- 8O
Max
84
ns
Notes:
(1) n indicates the number of wait states.
!\fEe
/J-PD7821x
Figure 21. Recommended Oscillator Circuit
External Clock Operation
Min
Max
Unit
X1 inputlow-Ievelwidth
twxL
30
130
ns
X1 input high-level width
tWXH
30
130
ns
Item
C1..L
15~~
'1
C2
15pF
T
~
T
X1
IlPD7821X
X2
Symbol
X11nputrisetime
tXR
0
30
ns
X1 inputfalltime
tXF
0
30
ns
Icvx
82
250
ns
X1 input clock cycle time
Crystal frequency f xx
COnditions
= 4 to 12 MHz
83ML-8093A
Figure 23. External Clock Timing
Figure 22. Recommended External Clock Circuit
Clock
~--+----I
X1
XI
HCMOS
IlPD7821X
Inverters
~_------I~X--------~
X2
83MIAiGGSA
Clock frequency f xx
= 4 to 12 MHz
83ML-59Q4A
6-33
NEe
~PD7821x
f,LPD78P214 PROGRAMMING
Table 3. Pin Functions During EPROM Programming
In the 78P214, the mask ROM of 78214 is replaced by a
one-time programmable ROM (OTP ROM) or a reprogrammable, ultraviolet erasable ROM (UV EPROM). The
ROM is 16,384 x 8 bits and can be programmed using a
general-purpose PROM writer with a fLPD27C256A programming mode.
Pin
The PA-78P214CW/GJ/GQ/L are the socket adaptors
used for configuring the fLPD78P214 to fit a standard
PROM socket.
Refer to tables 3 through 6 and figures 24 and 25 for special information applicable to PROM programming.
Function
POO-PO?
AO-A?
Input pins lor PROM write/verify
operations
P50/AS
As
Input pin lor PROM write/verify operation
P2111NTPO
A9
Input pin lor PROM write/verify operation
P52-P5s/A1Q-A14
A1O-A14
Input pins lor PROM write/verify
operations
P40- P4?/ADo-AD? 0 0- D?
Data pins lor PROM write/verify
operations
P6 5/WR
CE
Strobe data into the PROM
OE
Enable a data read Irom the PROM
P20/NMI
NMI
PROM programming mode is entered by
applying a high voltage to this pin
RESET
RESET
PROM programming mode requires
applying a low voltage to this pin
EA
Vpp
High voltage applied to this pin lor
program write/verify
VDD
VDD
Positive power supply pin
Vss
Vss
Ground
Table 4. Summary of Operation Modes for PROM Programming
Voo
NMI
RESET
CE
DE
Program write
+12.5V
L
L
H
+12.5V
+6V
Program verify
+12.5V
L
H
L
+12.5V
+6V
Data output
Program inhibit
+12.5V
L
H
H
+12.5V
+6V
HighZ
Mode
00-0 7
Data input
Readout
+12.5V
L
L
L
+5V
+5V
Data output
Output disable
+12.5V
L
L
H
+5V
+5V
HighZ
Standby
+12.5V
L
H
LlH
+5V
+5V
HighZ
Notes:
When + 12.5 V is applied to Vpp and +6 V to VDD , both CE and OE cannot
be set to low level (L) simultaneously.
6-34
NEe
/-LPD7821x
TableS. DC Programming Characteristics
TA = 25 ±5°C, VIP = 12.5 ± 0.5 V applied to NMI pin, Vss = 0 V.
Symbol
Symbol*
High-level input voltage
VIH
VIH
2.4
VOOP +0.3
V
Low-level input voltage
VIL
VIL
-0.3
0.8
V
10
IJoA
Parameter
Condition
Min
Input leakage current
Vup
Vu
0,,; V, ,,;VOOP
High-level output voltage
VOH1
VOH
IOH=-4OO IJoA
2.4
VOH2
VOH2
IOH =-100IJoA
Voo-0.7
Low-level output voltage
VOL
VOL
Output leakage current
ILO
NM I pin high-voltage input current
VOOP power voltage
Vpp
100
VPP power current
V
0,,; Vo ,,; Vopp, OE = VIH
VCC
Vpp
Ipp
IcC
Ipp
Unit
V
IOH=2.1 mA
0.45
V
10
IJoA
±10
IJoA
Program memory write mode
5.75
6.0
6.25
V
Program memory read mode
4.5
5.0
5.5
V
Program memory write mode
12.2
12.5
12.8
V
Program memory read mode
VOOP power current
Max
liP
VOOP
Vpp power voltage
Typ
V
Vpp = VOOP
Program memory write mode
5
30
rnA
Program memory read mode
CE = VIL, VI = VIH
5
30
rnA
t:r:9gram memory write mode
CE = VIL, OE = VIH
5
30
rnA
100
IJoA
Max
Unit
Program memory read mode
• Corresponding symbols of the IJoP027C256A.
Table 6. AC Programming Characteristics
TA = 25 ±5°C, VIP = 12.5 ± 0.5 V applied to NMI pin, Vss = 0 V, VOO = 6 ±0.25 V, Vpp = 12.5 ±0.3 V.
Parameter
Typ
Symbol
Symbol*
tSAC
tAS
2
IJoS
tOOOO
tOES
2
IJos
InputdatasetuptimetoCE1.
tSIOC
tos
2
IJoS
t
tHCA
tAH
2
IJoS
tHCIO
tOH
2
tHOOO
tOF
0
Vpp setup time to CE •
tsvPC
tvps
VoopsetuptimetoCE1.
tsvoc
tvos
Initial program pulse width
tWL1
tpw
0.95
Additional program pulse width
tWL2
topw
2.85
NMI ~h-voltage input setup time
(vs. CE1.)
tspc
Address setup time to CE •
DatatoOE1. delay time
Address hold time from CE
Input data hold time from CE
Output data hold time to OE
t
t
Address to data output time
CE • to data outputtime
tOAOO
toCOO
Condition
Min
IJoS
130
ms
ms
1.0
1.05
ms
78.75
ms
2
tACC
tCE
IJoS
CE=OE=V1L
200
ns
OE=VIL
200
ns
CE=VIL
75
ns
60
ns
OE • to data outputtime
tOOOO
Data hold time from OE t
tHCOO
tOF
CE=VIL
0
Data hold time from address
tHAOO
tOH
CE=OE=VIL
0
tOE
ns
ns
• Corresponding symbols of the IJoPD27C256A.
6-35
II
NEe
iJ.PD7821x
Figure 24. PROM Write Mode Timing
~
--
Do-0 7
vIP
NMI
Vil
Vpp
Vpp
VOOP
VOOP +1
VOOP
VOOP
VIH
CE
-.
I- tSAC
Data
Input
~
IOC __
!!.CIO
~
-- 2.
---.I
--.J
...
-.J
...
tHOOD
I+--
Data
Output
tHCA
Data
Input
tSIOC ~
I-
--
"'- tHCIO
-
tsvPC
+'-
-
tsvoc
tWLl
+---VIH
_
tSPC
~
Vil
,K
Effecllve Address
-.
tOOOO
'-L=
i-tWL2-00
OE
Vil
Notes:
(1)
(2)
Veop must be applied before applying VPP_ tt should be removed after removing Vpp_
Vpp must not exceed +13 V. Including overshoot.
83ML-5996B
Figure 25. PROM Read Mode Timing
Effective Address
tHAOD
DataOulput
HI-Z
83ML-58978
6-36
NEe
f.LPD7821x
PROM Write Procedure
EPROM Erasure
(1) Connect the RESET pin to a low level and apply
+12.5 V to the NMI pin.
Data in an EPROM is erased by exposing the quartz window in the ceramic package to light having a wavelength
shorter than 400 nm, including ultraviolet rays, direct sunlight, and fluorescent light. To prevent unintentional erasure, mask the window.
(2) Apply +6 V to the VDD pin and + 12.5 V to the Vpp pin.
(3) Provide the initial address.
(4) Provide write data.
(5) Provide 1-ms program pulse (active low) to the CE pin.
(6) This bit is now verified with a pulse (active low) to the
OE pin. If the data has been written, proceed to step 8;
if not, repeat steps 4 to 6. If the data cannot be correctly written after 25 attempts, go to step 7.
Typically, data is erased by 254-nm ultraviolet rays. A minimum lighting level of 15 W· s/cm2 (ultraviolet ray intensity
x exposure time) is required to completely erase written
data. Erasure by an ultraviolet lamp rated at 12 mW/cm2
takes approximately 15 to 20 minutes. Remove any filter
on the lamp and place the device within 2.5 cm of the
lamp tubes.
(7) Classify as defective and stop write operation.
(8) Provide write data and supply program pulse (for
additional writing) for 3 ms times the number of
repeats performed between steps 4 to 6.
(9) Increment the address.
(10) Repeat steps 4 to 9 until the end address.
PROM Read Procedure
(1) Fix the RESET pin to a low level and apply + 12.5 V to
the NMI pin.
(2) Apply +5 V to the VDD and Vpp pins.
(3) Input the address ofthe data to be read to pins Ao-A14'
(4) Read mode is entered with a pulse (active low) on both
the CE and OE pins.
(5) Data is output to the Do to 0 7 pins.
6-37
NEe
IJ.PD7821x
INSTRUCTION SET
Table 7. Operands (cont)
AI! microcomputers in the IJ.PD7821x family have a 1-byte
instruction I.ookaheadbuffer. This allows the first byte of
the next opcode in program memory to be fetched while the
current opcode is being executed. This pipeline architecture allows instruction fetch and excutecycles to overlap.
An instruction can be fetched from program memory while
data.is being r.sad from or written to RAM or an 1/0 port.
Symbol
.
.','
The advantage of the pipeline is that one instruction can be
executed while another is being fetched, virtually halving
the time required for these two operations and thereby
reducing overall program execution time.
Operands and Operations
Refer to tables 7 and 8 for the meanings of symbols in the
operand and operations columns of the Instruction Set
table.
Specify operands in accordance with the rules of operand
representation; for details, refer to the assembler specifications. If two or more description methods are available,
select one. The symbols +, -, #, !, $, I, [ 1, and & are
keywords and must be used in conjunction with each
instruction.
When describing immediate data as a label, use one of the
following modifiers: +, -, #, !, $, I, [1, and &. Symbols rand
rp can be described in both the function name and absolute
name.
Table 7. Operands
Symbol
+
Meaning
Autoincrement
Autodecrement
#
Immediate data
Absolute address
$
Relative address
Bit inversion
[I
&
Indirect addressing
Subbank
Register
Function name: X, A, C, B, E, D, L, H
Absolute name: RO to Rt
r1
Register group 1: C, B
rp
Register pair
Function name: AX, BC, DE, HL
Absolute name: RPO to RP3
sfr
Special function register:
PO, P2-P7, POH, POL, RTPC, CR10, CR11, CR20, CR21 , CR22,
CR30. PMO. PM3. PM5. PM6. PMC3. PUO. CRCO-CRC2. TOC.
TM1-TM3. TMCO. TMC1. PRMO. PRM1. ADM. ADCR. CSIM.
SBIC. SIO. ASIM. ASIS. RxB. TxS. BRGC. STBC (dedicated instruction only). MM. PW. RFM. IFOL. IFOH. MKOL, MKOH. PROL,
PROH. ISMOL. ISMOH. INTMO. INTM1. 1ST
6-38
Mean!ng
sfrp
Special function register pair:
CROO-CR02. TMO. IFO. MKO. PRO.ISMO
mem
Memory address indirectly addressed
Register indirect mode: [DEI. [HLI. [DE + I. [HL + I. [DE-I. [HL-I
Base mode: [DE+bytel. [HL +bytel. [SP+bytel·
.
Indexed mode: word[AI. word[BI. word[DEJ. word [HLI
me.m1
Memory address addressed by means of indirect addressing
group 1 : [DEI; [HLI
saddr
Memory address indirectly addressed:
FE20H-FF1 FH immediate data or label
saddrp Memory address addressed by means of direct addressing pair:
FE20H-FF1 EH immediate data (LSB=O; odd address) or label
addr16 16-bit address: OOOOH·FEFFH immediate data or label
addr11
11-bitaddress:SOOH-FFFH immediate data or label
addr5
5-bit address:40H-7EH immediate data or label
word
16-bit data: 16-blt immediate data or label
byte
S-blt data: S-bit immediate data or label
bit
3-bit data: 3-bit immediate data or label
n
Number of shift bits: 3-bit immediate data (0-7)
RBn
Registerbank:RBO-RB3
TableB. Registers and Flags
Symbol
Meaning
A
A register; S-bit accumulator
X
X register
B
Bregister
C
Cregister
D
Dregister
E
Eregister
H
Hregister
L
Lregister
RO-R7
Registers 0 to 7 (absolute names)
AX
Registerpair(AX); 16-bitaccumulator
BC
Register pair (BC)
DE
Register pair (DE)
HL
Register pair (HL)
RPO-RP3
Register pairs 0 to 3 (absolute names)
PC
Program counter
SP
Stack pointer
PSW
Program status word
CY
Carry flag
AC
Auxiliary flag
Z
Zero flag
RBS1-RBSO Register bank select flags
IE
Interrupt enable flag
STBC
Standby control register
t\'EC
fJ.PD7821x
Table 8. Registers and Flags (cant)
Operation Codes
Symbol
Meaning
( )
Memory contents indicated by address or register contents
in( )
Table 11 defines the symbols used in the operation code
field.
xxH
Hexadecimal number
xH. xL
Higher 8 bits and lower 8 bits of 16-bit register pair
Clocks
The clock field specifies the number of clocks required
under the conditions defined by the four column headings
as follows:
IROM
Program in internal ROM is executed.
IRAM
Program in external ROM is executed and internal
RAM is accessed.
Registers and Register Pairs. The J, rl, and rp operands
are specified in the opcode by one or more bits as shown in
figure 26. For example, 001 as bits R2R1 Ro (or R6 R5Ft!)
specifies register A.
In the first and second operands are registers or register
pairs, the higher 4 bits of the register specification byte
define the first operand and the lower 4 bits define the second operand. For example, in the MOV A,L instruction
(transfer L register contents to register A), the second byte
of the opcode is obtained from figure 26 as shown below.
Instruction
Opcode, Bytes 1 and 2
MOV r,r
0 0 1 0 0 1 0 0
RsR5Ft! 0 R2R1 Ro
EMEM Program in external ROM is executed and external
memory is accessed.
MOV A,L
0 0 1 0
000 1
In a shift/rotateinstruction, n in the clock field indicates the
number of bits by which data is shifted.
Memory Addressing Modes. The 3-bit mem code and the
5-bit mod code are selected from figure 27 according to the
description of mem in the operand field (table 7).
SFR
Program in external ROM is executed and special
function register is accessed.
The hyphen (-) indicates a range of values; for example
10-13 means 10,11.12. or 13.
The virgule symbol (I) means either/c;>r; for example, alb
means either a or b.
The number of clocks when execution is branched by a
conditional branch instruction is shown after the symbol (I).
The number of clocks for instruction having the saddr or
saddrp operand and when an SFR is accessed with FFOOH
toFFFFH described as saddr or saddrp is shown after the
symbol (I).
Bytes and Clocks
The number of bytes and clocks for instructions with a mem
or &mem operand depends on the particular instruction
and the memory addressing mode (register indirect, base,
or indexed). Table 9 is applicable when the program in
internal ROM is executed (ROM clock column of the Instruction Set table). Table 10 is applicable when the program in external ROM is executed (IRAM, SFR, and
EMEM clock columns).
Flags
The symbols in the flag field have the following meanings.
Blank No change
Cleared to 0
1
Set to 1
x
Set or cleared depending on the result
R
Value previously saved is restored
o
o
0 1 0 0
0 1 1 0
A MOV instruction with register indirect mode specified for
mem is a special1-byte instruction. When base mode or
indexed mode is specified for mem, the a-bit or 16-bit
offset data corresponding to byte and word, respectively, is
added from the third byte onward.
The opcode for an &mem or &mem1 operand is modified
by inserting a 01 H code as the first byte p~eceding the firstbyte code listed in the Instruction'Set table. Subsequent
bytes are as shown in the table.
FIgure 26. Opcodes for RegIsters (r, r1, rp) ,
rn
r1
R2
R1
0 reg
Ro
reg
Rs
RS
R4
0
0
0
0
0
0
0
RO
1
R1
1
0
R2
X
A
C
1
1
R3
B
1
0
R4
1
0
0
1
RS
1
1
0
RS
1
1
1
R7
E
D
L
H
o
C
1
B
rp
P1
Po
P2
P1
Ps
Ps
0
0
0
RPO
1
RP1
Be
1
0
RP2
1
1
RP3
DE
HL
reg-pair
AX
83ML·5998A
6-39
_.
U
fttIEC
f.LPD7821x
Figure 27. Opcodes for Memory Addressing Modes
(mem,mod)
I~
Mem
0
0
0
0
1
1
0 0
0 1
1 0
1 1
0 0
0 1
1
0110
0
0110
0
1010
Register
Indirect Mode
Base Mode
Index Mode
[DE+]
[HL+]
[DE-]
[HL-]
[DE]
[HL]
[DE+byte]
[SP+byte]
[HL+byte]
word [DE]
word [A]
word [HL]
word [B]
83Ml-5999A
Table 9. Bytes and Clocks for Instructions With "mem" and "&mem" Operands; Internal ROM (IROM)
Register Indirect
Mode
[DE+)
[HL+)
[DE-)
[HL-)
[DE)
[HL)
[DE + byte)
[HL+byte)
[SP + byte)
word[A)
word[B)
word[DE)
word[HL)
mem
1/2"
1/2"
3
3
4
&mem
2/3*
2/3*
4
4
5
A,mem
6/8
6/8
8-11
9-12
8-11
8/10
8/10
10-13
11-14
10-13
Instruction
Bytes
Clock
Cycles
MOV
Indexed
Mode
Base Mode
mem,A
A,&mem
&mem,A
XCH
ADD,ADDC,
SUB,SUBC,
AND,OR,
XOR,CMP
A,mem
11-15
9-13
10-15
11-16
10-15
A,&mem
13-17
11-15
12-17
13-18
12-17
A,mem
10/12
8/12
9/12
10-13
9-12
A,&mem
12/14
10/14
11/14
12-15
11-14
* When internal RAM is accessed with an instruction having a mem
operand, the number of bytes is the number before the symbol (/).
6-40
When the external memory (including the SFR area) is accessed, the
number of bytes is the number after the symbol (/).
t-{EC
""PD7821x
Table 10. Bytes and Clocks for Instructions With "mem" and "&mem" Operands; External ROM
(IRAM, SFR, EMEM)
Register Indirect
Mode
[DE+]
[HL+]
[DE-]
[HL-]
[DE]
[HL]
[DE + byte]
[HL+byte]
[SP + byte]
word[A]
ward[B]
word[DE]
word[HL]
mem
2*
2*
3
3
4
&mem
3*
3*
4
4
5
A,mem
9/11
6/8
11/13
12/14
14116
12/14
9111
14/16
15/17
17/19
A,mem
14/18
12/16
13/17
14/18
16/20
A,&mem
17/21
15/19
16/20
17121
19/23
A,mem
13/15
11/13
12/14
13115
15/17
A,&mem
16/18
14/16
15/17
16/18
18/20
Instruction
Bytes
Clock
Cycles
MOV
Indexed
Mode
Base Mode
mem,A
A,&mem
&mem,A
XCH
ADD,ADDC,
SUB,SUBC,
AND,OR,
XOR,CMP
* When [DE], [HLI, [DE +], [HL + I, [DE-I, or [HL-I is specified as the mem
operand of a MOV instruction, the instruction is used as a dedicated
l·byte type. When the operand is &mem, the instruction is 2·byte.
Table 11. Opcode Symbols
Symbol
Meal1lng
Bn
Immediate data corresponding to bit
Nn
Immediate data corresponding to n
Data
8-bH immediate data corresponding to byte
Low/High Byte
16-bit immediate data corresponding to word
Saddr-offset
Lower 8-bit offset data of 16-bit address corresponding
tosaddr
Sfr-offset
Lower 8-bit offset data of 16-b~ address of special
function register (sfr)
Low IHigh Offset 16-bit offset data corresponding to word in indexed
addressing
Low/High Addr
16-bit immediate data corresponding to addr16
jdisp
Signed 2's complement data (8 bits) indicating relative
address distance between first address of next
Instruction and branch destination address
fa
Lower 11 bits of immediate data corresponding to addrll
ta
Lower 5 bHs of immediate data corresponding to
(addr5xdis)
6-41
NEe
....PD7821x
Instruction Set
Clocks
Mnemonic Operand
Operation
Bytes IROM
IRAM
Flags
SFR EMEM ZACCY
Opeiiition Code iBltii Nlj
Bytes Bl thru B5
8·Sn Data Transfer
MOV
r,#byte
r +- byte
2
2
1 0
6
1
R2 R1 Ro
Data
saddr,#byte
(saddr) +- byte
3
3/5
9
9
12
o 0
0 1 0
Saddr-offset
Data
slr,#byte
sIr+- byte
3
5
9
12
o 0
0 1 1
0
SIr-offset
Data
r,r
r+-r
A,r
A+-r
A,saddr
A+- (saddr)
2
2
2
6
2
3
214
6
6
9
o 0 1 0
0 1 o 0
o ReRsR4
0 R2 R1 Ro
1 1 0 1
0 R2 Rl Ro
0 0
o 0 0 0
0
Saddr-offset
saddr,A
(saddr) +-A
2
3/5
6
o 0 1 0
8
0 0 1 0
Saddr-offset
saddr, saddr
(saddr) +- (saddr)
3
3-7
o 0 1 1
9
1 0 0 0
Saddr-offset
Saddr-offset
A,slr
A+-slr
2
4
o 0 0 1
6
0 0 o 0
SIr-offset
slr,A
slr+-A
2
5
o 0 0 1
6
0 0 1 0
SIr-offset
A,mem
A+-(mem)
1-4
6-12
6-14
8-16
8-16
* 0
0
mem
0 0 0
0
mod
mem
0 0 0 0
Low Offset
High Offset
A,&mem
A+-(&mem)
2-5
8-14
9-17
11-19
11-19
* 0 0 o 0
0
mem
0 0 0 0
0 0 0
0
o 0 0 1
0
0 0 0 1
mod
mem
0 0 0 0
Low Offset
High Offset
Note:
* If [DEI, [HLI, [DE+ I, [DE-I, [HL+ lor [HL-I is described as mem, these
instructions are used as dedicated I-byte codes. II the register name is
described as &mem, the instructions are used as dedicated 2-byte
codes.
6-42
t\'EC
,..,PD7821x
Instruction Set (cont)
Clocks
Mnemonic Operand
Operation
Bytes IROM
Flags
IRAM
SFR EMEM ZACCY
6-14
8-16
Operation Code (Bits 7-0)
Bytes Bl thru B5
8-SIt Data Transfer (cont)
MOV
mem,A
(mem) +-A
1-4
6-12
8-16
*
0
0
mem
0
0 0 0
mod
o
mem
0 0 0
Low Offset
High Offset
&mem,A
(&mem) +-A
2-5
8-14
9-17
11-19
11-19
*
0 0
o
0
0
0
o
0 0 0 0
o
0
1
mem
0
0 001
0 0 0
mod
o
mem
0 0 0
Low Offset
High Offset
A,laddr16
A +- (!addr16)
4
6/8
14
16
0 0
o
0
1 1
1 0 0
o
0 0 0
Low Addr
II
HighAddr
A,&laddr16
A +- (&laddr16)
5
19
8110
0 0 0 0
0 0
o
0
1 1
0 0 0
1 0 0
o
0 0 0
Low Addr
HighAddr
laddr16,A
(laddr16) +- A
4
6/8
14
17
0 0 O. 0
1 1
1 0·. 0 ·1
o
0 0
Low Addr
, High Addr
&laddr16,A
(&laddr16) +- A
5
20
8110
0 0
0 0
o
o
0
o
0
1 0 0
1 1
o
0 0
0 0
Low Addr
High Addr
PSW,#byte
PSW +- byte
3
3
9
9
9
x x x 0 0
0
0
0
Data
PSW,A.
A,PSW
PSW+-A
A+- PSW
2
2
2
2
6
6
6
6
6
6
x x x 0 0 0
0 0
0
.1
0
0 0 0
0 0 0 0
0
6-43
NEe
J.LPD7821x
Instruction Set (cont)
Flags
Clocks
Mnemonic Operand
Operation
Bytes
IROM
IRAM
4
4
2
3
6
2-4
9-16
12-16
SFR EMEM ZACCY
Operaiion Code (Biis 7-0j
Bytes B1 thru B5
8-SIt Data Transfer (cont)
XCH
A,r
A+-+r
r,r
r+-+r
A,mem
A+-+ (mem)
0
R2 R1 Ro
0 0
0
0 Rs Rs R4
16-20
0 0 0
0
0 1 0 1
0 R2 R1 Ro
mod
0 1 0 0
mem
Low Offset
High Offset
A,&mem
A +-+ (&mem)
3-5
11-18
19-23
15-19
0 0 0 0
0
0 0 0 1
mod
0 0 0
0 1 0 0
mem
Low Offset
High Offset
A,saddr
A +-+ (saddr)
2
4/8
0 0 1 0
6
0 0 0
1
Saddr-offset
A,slr
A +-+ sIr
3
6/10
13
0 0 0 0
0 0 0
0 0
0 0 0
0
SIr-offset
saddr ,saddr
(saddr) +-+ (saddr)
3
6-14
0 0 1 1
10
1 0 0 1
Saddr-offset
Saddr -offset
16-Slt Data Transfer
MOVW
rp,#word
rp .... word
3
3
0 1 1 0
9
o P2 P1 0
Low Byte
High Byte
saddrp,#word
(saddrp) .... word
4
4/8
12
12
18
0 0 0 0
1 1 0 0
Saddr-offset
Low Byte
High Byte
slrp,#word
slrp .... word
4
12
8
0 0 0 0
1 0
1 1
Saddr-offset
Low Byte
High Byte
rp,rp
rp .... rp
2
4
0 0 1 0
6
0 1 0 0
0 Ps Ps 0
1 P2 P1 0
1 1 0 0
AX,saddrp
AX .... (saddrp)
2
6/10
8
12
0 0 0 1
saddrp,AX
(saddrp) .... AX
2
5/9
8
12
0 0 0 1
Saddr-offset
1 0
Saddr-offset
6-44
1 0
ttt{EC
J;LPD7821x
Instruction Set (cont)
Clocks
Mnemonic Operand
Operation
Bytes IROM
IRAM
Flags
SFR EMEM ZACey
Operation Code (Bits 7-0)
Bytes B1 thru B5
16-81t Data Transfer (cant)
MOVW
AX,slrp
AX ... slrp
2
10
o
12
0
o
1
o
0
o
1
Sir-offset
sfrp,AX
slrp ... AX
2
0 0 0 1
12
9
o
0 1 1
Sir-offset
AX,mem1
AX ... (mem1)
2
9-15
12
16
16
0 0 0 0
0
AX,&mem1
AX ... (&mem1)
3
11-17
15
19
19
o
0
0 0 0 0
0 0
0 0 0 0
o
0
1
0 0 1 Ro
o
1
1 0 1
0 0
Ro
mem1,AX
(mem1) ... AX
2
8-14
11
15
15
0 0 0 0
0
1 Ro
&mem1,AX
(&mem1) ... AX
3
10-16
14
18
18
0 0 0 0
0 0
o
0 0 0 0
0
0 1
0
0
1 Ro
0
0 1
0
1
8-81t Operation
ADD
A,#byte
A,CY ... A + byte
2
2
x x x 1
6
o
1 0
0 0 0
Data
saddr,#byte
(saddr),CY ... (saddr) + byte
3
317
9
x x x
11
o
1
0
0
o
0
Saddr-offset
Data
sfr,#byte
slr,CY ... sfr + byte
4
x x x 0 0 0 0
14
9
0 0 0
1 0
0
0 0 0
Sir-offset
Data
r,r
r,CY ... r + r
2
3
A,saddr
A,CY ... A + (saddr)
2
3/5
A,slr
A,CY'" A+ sir
3
7
x x x 1
7
6
7
8
x x x
o
0 0
000
o RsRsR4 o R2 R1 Ro
1 0 o 0
1 0 o 1
Saddr-offset
10
x x x 0 0
0
o
o
0
o
1
1 0 0 0
0 0
Sir-offset
saddr,saddr
(saddr),CY ... (saddr) + (saddr)
3
3-9
9
11
x x x
o
1 1 1
1 0
o
0
Saddr-offset
Saddr-offset
6-45
II
NEe
jJ.PD1&21x
Instruction Set (cont)
Flags
Clocks
Mnemonic Operand
Operation
Bytes IROM
IRAM
Operaticn Cede (Bits 7..0)
SFR EMEM ZACCY
Bytes B1 thru B5
8·Blt Operation (cont)
ADD
A,mem
A,CY ... A + (mem)
2-4
8-13
11-15 13-17
13-17
x x x 0 0 0
mod
1 0 0 0
mem
0
Low Offset
High Offset
A,&mem
A,CY ... A + (&mem)
3-5
10-15
14-18 16-ID
16-20
x x x 0 0 0 0
0 0 0
mod
0 0 0
1 0 0 0
mem
0
Low Offset
High Offset
ADDC
A,#byte
A,CY ... A + byte + CY
2
2
x x x 1 0
6
0 0 1
0
Data
saddr,#byte
(saddr),CY ... (saddr) + byte
+CY
3
sfr,CY ... sfr + byte + CY
4
317
9
x x x 0 1
11
0 0 1
0
Saddr-offset
Data
sfr,#byte
x x x 0 0 0 0
14
9
0
0 0 0
0 0
0
Sir-offset
Data
r,r
A,saddr
r,CY ... r+r+CY
A,CY ... A + (saddr) + CY
2
2
3
2/5
x x x
7
6
7
8
1 0 0
0 0 1
0 R6 Rs R4
0 R2 R1 Ro
x x x 1 0 0 1
0 0 1
Saddr-offset
A,sfr
A,CY ... A+sfr+CY
3
x x x 0 0 0 0
10
7
0 0 0
0 0
0 0
Sfr-offset
saddr,saddr
(saddr),CY ... (saddr) + (saddr)
+CY
3
3-9
9
x x x 0 1 1 1
11
1 0 0
1
Saddr-offset
Saddr-offset
A,mem
A,CY ... A + (mem) + CY
2-4
8-13
11-15
13-17
13-17
x x x 0 0 0
0
mod
mem
1 0 0
Low Offset
High Offset
A,&mem
A,CY ... A + (&mem) + CY
3-5
10-15
14-18 16-ID
16-20
x x x 0 0 0 0
0
0 0 0
mod
0 0 0
mem
1 0 0 0
Low Offset
High Offset
6-46
t-IEC
J.LPD7821x
Instruction Set (cont)
Clocks
Mnemonic Operand
Operation
Bytes IROM
IRAM
Flags
SFR EMEM ZACCY
Operation Code (Bits 7-0)
Bytes B1 thru B5
8-Bit Operation (cant)
SUB
A,#byte
A,CY +- A-byte
2
2
x x x 1 0 1 0
6
0
1 0
0
1 0
Data
saddr,#byte
(saddr),CY +- (saddr)-(byte)
3
317
9
x x x 0 1
11
0
Saddr-offset
Data
slr,#byte
slr,CY +- sir-byte
4
x x x 0 0 0 0
14
9
0
0
0
0 0
0
0
0
1 0
Sir-offset
Data
r,r
r,CY +- r-r
2
3
x x x 1 0 0 0
7
0 R6 R5 R4
A,saddr
A,CY +- A-(saddr)
2
3/5
6
7
8
x x x
0 R2 RI Ro
1
0 0
0
1 0
Saddr-offset
A,slr
A,CY +- A-sir
3
7
x x x 0 0 0 0
10
0 0 0
0
0
1 0
1 0
0 0
Sir-offset
saddr,saddr
(saddr),CY +- (saddr) - (saddr)
3
3-9
9
x x x 0 1 1 1
11
Saddr-offset
Saddr-offset
A,mem
A,CY +- A-(&mem)
2-4
8-13
11-15
13-17
13-17
x x x 0 0 0
0
mod
mem
1 0
1 0
Low Offset
High Offset
A,&mem
A,CY +- A-(&mem)
3-5
10-15
14-18
16aJ
16-20
x x x 0 0 0 0
0 0 0
0 0 0
0
1
mod
mem
1 0
1 0
Low Offset
High Offset
SUBC
A,#byte
A,CY +- A-byte-CY
2
2
x x x 1 0 1 0
6
0
1 1
0
1 1
Data
saddr,#byte
(saddr),CY +- (saddr)-byte-CY
3
317
9
11
x x x 0 1
0
Saddr-offset
Data
slr,#byte
slr,CY +- slr-byte-CY
4
9
14
x x x 0 0 0 0
0
0 0 0
0
0
Sir-offset
Data
6-47
II
t't{EC
Il-PD7821x
Instruction Set (cont)
Clocks
Mnemonic Operand
Operation
Bytes IROM
IRAM
Flags
Opeiatlon Cod. (Blta 7-0)
SFR EMEM ZACCY
Bytes B1 thru B5
8-BIt Operation (cont)
SUBC
r,r
r,CY+- r-r-CY
2
3
x x x
7
0 0 0
o ReRsR4
A,saddr
A,CY +- A-(saddr)-CY
2
3/5
A,sfr
A,CY+- A-sfr-CY
3
7
6
7
8
x x x 1 0 0 1
1 0 1 1
o R2 R1
Flo
1 0 1 1
Saddr-offset
x x x 0 0 0 0
10
0 0 0
0 0
0
Sfr-offset
saddr ,saddr
(saddr),CY +- (saddr) - (saddr)
-CY
3
3-9
9
x x x 0 1 1 1
11
1 0 1 1
Saddr-offset
Saddr-offset
A,mem
A,CY+- A-(mem)-CY
2-4
8-13
11-15 13-17
13-17
x x x 0 0 0
0
mod
1 0 1
mem
Low Offset
High Offset
A,&mem
A,CY +- A-(&mem)-CY
3-5
10-15
14-18 16m
16-20
x x x 0 0 0 0
0 p 0
0 0 0
mod
1 0 1 1
mem
0
Low Offset
High Offset
AND
A,#byte
A+- Al\byte
2
2
x
6
1 0 1 0
1 1 0 0
Data
saddr,#byte
(saddr) +- (saddr) 1\ byte
3
317
9
x
11
0 1
0
0 0
Saddr-Qffset
Data
sfr,#byte
sfr +- sfr 1\ byte
4
x
14
9
0 0 0 0
0
0 0 0
0 0
0
Sfr-offset
Data
r,r
r+-rl\r
2
3
x
7
o ReRsR4
A,saddr
A+- AI\(saddr)
2
3/5
6
7
8
x
1 0 0
0 0 0
1 0 0
0 R2 R1 Ro
0 0
1
Saddr-offset
A,sfr
A+- AI\(sfr)
3
10
7
x
0 0 0 0
0 0 0
0 0
0 0
Sfr-offset
saddr,saddr
(saddr) +- (saddr)1\ (saddr)
3
3-9
9
11
x
0 1 1 1
1 1 0 0
Saddr-offset
Saddr-offset
6-48
t-iEC
/J-PD7821x
Instruction Set (cont)
Clocks
Mnemonic Operand
Operation
Bytes IROM
IRAM
Flags
SFR EMEM ZACey
Operation Code (Bits 7-4»
Bytes B1 thru B5
8·BIt Operation (cont)
AND
A,mem
A .. AA(mem)
2-4
8-13
11-15 13-17 13-17 x
0
o
0
0
mod
1 1 0 0
mem
Low Offset
High Offset
A,&mem
A .. AA(&mem)
3-5
10-15
14-18 163) 16-20 x
0 0
o
0
o
0 0 0
0
0 0
mod
1 1 0 0
mem
Low Offset
High Offset
OR
A,#byte
A .. AVbyte
2
2
x
6
1 0 1 0
1 1
0
Data
saddr,#byte
(saddr) .. (saddr) V byte
3
3(7
9
x
11
o
1
0
1 0
Saddr-oflset
Data
sfr,#byte
sfr .. sfr V byte
4
x
14
9
0 0 0 0
0
0 0 0
0
0
Sfr-oflset
Data
r,r
r .. rVr
2
3
7
A,saddr
A .. AV(saddr)
2
3/5
6
A,sfr
A .. AVsfr
3
7
x
1 0 o 0
1 1 1 0
o R6R5~ o R2R1 Ro
1 1
0 o 1
0
x
0 0
x
7
8
Saddr-offset
10
o
0
0 0 1
o
0 0
0
1 1
Sfr-offset
saddr,saddr
(saddr) .. (saddr)V (saddr)
3
3-9
9
11
x
o
1 1 1
1 1 1 0
Saddr-offset
Saddr-offset
A,mem
A .. AV(mem)
2-4
8-13
11-15 13-17 13-17 x
0 0 0
0
mod
1 1
mem
0
Low Offset
High Offset
A,&mem
A .. AV(&mem)
3-5
10-15
14-18 163) 16-20 x
0 0
o
0 0 0
0
0
o
0 0
mod
mem
1 1 1 0
Low Offset
High Offset
6-49
II
fttIEC
f.LPD7821x
Instruction Set (cont)
Flags
Clocks
Mnemonic Operand
Operation
Bytes
IROM
IRAM
2
2
6
OperatIon Code (Bits 7-0)
Bytes B1 thru B5
SFR EMEM ZACCY
8-BIt Operation (cont)
XOR
A,#byte
A+- A .....byte
x
1 0 1 0
1 0
1
Data
saddr, #byte
(saddr) +- (saddr) ..... byte
3
3/5
9
x
11
0 1
0 1
0
Saddr-offset
Data
sfr,#byte
sfr +- sfr.....byte
4
x
14
7
0 0 0 0
0
0 0 0
0
0
Sfr-offset
Data
r,r
A,saddr
r +- r¥r
A +- A .....(saddr)
2
2
3
3/5
x
7
6
7
8
x
1 0 0 0
1 0 1
0 R6 Rs R4
0 R2 R1 Ro
1 0 0 1
1 1 0 1
Saddr-offset
A,sfr
A+- A.....(sfr)
3
7
10
x
0 0 0 0
0 0 0
0 0
0
Sfr-offset
saddr,saddr
(saddr) +- (saddr)¥(saddr)
3
3-9
9
11
x
0 1 1 1
1 1 0 1
Saddr-offset
Saddr-offset
A,mem.
A+- A..... (mem)
2-4
8-13
11-15 13-17
13-17 x
mod
0 0 0
0
1 1 0
mem
Low Offset
High Offset
A,&mem
A+- A..... (&mem)
3-5
10-15
14-18 163)
16-20 x
0 0
o
0
0 0 0 1
0 0 0
0
mod
1 1 0 1
mem
Low Offset
High Offset
CMP
A,#byte
A-byte
2
2
x x x 1 0
6
1 1
0
Data
saddr,#byte
(saddr) - byte
3
3/5
9
11
x x x 0 1
1 1
0
Saddr-offset
Data
sfr,#byte
sfr-byte
4
7
14
x x x 0 0 0 0
0
0 0 0
0
Sfr-offset
Data
6-50
NEe
I-l-PD7821x
Instruction Set (cont)
Clocks
Mnemonic Operand
Operation
Bytes
IROM
IRAM
2
3
7
Flags
SFR EM EM ZACCY
Operation Code (Bits 7-0)
Bytes B1 thru B5
8-Blt Operation (cont)
CMP
r,r
A,saddr
r-r
A-(saddr)
2
3/5
6
x x x
7
8
0
o
0
1 1 1
0 R6 R5 R4
0 R2 Rt Ro
0 0 1
1 1 1
x x x
Saddr-offset
A,slr
A-sir
3
7
x x x 0 0 0 0
10
0 0 0
0 0
Sir-offset
saddr,saddr
(saddr) - (saddr)
3
3-7
9
x x x 0 1
11
1 1
1 1 1 1
Saddr-offset
Saddr-offset
A,mem
A-(mem)
2-4
8-13
11-15
1:3-17
13-17 x
x x 0 0 0
mod
mem
0
1 1 1 1
Low Offset
High Offset
A,&mem
A-(&mem)
3-5
10-15
14-18
162)
16-20
x x x 0 0 0 0
0 0 0
0
0 0 0
mod
mem
1 1 1 1
Low Offset
High Offset
16-Bit Operation
ADDW
AX,#word
AX,CY .... AX + word
3
4
x x x 0 0 1 0
9
1 1 0 1
Low Byte
High Byte
AX,rp
AX,saddrp
AX,CY .... AX + rp
AX,CY .... AX + (saddrp)
2
2
6
7/11
x x x
8
9
13
o
0
1 0 0 0
0 0 0 0
1 P2 PI 0
0
x x x 0 0 0
1 1 0
Saddr-offset
AX,slrp
AX,CY .... AX + slrp
3
13
16
x x x 0 0 0 0
0 0 0
0 0 0
0
Sir-offset
SUBW
AX,#word
AX,CY .... AX-word
3
4
x x x 0 0 1 0
9
1 1 1 0
Low Byte
High Byte
AX,rp
AX,saddrp
AX,CY .... AX-rp
AX,CY .... AX-(saddrp)
2
2
6
7/11
x x x
8
9
13
0
o
0
0 1 0
0 0 0 0
1 P2 PI Po
x x x 0 0 0
1 1 1 0
Saddr-offset
6-51
II
ftt{EC
IJ..PD7821x
Instruction Set (cont)
Clocks
Mnemonic Operand
Operation
Bytes
IROM
3
13
IRAM
Flags
Operation Code (Bits 7-G)
SFR EMEM ZACCY
Bytes B1 thru B5
16-8it Operation (cont)
SUBW
AX,slrp
AX,CY .... AX-sfrp
16
x
x
x
0 0 0 0
0 0 0
0 0 0
0
Sir-offset
CMPW
AX,#word
AX-word
3
3
x
9
x
x
0 0 1 0
1 1 1 1
Low Byte
High Byte
AX,rp
AX,saddrp
AX-rp
AX-(saddrp)
2
2
5
6/10
7
8
x
12
x
x
x
x
x
0 0 0
1 1
0 0 0 0
1 P2 P1 0
0 0 0
1 1
Saddr-offset
AX,slrp
AX-slrp
3
15
12
x
x
x
0 0 0 0
0 0 0
0 0 0
Sir-offset
Multiplication! Division
AX .... Axr
MULU
2
22
24
0 0 0 0
0
0 0 0 0
DIVUW
AX(quotient), r (remainder) ....
AX-H
2
71
76
0
0
0
0
1 0
1
R2 R1 Ro
0
0 0 0
1 0
1
R2 R1 Ro
Increment! Decrement
INC
r .... r+ 1
saddr
(saddr) .... (saddr) + 1
2
2
3
2/6
6
7
x
x
x
x
0 0
0 0
o
R2 R1 Ro
0
0
1 1 0
Saddr-offset
r .... r-l
.1
2
3
saddr
(saddr) .... (saddr)-1
2
2/6
6
INCW
rp
rp .... rp+l
3
3
0
0 0
DECW
rp
rp .... rp-1
3
3
0
0 0
3+2n
5+2n
DEC
7
x
x
x
x
0 0
0 0
1 R2 Rl Ro
0
0 1 1 1
Saddr-offset
0
P1 Po
P1 Po
Shift! Rotate
ROR
ROL
6-52
r,n
r,n
(CY.r7 .... ro, rm-1 .... rm)
xntimes, n=0-7
2
(CY,ro .... r7, rm+1 .... rm)
xn times, n=O-7
2
x
0 0
0
3+2n
5+2n
x
1 1
0 0 0 0
N2 Nl
No R2 R1 Ro
0 0 1 1
0
N2N1
0 0 0 1
No R2 Rl Ro
fttIEC
JAoPD7821x
Instruction Set (cont)
Clocks
Mnemonic Operand
Operation
Bytes IROM
Flags
IRAM
SFR EMEM ZACCY
5+2n
x
Operation Code (Bits NI)
Bytes B1 thN
as
Shlft/Rot.te (cont)
RORC
ROLC
SHR
SHL
SHRW
SHLW
ROR4
r.n
r.n
r.n
r.n
rp.n
rp.n
mem1
&mem1
ROL4
(CY+- ro. r7 +- CY. rrn-1 +- rm)
xntimes. n=0-7
2
(CY+-r7.rO+-CY.rm+1+-rm)
xntimes.n=0-7
2
(CY +- ro. r7 +- O. rrn-1 +- rm)
xntimes. n=0-7
2
(CY+- r7. ro +- O. rm+1 +- rm)
xntimes.n=0-7
2
(CY +-!po. rp15 +- O. rPrn-1 +rpm) xn times. n=O-7
2
(CY +- rP15. rpo +- O. rpm+1 +rpm) xn times. n=0-7
2
A3-0 +- (mem1)3_0. (mem117_4
+- Aa-o. (mem1l3-0 +- (mem1)7-4
2
Aa-O+- (&mem1)3-Q. (&mem117-4
+- Aa-o. (&mem1 )3-0 +(&mem1)7_4
3
3+2n
0 0
0
3+2n
3+2n
x
5+2n
5+2n
x
0
x
3+3n
3+3n
24
26
x
5+2n
5+3n
x
5+3n
26
29
x
34
37
34
37
0
0
0
x
x
x
o
0
0
Ro
0
1 1
000
1
0
o N2N1
NO R2 R1
Ro
0
0
1
1
o N2N1
3+2n
0
. NO R2 R1
0
0
0
0
0 0
0
Ro
1
000
1
No R2R1
Ro
0
0
1
o
No R2 R1
o N2N1
1
1
000 0
Ro
1 N2N1
No R2R1
1
000
1
1 N2N1
NO R2 R1
Ro
0
1
0 000
0
1 0
0
0
0
0 0
0
0
0
0
0
0 0
0
0
0
0
0
0
0
0
0
0
0
0 0
0
0
0
0
1
1
1 R1 0
mem1
A3-0 +- (mem117_4. (mem1)3_0
+- Aa-o. (mem117_4 +- (mem1l3-Q
2
25
27
35
35
0
&mem1
Aa-o +- (&mem117-4. (&mem1)3-Q
+- Aa-o. (&mem1 )7-4 +-
3
27
30
38
38
0 0
(&mem1)3_0
1 1
o N2N1
1 Rl 0
0
0
0
R1 0
0 0
0
o
0
1 Rl 0
o
0
6-53
II
t-{EC
IJ.PD7821x
Instruction Set (cont)
Clocks
Mnemonic Operand
Operation
Bytes IROM
IRAM
Flags
Operation Code (Bits 7-0)
SFR EMEM ZACCY
Bytes B1 thru B5
aCD Adjustment
ADJBA
Decimal adjust accumulator after
addition
ADJBS
Decimal adjust accumulator after
addition
CY .... (saddr bit)
3
3
x x x
0 0 0 0
-1
3
3
x x x
0 0 0 0
3
517
x
0 0 0 0
0
Bit Manipulation
MOV1
CY,saddr.bit
9
9
11
0 0 0 0
0 0 0
0 B2 B1 Bo
Saddr-offset
CY,slr.bit
CY .... slr.bit
3
7
x
9
0 0 0 0
0 0 0
0 0 0 0
B2 B1 Bo
Sir-offset
CY,A.bit
CY .... A.bit
2
5
x
7
0 0 0 0
0 0 1 1
0 0 0 0
CY,X.bit
CY .... X.bit
2
5
x
7
B2 B1 Bo
0 0 0 0
0 0
0 0 0 0
0 B2 B1 Bo
1 1
Sir-offset
CY,PSW.bit
saddr.bit,CY
CY .... PSW.bit
(saddr bit) .... CY
2
3
8/12
x
7
5
12
14
14
0 0 0 0
0 0 1 0
0 0 0 0
0 B2 B1 Bo
0 0 0 0
0 0 0
0 0 0
0 B2 B1 Bo
Saddr-offset
sfr.bit,CY
slr.bit .... CY
3
12
14
0 0 0 0
0 0 0
0 0 0
B2 B1 Bo
Sir-offset
A.bit,CY
A.bit .... CY
2
8
10
X.bit,CY
X.bit .... CY
2
8
10
0 0 0 0
0 0 1 1
0 0 0
B2 B1 Bo
0 0 0 0
0 0 1 1
0 0 0
0 B2 B1 Bo
Sir-offset
PSW.bit,CY
AND1
CY,saddr.bit
PSW.bit .... CY
CY .... CY" (saddr.bit)
2
3
7
517
9
9
11
x x
x
0 0 0 0
0 0 1 0
0 0 0
0 B2 B1 Bo
0 0 0 0
0 0
0
0
Saddr-offset
6-54
0 0
0 B2 B1 Bo
NEe
,""PD7821x
Instruction Set (cont)
Clocks
Mnemonic Operand
Operation
Bytes IROM
Flags
IRAM SFR EMEM ZACey
Oparatlon Code (Bits NI)
Bytes B1 thru B5
Sit Manipulation (cont)
AND1
CY,lsaddr.bit
CY ... CY 1\ (saddr.bit)
3
517
9
11
x 0 0
o
0
1 000
0 0 1 1
o B:! B1 80
Sir-offset
CY,slr.bit
CY ... CY I\sfr.bH
3
11
7
x 0 0
o
0
0 0 1 0
1 000
1
B:! B1 80
Sir-offset
CY,/sfr.bit
CY ... CY Asfr.bit
3
11
7
x 0 0 0 0
o
CY,A.bit
CY ... CY I\A.bit
2
5
x 0 0 0 0
7
0
CY,/A.bit
CY,X.bit
CY ... CY I\A.bit
CY ... CY AX.bit
2
2
5
5
x
7
CY,PSW.bH
CY ... CYAX.bit
CY ... CY A PSW.bit
2
2
5
1 0
7
CY ... CY 1\ PSW.bit
2
5
7
1
o
1 0
CY,saddr.bH
CY ... CYV(saddr.bit)
3
517
9
11
1
B:! B1 80
001
1
1
B:! B1 80
001
1
OB2 B1Bo
0 0 1 1
o 01
o B2B1
Bo
x 0 0 0 0
001
0
0
x 0 0 0 0
0 0 1 1
OR1
1
0 0 0
0 0
CY,IPSW.bit
B:! B1 80
o
x 0 0 0 0
7
1
001
0
x 0 0 0 0
7
5
o
1 000
o
0
CY,IX.bit
0 1 1
x 0 0 0 0
o 1
o
x 0 0
o
o
0
1
OB2B1 BO
001
0
OB2B1 BO
1 000
OB2 B1Bo
Saddr-offset
CY,Isaddr.bH
CY ... CYV(saddr.bit)
3
517
9
11
o
1
0
1 000
1
OB2 B1Bo
SIr-offset
CY,slr.bit
CY ... CYVsfr.bit)
3
7
11
x 0 0
0
o
o
0
1 000
1
1B2B1Bo
SIr-offset
6-55
II
~EC
,..,PD7821x
Instruction Set (cont)
Clocks
Mnemonic Operand
OperatiOli
Bytes 'IROM
IRAM
Flags
Operation Code (Bits NI}
Bytes B1 thru B5
SFR EMEM ZACCY
Bit Manlpu/aUon (cont)
ORl
CY/sfr.bit
CY +- CYVsfr.bit
3
7
11
x 0 0 0 0
o 1
0
CY.A.bit
CY +- CYVA.blt
2
5
x 0 0 0 0
7
o 1 0 0
CY,IA.bit
CY +- CYV A.bit
2
5
7
x 0 0 0 0
CY.X.bit
CY +- CYVX.blt
2
5
7
x 0 0 0 0
o 1 0
1
o 1 o 0
CY.IX.bit
CY +- CYVX.bit
2
5
x 0 0 0 0
7
o 1 o 1
CY.PSW.bit
CY +- CYVPSW.bH
2
5
7
x 0 0 0 0
0 0
0
CY,IPSW.bif
CY +- CYVPSW.bit
2
7
5
x 0 0 0 0
o 1 o 1
XORl
CY.saddr.bit
CY +- CY¥{saddr.blt)
3
517
9
11
x 0 0 0 0
o 1 1 0
.. ,
1 000
1 B2 B1 Bo
001
1
1 B2B1 Bo
001
1
1 B2B1 80
001
1
OB2B1 BO
001
1
OB2 B180
001
0
OB2B1 BO
001
0
OB2 B180
1 000
OB2 B180
Saddro{)ffset
CY.sfr.blt
CY +- CY.....sfr.bit
3
11
7
x 0 0 o 0
1 000
o 1 1 0
1 B2B1 80
Sfr-ofset
CY.A.bH
CY.X.bit
CY +- CY.....A.bH
CY +- CY.....X.bit
2
2
5
5
x 0 0 0 0
7
7
CY +- CY .....PSW.bH
2
5
7
x 0 0 0 0
o 0 1 1
0
x 0 0 0 0
o 1
SETl
saddr.bH
(saddr.bH) +- 1
2
317
sfr;blt
sfr.blt +- 1
3
10
6
1
1B2B180
0
CY.PSW.bH
001
o 1 1 0
0
0
OB2 B180
001
0
o B2B1 Bo
OB2B1 BO
Saddr-oifset
14
0 0 o 0
1 000
0 o 0
1 B2B1 80
Sfr-offset
6-56
ftt{EC
JJ.PD7821x
Instruction Set (cont)
Clocks
Mnemonic Operand
Operation
Bytes IROM
IRAM
Flags
SFR EMEM ZACCY
Operation Code (Bits 7-0)
Bytes B1 thru B5
Bit ManipulatIon (cant)
SETI
A.bit
A.bit +-1
2
6
8
0 0 0 0
0 0 0
1 B2B1 Bo
X.bit
X.bit +-1
2
6
8
0 0 0 0
0 0 1 1
PSW.bit
PSW.bit +-1
2
5
0 0 0
CLRI
saddr.bit
(saddr.bit) +- 0
2
6/10
7
0 0 1
OB2B1 BO
x x x 0 0 0 0
0 0 1 0
0 0 0
o B2 B1 Bo
0
OB2B1 BO
6
0
Saddr-offset
sfr.bit
sfr.bit +- 0
3
10
14
0 0 00
1 0 o 0
0 0 1
1 B2B1 Bo
Sfr-offset
A.bit
A.bit +- 0
2
6
0 0 0 0
8
0 0 1 1
0 0
X.bit
X.bit +- 0
2
6
PSW.bit
PSW.bit+-O
2
5
saddr.bit
(saddr.bit) +- 0 (saddr.bit)
3
6/10
B2 B1 Bo
0 0 0 0
8
0 0
NOTI
7
10
0 0 1 1
0 B2 B1 Bo
x x x 0 0 0 0
0 0 1 0
1 0 0 1
0 B2 B1 Bo
0 0 0 0
0 0 0
14
0 B2 B1 Bo
0
Saddr-offset
sfr.bit
sfr.bit +- sfr.bit
3
14
10
0 0 0 0
1 0 0 0
1 1
1 B2B1 Bo
0
.Sfr-offset
A.M
A.bit +- A.bit
2
6
0 0 0 0
8
X.b~
Kbit +- X.bit
2
6
PSW.bit
PSW.bit +- PSW.bit
2
5
7
SET!
CY
CY +-1
2
3
CLRI
CY
CY +-0
2
3
0
NOTI
CY
CY +-CY
2
3
8
0 0 1 1
0
lB2B1 BO
0 0 0 0
0 0 1 1
0
0 ~B1
x x x 0 0 0 0
0 ~B1
0
0
0 0
0
1 0 0
x 0
0 0
So
0 0 1 0
So
0 0 0
0 0 0 0
0 0
0
6-57
II
t\'EC
JJ.PD7821x
Instruction Set (cont)
Clocks
Mnemonic Opel'llnd
Operation
Bytes IROM
Flags
IRAM SFR EMEM ZACCY
Operation Code (Bits 7-41)
Bytes B1 thru B5
Call/Return
CALL
!addr16
(SP-1) +- (PC + 3)H,
(SP-2) +- (PC + 3lL,
PC +- laddr16, SP +- SP-2
3
(SP-1) +- (PC + 2)H,
(SP-2) +- (PC + 2lL, PCH +rpH, PCl +- rPl, sf> +- SP-2
2
(SP-1) +- (PC + 2lH,(SP-2) +(PC + 2lL, PC1S+11 +- 00001,
PC1()"'{) +- laddr11, SP +- SP - 2
2
10-15
17
21
0 0
1 0
1 0 0 0
LowAddr
High Addr
rp
CALLF
CALLT
!addr11
[addr5)
12-17
10-15
15
14
o
o
19
18
o
0
o
1 0
1
1 P2 P1 0
1 0 0
1
0
0
1
o
1
+-
....
fa
....
(SP-1) +- (PC + 1)H,(SP-2) +(PC + l)l, PCH +- (00000000,
addr5 + 1), PCt. +- (00000000,
addr5),SP +- SP-2
14-20
20
24
1 1 1 +-
BRK
(SP-1) +- PSW,(SP-2) +(PC 1~,(SP-3) +- (PC + llL,
PCH +- (OO3FH), PCH +(OO3FH), SP +- SP-3,IE +- 0
16-26
22
28
o
1 0
RET
PCl +- (SP), PCH +- (SP + 1),
SP+-SP+2
10-15
11
15
o
1 0
o
RETI
PCl +- (SP), PCH +- (SP + 1),
PSW +- (SP + 2), SP +- SP + 3,
NMIS+-O
12-20
15
21
R R R
0
0
0
RETB
PCl +- (SP), PCH +- (SP + 1),
PSW +- (SP+ 2),SP +- SP +3
12-20
13
19
R R R
o
1
o
1
1 1 1 1
4-8
5
7
o
1
o
0
1 0 0
7-9
9
12
0 0 1 0
1 0 0
+
1
ta
1 1 1 0
1
0
1 1
Stack Manipulation
PUSH
PSW
(SP-1) +- PSW,SP +- SP-1
sfr
(SP-1) +- sfr, SP +- SP-1
2
Sfr-offset
rp
6-58
(SP-1) +- rpH (SP-2) +rPl, SP +- SP-2
8-13
8
12
0 0
1 1
1 1 P1 Po
NEe
f-LPD7821x
Instruction Set (cont)
Flag.
Clockll
Mnemonic Operand
OperaUon
Byte. IROM
IRAM
SFR EMEM ZACCY
Operation Code (Blta 7-0)
Byte. B1lhru B5
Stack Manipulation (cont)
. POP
PSW
PSW +- (SP), SP +- $P + 1
sir
sfr +- (SP), SP +- SP + 1
2
4-8
6
8
9-11
9
12
R R R o
1
o
1
o
o
0
1 0 0 0
0
o
0
Sfr-offset
MOVW
rp
rpL +- (SP), rpH +- (SP + 1),
SP +- SP+2
SP,#Word
SP+-word
lD-15
4
8
11
15
12
0 0
0 1 PI Po
0 0 0 0
1 0 1 1
1 1 1 1
1 1 0 0
Low Byte
High Byte
o
SP,AX
SP+-AX
2
9
11
0 0
AX,SP
AX+-SP
2
10
12
0 0 0
1 1 1 1
1 1
SP
SP+-SP+l
2
5
7
0 0 0 0
0
1
001
1 1 1 1
INCW
1 0 0
0 0 0
1. 1 0 0
DECW
SP
SP+-SP-l
2
5
7
0 0 0 0
1 1 0 0
o
o
0
1
0 0 0
o
1 0 .1
0 0
6-59
•
tttlEC
....PD7821x
Instruction Set (cont)
Clocks
Mnemonic Operand
Operation
Flags
Bytes Int ROM Branch No Branch ZACCY
Operation Code (Bits Nlj
Bytes B1 thru B5
Unconditional Branch
BA
laddr16
PC +-laddr16
3
5
0 0 1 0
11
1 1 0 0
Low Addr
rp
$addr16
PCH +- 'PH, PCl +- rpl
PC +- $addr16
2
2
6
4
10
9
0 0 0 0
o
0
0 0
1 P2 P1 0
0 0
o
o
1
1 0
1 0 0
jdlsp
Conditional Branch
BC
$addr16
PC +- $addr16If CY = 1
2
214
9
6
1 000
BL
BNC
$addr16
PC +- $addr16 If CY = 0
2
214
9
6
0 0 0
BNL
BZ
1
0 0
0
jdlsp
$addr16
PC +- $addr16 if Z = 1
2
214
9
0 0 0
6
BE
0 0 0
jdlsp
---
$addr16
BT
saddr.bH, $addr16
BNZ
001
jdlsp
PC +- $addr16 if Z = 0
2
214
9
6
1 0 0 0
BNE
0 0 0 0
jdlsp
PC +- $addr16 if (saddr.bH) = 1
3
5-9
12
9
o
1
1
o ~ B1 80
Saddr-offset
jdlsp
sfr.bH, $addr16
PC +- $addr16ifsfr.bit = 1
4
7/9
16
13
0 0
o
0
0 1 1
1 0
o
0
1B2B1Bo
Sfr-offset
jdlsp
A.blt,$addr16
PC +- $addr16If A.bH = 1
3
517
12
9
0 0 0 0
o
o
0
1 1
1~B1Bo
1
jdlsp
X.blt,$addr16
PC +- $addr16 if X.bit = 1
3
517
12
9
0 0 0 0
o
1
001
1
o B2B1
Bo
jdlsp
PSW.bH,$addr16
PC +- $addr16If PSW.bH = 1
3
517
12
9
0 0 0 0
0
1
o
jdlsp
6-60
0
1 0
OB2B1 BO
ftlEC
~PD7821x
Instruction Set (cont)
Clocks
Mnemonic Operand
Operation
Flags
Bytes Int ROM Branch No Branch ZACCY
Operation Code (Bits 7-0)
Bytes B1 thru B5
Conditional Branch (cont)
BF
saddr.bit,$addrI6
PC ... $addrl6 if (saddr.bit) = 0
4
5-9
15
12
0 0 0 0
0 0 0
0
0
B2 B1 Bo
Saddr-offset
jdisp
sfr.bit,$addrI6
PC +- $addrI6ifsfr.bit = 0
4
7/9
16
13
0 0 0 0
()
0 0 0
0
82 B1 Bo
Sir-offset
jdisp
A.bit,$addrI6
PC ... $addrl6 if A.bit = 0
3
5/7
12
9
0 0 0 0
0 0
1 1
~B1 Bo
0
0
jdisp
X.bit,$addrI6
PC ... $addrl6 if X.bit = 0
3
5/7
12
9
0 0 0 0
0
0
0 0
1 1
0 8 2 B1 Bo
jdisp
PSW.bit,$addrI6
PC ... $addrl6 if PSW.bit = 0
3
5/7
12
9
0 0 0 0
0 0
1 0
0
0
0 B2 B1 Bo
0 0
0 0
0 0 0
0
B2 8 1 Bo
jdisp
8TCLR
saddr.bit,$addr16
PC ... $addr16 if (saddr.bit) = 1
then reset (saddr.bit)
4
5-13
15
12
Saddr-offset
jdisp
sfr.bit,$addr16
PC +- $addrl6 if sfr.bit = 1
then reset str.bit
4
7/13
18
13
0 0 0 0
1 0 0 0
0
B2 8 1 8 0
Sfr-offset
jdisp
A.bit,$addrI6
PC ... $addrl6 if A.bit = 1
then resetA.bit
3
5/9
12
9
0 0 0 0
0 0
0
1 1
B2 B1
So
jdisp
X.bit,$addrI6
PC ... $addrI6ifX.bit= 1
then reset X.bit
3
PC +- $addrl6 if PSW.bit = 1
then reset PSW.bit
3
5/9
12
9
0 0 0 0
0
0 0
1 1
0 B2 8 1 8 0
jdisp
PSW.bit,$addrI6
5/8
12
9
x x x 0 0 0 0
0
0 0 1 0
0 B2 B1 Bo
jdisp
6-61
B
NEe
f.LPD7821x
Instruction Set (cont)
Flags
Clocks
Mnemunic Operanci
Operation
Bytes IntROM Branch No Branch ZACCY
Operation Code (Bits 7-0)
BytesB1 thru B5
Conditional Branch (cant)
DBNZ
rl,$addr16
saddr,$addr16
rl ... rl-1,thenPC'"
$addr16 if rl" 0
2
(saddr) ... (saddr) -1, then
PC ... $addr16 if (saddr) .. 0
3
3/5
9
6
0
0
1
0
0
1 Ro
jdisp
4-10
9
12
0 0
1
1 0
1
1
Saddr-offset
jdisp
CPU Control
MOV
STBC,#byte
STBC ... byte
4
10
15
0 0
0 0
0 0
0 0
0
0 0
0
1
1
Data
Data
SEL
RBn
RBS1-{) <- n, n = 0-3
2
2
6
0 0
0 0
0
1 0
0
NOP
No Operation
2
3
0
0 0 0
EI
IE ... 1 (Enable Interrupt)
2
3
0
0
0
0
01
IE ... 0 (Disable Interrupt)
2
3
0
0
0
0
6-62
0
o N1 No
0
0 0
0
0
~EC
NEe Electronics Inc.
Description
The f.tPD78220, f.tPD78224, and f.tPD78P224 are highperformance, 8-bit, single-chip microcomputers. They
contain extended addressing capabilities for up to 1M byte
of external memory. The devices also integrate sophisticated analog and digital peripherals as well as two lowpower standby modes that make them ideal for low-power/
battery backup applications.
The f.tPD7822x family focuses on embedded control with
features such as hardware multiply and divide, two levels
of interrupt response, four banks of main registers for multitasking, and macroservice for processor-independent
peripheral and memory DMA. Augmenting this high-performance core are advanced components; for example,
eight analog voltage comparators, two independent serial
interfaces, several counter/timers for PWM outputs, and a
real-time output port. On board memory includes 640
bytes of RAM and 16K bytes of mask ROM or OTP ROM.
The macroservice routine allows data to be transferred
between any combination of memory and peripherals independent of the current program execution. The four banks
of processor registers allow simplified context switching to
be performed. Both features combined with powerful onchip peripherals make this part ideal for a wide variety of
embedded control applications.
Features
o Complete single-chip microcomputer
- 8-bitALU
-16K ROM
- 640 bytes RAM
- Both 1-bit and 8-bit logic
o Instruction prefetch queue
o Hardware multiply and divide
50113
j.LPD7822x
Advanced,8·Bit
Real· Time Control Microcomputers
With Analog Comparators
o Memory expansion
- 8085 bus-compatible
- 64K program address space
- 1M data address space
o
o
Large I/O capacity: up to 71 I/O port lines
Extensive timer/counter functions
- One 16-bit timer/counter/event counter
- Two 8-bit timer/counter/event counter
o Four timer-controlled PWM channels
o Two 4-bit real-time output ports
o Extensive interrupt handler
- Vectored interrupt handling
- Programmable priority
- Macroservice mode
o Two independent serial ports
o Refresh output for pseudostatic RAM
o On-chip clock generator
- 12-MHz maximum CPU clock frequency
- 0.33-f.ts instruction cycle
o CMOS silicon gate technology
o 5-volt power supply
Ordering Information
Part Number
ROM
Package
fLPD78220L
fLPD78220GJ
ROMless
84-pinPLCC
94-pin plastic QFP
fLPD78224L
fLPD78224GJ
16K Mask ROM
84-pinPLCC
94-plastic QFP
fLPD78P224L
fLPD78P224GJ
16KOTPROM
84-pinPLCC
94-pin plastic QFP
6-63
ttlEC
J.LPD7822x
Pin Identification
Symbol
Function
Symbol
Function
Oulpul port 0
P2o/NMI
110 port 5/Upper address byte
I/O port 1
P60- P63/A1s-A19
Output port 6/Extended address nibble
Input port 2/Non.-maskable interrupt input
P64/RD
I/O port 6/Read strobe output
Input port 2/Ext interrupt input/timer trigger
I/O port 6/Writestrobe output
P23"NTP2/CI
Input port 2/Ext interrupt input/Clock Input
P6S/WAIT
I/O port 6/Wait input
P2,jIlNTP3
Input port 2/Ext interrupt Inputltimer trigger
P~/REFRQ
I/O port 6/Refresh output
P2S"NTP4
Input port 2/External interrupt input
P70-P7S
I/O port 7
P2aIlNTP5
Input port 2iExternai interrupt input
PTO-PT7
Port T analog inputs to voltage comparators.
P27"NTP6/SI
Input port 2/Ext interrupt input/Serial input
ASTB
Address strobe output
P30/RxD
I/O port3/Serial receive input
RESET
External reset input
I/O port 3/Serial transmit output
EA
External memory access control input
I/O port 3/Serial clock input/output
X1,X2
External crystal or external clock input
I/O port3/Serial output/Serial bus I/O
VDD
Positive power supply input
I/O port 3/Timer output
Vss
Power return; normallyground
I/O port4/Lower address byte/data bus
NC
No connection
Ie
Internal connection; connect to Vss
P33/S0/SBO
Pin Configurations
84-PinPLCC
P74
P7s
P42/AD2
P43/AD3
P44/AD4
P4S/ADs
P4S/ADs
P47/AD7
PSO/As
PS1/A9
PS2/A10
PS3/A 11
PS4/A12
PSS/A13
PSS/A14
PS7/A1S
PBO/A 16
PB1 IA 17
PB2/A1S
PB3/A 19
PB4/RD
PBSIWR
PBsiiiAIT
P7s
P20/NMI
P21/1NTPO
P22/1NTP1
P23I1NTP2ICI
P2411NTP3
P2SIINTP4
P2sllNTPS
P2711NTPS/SI
P30/RxD
P31 fTxD
P32/SCK
P33/S01SBO
P34fTOO
P3SfT01
P3sfT02
P37 fT03
PTO
PT1
~
~
~
~
~ ~I~
C N _
~ 0
0
~
N ~
v
~ ~
~IO
~t~~t~~~xx~~~~~~~~~~~
i
83Ml-598GB
6-64
.
~
l!
~
l!
III
ir
."
()
...
Ol
~I
~
~I
~
< <
<~
~t5~~~~~;1/;1/;1/Ci~~xxg~~~~~~~
m
•
N
0
N
m
W N
~
~
~
~
~
~
~
0
~
CCCCCCCCCCCCCCCCCCCCCCD
m~ m~
~ ~ ~ ~ ~
~
WN ~ 0
~ ~ ~ m ~ ~ ~ N ~
P66IWAIT
24
P651WR
25
94
P64/RD
26
93
PTO
P63/A19
27
92
P37 1T03
P62/A18
28
91
P361T02
P61/A17
29
30
90
P351T01
89
P341TOO
31
88
P33/SO/SBO
32
87
P32/SCK
33
34
86
P311TxD
85
P30/RxD
P60/A16
NC
PS7/A15
PS6/A14
PSS/A13
PT1
NC
P54/A12
35
84
NC
36
83
P27"NTP6ISI
PS3/A11
37
82
P26/INTPS
P52/A10
38
81
P25/1NTP4
P51 /A 9
39
80
P24/1NTP3
PSO/A8
40
79
P23/INTP2ICI
NC
P47 /AD 7
41
78
NC
42
n
P22/1NTP1
P46/AD6
43
76
P21/1NTPO
P45/ADS
44
7S
P20INMI
P44 /AD 4
45
74
P76
P43/AD3
P4 2 /AD 2
46
73
P7S
72
P74
47
8;tg~~~~g:~~g:~~~~~~~~~~m~::::!
OOOOODooooooooooboOD
l -:
~ ~ ~
~~~ww
(;
~l
fj ~ :2 :2 :2 ~ :2 ] :2 :2 ~ ~ ~ ~ :s ~ ~
- O~N~
~~m~ooO~N
~
,.a
~
00
0
....
CD
IS
m
•
m
(J1
"
Ii
I
Ell
I~
NEe
IJiPD7822x
Pin Functions
POO-P07~
Port 0 is an a-bit, tristate output port. Port 0
can also be configured as two 4-bit, real-time (timercontrolled) output ports.
P1o-P17' Port 1 is an 8-bit bidirectional tristate port. Bits
are individually programmable as input/output. Each pin is
capable of driving an LED directly (8 mAl.
P2o-P27' Port 2 is an 8-bit input port.
NMI. Non-maskable interrupt input.
INTPO-INTP6. External interrupt inputs. INTPO, INTP1,
and INTP3 are timer capture trigger inputs.
CI. External clock input to the timer.
51. Serial data input for three-line serial I/O mode.
P30-P37' Port 3 is an 8-bit tristate I/O port, each bit programmable as input/output.
RxD. Receive serial data input.
TxD. Transmit serial data output.
SCK. Serial shift clock output/input.
SO. Serial data output for three-line serial I/O mode.
SBO. I/O bus for the clocked serial interface.
TOO-T03. Timer flip-flop outputs.
P4o-P47' Port 4 is an 8-bit, bidirectional tristate port.
ADo-AD7' Multiplexed address/data bus used with
external memory or expanded I/O.
P50-P57' Port 5 is an 8-bit, tristate output port.
As-A15' Upper-order address bus used with external
memory or expanded I/O.
P6o-P63' Pins P6o-P63 of port 6 are outputs.
A16-A19' Extended-order address bus used with external
memory.
6-66
P64-P67' Pins P64-P67 of pori 6 are individuaiiy programmable tristate input/output pins.
RD. Read strobe output used by external memory (or data
registers) to place data on the I/O bus during a read
operation.
WR. Write strobe output used by external memory (or data
registers) to latch data from the I/O bus during a write
operation.
WAIT. Wait signal input.
REFRQ. Refresh pulse output used by external pseudostatic memory.
P7o-P76' Port 7 has seven individually programmable tristate I/O pins.
PTO-PT7. Port T is an eight-line input port. The analog voltage on each line is compared continuously with a programmable threshold voltage.
ASTB. Address strobe output used by external circuitry to
latch the low-order 8 address bits during the first part of a
read or write cycle.
RESET. A low level on this external reset input sets all registers to their specified reset values. This pin, together
with P2o/NMI, sets the f.1PD78P224 in the PROM programmingmode.
EA. Control signal input that selects external memory or
internal ROM as the program memory. When EA is low,
ROMless mode is initiated and external memory is
accessed.
X1, X2. For frequency control of the internal clock oscillator, a crystal is connected to X1 and X2. If the clock is
supplied by an external source, the clock signal· is connected to X1 and the inverted clock signal is connected
toX2.
ttlEC
,..,PD7822x
j.tPD7822x Block Diagram
Bus Control
P20/NMI
----S~F.,R Address/Data Bru~s=~====::::;;;==:]i~F;:lli!L=========~
PSO-PS71
As-A 1S
_ ._ ....
P21-P271
INTPO-INTPS
P40-P471
ADo-AD7
P30/RxD
P31ITxD ~t-----I
PSo- PS 31
A1S-A 19
P32/SCK
PS 4 /RD
P3:l/S0/SBO
P27/INTP6/SI---._ _ _ _-'
P6SIWR
INTP3
P34ITOO
PSSIWAIT
P3SIT01
Temporary
Registers
PS7/REFRQ
ASTB
INTPO
m
System Control
Micro ROM
Micro
XI
Sequencer
X2
RESET
EA
VDD
VSS
83ML·60SOB
6-67
tvEC
fJ.PD7822x
FUNCTIONAL DESCRIPTION
Timing
The maximum clock frequency is 12 MHz. The clock is derived from an external crystal or an external oscillator. The
internal processor clock is two-phase and the machine
states are executed at a rate of 6 MHz. The shortest instructions require two states (333ns). The CPU contains a
one-byte instruction prefetch. This allows a subsequent
instruction to be fetched during the execution of an instruction that does not reference memory.
Memory Map
The jLPD7822x has 1M bytes of address space. This
address space is partitioned into 64K bytes of program
memory starting at address OOOOOH. (See figure 1.) The
remainder of the 1M bytes can be accessed as data memory space.
External memory is supported by I/O port 4, an 8-bit mUltiplexed address/data bus. The memory mapping register
controls the size of external memory as well as the number
of added wait states. The upper address byte is derived
from port 5, and the extended address nibble is derived
from port 6.
The jLPD78224 has on-chip mask ROM occupying the
space from OOOOOH to 03FFFH. When the ROM is used
and no other program or data space is required, ports 4, 5,
and 6 are available as additional I/O ports.
Figure 1. Memory Map
OOOOOH
OOOOOH
0003FH
0OO40H
On-ChlpROM
16.384 Bytes
~
0007FH
00080H
(Must be extemal
memory
In ~D78220)
007FFH
00800H
03FFFH
04000H
~
r
External Memory
OFC7FH
OFC80H
Interrupt Vector
Address Table Area
~
~
On-Chip RAM
640 Bytes
I
CALLT Table Area
Program Area
CALLF Entry
Area
OOFFFH
01000H
Program Area
03FFFHI
~
OFC80H
On-Chlp
RAM
OFEFFH I---=-...,....,--::--:---\....
OFEDFH 1 - - - - - - - - 1
OFFOOH
Special Function
I~ OFEEOH
General-Purpose
Register (SFR)
Registers
~:~~~ I--_.....:A-"-re::::a'--_-I
"-_O_F_EF_F_H-J-_ _ _ _ _......
External
Memory
(Extended
Address
Area)
FFFFFH L-_ _ _ _--J
83R[).S350B
6-68
ttlEC
f.LPD7822x
General-Purpose Registers
Special Registers
The general-purpose registers are mapped into specific
addresses in data memory. They are made up of four
banks, each bank conSisting of eight 8-bit or four 16-bit
registers. The register bank used is specified by a CPU
instruction. This can be checked by reading RBSO and
RBS1 in the program status word (PSW).The generalpurpose register configuration is shown in figure 2.
There are three different special registers. The first is a 16bit binary counter that holds the next program address to
be executed and is named the program counter. The stack
pointer is the second special ·16-bit register. The stack
pointer holds the address of the stack area (a last in, first
out system). The third special register is an 8-bit program
status word. This register contains various flags that are
set or reset depending on the results of instruction execution. The program status word format is as follows:
Figure 2. Register Mapping
OFEEOH
7
~
I
Bank
IE
0
I z I RBS1 I .AC I RBSO I O· liSP I Cy
r--LCY
2
r-
ForB-Bit
Processing
I-----V/
o
OFEFFH
'---, ,
(
For 16-BII
Processing
(R1) A
(RO) X
(RPO) AX
OFEFBH
(R3) B
(R2)C
(RP1)BC
OFEFAH
(RS) D
(R4) E
(RP2) DE
OFEFCH
(R7) H
(Ra) L
(RP3) HL
OFEFEH
) = Absolute Name
83ML-6082A
ISP
RBSO, RBS1
AC
Z
IE
Carry flag
Interrupt priority status flag
Register bank selection flags
Auxiliary carry flag
Zero flag
Interrupt request enable flag
Special Function Registers
These registers are assigned to special functions such as
the mode and control registers for on-Chip peripheral
hardware. They are mapped into the 256-byte memory
space from OFFOOH to OFFFFH. Table 1 is a list of special
function registers.
6-69
6
ttlEC
I-LPD7822x
Table 1. Special Function Registers
Handleable
1
Special Function Register (SFR) Name
Bit Bit Bit
On Reset
Symbol
R/W
PortO
PO
R/W
0
0
Indeterminate
Address
OFFOOH
Bft Unit
8 16
OFF01H
Port 1
Pl
R/W
0
0
Indeterminate
OFF02H
Port 2
P2
R
0
0
Indeterminate
OFF03H
Port 3
P3
R/W
0
0
Indeterminate
OFF04H
Port 4
P4
R/W
0
0
Indeterminate
OFF05H
Port 5
P5
RIW
0
0
Indeterminate
OFFOSH
PortS
PS
RIW
0
0
xOH
OFF07H
Port 7
P7
R/W
0
0
Indeterminate
OFFOAH
Port 0 buffer register (low)
POL
RIW
0
0
Indeterminate
Indeterminate
OFFOBH
Port 0 buffer register (high)
POH
RIW
0
0
OFFOCH
Real-time output port control register
RTPC
RIW
0
0
OFF10H.
OFFllH
lS-bit compare register 0 (lS-bit timer/counter)
CROO
RIW
0
Indeterminate
OFF12H.
OFF13H
lS-bit compare register 1 (lS-bitlimer/counter)
CROl
RIW
0
Indeterminate
OOH
OFF14H
8-bit compare register (8-bit timer/counter 1)
CR10
RIW
0
Indeterminate
OFF15H
8-bit compare register (8-bitlimer/counter 2)
CR20
RIW
0
Indeterminate
OFF1SH
8-bit compare register (8-bit timer/counter 2)
CR21
RIW
0
Indeterminate
OFF17H
BRG 8-bit compare register
CR30
RIW
0
OFF18H.
OFF19H
lS-bit capture register (lS-bit timer/counter)
CR02
R
OFF1AH
8-bit capture register (8-bit timer/counter 2)
CR22
R
0
Indeterminate
OFF1CH
8-bit capture/compare register (8-bitlimer/counter 1)
CRll
R/W
0
Indeterminate
OFF20H
Port 0 mode register
PMO
W
0
FFH
OFF21H
Port 1 mode register
PMl
W
0
FFH
OFF23H
Port 3 mode register
PM3
W
0
FFH
OFF25H
Port 5 mode register
PM5
W
0
FFH
OFF2SH
Port S mode register
PMS
R/W
0
FFH
OFF27H
Port 7 mode register
PM7
W
0
7FH
OFF30H
Capture I compare control register 0
CRCO
W
0
10H
OFF31H
nmer output control register
TOC
W
0
OOH
OFF32H
Capture/compare control register 1
CRCl
W
0
OOH
OFF34H
Capture/compare control register 2
CRC2
W
0
OOH
OFF43H
Port 3 mode control register
PMC3
R/W
OFF50H.
OFF51H
lS-bit timer register 0
TMO
R
OFF52H
8-bitlimer register: CH-l
TMl
R
6-70
Indeterminate
0
0
OOH
0
0
0
Indeterminate
OOOOH
OOH
ttlEC
,.,..PD7822x
Table 1. Special Function Registers (cont)
Symbol
R/W
Handleable
!'lit Unit
1 8 18
Bit Bit Bit
OFF54H
B·bittimer register: CH·2
TM2
R
0
OOH
OFF56H
BRG B·bit timer register
TM3
R
0
OOH
OFF5CH
Prescaler mode register 0
PRMO
W
0
OOH
OFF5DH
Timer control register 0
TMCO
R/W
0
OOH
OFF5EH
Prescaler mode register 1
PRM1
W
0
OOH
OFF5FH
Timer control register 1
TMCl
R/W
0
OOH
OFF6EH
Port T mode register
PMT
R/W
0
0
OOH
OFF6FH
PortT
PT
R
0
0
Indeterminate
OOH
Special Function Reglater (SFR) Name
Address
On Reset
OFFSOH
Clocked serial interface mode register
CSIM
R/W
0
0
OFF82H
Serial bus interface control register
SBIC
R/W
0
0
OOH
OFF86H
Serial shift register
SIO
R/W
0
Indetenminate
OFFB8H
Asynchronous serial interface mode register
ASIM
R/W
0
0
80H
OFFBAH
Asynchronous serial interface status register
ASIS
R
0
0
OOH
OFF8CH
Serial receive buffer:
RxB
R
0
Indetenminate
OFF8EH
Serial send shift register:
O.FFCOH
Standby control register
OFFC4H
OFFC5H
UART
UART
TxS
W
0
Indeterminate
STBC
R/W
0
OOOOxOOOB
Memory expansion mode register
MM
R/W
0
0
20H
Programmable wait control register
PW
R/W
0
0
SOH
R/W
0
0
R/W
0
0
R/W
o :.0
RIW
0
0
R/W
0
0
RIW
0
0
OFFC6H
Refresh mode register
OFFEOH
Interrupt request flag register l
RFM
OFFE1H
Interrupt request flag register H
IFOH
OFFE4H
Interrupt mask flag register l
MKOl
OFFE5H
Interrupt mask flag register H
MKOH
OFFEBH
Priority specification flag register l
PROl
IFOl
IFO
MKO
PRO
OOH
0
Indeterminate
Indeterminate
0
FFFFH
0
FFFFH
FFFFH
FFFFH
OFFE9H
Priority specification flag register H
PROH
R/W
0
0
OFFECH
Interrupt service mode specification flag register l
ISMOl ISMO
R/W
0
0
OFFEDH
Interrupt service mode speCification flag register H
ISMOH
R/W
0
0
OOOOH
OFFF4H
Ex1ernal interrupt mode register 0
INTMO
R/W
0
0
OOH
OFFF5H
Ex1ernal interrupt mode register 1
INTMl
R/W
0
0
OOH
OFFF8H
Interrupt stetus register
1ST
R/W
0
0
OOH
0
OOOOH
6-71
m
1tt{EC
J.i,PD7822x
Input/Output Ports
Functions of ports PO-P7.and PT are explained below. All
ports are 6 bits wide except P7, which is 7 bits wide.
Port
Function
PO
a-bit output port or two 4-bit real time output
ports
P1
Bit programmable for input or output; large
current capacity
P2
Input
P3
Bit programmable for input or output
P4
Input or output
P5
Output
P60-P6a
Output
latch simultaneously with the generation of either a timer
interrupt or external interrupt.· Using the real-time output
function in conjunction with the macroservice function
enables port 0 to output preprogrammed patterns at preprogrammed variable time intervals.
PortT
As shown in figure 4, the analog input voltage on each line
of port T is compared with a programmable threshold voltage. The comparator output is 1 if the input voltage is
higher than the threshold or 0 if it is lower.
Four bits from the PTM register are decoded to set the
threshold voltage at one of 15 steps: Voo x 1/16 through
Voo x 15/16. Each comparator operates continuously as
follows.
(1) Threshold voltage is set by writing the PTM register.
Bit programmable for input or output
Bit programmable for input or output
Inputs to eight voltage comparators
Real-Time Output Port
The real-time output port (figure 3) shares pins with port O.
The high and low nibbles may be treated separately or together. In the real-time output function, data stored beforehand in the buffer register is transferred to the output
(2) As each comparison is completed, the result is
latched in port T and the next comparison begins.
(3) Unless the PTM register is rewritten, the threshold
voltage is not changed.
Two bits from the PTM register specify the connection of
pull-up resistors in 4-bit units. When PTM is set to OOH, the
resistor ladder is released and threshold voltage is not supplied to the comparators. This can be done in the standby
mode to eliminate unnecessary current drain.
Figure 3. Real-Time Output Port
Internal Bus
Buffer ~eglster
4-BII
Real·Tlme
OUtpUI (POH)
POH
POL
4-BII Real·Time
OUtpUI (POL)
8
l------I4 l--------+l4
8-BII Real·Time
OUtpUI(PO)
EXTR
83ML-6083B
6-72
t\'EC
,""PD7822x
Figure 4. Comparator Port T
Serial Interface
The fJ-PD7822x has two independent serial interfaces.
Pull-Up
Resistors
• Asynchronous serial interface (UART) (figure 5)
• Clock-synchronized serial interface (figure 6)
~O~+----Pr---------~
A universal asynchronous receiver transmitter (UART) is
used as an asynchronous serial interface. This interface
transfers one byte of data following a start bit. The
fJ-PD7822x contains a baud rate generator. This allows
data to be transferred over a wide range of transfer rates.
PT1~+---~T----+~--i~
PT2
The clock-synchronized serial interface has two different
modes of operation:
~+---~T----+~---c-.
• Three-line serial 1/0 mode.
In this mode, data 8 bits long is transferred along three
lines: a serial clock (SCK) line and two serial bus lines
(SO and SI). This mode is convenient when the
fJ-PD7822x is connected to peripheral II0s and display
controllers that have the conventional clocksynchronized serial interface.
PT3 o_+---_f''l---_+--I---I::-.
~4o-+---_f''l---_+--I--~
PT6
• Serial bus interface mode (S81).
In this mode the fJ-PD7822x can communicate data with
several devices using the serial clock (SCK) and the serial data bus (S80) lines. This mode conforms to NEC's
serial bus format. In S81 mode, addresses that select a
device to communicate with, commands that direct the
device, and actual data are output to the serial data bus.
A handshake line, which was required for connecting
several devices in the conventional clock-synchronized
serial interface, is not needed.
o-+----(!t--t-t-l---c--..
PTI o-+---_f''l-_+_+--I---I::-.
L-I---I--_ _--I PUPH
L - t - - - - j PUPL
o
Threshold
Voltage
o
MT3
Resistor
Ladder
(16 Sections)
Decoder
/'-______-/ MT2
\0__...:.4__-1
MT1
MTO
PortT Mode
Register
PTM
83ML·6084A
6-73
II
fttlEC
f.LPD7822x:
Figure 5. Asynchronous Serial Interface
<
Int&iiialBus
I
-'
Clear
'ClK
L...,.;~;:;;........,-INTSR
I
Transmit/Receive Baud
,-...I..--...c...:....J
Generator
L Rate
_ _
_ _ Output
_ _ _ _ _ _
Baud Rate Generator
83RD-6351B
6-74
t-rEC
f.LPD7822x
Figure 6. Clock-Synchronized Serial Interface
Selector
N·ch Open·Draln
Output Possible
Bus Release!
Command!
Acknowledge
Detection
Circuit
INTCS1
From Baud
RateGen
fCLK!8
fCLK!32
83RD·6352B
6-75
ftlEC
JJ.PD7822x
Timer/Counters
The ,....PD7822x has three timer/counters: one 16-bit and
two a-bit. The 1S,:,bit timer/counter (figure 7) has the basic
functionality of an interval timer, a programmable squarewave output, and a pulse Width measurer. These functions
can provide a digital delayed one-shot output, a pulse
width modulated output, and a cycle measurer.
The two 8-bit timer/counters can provide the basic funciions of an intervai timer and a pulse width. measurer.
Timer/counter 1 can also be used as a timer for output
trigger generation for the real-time output port. Timer/
counter 2 can .also provide an external event counter, a
one-shot timer, a programmable square-wave output, a
pulse-width modulated output, and a cycle measurer. See
figures 8 and 9.
Figure 7. 16·Bit Timer/Counter
Internal Bus
External
Interrupt
Mode Register
CEipturEli
Compare
Control
Register
(CRCOl
(INTM1l
P23/1NTP2
,--.L..-r......--, Timer
Control
L._....,~_...1 Register
(TMCOl
16
83ML-6076B
6-76
!WEe
,...,PD7822x
Figure 8. 8-Blt Timer/Counter 1
Internal Bus
8
8
External Interrupt
Mode Register 0
(INTMO)
Capturel
Compare
Cont Reg 1 L........_L-.,.........J_..........I
(CRC1)
INTPO
~~--------------------+---+-----~+-~
INTC10
'ClK /512
'ClK /256
'ClK I128
'ClK /64
Selector
1---+--1
OI/erflow
8-BIITlmer
(TM1)
'CLK /32
f CLK/1S
Capture
Trigger
Prescaler
Mode Register
(PRM1)
I -______-+____+
__-L..../H~--------. .
INTCll
r-~___~~-' ~~~I
Register 1
(TMC1)
8
Internal Bus
83Ml.wnB
6-77
f.1 PD7822x
Figure 9. 8-Bit Timer/Counter 2
INTP1
+_ INTC21
L -_ _ _ _ _
Prescaler
Mode Register
8
(PRM1)
Internal Bus
83Ml-6078B
Interrupts
There are 18 interrupt request sources; each source is allocated a location in the vector table. (See table 2.) There is
one software interrupt request and one of the remaining 17
interrupts is non-maskable. The software interrupt and the
non-maskable interrupt are unconditionally received even
in the 01 state. These two interrupts possess the maximum
priority. The maskable interrupt requests are subject to
mask control by the setting of the interrupt mask flag.
6-78
There are default priorities associated with each maskable
interrupt and these can be assigned to either of two programmable priority levels. Interrupts may be serviced by
the vectored interrupt method where a branch to a desired
service program is executed. Interrupts may also be handled
by the macroservice function where a preassigned process is performed without program intervention.
fttIEC
fJ-PD7822x
Table 2. Interrupt Sources and Vector Addresses
Vector
Table
Address
Interrupt
Request
Type
Default
Priority
Software
None
BRK instruction execution
003EH
Non-maskable
None
NMI (pin input edge detection)
0002H
INTPO (pin input edge detection)
0006H
Maskable
0
Macroservlce
Handling
Interrupt Request Source
INTP1 (pin input edge detection)
0008H
2
INTP2 (pin input edge detection)
OOOAH
3
INTP3 (pin input edge detection)
OOOCH
4
INTCOO (TMO-CROO coincidence signal generation)
0014H
5
INTC01 (TMO-CR01 coincidence signal generation)
6
INTC10 (TM 1-CR10 cOincidence signal generation)
Yes
0018H
7
INTC11 (TM1-CR11 coincidence signal generation)
Yes
001AH
0016H
001CH
8
INTC21 (TM2-CR21 cOincidence signal generation)
9
INTP4 (pin input edge detection)
10
INTP5 (pin input edge detection)
0010H
11
INTP6 (pin input edge detection)
0012H
12
INTSER (generation of asynchronous serial interface receive error)
13
INTSR (end of asynchronous serial interface reception)
Yes
14
INTST (end of asynchronous serial interface transmission)
Yes
0024H
15
INTCSI (end of clocked serial interface transfer)
Yes
0026H
Macroservice
The macroservice function can be programmed to transfer
data from a special function register to memory or from
memory to a special function register. Transfer events are
triggered by interrupt requests and take place without software intervention. There are six interrupt requests where
macroservicing can be executed. The macroservice function is controlled by the macroservice mode register and
the macroservice channel pointer. The macroservice
mode register assigns the macroservicing mode and the
macroservice channel pOinter indicates the address of the
memory location pointers. The location of each register
and its corresponding interrupt is shown in figure 10.
Refresh
The refresh signal is used with a pseudostatic RAM. The
refresh cycle can be set to one of four intervals ranging
from 2.6 to 21.3 fLs. The refresh is timed to follow a read or
write operation so there is no interference.
Standby Modes
Yes
OOOEH
0020H
0022H
both stopped, reducing the power consumption even
further. The stop mode is released by an NMI input or a
RESET input.
FIgure 10. Macroservice Control Word Map
OFEDFH
Channel Pointer
OFEDEH
Mode Register
OFEDDH
Channel Pointer
OFEDCH
Mode Register
OFEDBH
Channel Pointer
OFEDAH
Mode Register
OFED9H
Channel Pointer
OFED8H
Mode Register
OFED7H
Channel Pointer
OFED6H
Mode Register
OFED5H
Channel Pointer
OFED4H
Mode Register
INTSR
INTST
INTCSI
INTC10
INTC11
INTP4
83RD-6353A
Halt and stop functions reduce system power consumption. In the halt mode, the CPU stops and the system clock
continues to run. A release of the halt mode is initiated by
an unmasked interrupt request, an NMI, or a RESET
input. In the stop mode, the CPU and system clock are
6-79
II
ftiEC
f.LPD7822x
ELECTRICAL SPECIFICATIONS
Absolute Maximum Ratings
TA = +25'C.
Item
Conditions
Symbol
Rating
Unit
Voo
-0.5 to +7.0
V
Input voltage
VI
-0.5 to Voo + 0.5
V
Output voltage
Vo
Operating voltage
Low-level output current
-0.5 to Voo + 0.5
V
30 (peak)
rnA
15 (mean value)
rnA
One output pin
IOL
All output pins total
High-level output current
150 (peak)
rnA
100 (mean value)
rnA
One output pin
-2
rnA
All output pins total
-50
rnA
IOH
Operating temperature
TOPT
-40 to +85
°C
Storage temperature
TSTG
-65 to +150
°C
Capacitance
Operating Frequency
Oscillation Frequency
Ixx= 4to12MHz
TA = +25'C; voo = vss = 0 V.
Voo
-40 to +85°C
-10to+70°C
Symbol
Item
+5V±5%
+5V±10%
Typ
Max Unit Conditions
CI
20
pF
Output capacitance
Co
20
pF
Input/output capacitance
CIO
20
pF
Input capacitance
1= 1 MHz; pins not
used for measurement are at 0 V
DC Characteristics
TA = -40 to +85°C; voo = +5 V ± 10%; Vss = 0 V.
Item
Symbol
Conditions
VIL
High-level input voltage
VIH1
VIH2
Pins in Note 1
Low-level output voltage
VOL1
IOL =2.0mA
VOL2
IOL = 8.0 rnA (Port PI pins)
VOH1
IOH=-1.0mA
Voo-l.0
VOH2
IOH=-100(.LA
Voo-0.5
High-level output voltage
Except PT pins
Min
Low-level input voltage
Except PT pins and pins in Note 1
III
VI=OtoVoo
Output leakage current
ILO
Vo=OtoVoo
IIPT
VI = OV;PTpins
1001
Operating mode, Ixx = 12 MHz
1002
HALT mode, Ixx = 12MHz
Voo power supply current
Data retention voltage
Data retention current
VOOOR
STOP mode
1000R
STOP mode
Unit
V
2.2
Voo
V
Voo
V
0.45
V
1.0
V
V
V
±10
(.LA
±10
(.LA
-150
-400
(.LA
16
40
rnA
20
rnA
7
2.5
5.5
V
VOOOR=2.5V
2
20
(.LA
VOOOR=5V±10%
5
50
(.LA
Notes:
(1) XI, X2, RESET, P20/NMI, P21/INTPO, P22/INTP1, P23/INTP2/CI,
P24/INTP3, P2s /INTP4, P26/INTP5, P27/INTP6/SI, P32/SCK,
P33/S0/SBO, and EA pins.
6-80
Max
0.8
0.8Voo
Input leakage current
Pull-up current
Typ
0
ftt{EC
I-LPD7822](
Figure 11. Voltage Thresholds for Timing
Measurements
X'----_lC
O.B VOO or 2.2 V
VOO-1-
O.BV
0.45 V - - - - - '
83ML-6089A
Read/Write Operation
TA = -40 to +85°C; voo = +5 V ± 10%; VSS = 0 V; fxx = 12 MHz; CL = 100 pF.
Symbol
Min
Max
Unit
XI input clock cycle time
tCYX
82
250
ns
Address setup time to ASTB ~
tSAST
52
ns
Address hold time from ASTB ~ (Note 2)
tHSTA
25
ns
Item
~
Address to RD
delay time
Address float time from RD
~
Address to data input time
ASTB
~
to data inputtime
RD ~ to data inputtime
ASTB
~
to RD
~
delay time
Data hold time from RD t
Conditions
RL=5kO,CL =50pF
tOAR
129
ns
tFAR
11
ns
tOAIO
228
tOSTIO
181
ns
ns
tORIO
99
ns
tOSTR
52
ns
ns
tHRIO
0
RD t to address active time
tORA
124
ns
RD t toASTB t delay time
tORST
124
ns
tWRL
124
ns
tWSTH
52
ns
tOAW
129
RD low-level width
ASTB high-level width
AddresstoWR
~
delay time
ASTB ~ to data output time
WR
~
ASTB
todataoutputtime
~
toWR
~
delay time
ns
tOSTOO
142
ns
toweD
60
ns
tOSTW1
tOSTW2
Refresh mode
52
ns
129
ns
146
ns
22
ns
Data setup time to WR t
tSOOWR
Data setup time to WR ~ (Note 1)
tSOOWF
Data hold time from WR t (Note 2)
tHWOO
20
ns
WR t to ASTB t delay time
tOWST
42
ns
WR low·level width
tWWLI
196
ns
tWWL2
Address to WAIT
~
inputtime
ASTB ~ to WAIT ~ inputtime
WAITholdtimefromXl
WAITsetuptimetoXI t
~
Refresh mode
Refresh mode
ns
114
tOAWT
146
toSTWT
84
ns
ns
tHWTX
0
ns
tSWTX
0
ns
Notes:
(1) When accessing a pseudostatic RAM (fLPD4168, etc.) that clocks in
data at the falling edge of WR, use tSODWF instead of tSODWR as the
data setup time.
(2) The hold time includes the time during which VOH and VOL are
retained under the following load conditions: C L = 100 pF and
RL = 2kO.
6-81
II
ttlEC
IJ.PD7822X
Figure 12. Read Operation Timing
Xl
t - - - - - - l D A I O -----~
AOO-A07 - - - (
InpUI Data '
I+'-......I--~ I FAR
~---+-IOSTIO----J
ASTB
IORIO
~---IWRL----~
83ML-8091B
6-82
ttlEC
/-LPD7822x
Figure 13. Write Operation Timing
X1
ADO-AD7
---<
Outpul Data
-l---IIo!+--ISODWR----PI
1+-.-0-14-+1 I SODWF
ASTB
I DWST
1 4 - - - - / - - IWWL1
1WWL2
83ML-8092B
Figure 14. External WAIT Input Timing
X1
f 4 - - - - I DAWT"---ASTB
83ML-59938
6~83
~EC
~PD7822x
Serial Port Operation
TA
= -40 to +85°C; Voo = +5 V ±
10%; VSS
= 0 V; fxx = 12 MHz; CL = 100 pF.
Symboi
Item
Serial clock cycle time
IcYSK
Serial clock low-level width
Serial clock high-level width
tWSKL
tWSKH
Conditions
iiiiin
iiiiax
Unit
Input
External clock
1.0
fl-S
Output
Internal clock/ 16
1.3
fl-S
Internal clock/64
5.3
fl-S
Input
External clock
420
ns
Output
Internal clock/16
556
ns
fl-S
Internal clock/64
2.5
Input
External clock
420
ns
Output
Internal clock/16
556
ns
Internal clock/64
2.5
fl-S
SI, SSOsetuptimetoSCK t
tSSSK
150
ns
SI, SSO hold time from SCK l
tHSSK
400
SO/SSO output delay time from SCK l
SSO high, hold time from SCK t
ns
tOSBSK1
CMOS push-pull output
(3-line serial I/O mode)
a
300
ns
tOSBSK2
Open-drain output
(SSI mode), RL = 1 kO
a
800
ns
tHSBSK
SSlmode
4
tCYX
SSO low, setup time to SCK l
tSSBSK
SSlmode
4
tCYX
SBO lOW-level width
tWSBL
4
tCYX
SSO high-level width
tWSBH
4
tCYX
RxD setup time to SCK t
tSRXSK
80
ns
RxD hold time after SCK t
tHSKRX
80
SCK l to TxD delay time
tOSKTX
ns
210
ns
Figure 15. Clock-Synchronized Serial Interface Timing; Three-Line I/O Mode
SCK
SI-------{
---'Xl.....________ ~_ _OU_t_pu_t_o_am___J)(~________~:>C~______
SO _ _ _
83RD-GaS8B
6-84
ttlEC
J,LPD7822x
Figure 16. Clock-Synchronized Serial Interface Timing; SSI Mode
rn
Bus Release Signal Transfer Timing
.oK
/t~~
-~
.
tWSBH
tWSBL
\
l ___. .1
~~.
tSSBSK
I
~_-'-[=======)('--
SBO
\'---
__---'>C
Command Signal Transfer Timing
SBO
83RD-8354B
Figure 17. Asynchronous Mode Timing
tCYSK
-tWSKL- I=:WSKH-
I
\
\
)
TxD
f4-t DSKTXRxD
)
(
ISRXSK
tHSKRX
83ML-5989B
6-85
tttrEC
JJ.PD7822x
Figure 18. Interrupt Input Timing
Comparator Port Operation
Hem
Comparison accuracy
Symbol Conditions Min Max Unit
VACOMP
,...PD78P224
100
mV
100
mV
Comparison time
tCOMP
128 256 tCYX
Sampling time
tSAMP
62
VIPT
0
PT input voltage
I
NMI
tCYX
V
VOO
Interrupt Timing Operation
Item
INTPoINTP6
Symbol Conditions Min Max Unit
NMllow-levelwidth
tWNll
10
,...S
NMI high-level width
tWNIH
10
,...S
INTPO-INTP6Iow-level width
tWITl
24
tCYX
tCYX
INTPO-INTP6high-levelwidth
tWITH
24
RESET low-level width
tWRSl
10
,...S
RESET high-level width
tWRSH
10
,...S
Figure 19. Reset Input Timing
RESET
Data Retention Characteristics
Item
Symbol
Conditions
Data retention voltage
VOOOR
STOP mode
Data retention current
IOOOR
VOOOR=2.5V
Min
Typ
2.5
VOOOR = 5V±10%
Max
Unit
5.5
V
2
20
,...A
5
50
,...A
,...S
tRVO
200
Voofalitime
tFVO
200
,...s
VOO retention time
(for STOP mode selling)
tHVO
0
ms
STOP release signal inputtime
tOREl
Oscillation stabilization wait time
tWAIT
VOO rise time
0
ms
Crystal resonator
30
ms
Ceramic resonator
5
Low-level input voltage
Vil
Note 1
0
0.1 VOOOR
V
High-level input voltage
VIH
Note 1
0.9VOOOR
VOOOR
V
Notes:
(1) RESET, P2oINMI, P2 11INTPO, P2211NTP1, P231INTP2ICI, P241
INTP3, P2511NTP4, P2611NTP5, P27I1NTP6ISI, P32 ISCK, P331S01
S80, and EA pins.
6-86
ms
t\'EC
....PD7822x
Figure 20. Data Retention CharacterIstIcs
Set STOP Mode
~
VDD
VDDDR
tHVD
i+----tWArT ---~
tRVD
tFVD
REsET
VDDDR
O.SV
NMI
(Release by failing
edge Input)
VDDDR
O.SV
.
NMI
(Release by rtslng
edge Input)
6-87
~EC
/-LJlD7822x:
Timing Dependent on tCYX
Symbol
Carculatlon Formula
MiniMax
12MHz
Un!t
Min
82
ns
tCYX- 3O
Min
52
ns
tOAR
2tCYX- 35
Min
129
ns
Address floattime from RD l
tFAR
tCYX/2-30
Min
11
ns
Address to data input time
tOAIO
(4+2n) tCYX-100
Max
228
ns
ASTB l to data inputtime
tOSTIO
(3+2n)tCYX-65
Max
181
ns
RD l to data inputtime
tORIO
(2+2n)tCYX-65
Max
99
ns
ASTB l toRD l delay time
tOSTR
tCYX-30
Min
52
ns
RD t to address active time
tORA
2tCYX-40
Min
124
ns
RD t to ASTB t delay time
tORST
2tCYX-40
Min
124
ns
RD low-level width
tWRL
(2+2n)tCYX-40
Min
124
ns
tWSTH
tCYX-30
Min
52
ns
tOAW
2tCYX-35
Min
129
ns
142
ns
Item
XI input clock cycle time
tCYX
Address setup time to ASTB l
tSAST
Address to RD l delay time
ASTB high-level width
AddresstoWR l delay time
ASTB l to data outputtime
tOSTOO
tCyx+60
Max
ASTB l toWR l delay time
tOSTW1
tCYX-30
Min
52
ns
tOSTW2
2tCYX-35
(refresh mode)
Min
129
ns
Data setup time to WR t
tSOOWR
(3+2n)tCYX-l00
Min
146
ns
Data setup time to WR l
tSOOWF
tCYX-60
(refresh mode)
Min
22
ns
WR t to ASTB t delay time
tOWST
iCYX-40
Min
42
ns
WR low-level width
tWWL1
(3+2n)tCYX-50
Min
196
ns
tWWL2
(2+2n) tCYX-50
(refresh mode)
Min
114
ns
tOAWT
3tCYX-l00
Max
146
ns
tOSTWT
2tCYX-80
Max
84
ns
Address to WAIT
~
inputtime
ASTB l to WAIT l inputtime
Notes:
(1) n indicates the number of wait states.
6-88
t-lEC
,""PD7822x
External Clock Operation
Figure 21. Recommended Oscillator Circuit
Symbol Conditions
Itam
.l..
15~~
II
C1
C2
15pF
T
~
T
X1
I'PD7822x
X2
Min
Max
Unit
Xl input low-level width
tWXL
30
130
ns
XI input high-level width
tWXH
30
130
ns
XI input rise time
tXR
0
30
ns
XI inputfalltime
tXF
0
30
ns
tcvx
82
250
ns
Xl input clock cycle time
Cryslal frequency Ixx = 4 to 12 MHz
83RD-e356A
Figure 23. External Clock TimIng
Figure 22. Recommended External Clock Circuit
Clock
XI
;>0--..----1 X1
HCMOS
ILPD7822x
Inverters
f 4 - - - - - t CYX-"'-----i
X2
8SUl.s99SA
Clock frequency 'xx
= 4 to 12 MHz
83R~A
6-89
ftlEC
,""PD7822x
fJ.PD78P224 PROGRAMMING
Table 3. Pin Functions During PROM Programming
In the 78P224, the mask ROM of 78224 is replaced by a
one-time programmable ROM (OTP ROM. The ROM is
16,384 x 8 bits and can be programmed using a generalpurpose PROM writer with a ILPD27C256A programming
mode.
Pin
Function
POO-P07
Ao-A7
Input pins for PROM write/verify
operations
P50/As
As
Input pin for PROM write/verify operation
P21"NTPO
A9
Input pin for PROM write/verify operation
The PA-78P224GJ/L are the socket adaptors used for
configuring the ILPD78P224 to fit a standard PROM socket.
P52-P56/AlO-A14
Am-A14
Input pins for PROM writelverify
operations
Refer to tables 3 through .6 and figures 24 and 25 for special information applicable to PROM.programming.
P40-P47/ADO-AD7 Do-D7
P20/NMI
EA
CE
Strobe data into the PROM
OE
Enable a data read from the PROM
NMI
PROM programming mode is entered by
applying a high voltage to this pin
RESET
PROM programming mode requires
applying a low voltage to this pin
Vpp
High voltage applied to this pin for
program write/verify
Voo
Voo
Data pins for PROM writelverify
operations
v..
Positive power supply pin
Ground
Table 4. Summary of Operation Modes for PROM Programming
NMI
RESET
CE
OE
Program write
+12.5V
L
L
H
+12.5V
+6V
Program verify
+12.5V
L
H
L
+12.5V
+6V
Data output
Program inhibit
+12.5V
L
H
H
+12.5V
+6V
HighZ
Mode
Voo
00-0 7
Data input
Readout
+12.5V
L
L
L
+5V
+5V
Data output
Output disable
+12.5V
L
L
H
+5V
+5V
HighZ
Standby
+12.5V
L
H
LlH
+5V
+5V
HighZ
Notes:
When + 12.5 V is applied to Vpp and +6 V to VDD , both CE and OE cannot
be set to low level (L) simultaneously.
6-90
NEe
f.LPD7822x
TableS. DC Programming Characteristics
TA = 25 ±5°C, VIP = 12.5 ± 0.5 V applied to NMI pin, Vss = 0 V.
Parameter
Symbol
High-level inputvoHage
VIH
Symbol·
Condition
Max
Unit
VIH
Voop+0.3
V
-0.3
O.B
V
10
f'oA
Low-level input voltage
VIL
VIL
Input leakage current
VUP
VLI
VI=OtoVoop
High-level output voltage
VOH1
VOH
IOH = -400 f'oA
2.4
VOH2
VOH2
IOH = -100 f'oA
VOO-0.7
Low-leveloutputvoHage
VOL
VOL
IOH=2.1 mA
Output leakage current
ILO
NMI pin high-voHage input current
Voop power voltage
Vpp
100
Vpp power current
V
VCC
Vpp
Ipp
ICC
Ipp
V
10
±10
Program memory write mode
5.75
6.0
6.25
V
Program memory read mode
4.5
5.0
5.5
V
Program memory write mode
12.2
12.5
12.B
V
V
Vpp = Voop
Program memory write mode
5
30
mA
Program memory read mode
CE = VIL, VI = VIH
5
30
mA
Program memory write mode
CE = VIL, OE = VIH
5
30
mA
100
f'oA
Max
Unit
Program memory read mode
,*
0.45
f'oA
f'oA
Vo=OtoVopp;OE =VIH
Program memory read mode
Voop power current
V
liP
Voop
Vpp powervoHage
Typ
2.4
Min
Corresponding symbols of the ILPD27C256A.
Table 6. AC Programming Characteristics
TA = 25 ±5°C, VIP = 12.5 ± 0.5 V applied to NMI pin, Vss = 0 V, Voo = 6 ±0.25 V, Vpp = 12.5 ±0.3 V.
'Parameter
Symbol
'Symbol·
tsAC
tAS
2
ILS
toooo
toES
2
ILS
~
tSIOC
tos
2
iJ.S
Address hold time from CE t
tHCA
tAH
2
ILS
Input data hold time from CE t
tHCIO
tOH
2
Output data hold time from OE t
tHOOD
'oF
0
tsvPC
tvps
AddresssetuptimetoCE
~
DatatoOE ~ delay time
Input data setup time to CE
VppsetuptimetoCE
~
Voop setup time to CE
~
Condition
Min
tvos
tWL1
tpw
0.95
Additional program pulse width
tWL2
topw
2.B5
NMI high-voHage input setup time
toCE ~
tspc
OE
~
tOAOO
tocoo
1.05
ms
78.75
ms
teE
iJ.S
CE=OE=V1L
200
ns
OE=VIL
200
ns
75
ns
60
ns
to data outputtime
toooo
tOE
CE=VIL
Data hold time from OE t
tHCOO
tOF
CE=VIL
0
Data hold time from address
tHAOO
iOH
CE=OE=VIL
0
*
1.0
2
tACC
ns
ms
tsvoc
Address to data output time
iJ.S
130
ms
Initial program pulse width
CE ~ to data outputtime
Typ
ns
Corresponding symbols of the ILPD27C256A.
6-91
II
t-IEC
IJ.PD7822x:
Figure 24. PROM Write Mode Timing
~~
DO-D7
....
1-0- tSAC
~
Data
Input
-+
~IDC
-+
-
I)---(
_
tHooD
Data
Output
tHCID
1+-" .
VIL
-I
....
I--
tHCA
Data
Input
tSIDC _
VIP
NMI
'K
Effective Address
- -
_
tHCID
tspc
1-0-
VPP
Vpp
VODP
-.I
....
tsvPC
1-0-
VDDP + 1
VDDP
VODP
-.I
....
~VDC
VIH
BE
f'-----J
- ~loooo
tDDoo
VIL
tWl1
f--
_tWL2-+
VIH
S
BE
J
VIL
Notes:
(1)
VODP must be applied before applying V pp. It should be removed after removing V pp
(2)
Vpp must not exceed +13 V, InCluding overshoot.
83Ml-599GB
Figure 25. PROM Read Mode Timing
Effective Address
CE
HI-Z
HI-Z
83ML-59978
6-92
t\'EC
PROM Write Procedure
(1) Connect the RESET pin to a low level and apply
+ 12.5 V to the NMI pin.
(2) Apply +6 Vtothe VDD pin and +12.5 Vtothe Vpp pin.
(3) Provide the initial address.
(4)
Provide write data.
(5) Provide 1-ms program pulse (active low) to the CE pin.
(6) This bit is now verified with a pulse (active low) to the
OE pin. If the data has been written, proceed to step 8;
if not, repeat steps 4 to 6. If the data cannot be correctly written after 25 attempts, go to step 7.
(7) Classify as defective and stop write operation.
(8) Provide write data and supply program pulse (for
additional writing) for 3 ms times the number of
repeats performed between steps 4 to 6.
(9) Increment the address.
(10) Repeat steps 4 to 9 until the end address.
PROM Read Procedure
iJ.PD7822x
Specify operands in accordance with the rules of operand
representation; for details, refer to the assembler specifications. If two or more description methods are available,
select one. The symbols +, -, #, !, $, I, [ j, and & are
keywords and must be used in conjunction with each
instruction.
When describing immediate data as a label, use one of the
following modifiers: +, -, #, !, $, I, [ j, and &. Symbols rand
rp can be described in both the function name and absolute
name.
Table 7. Operands
Symbol
Autoincrement
+
Autodecrement
Immediate data
#
Absolute address
Relative address
$
Bit inversion
Indirect addressin9
[ I
_&_ _ _
SU_b_ba_n_k;_1_M_-b-,,-yt_e_ex-,-p_an_s_io_ns-'-p_ac_e_ _ _ _ _ _~-
(1) Fix the RESET pin to a low level and apply + 12.5 V to
the NMI pin.
(2) Apply +5 V to the VDD and Vpp pins.
Register
Function name: X, A, C, B, E, D, L, H
Absolute name: ROtoR7
_r1___
Re..:9,--is_te....;r9:...ro_u-,-P_1:_C-,-,B
_ _ _ _ _ _ _ _ _ _ __
(3)
Input the address ofthe data to be read to pins Ao~A14'
rp
(4)
Read mode is entered with a pulse (active low) on both
the CE and OE pins.
sir
(5) Data is output to the Do to D7 pins.
INSTRUCTION SET
All microcomputers in the f.LPD7822x family have a 1-byte
instruction lookahead buffer. This allows the first byte of
the next opcode in program memory to be fetched while the
current opcode is being executed. This pipeline architecture allows instruction fetch and excute cycles to overlap.
An instruction can be fetched from program memory while
data is being read from or written to RAM or an 1/0 port.
Meaning
Register pair
Function name: AX, BC, DE, HL
Absolute name: RPO to RP3
Speciallunctlonregister:
PO, P2-P7, POH, POL, RTPC, CR10, CR11, CR20, CR21 , CR22,
CR30, PMO, PM3, PM5, PM6, PMC3, puo, CRCO-CRC2, TOC,
TM1-TM3, TMCO, TMC1, PRMO, PRM1, ADM, ADCR, CSIM,
SBIC, 510, ASIM, ASIS, AxB, TxS, BRGC, STBC (dedicated instruction only), MM, PW, RFM, IFOL, IFOH, MKOL, MKOH, PROL,
PROH, ISMOL, ISMOH, INTMO, INTM1, 1ST
The advantage of the pipeline is that one instruction can be
executed while another is being fetched, virtually halving
the time required for these two operations and thereby
reducing overall program execution time.
Operands and Operations
Refer to tables 7 and 8 for the meanings of symbols in the
operand and operations columns of the Instruction Set
table.
6-93
NEe
/-LPD7822x
Table 7. Operands (cont)
Symbol
Table 8. Registers and Flags
Meaning
sfrp
Special function register pair:
CROO-CR02. TMO. IFO. MKO. PRO. ISMO
mem
Memory address indirectly addressed
Register indirect mode: [DEj. [HLj. [DE+ j. [HL+], [DE-j. [HL-j
Base mode: [DE + bytej. [HL+bytej. [SP+bytej
Indexed mode: word[Aj. word[Bj. word[DEj. word[HLj
mem1
saddr
Memory addressed by means of indirect addressing
group 1: [DEj. [HLj
Memory address indirectly addressed:
FE20H-FF1 FH immediate data or label
saddrp Memory address addressed by means of direct addressing pair:
FE20H-FF1 EH immediate data (LSB=O; odd address) or label
addr16 16-bit address: OOOOH- FEFFH immediate data or label
addr11
11-bit address: aOOH-FFFH immediate data or label
addr5
5-bit address: 4OH-7EH immediate data or label
word
16-bit data: 16-bit immediate data or label
byte
a-bit data: a-bit immediate data or label
bit
3-bit data: 3-bit immediate data or label
n
Numberof shift bits: 3-bit immediate data (0-7)
RBn
Register bank: RBO-RB3
Symbol
Meaning
A
A register; a-bit accumulator
x
X register
B
Bregister
C
Cregister
D
Dregister
E
Eregister
H
Hregister
L
Lregister
RO-R7
Registers 0 to 7 (absolute names)
AX
Register pair (AX); 16-bit accumulator
BC
Register pair (BC)
DE
Register pair (DE)
HL
Register pair (HL)
RPO-RP3
Register pairs 0 to 3 (absolute names)
PC
Program counter
SP
Stack pointer
PSW
Program status word
CY
Carry flag
AC
Auxiliaryflag
Z
Zero flag
RBS1-RBSO
Register bank select flags
IE
Interrupt enable flag
STBC
(
6-94
)
Standby control register
Memory contents Indicated by address or register contents
in( )
xxH
Hexadecimal number
xH. XL
Higher a bits and lower a bits of 16-bit register pair
ttlEC
J.LPD7822x:
Clocks
Operation Codes
The clock field specifies the number of clocks required
under the conditions defined by the four column headings
as follows:
Table 11 defines the symbols used in the operation code
field.
IROM
Program in internal ROM is executed.
IRAM
Program in external ROM is executed and internal
RAM is accessed.
SFR
Program in external ROM is executed and special
function register is accessed.
EM EM Program in external ROM is executed and external
memory is accessed.
In a shift-rotate instruction, n in the clock field indicates the
number of bits by which data is shifted.
Registers and Register Pairs. The r, rl, and rp operands
are specified in the opcode by one or more bits as shown in
figure 26. For example, 001 as bits R2R1RO (or RsRsR4)
specifies register A.
In the first and second operands are registers or register
pairs; the higher 4 bits of the register specification byte
define the first operand and the lower 4 bits define the second operand. For example, in the MOV A,L instruction
(transfer L register contents to register A), the second byte
of the opcode is obtained from figure 26 as shown below.
Instruction
Opcode, Bytes 1 and 2
The hyphen (-) indicates a range of values; for example
10-13 means 10, 11, 12, or 13.
MOVr,r
00100100
RsRsR4 0 R2R1 Ro
The virgule symbol (I) means either/or; for example, alb
means either a or b.
MOVA,L
00100100
00010110
The number of clocks when execution is branched by a
conditional branch instruction is shown after the symbol (I).
The number of clocks for instruction having the saddr or
saddrp operand and when an SFR is accessed with FFOOH
to FFFFH described as saddr or saddrp is shown after the
symbol (I).
Bytes and Clocks
The number of bytes and clocks for instructions with a mem
or &mem operand depends on the particular instruction
and the memory addressing mode (register indirect, base,
or indexed). Table 9 is applicable when the program in
internal ROM is executed (ROM clock column of the Instruction Set table). Table 10 is applicable when the program in external ROM is executed (IRAM, SFR, and
EMEM clock columns).
o
Memory Addressing Modes. The 3-bit mem code and the
5-bit mod code are selected from figure 27 according to the
description of mem in the operand field (table 7).
A MOV instruction with register indirect mode specified for
mem is a special 1-byte instruction. When base mode or
indexed mode is specified for mem, the 8-bit or 16-bit
offset data corresponding to byte and word, respectively, is
added from the third byte onward.
The opcode for an &mem or &mem1 operand is modified
by inserting a 01 H code as the first byte preceding the firstbyte code listed in the Instruction Set table. Subsequent
bytes are as shown in the table.
Figure 26. Opcodes for Registers (r, r1, rp)
The symbols in the flag field have the following meanings.
Blank No change
o
Cleared to 0
Set to 1
1
Set or cleared depending on the result
x
R
Value previously saved is restored
rp
r1
Flags
R2
R1
RO
Rs
RS
R4
reg
0
0
0
RO
X
0
0
1
R1
A
0
1
0
R2
0
1
1
R3
1
0
0
R4
1
0
1
RS
1
1
0
RS
1
1
1
R7
C
B
E
D
L
H
RO
reg
P1
Po
a
c
P2
P1
1
B
Ps
Ps
reg-pair
a a
a 1
RPO
AX
RP1
BC
1
0
RP2
DE
1
1
RP3
HL
83ML·5998A
6-95
-=-
., .
ftlEC
J.,LPD7822x
Figure 27. Opcodes for Memory Addressing Modes
(mem,mod)
~
Mem
a a 110
a
Base Mode
Index Mode
[DE+]
[HL+]
[DE-]
[HL-]
[DE]
[HL]
[DE+byte]
[SP+byte]
[HL+byte]
word [DE]
word [A]
word [HL]
word[B]
a a a
a a 1
a 1 a
a 1 1
1 0
1 0
a 110
Register
Indirect Mode
1
0
1
-
1010
83ML·5999A
Table 9. Bytes and Clocks for Instructions With "mem" and "&mem" Operands; Internal ROM (IROM)
Register Indirect
Mode
[DE+]
[HL+]
[DE-]
[HL-]
[DE]
[HL]
[DE+byte]
[HL+byte]
[SP+byte]
word[A]
word[B]
word[DE]
word[HL]
mem
1/2*
1/2*
3
3
4
&mem
2/3*
2/3*
4
4
5
A,mem
6/8
6/8
8-11
9-12
8-11
8/10
8/10
10-13
11-14
10-13
Instruction
Bytes
Clock
Cycles
MOV
Indexed
Mode
Base Mode
mem,A
A,&mem
&mem,A
XCH
ADD,ADDC,
SUB,SUBC,
AND,OR,
XOR,CMP
*
A,mem
11-15
9-13
10-15
11-16
10-15
A,&mem
13-17
11-15
12-17
13-18
12-17
A,mem
10/12
8112
9/12
10-13
9-12
A,&mem
12/14
10/14
11114
12-15
11-14
When intemal RAM is accessed with an instruction having a mem
operand, the number of bytes is the number before the symbol (I).
6-96
When the extemal memory (including the SFR area) is accessed, the
number of bytes is the number after the symbol (I).
t\'EC
fJ.PD7822x
Table 10. Bytes and Clocks for InstructIons WIth "mem" and "&mem" Operands; External ROM
(IRAM, SFR, EMEM)
Register Indirect
Indexed
Base Mode
Mode
[DE]
[HL)
[DE + byte)
[HL+byte]
[SP + byte]
word[HL)
mem
2*
2*
3
3
4
&mem
3*
3*
4
4
5
A,mem
9/11
6/8
11/13
12114
14/16
12/14
9/11
14/16
15/17
17119
A,mem
14/18
12/16
13/17
14/18
16/20
A,&mem
17/21
15/19
16/20
17121
19/23
A,mem
13/15
11/13
12/14
13/15
15/17
A,&mem
16/18
14/16
15/17
16/18
18/20
Instruction
Bytes
Clock
Cycles
MOV
Mode
[DE+)
[HL+)
[DE-)
[HL-)
word[A)
word[B]
wo~[DE]
mem,A
A,&mem
&mem,A
XCH
ADD,ADDC,
SUB,SUBC,
AND,OR,
XOR,CMP
* When [DEI, [HLI, [DE+ I, [HL + I, [DE-I, or [HL-I is specified as the mem
operand of a MOV instruction, the instruction is used as a dedicated
1-byte type. When the operand is &mem, the instruction is 2-byte.
Table 11. OpcodeSymbols
Symbol
Meaning
Bn
nth bit of immediate data B
Nn
nth bit Of immediate data N
Data
8-bit immediate data corresponding to byte
Low/High Byte
16-bit immediate data corresponding to word
Saddr-offset
Lower 8-bit offset data of 16-bit address corresponding
tosaddr
Sir-offset
Lower 8-bit offset data of 16-bit address of special
function register (sfr)
Low/High Offset 16-blt offset data corresponding to word In indexed
addressing
Low/HighAddr
16-blt immediate data corresponding to addr16
jdisp
Signed 2's complement data (8 bits) indicating relative
address distance between first eddress of next
instruction and branch destination eddress
fa
ta
, Lower 11 bits of immediate data corresponding to addr11
Lower 5 bits of Immediate date corresponding to
(addr5xdis)
6-97
NEe
IJ.PD7822x
Instruction Set
Flag.
Clock.
Mnemonic Operllnd
Operation
Byhia IROM
IRAM- SFR EMEM ZACCY
Oper=tlcn Code (alta 7.0)
Byte. B1 thru as
'·81t Dati Tran,'.r
MOV
r,#byte
r<- byte
2
2
6
R2 R, Ro
0
Data
saddr,#byte
(saddr)· .. byte
3
3/5
9
9
12
1 0
0 0
1 0
Saddr-oflset
Data
sfr,#byte
sfr .. byte
3
5
9
12
o 0
1 0
1 0
1
1
Sfr-offset
Data
r,r
r .. r
2
2
6
A,r
A .. r
1
2
3
A,saddr
A .. (saddr)
2
2/4
6
6
saddr,A
(saddr) .. A
2
3/5
6
8
o 0
o
1
9
1 0
R6R5~
1
1 0
0 0 1 0
0 1 0 0
o R2 Ri Ro
o R2R, Ro
o 0 0 0
Saddr-oflset
0 0 1 0
o 0
0
Saddr-oflset
saddr, saddr
(saddr) .. (saddr)
3
3-7
0 0 1 1
9
1 0
0 0
Saddr-oflset
Saddr-oflset
A,sfr
A .. sfr
2
4
6
0 0 0 1
o 0 0 0
Sfr-oflset
sfr,A
sfr .. A
2
5
0 0 0 1
6
o 0
0
Sfr-oflset
A,mem
A .. (mem)
1-4
6-12
6-14
8-16
8-16
0 1
• 0
0 0 0
0
mem
mem
mod
0 0 0 0
~wOflset .'
High Offset
A,&mem
A .. (&mem)
2-5
8-14
9-17
11-19
11'19
* 0 0 o 0
0 0 0 1
0 1 0
mam
0 0 0 0
.0 0 0
0
0 o 0
mod
mem
0 0 0 0
Low OfIset
High OfIset
Note:
* H[DE], [HLI, [DE +I, [DE-I, [HL +I or [HL-I is described as mem, these
instructions are used as dedicated I-byte codes. If the register name is
described as &mem, the instructionsar. used as dedicated 2-byte
codes.
6-98
ttlEC
iJ.PD7822x
Instruction Set (cont)
Clocks
Mnemonic Operand
Operation
Bytaa IROM
IRAM
Flaga
Operation Code (Blta 7-41)
Bytaa B1 thru as
SFR EMEM ZACCY
8·Slt D.", r,.n.fer (cont)
MOV
mem,A
(mem)
~A
1·4
6·12
6·14
8-16
8-16
*
mem
0
0
0
mod
0 0 0
o
mem
0
o
0
o
1
LowOflset
HighOflset
&mem,A
(&mem)~A
2·5
8-14
9·17
11·19
11·19
*
o
o
0
o
1
0
0 0 0 0
0
0 0
0
0
mem
o
0
mod
0 0 0
o
mem
0 0 0
LowOflset
HighOflset
A,!addr16
A
~
(!addr16)
4
618
14
16
0 0
o
0
1 1 1 1
1 0
o
o
1
0 0 0
LowAddr
B
HighAddr
A,&!addr16
A ~ (&laddr16)
5
19
8'10
0 0
0 0
o
o
0
o
0
1 0 0
1 1
o
0 0
0 0 0
Low Addr
HighAddr
!addr16,A
(!addr16)
~
A
4
618
14
17
0 0
o
0
1 1
1 0 0
o
0 0
LowAddr
HighAddr
&!addr16,A
(&laddr16)
~
A
5
6110
20
0 0
0 0
o
o
1
0
o
0
1 0
, o
0 0
0
o
o
1
1
LowAddr
HighAddr
PSW,#byte
PSW
~byte
3
3
9
9
9
x x x 0 0 1 0
1 0 1 1
0
Data
PSW,A
PSW~A
2
2
6
6
6
x x x 0 0 0
1 1
A,PSW
A~PSW
2
2
6
6
6
0 0 0
0 0
,
1 1
0
1 1 1 0
0 0 0 0
1 1
0
6-99
f!JIEC
/JiPD7822x
Instruction Set (cont)
Clock.
Mnemonic Operend
Byte. ·IROM
Operation
IRAM
Fleg.
SFR EMEM lACCY
O!*'etlon C!!!:!9 (Bit!! 7-1)
Byte. B1 thru B5
'·81t Da" Transf.r (cont)
XCH
A,r
A_r
r,r
r_r
2
4
4
3
6
0
1 R2 R, Ro
1
1
0 0
o RaRsR4
A,mem
A_(mem)
2-4
9-16
12-16
16-20
1
0 R2 R, Ro
mod
0 0 0
mem
0
1 0
0
0
1 0 0
Low Offset
High Offset
A,&mem
A_(&mem)
3-5
11-18
15-19
19-23
0 0 0 0
mem
0
0 0 0 1
mod
0 0 0
0
1 0 0
Low Offset
High Offset
A,saddr
A_ (saddr)
2
4/8
6
0 0 1 0
0 0 0 1
Saddr-offset
A,slr
A_sIr
3
6/10
13
0 0 0 0
0 0 0
0 0
0 0 0
0
SIr-offset
saddr,saddr
(saddr) _
(saddr)
3
6-14
10
0 0
1 1
1 0 0
1
Saddr-offset
Saddr-offset
16·81t Date Transf.r
MOVW
rp,#word
rp +-word
3
3
9
0
1 1 0
o P2 P, 0
Low Byte
High Byte
saddrp,#word
(saddrp) +- word
4
4/8
12
12
18
0 0 0 0
1 1 0 0
Saddr-offset
Low Byte
High Byte
sfrp,#word
slrp +- word
4
12
8
0 0 0 0
1 0 1 1
Saddr-offset
Low Byte
High Byte
rp,rp
AX,saddrp
rp +- rp
AX +- (saddrp)
2
2
4
6/10
8
0
0 0
6
12
0
0 0
0 Pa Ps 0
1 P2 P, 0
1
1 1 0 0
0 0 0
Saddr-offset
saddrp,AX
(saddrp) +- AX
2
5/9
8
12
0 0 0 1
1 0 1 0
Saddr-offset
6-100
t-IEC
j.LPD7822x:
Instruction Set (cont)
Clocks
Mnemonic Operand
Operation
Bytea IROM
IRAM
Flsgs
SFR EMEM ZACey
Operation Code (Blta 7-«1)
BytaB B1 thru B5
16·Sn Da'" Trans'.r (cont)
MOVW
AX,sfrp
AX ... sfrp
2
10
12
0 0
o
o
1
0 0
Slr-offset
sfrp,AX
sfrp ... AX
2
9
12
0 0
o
1
o
0
SIr-offset
AX,rnem1
AX,&mem1
AX ... (mem1)
AX ... (&mem1)
2
3
9·15
11-17
12
15
16
19
16
19
0 0 0 0
0
0
1 1 1 0
0 0
1 Ro
0 0 0 0
0 0 0
1
0 0 0 0
o
1
0
mem1,AX
(mem1) ... AX
2
8-14
11
15
15
0 0 0 0
0
&mem1,AX
(&mem1) ... AX
3
10-16
14
18
18
ADD
A,#byte
A,CY ... A + byte
2
2
x x x
6
o
0 0 1 Ro
o
o
1
o
1
1 1Ro
0 0 0 0
o 1
o , o ,
1 1
0
0 0 0 0
8·S/t Operation
1
,
0
,o,
0
0 0
,
,
, Ro
0 0 0
Data
saddr, #byte
(saddr),CY ... (saddr) + byte
3
3/7
9
x x x
"
o ,
0
0 0 0
Saddr-offset
Data
sfr,#byte
slr,CY ... sfr + byte
4
9
'x
'4
x x 0 0 00
o
1
,
0
o
,
0
o ,
0 0 0
Sir-offset
Data
r,r
r,CY ... r+r
2
3
7
A,saddr
A,CY ... A + (saddr)
2
3/5
6
A,sfr
A,CY'" A+ sfr
3
7
x x x 1 0
7
8
x x x
o
0
1 0
o
0
o RsRsR4 o R2 RI Ro
0 0 0
0 o ,
,
Saddr-oflset
10
x x x 0 0
, o,
,, ,
o
0
0 0
0
o ,
0 0 0
Sir-offset
saddr,saddr
(saddr),CY ... (saddr) + (saddr)
3
3-9
9
11
x x x 0
0 0 0
Saddr-oflset
Saddr-oflset
6-101
II
ttlEC
fJ.PD7822x
Instruction Set (cont)
Clocks
Mnemonic Operand
Operation
Flags
Bytes
IROM
IRAM
SFR EMEM ZACCY
2-4
8-13
11-15
13-17
Operft!on Coo. (Bitt! 7.0)
Byta. B1 thru B5
8·BIt Opelatlon (cont)
ADD
A,mem
A,CY ... A + (mem)
13-17
x x x 0
o
mod
0
mem
0
1 0 0 0
LowOllset
HighOflset
A,&mem
A,CY ... A + (&mem)
3-5
10-15
14-18
16iD
16-20
o
x x x 0 0
0
o
mem·
0
0 0
mod
0 0 0
1 0 0 0
LowOllset
High OfIset
ADDC
A,#byte
A,CY ... A + byte + CY
2
2
x x x 1 0 1 0
6
1 0 0 1
Data
saddr,#byte
(saddr),CY ... (saddr) + byte
+CY
3
sfr,CY ... sfr + byte + CY
4
3/7
9
x x x 0 1
11
0 0 1
0
Saddr-offset
Data
sfr,#byte
x x x 0 0 0 0
14
9
0
0 0 0
0
0 0
Sir-offset
Data
r,r
r,CY ... r + r + CY
2
3
o
x x x
7
o
0
0 Rs Rs R4
A,saddr
A,CY ... A + (saddr) + CY
2
215
6
7
8
o
x x x
0 1
0 R2 R, Ro
o
0 1
0 1
Saddr-offset
A,s!r
A,CY ... A+sfr+CY
3
x x x 0 0 0 0
10
7
0 0 0
0 0
0 0
Sfr.offset
saddr,saddr
(saddr),CY ... (saddr) + (saddr)
+CY
3
3-9
9
x x x 0 1 1 1
11
1 0 0 1
Saddr-offset
Saddr-offset
A,mem
A,CY ... A + (mem) + CY
2-4
8-13
11-15 13-17
13-17
x x x 0 0 0
0
mod
mem
1 0 0
Low Offset
HighOllset
A,&mem
A,CY ... A + (&mem) + CY
3-5
10-15
14-18
16iD
16-20
x x x 0 0 0 0
0
o
0 0
mod
0 0 0
mem
1 0 0 0
LowOflset
Higl1 Offset
tttlEC
f.LPD7822x
Instruction Set (cont)
Clocks
Mnemonic Operand
Operation
Iyte. IROM
IRAM
Flaga
SFR EMEM ZACCY
Operation Code (ilta 7-(1)
Iyte. 11 thru 15
'·81t Operation (cont)
SUB
A,#byte
A,CY .. A-byte
2
2
x x x 1 0 1 0
6
0
1 0
0
1 0
Date
saddr,#byte
(saddr),CY .. (saddr)-(byte)
3
317
9
x x x 0 1
11
0
Saddr-olfsel
Data
slr,#byte
slr,CY .. sir-byte
4
9
x x x 0 0 0 0
14
0
0 0
0
0
0
0
0
1 0
Sir-ollset
Data
r,r
r,CY .. r-r
2
3
o
x x x
7
0 0
0 Rs Rs R4
A,saddr
A,CY .. A-(saddr)
2
3/5
6
7
8
o
x x x
0 R2 RI Ro
1
0
0
1 0
Saddr-ollset
A,slr
A,CY .. A-sir
3
x x x 0 0 0 0
10
7
0 0
0
0
0
1 0
1 0
0 0
Sir-offset
saddr,saddr
(saddr),CY .. (saddr) - (saddr)
3
3-9
9
x x x 0 1 1 1
11
Saddr-offsal
Saddr-olfset
A,mem
A,CY .. A-(&mem)
2-4
8-13
II-IS
13-17
13-17
x x x 0 0 0
0
mod
mem
1 0
1 0
Low Offset
High Offset
A,&mem
A,CY .. A-(&mem)
3-5
10-15
14-18
1&2:)
16-20
x x x 0 0
o
0
0 0 0
0 0 0
0
mod
1 0
mem
1 0
LowOffsel
HighOIfse1
SUBC
A,#byte
A,CY .. A-byte-CY
2
2
x x x 1 0
6
0
0 1 1
Data
saddr,#byte
(saddr),CY .. (saddr)-byte-CY
3
317
9
11
x x x 0 1
0
0 1 1
Saddr-ollset
Data
. slr,#byte
slr,CY .. sfr-byte-CY
4
9
14
x x x 0 0 0 0
0
0 0 0
0
0
Sfr-offset
Data
6-103
II
ttlEC
IJ.PD7822x
Instruction Set (cont)
Clocks
Mnemonic· Operand
Operetlon
Byte.
IROM
2
3
Flags
IRAM -SFR EMEM ZACCY
Oper!!!lor! Code (Bit! 7-0)
Byte. B1 thru B5
8·SIt Operation {cont)
SUBC
r,r
r,CY ... r-r-CY
x x x 1 0 0 0
7
1 0
0 Rs Rs R4
A,saddr
A,CY ... A-(saddr)-CY
2
3/5
A,slr
A,CY ... A-slr-CY
3
7
6
7
8
x x x
1 1
o R2 R,
Ro
1 0 1 1
0 0 1
Saddr-offset
x x x 0 0 0 0
10
0 0 0
0 0
0
1 1
Sir-offset
saddr,saddr
(saddr),CY ... (saddr) - (saddr)
-CY
3
3-9
9
x x x 0 1 1 1
11
1 0 1 1
Saddr-offset
Saddr-offset
A,mem
A,CY ... A-(mem)-CY
2-4
8-13
11-15
13-17
13-17
x x x 0 0 0
0
mod
1 0 1 1
mem
Low Offset
High Offset
A,&mem
A,CY ... A-(&mem)-CY
3-5
10-15
14·18
1&20
16·20
x x x 0 0 0 0
0 0 0 1
mod
0 0 0
0
1 0
mem
1 1
Low Offset
High Offset
AND
A,#byte
A ... Al\byte
2
2
x
6
1 0 1 0
1 1 0 0
Data
saddr, #byte
(saddr) ... (saddr) 1\ byte
3
3/7
9
x
11
0 1
0
0 0
Saddr-offset
Data
slr,#byte
sir ... sir 1\ byte
4
x
14
9
0 0 0 0
0
0 0 0
0 0
0
Sir-offset
Data
r,r
A,saddr
r ... r 1\ r
A ... AI\ (saddr)
2
2
3
3/5
x
7
6
7
8
x
1 0 0
0 0 0
0 Rs Rs R4
0 R2 R, Ro
0 0 1
1 0 0
Saddr-offset
A,slr
A ... AI\(slr)
3
10
7
x
0 0 0 0
0 0 0
1 0 0
0 0
Sir-offset
saddr,saddr
(saddr) ... (saddr)1\ (saddr)
3
3·9
9
11
0 1 1 1
1 1 0 0
Saddr-offset
Saddr-offset
6-104
tt1EC
J-LPD7822x
Instruction Set (cont)
Clockl
Mnemonic Opal'llnd
Oper.tlon
Byte. IROM
IRAM
Flegl
SFR EMEM ZACCY
Operation Coda (Bits 7.0)
Bytn B1 thru B5
8·81t OperaUon (cont)
AND
A,mem
A .. AI\(mem)
2·4
8·13
11·15 13-17 13·17 x
0 o 0
0
mod
1 1 0 0
mem
LowOffseI
HlghOlfset
A,&mem
A .. AI\(&mem)
3·5
10·15
14·18 1&2) 16·20 x
0 0 0 0
o 0 0
0 0 0
0
mod
1 1 0 0
mem
LowOf!set
HlghOf!set
OR
A,#byte
A .. AVbyte
2
2
x
6
0 1 0
0
Data
saddr,#byte
(saddr) .. (saddr) V byte
3
3n
9
x
11
0 1
0
0
Saddr-offset
Data
slr,#byte
sIr .. sIr V byte
4
x
14
9
0 0 o 0
o 0 o 1
o 1 1 0
1 1
0
Slr-offset
Data
r,r
r .. rVr
2
3
7
A,saddr
A .. A'I (saddr)
2
3/5
6
x
7
8
x
1 0 o 0
1 1 1 0
o RsRsR4
o R2R, Ro
1 o 0 1
1 1 1 0
Saddr-offset
A,sfr
A .. AVslr
3
10
7
x
0 0 o 0
0 o 1
o 0 0
1 1
0
Slr-offset
saddr ,saddr
(saddr) .. (saddr)V (saddr)
3
3·9
9
11
x
o 1 1 1
1 1
0
Saddr-offset
Saddr-offset
A,mem
A .. AV(mem)
2·4
8·13
11·15 13-17 13·17 x
0 0 0
0
mod
mem
..
1 1 1 0
LowOlfset
HighOlfset
A,&mem
A .. AV(&mem)
3·5
10·15
14·18 1&2) 16·20 x
0 0 0 0
0 0 0
0
o
0 o 1
mod
mem
1 1
0
LowOlfset
High Offset
6-105
II
t\'EC
fJ.PD7822x
Instruction Set (cont)
Clocks
Mnemonic Operand
Operation
Bytes IROM
IRAM
Flags
SFR EMEM ZACCY
Oper!!tlon Code (B!tl 7-0)
Byte. B1 thru B5
8-Blt Operation (cont)
XOA
A,#byte
A ... A¥byte
2
2
x
6
1 0 1 0
1 0
1
Data
saddr, #byte
(saddr) .. (saddr)¥byte
3
3/5
9
11
0 1
0 1
0
Saddr-offset
Data
slr,#byte
sfr .. slr¥byte
4
7
14
0 0 0
0 0 0 0
0
0
0
SIr-offset
Data
r,r
A,saddr
r ... r¥r
A .. A¥(saddr)
2
2
3
3/5
x
7
6
7
8
x
1 0 0 0
1 0 1
o A6 As A4
0 A2 A, Ao
1 0 0 1
0 1
Saddr-offset
A,slr
A ... A ..... (slr)
3
7
x
10
0 0 0 0
0 0 0
1 0 0 1
0
SIr-offset
saddr,saddr
(saddr) .. (saddr)¥(saddr)
3
3-9
9
11
0 1 1 1
1
1 0 1
Saddr-offset
Saddr-offset
A,mem
A ... A..... (mem)
2-4
8-13
11-15
13-17
13-17
x
mod
0 0 0
0
mem
I
I
0
Low Offset
High Offset
A,&mem
A .. A..... (&mem)
3-5
10-15
14-18
16-2>
16-20
x
0 0 0 0
0 0 0
mod
0 0 0
0
mem
I
I
0
Low Offset
High Offset
CMP
A,#byte
A-byte
2
2
x x x
6
I
0 1 0
I
I
I
1
I
I
Data
saddr,#byte
(saddr) - byte
3
3/5
9
II
x x x 0
I
0
Saddr-offset
Data
slr,#byte
sIr-byte
4
7
14
x x x 0 0 0 0
0
0 0 0
0
SIr-offset
Data
6-106
ttlEC
""PD7822x
Instruction Set (cont)
Clock.
Mnemonic Operand
Operation
Byta. IROM
IRAM
Flag.
SFR EMEM ZACCY
Operation Code (Blta 7-0)
BytH B1 thru B5
'·81t Operation (cont)
CMP
r,r
r-r
2
3
x x x 1 000
7
1 1 1 1
o Re Rs R,j o R2 R, Ro
A,saddr
A-(saddr)
2
3/5
6
7
8
x x x 1 0 0 1
1 1 1 1
Saddr-offset
A,sfr
A-sir
3
7
o
x x x 0 0
10
0
1 0 0 1
o
0 0
1 1
Sfr-offset
saddr,saddr
(saddr) - (saddr)
3
3·7
9
x x x 0 1 1 1
11
1 1 1 1
Saddr-offset
Saddr-offset
A,mem
A-(mem)
2·4
8-13
1,.,5
1~17
13-17
x x x 0 0 0
mod
mem
0
1 1 1 1
LowOflset
High Offset
A,&mem
A-(&mem)
3·5
10-15
14-18 163)
16-20
x
x
o
x 0 0
0
mem
0
o
0 0
rI
mod
0 0 0
1 1
Low Offset
High Offset
16·81t Operation
ADDW
AX,#word
AX,CY .. AX + word
3
4
x x
9
x
o
0 1 0
1 1 0 1
Low Byte
High Byte
AX,rp
AX,CY .. AX + rp
2
6
8
x
x
x
0
0 0
AX,saddrp
AX,CY .. AX + (saddrp)
2
7/11
9
13
x
x
x
o
o
0
0
0 0 0 1
1 0 0 0
1 P2 P, 0
1 1 0
1
Saddr·o!fset
AX,slrp
AX,CY .. AX + slrp
3
16
13
x
x x 0 0
o
0
0 0 0 1
o
0 0
1 1 0
Slr·offset
SUBW
AX,#word
AX,CY .. AX-word
3
4
x
9
x
x
0 0
1 0
1 1
0
Low Byte
High Byte
AX,rp
AX,CY .. AX-rp
2
6
x
8
x
x
0
0 0
AX,saddrp
AX,CY .. AX-(saddrp)
2
7/11
9
13
x
o
o
0
0
x x 0 0 0 1
0 1 0
1P2P,PO
1 1 1 0
Saddr-offset
6-107
NEe
JJ.PD7822x
Instruction Set(cont)
Clocks
Mnemonic Operlnd
Opemlon
aytw IROM
FIIIIS
IRAM SFR EMEM ZACCY
Operitlon Cofi iBltl7-G)
aytw .1 thru a5
18·8n Operetlon (cont)
SUBW
AX,sfrp
AX,CY .. AX-slrp
3
13
16
x
x
x
0 0
o
0
0 0 0 1
o
0 0
1 1
0
Sfr-offset
CMPW
AX;#word
AX-word
3
3
x
9
x
x
0 0 1 0
1 1
Low Byte
High Byte
AX,rp
AX-rp
2
5
7
AX,saddrp
AX-(saddrp)
2
6/10
8
AX,sfrp
AX-slrp
3
12
x
x
x
0 0 0
0 0
o
0
1 P2 P, 0
12
x x x 0 0 0 1
1 1 1 1
15
x
Saddr-offset
x
x
0 0
o
0
0 0 0 1
o
0 0
1 1
Slr-offset
MunlpllcltlonlDllflslon
AX .. Axr
MULU
AX(quotient), r (remainder) ..
AX+r
OIVUW
2
2
22
71
24
0 0 0 0
76
0 1 0 1
0 0 0 0
1 R2R, Ro
0 0 0 0
0 1 0 1
0 0 0
1 R2R, Ro
Increment! o.crement
INC
r"r+1
saddr
(saddr) .. (saddr) + .1
2
2
3
216
6
7
x
x
1 1
0
o R2 R, Ro
x
x
0 0 1 0
0 1 1 0
o
Saddr-offaet
r .. r-1
OEC
o
x x
2
3
2/6
6
rp .. rp+1
3
3
0 1
rp .. rp-1
3
3
0
3+2n
5+2n
saddr
(saddr) .. (saddr)-1
INeW
rp
OECW
rp
2
7
x
0
0 0 1 0
x
1 R2 R,
Ro
0 1 1 1
Saddr-offaet
o
o
0
0
0
1 1 P, Po
P, Po
Shlffl Rotete
ROR
ROL
6-108
r,n
r,n
(CY.r7 .. ro, rm-' .. rm)
xn times, n=0·7
2
(CY,ro" r7, rm+, .. rm)
xntlmes,n=O-7
2
3+2n
5+2n
x
x
0 0 1 1
o
0 1 N2N,
NoR2R, Ro
000
0 0 1 1
000 1
0 1 N2N,
NO R2 R,
Ro
NEe
~PD7822x
Instruction Set (cont)
Clocks
Mnemonic Operand
Operation
BylaS IROM
Flags
IRAM
SFR EMEM ZACCY
5+2n
x
Operation Coda (Bltl 7-0)
Bylas B1 thru B5
Shift! Rotate (cont)
AOAC
AOLC
SHA
SHL
r,n
',n
',n
',n
(CY ... rO,'7 ... CY,
xn1imes,n=0-7
'm-' ... 'm)
(CY""7,'0",CY"m+, ""m)
xntimes,n=0-7
(CY ... '0,'7'" 0,
xn times, n=0-7
'm-' ... 'm)
2
3+2n
2
3+2n
x
5+2n
2
(CY ... '7,'0'" 0, 'm+' ... 'm)
xntimes,n=0-7
2
3+2n
3+2n
5+2n
x
x
5+2n
0
0
0
(CY ... 'Po, 'P,s ... 0, 'Pm-' ...
'Pm)xntimes,n=0-7
2
3+3n
5+3n
x
SHLW
'p,n
(CY ... 'P,s, 'Po ... 0, 'Pm+' ...
rpm) xntimes, n=0-7
2
3+3n
5+3n
x 0
A3.0 .. (mem1 )3.0. (mem1 17_4
.. A3-0, (mem1h.o .. (rnem1 n-4
2
A3•0 " (&mem1}J-o, (&mem117-4
.. A3_0,(&mem1)3_0"
(&mem1)7·4
3
&mem1
x
1 1
0 0 0 1
No A2 A, Ao
0 0 1 1
0 0 0 0
1 0 N2 N,
No A2 A, Ao
0 0 1 1
x 0 0 1 1
1 N2N,
x
0 0 1 1
1 N2 N,
24
26
34
34
0 0 0 0
NoA2 A, Ao
o N2N,
0 N2 N,
'p,n
mem1
x
1 1
o N2N,
0 0
0
SHAW
AOA4
0 0
0
0 0 0 0
0 0 0 1
No A2 A,
No A2 A, Ao
0 0 0
29
37
37
0
0 1
A, 0
0 0 0 0
0 0 0
0 0 0 0
0
0
A, 0
0 0 0
AOL4
1
NO A2 A, AO
0 0 0
26
Ro
0 0 0 0
mem1
A3.0" (mem1)7·4,(mem1)3·0
.. A3.0, (mem1)7.4'" (mem1)3.()
2
25
27
35
35
0 0 0 0
1 0 0
1 1 A, 0
&mem1
A3-o" (&mem1)7-4,(&mem1}J-o
... A3-0, (&mem1)7_4'"
(&mem1}J·0
3
27
30
38
38
0 0 0 0
0 0 0
0 0 0 0
0
0 0
0
0
0
A, 0
6-109
II
fttIEC
r-t PD7822x
Instruction. Set (cont)
Clocks
Mnemonic Operand
Operation
Byte.
IROM
IRAM
Flag.
SFR EM EM ZAC CV
Operation Code (Bits 7-(1)
Byte. B1 thru B5
SCD Adjustment
ADJBA
Decimal adjust accumulator after
addition
ADJBS
Decimal adjust accumulator after
addition
3
3
x x x 0 0 0 0
-1
3
3
x x x 0 0 0 0
3
517
0
Sit Manipulation
MOVI
CY,saddr.bit
CY
~
(saddrbit)
9
9
x 0 0 0 0
11
0 0 0 0
1 0 0 0
o
B2 Bl Bo
Saddr-offset
CY,slr.bit
CY
~
3
slr.bit
7
x 0 0 0 0
9
0 0 0
0 0 0 0
B2 B, Bo
Sir-offset
CY,Abit
CY
~
Abit
2
5
7
x 0 0 0 0
0 0 0 0
B2 B, Bo
CY,X.bit
CY
~
X.bit
2
5
7
x 0 0 0 0
0 0 1 1
0 0 0 0
o B2 B, Bo
0 0 1 1
Sir-offset
~
PSW.bit
CY,PSW.bit
CY
saddr.bit,CY
(saddrbit)
~
CY
2
5
3
8112
7
12
14
14
x 0 0 0 0
0 0 1 0
0 0 0 0
0 B2 B, Bo
0 0 0 0
0 0 0
0 0 0
0 B2 B, Bo
Saddr-offset
slr.bit,CY
sir. bit
~CY
3
14
12
0 0 0 0
0 0 0
0 0 0
B2 B, Bo
Sir-offset
A.bit,CY
Abit
~
CY
2
8
10
X.bit,CY
X.bit
~
CY
2
8
10
0 0 0 0
0 0 1 1
0 0 0
1 B2 B, Bo
0 0 0 0
0 0 1 1
0 0 0
o
B2 B, Bo
Sir-offset
PSW.bit,CY
ANDI
C 1,saddr.bit
PSW.bit ~CY
CY ~ CY 1\ (saddr.bit)
2
3
7
5/7
9
9
11
x x
0 0 0 0
0 0 1 0
0 0 0
0 B2 B, Bo
x 0 0 0 0
0 0
0
0
Saddr-offset
6-110
o
0
0 B2 B, Bo
fttIEC
,.,.,PD7822x
Instruction Set (cont)
Clocks
Mnemonic Operand
Operation
Bytaa IROM
IRAM
Flags
SFR EMEM ZACCV
Operation Coda (Bits 7-0)
Byta. B 1 thru B5
Sit Manipulation (cont)
ANDl
CY,/saddr.bit
CY .. CY /I (saddr.bit)
3
5/7
9
11
x 0 0
0 0
o
0
1 1
1 0
o
o B2 B,
0
Bo
Sir-offset
CY,slr.bit
CY .. CY 1\ sir. bit
3
7
11
x 0 0 0 0
0 0
1 0
1 0 0
0
1 B2 B, Bo
Slr-offset
CY,Isfr.bit
CY .. CY I\sfr.bit
3
11
7
x 0 0 0 0
0 0
CY,A.bit
CY .. CY /I A. bit
CY,/A.bit
CY .. CY /I A.bit
CY,X.bit
CY .. CY I\X.bit
CY,/X.bit
Cy .. CY I\X.bit
CY,PSW.bit
CY .. CY /I PSW.bit
1
CY .. CY 1\ PSW.bit
CY,saddr.bit
CY .. CYV(saddr.bit)
0 0
1 B2 B, Bo
0 0 1 1
5
7
x 0 0 0 0
0 0 1 0
1 B2 B, Bo
2
5
7
x 0 0 0 0
0 0 1 1
2
5
7
x 0 0 0 0
0 0 1 0
o B2 B, Bo
2
5
7
x 0 0 0 0
0 0 1 1
0 0 1
0 B2 B, Bo
2
2
5
7
x 0 0 0 0
3
lB2B, BO
0 0 1 1
0 0 1 0
0 0 1 0
0 B2 B,
So
5
7
x 0 0 0 0
o 0 1
o B2 B,
0
517
11
x 0 0 0 0
0 0 1 1
ORl
o
2
0 0 1 1
CY,fPSW.bit
1
1
9
0 1 0 0
Bo
1 000
o B2B,
Bo
Saddr-offset
CY,fsaddr.bit
CY .. CYV(saddr.bit)
3
5/7
9
11
x 0 0
o
0
0 1 0 1
1
o
0 0
o B2 B,
Bo
Sir-offset
CY,sfr.bit
CY .. CY V sfr.bit)
3
7
11
x 0 0
0
o
0
0 1
1 0
0 0
1 B2 B,
So
Sfr-offset
6-111
rI
fttIEC
fLPD7822x
InstructIon Set (cont)
Clock.
Mnemonic Operand
'Operation
Byte.
IROM
3
7
IRAM
Flag.
SFR EM EM ZACCY
Operation Code (Blta N))
Byta. B1 thru B5
Sit Manipulation (cont)
OR,
CY/sfr,bit
CY ... CYVsfr,bit
"
x 0 0 0 0
0
, ,
,
, ,
0
CY,A.bit
CY ... CYV Abit
2
5
7
x 0 0 0 0
CY,IA.bit
CY ... CYV A,bit
2
5
7
x 0 0 0 0
CY,X,bit
CY ... CY V X, bit
2
5
7
x 0 0 0 0
CY,IX.bit
CY ... CY V X,bit
2
5
7
x 0 0 0 0
0
0
0 0
0
0
CY ... CYVPSW.bit
2
7
5
CY ... CY V PSW,bit
2
7
5
CY,saddr,bil
CY ... CY¥(saddr,bil)
3
5/7
9
11
I
0 I
x 0 0 0 0
0 I
I
0
,,
,,
,,
, B2 B, Bo
0 0
o B2 B, Bo
0 0
0 0
,,
, B2 B, Bo
o 0
x 0 0 0 0
0
x 0 0 0 0
0
XORI
0 0
, ,
,
0
CY,IPSW,bit
0 0 0
, B2 B, Bo
0 0
0
CY,PSW,bit
0 0
I
o B2 B, Bo
0 0
,
0
o B2B, Bo
,
0
OB2 B,Bo
I
0 0 0
o B2 B, Bo
Saddr-offset
CY,slr,bit
CY ... CY¥slr,bil
3
7
11
x 0 0 0 0
0
,
I
0
I
0 0 0
, B2 B, Bo
Sfr-offset
CY,A.bit
CY .. CY¥A.bit
2
5
x 0 0 0 0
7
0
CY,X,bit
CY ... CY¥X,bit
2
5
CY ... CY¥PSW,bit
2
7
5
0
x 0 0 0 0
7
0
CY,PSW,bit
,,
,
,
,,
0
x 0 0 0 0
0 I
SET'
saddr,bit
(saddr,bit) ... ,
2
317
6
0
0
0 0
,
I
I B2B, Bo
0 0
,
I
o B2 B, Bo
0 0 I
0
o B2 B, Bo
o B2 B, Bo
Saddr-offset
slr,bit
slr,bit .. ,
3
10
'4
0 0 0 0
,
0 0 0
I
Sir-offset
6-112
0 0 0
I B2 B, Bo
NEe
fJ.PD7822x
Instruction Set (cont)
Clocks
Mnemonic Operand
Operation
Bytes IROM
IRAM
Flags
SFR EMEM ZACCY
Operation Code (Bita 7.0)
Bytes B1 thru
as
Bit Manipulation (cont)
SETI
A.bit
X.bit
PSW.b~
A.bit+-l
2
X.bit+-l
2
PSW.bit+-l
2
6
6
8
8
5
7
0 0 0 0
o
1 0 0 0
1B2B,Bo
0 0 0 0
0 0 1 1
1 0 0 0
OB2 B,Bo
x x x 0 0 0 0
0 0 0
CLRI
saddr.bit
(saddr.b~)
+- 0
2
6110
0 1 1
0
6
0
0 0 1 0
o B2 B, Bo
o B2B, Bo
Saddr-offset
sfr.bit
sfr.bit+- 0
3
14
10
0 0
o
0
1 0 0 1
1 000
1 B2B,
80
Sfr-olfset
A.bit
A.bit+-O
2
6
0 0 0 0
8
NOn
X.bit
X.bit+-O
2
6
PSW.bit
PSW.bit+-O
2
5
saddr.bit
(saddr.bit) +- 0 (saddr.bit)
3
6/10
8
7
10
0 1 1
So
0 0 0 0
o
1 0 0
OB2 B,Bo
x x x 0 0 0 0
14
o
1 ~B,
0 0
0 1 1
0 0 1 0
1 0 0
o B2B,
0 0 0 0
1 000
0 1 1 1
o B2 B, 80
Bo
Saddr-offset
str.bit
sfr.bit+- sfr.bit
3
10
14
0 0
o
0
1 1
0
1 0
o
0
1B2B,Bo
Sfr-olfset
A.bit
X.b~
A.bit+-A.bit
X.bit+-X.bit
2
2
6
6
0 0 0 0
8
8
1 B2 B, Bo
0 0 0 0
o 0 1
o B2 B,
0
PSW.bit
PSW.bit +- PSW.bit
2
5
7
0 0 1 1
0
1 1
x x x 0 0 0 0
0 1 1 1
1
Bo
00 1 0
OB2 B,Bo
0 1 0 0
0 0 0 1
0 0
0 0 0 0
x 0 1 0 0
0 0 1 0
SETl
CY
CY+-l
2
3
CLRl
CY
CY+-O
2
3
0
NOTl
CY
CY+-CY
2
3
0
6-113
II
ttlEC
J;tPD7822x:
Instruction Set (cont)
Clocka
Mnemonic Operand
Operation
Byt.s IROM
IRAM
Flegs
SFR EMEM ZACey
Operation Code (Bill 7-0)
Bytes B1 thru 85
Call/Return
CALL
!addr16
(SP-1) .. (PC + 3)H.
(SP-2) .. (PC + 3)l.
PC .. !addr16. SP .. SP-2
3
(SP-1) .. (PC +2)H.
(SP-2)";' (PC + 2)l. PCH"
rpH. PCl .. fPL. SP .. SP-2
2
(SP-1) .. (PC + 2lH.(SP-2) ..
(PC + 2lL.PC15+11 .. 00001.
PC1CHl .. !addr11. SP .. SP-2
2
10-15
17
o
21
0 1 0
1 0
o
0
LowAddr
HighAddr
rp
CALLF
CALLT
!addr11
12-17
10-15
15
14
19
18
0 0 o 0
0 1 0 1
0
1 P2 P1 0
0
1 0 0
0
...
....
fa
..
....
(SP-1) .. (PC + 1)H.(SP-2) ..
(PC + llL. PCH .. (00000000.
addr5 + 1). P~ .. (00000000.
addr5).SP .. SP-2
14-20
20
24
1 1 1
BRK
(SP-1) .. PSW. (SP-2) ..
(PC + llH. (SP-3) .. (PC + l)l.
PCH ... (OO3FH). PCH ..
(003FH). SP .. SP -3. IE .. 0
16-26
22
28
0 1 0 1
1 1 1 0
RET
PCl" (SP). PCH" (SP + 1).
SP .. SP+2
10-15
11
15
0
0 1
0 1 1 0
RETI
PCl .. (SP). PCH .. (SP + 1).
PSW .. (SP+2).SP" SP +3.
NMIS .. 0
12-20
15
21
R R R
0
0 1
0 1 1 1
RETB
PCl .. (SP). PCH ... (SP + 1).
PSW .. (SP+ 2).SP .. SP +3
12-20
13
19
R R R
0 1 0 1
1 1 1 1
4-8
5
7
0
7-9
9
12
0 0 1 0
[addrSl
la
Stack "'anlpulatlon
PUSH
PSW
(SP-1) .. PSW.SP .. SP-1
sfr
(SP-1) .. sfr. SP .. SP-1
2
o
0
1 0 0
1 0 0 1
Sfr-offsel
rp
6-114
(SP-1) .. rPH(SP-2) ..
rpl.SP" SP-2
8-13
8
12
0 0 1 1
1 1 P, Po
NEe
I-LPD7822x:
Instruction Set (cont)
Clocks
Mnemonic Operand
Operation
Flaga
Byte.
IROM
IRAM
4-8
6
8
2
9-11
9
12
SFR EMEM ZACCY
Operation Code (Bit. 7-0)
Byte. Bl thru B5
Stack Manipulation (cont)
POP
PSW
PSW ... (SP), SP ... SP + 1
sir
sir ... (SP), SP ... SP + 1
R R R
0
0
1
o
o
0
1 0 0 0
0
o
0
1 1
Sir-offset
MOVW
rp
rPL ... (SP), rpH ... (SP + 1),
SP ... SP+2
SP,#word
SP ... word
10-15
4
8
11
15
12
o
0
1
0
1 PI Po
0
0 0 0
1
o
1
1 1
1 1
1 0 0
1
Low Byte
High Byte
SP,AX
AX,SP
INCW
DECW
SP
SP
SP ... AX
AX ... SP
SP ... SP+ 1
SP ... SP-1
2
2
2
2
9
10
5
5
11
12
7
7
0
0
o
1
o
1
1 1
1
1 1 0 0
0
0
o
1
0 0
1 1
1
1
1 1 0 0
0
1
1
0
0
0 0 0
o
1
1 0
1 0 0 0
0 0
0
0 0
1 1 0
0
o
1
o
1
o
1
1 0 0
1
1
6-115
B
NEe
I-LPD7822x
Instruction Set (cont)
Mnemonic Operand
Operation
Clock.
F1a".
BytH IntROM Brancll No Branch ZACey
Operation Code (BIta 7.(1)
Byte. Blthru 85
Unconditional Branch
BR
'!addrI6
PC .. !addr16
3
5
11
0 0 1 0
1 1 0 0
LowAddr
rp
$addr16
PCH .. ~, PCl .. rpl
PC .. $addr16
2
2
6
4
10
0 1 0
0 0 0 0
9
0 1 0 0
, P2 P, 0
0 0 0
0 I 0 0
jdisp
Condltlon.,Branch
BC
$addr16
PC .. $addrl6 if CY = 1
2
214
9
0 0 0
6
BNC
$addr16
PC .. $addr1!! if CY = 0
2
2/4
9
0 0 0
6
$addrl6
PC ... $addr16il Z = I
2
214
9
6
1 0 0 0
$addr16
PC .. $addrl6 il Z = 0
2
2/4
9
0 0 0
6
BNE
BT
0 0 0
jdisp
BE
BNZ
0
0 0
jdisp
BNL
BZ
0 0
jdisp
BL
0 0 0 0
jdlsp
saddr.bit, $addrl6 PC .. $addrl6 il (saddr.bit) = I
3
5-9
12
9
I
0
o B2B, So
I
Saddr-offset
jdisp
slr.bit, $addrl6
PC ... $addrI6ilslr.bit = I
4
719
16
13
0 0
o
0 I
o
0
1 0
I
1 B2B, Bo
0
Sfr-offset
jdisp
A.bit,$addrI6
PC ... $addr16 il A.bit = I
3
517
12
9
0 0 0 0
o
1 0 1 I
1 B2B, Bo
0 I
I
jdlsp
X.bit,$addrI6
PC ... $addr16iIX.bii = I
3
517
12
9
0 0 0 0
0 0 1 I
1 0 1
o ~B, So
jdisp
PSW.bit,$addrI6
PC ... $addrl6 il PSW.bit = I
3
517
12
9
0 0 0 0
0
o 0 1 0
o ~B1 So
jdisp
6-116
NEe
J-LPD7822x
Instruction Set (cont)
Clocu
llnemonlc
.Ope~nd
Operdon
Flalla
BytM IntROIl Branch No Branch ZACCY
Oper_lon Code (BIR 7-0)
BytM B1 thru B5
Condltloll8lSranch (cont)
BF
saddr.bit,Saddr16
PC ... $addr16 il (saddr.bit) = 0
4
5·9
15
12
0 0
o
1 000
0
1 ~B, Bo
0 1 0
Saddr-offset
jdlsp
sfr.b~,$addr16
PC ... Saddr16 il slr.bit = 0
4
7/9
16
13
0 0
o
0
1 0
o
0
1 ~B, Bo
1 0 1 0
Sfr-offset
jdisp
A.bUsddr16
PC ... $addr16iIA.bit= 0
3
5f7
12
9
0 0 0 0
0
0
o
0 1 1
1 ~B, 80
jdisp
X.bit,Saddrl6
PC ... Saddr16 il X.bit = 0
3
5/7
12
9
0 0 0 0
0 1 0
o0 1
o ~B,
1
80
jdlsp
PSW.b~,$addr16
PC ... Saddr16 il PSW.bit = 0
3
517
12
9
0 0 0 0
o
1 0
O~B,Bo
0
0 1 0
jdisp
BTCLR
ssddr.b~,$addrI6
PC ... $sddrl6 il (saddr.bit) = 1
then reset (ssddr.bit)
4
5·13
15
12
0 0 0 0
1 000
1 0
1 B2 B, 80
Ssddr-offset
jdlsp
sfr.b~,$addrI6
PC ... $addrI6ilslr.bit = 1
then reset sir. bit
4
7113
18
13
0 0
o
0
0 1
1 000
l~B,80
Sfr-offset
jdisp
A.b~,$addrI6
PC ... Saddr16 il A.bit = 1
then reset A.bit
3
PC ... $addrl6 WX.b~ = 1
then reset X.bit
3
PC ... $addrI6iIPSW.b~= 1
then reset PSW.bit
3
5/9
12
9
0 0 0 0
0 1
o
0 1 1
1 B2B, Bo
jdisp
X.b~,Saddr16
5/9
12
9
0 0 0 0
o
1 1 0
OB2 B,80
0 1 1
jdisp
PSW.bit,Saddrl6
5/8
12
9
x x x 0 0 0 0
0
o
0 1 0
OB2 8, BO
jdisp
B
ttlEC
~PD7822x
Instruction Set (cont)
Clock.
Mnemonic Operand
Operation
Flag.
Byte. IntROM Branch No Branch ZACCY
Operation Code (Bits NIl
Bytes B1 thru BS
Conditional Branch (cont)
DBNZ
~,$addr16
saddr,$addr16
rl .. rl-1, then PC ..
$addr16 ~ rl .. 0
2
(saddr) .. (saddr)- 1, then
PC .. $addr16 if (saddr) .. 0
3
3/5
9
6
0 0
0 0
I Ro
jdisp
4-10
12
9
0 0
1
I
1 0
I
Saddr-offset
jdisp
CPU Control
MOV
STBC,lIIbyte
STBC .. byte
4
10
15
0 0 0 0
I
0 0
1 0 0
I
0 0 0 0
Data
Data
SEL
RBn
RBS1--{) ... n, n = 0-3
2
2
6
0
0
1 0
1 0
1
o N, No
0 0 0
1 0
NOP
No Operation
2
3
0 0 0 0
EI
IE .. 1 (Enable Interrupt)
2
3
0
01
IE .. 0 (Disable Interrupt)
2
3
0
6-118
I
1
0 000
0 0
0
0 0
1 0
I
I
1 0
t-IEC
NEe Electronics Inc.
Description
The fLPD78233, fLPD78234, .and fLPD78P238 are highperformance, 8-bit, single-chip microcomputers. They
contain extended addressing capabilities for up to 1M byte
of external memory. The devices also integrate sophisticated analog and digital peripherals as well as two lowpower standby modes that make them ideal for low-power/
battery backup applications.
The fLPD7823x family focuses on embedded control with
features like hardware multiply and divide, two levels of
interrupt response, four banks of main registers for multitasking, and macroservice for processor-independent
peripheral and memory DMA. Augmenting this highperformance core are advanced components like highprecision AID and D/A converters, two independent serial
interfaces, several counter/timers, PWM outputs as well
as a real-time output port. On board memory includes up to
1K bytes of RAM and 32K bytes of mask ROM or OTP ROM.
The macroservice. routine allows data to be transferred
between any combination of memory and peripherals independent of the current program execution. The four banks
of processor registers allow simplified context switching to
be performed. Both features combined with powerful onchip peripherals make this part ideal for a wide variety of
embedded control applications.
Features
o Complete single-chip microcomputer
- 8-bitALU
-16K ROM
- 640 bytes RAM
- Both 1-bit and 8-bit logic
fJ.-r""O~"A
Advanced, a-Bit
Real-Time Control Microcomputers
With AID and D/A Converters
o
Extensive timer/counter functions
- One 16-bit timer/counter/event counter
- Three 8-bit timer/counter/event counter
o Four timer-controlled PWM channels
o Two 4-bit real-time output ports
o Extensive interrupt handler
- Vectored interrupt handling
- Programmable priority
- Macroservice mode
o Two independent serial ports
o Software pullup options
o Refresh output for pseudostatic RAM
o On-chip clock generator
- 12-MHz maximum CPU clock frequency
- 0.33-fLS instruction cycle
o CMOS silicon gate technology
0 5~volt power supply
Ordering Information
----=----------------Part Number
ROM
Package
fLPD78233GC-389
fLPD78233L
fLPD78233GJ-586
ROMless
80-pin plastic OFP
84-pinPLCC
94-pin plastic OFP
fLPD78234GC-389
fLPD78234L
fLPD78234GJ-586
16K Mask ROM
80-pin plastic OFP
84-pinPLCC
94-pin plastic OFP
fLPD78P238GC-389
fLPD78P238L
fLPD78P238GJ-586
32K OTP ROM
80-pin plastic OFP
84-pinPLCC
94-pin plastic OFP
o Instruction prefetch queue
o Hardware multiply and divide
o Memory expansion
- 8085 bus-compatible
- 64K program address space
- 1M data address space
o Large I/O capacity: up to 64 I/O port lines
o Two 12-bit PWM outputs
o Eight-input 8-bit A/D converters
o Two-output 8-bit D/A converters
6-119
t-IEC
f,l.JtD7823x
Pin Identification
Symbol
Pl0-Pl1/PWMO-PWMl
FUnction
Symbol
I/O port 5/Upper address byte
I/O port l/Pulse-width modulated outputs
Output port 6/Extended address nibble
I/O port 1
P20/NMI
P23/INTP2/CI
P26/INTP5
I/O port6/Read strobe output
Input port 2/Non- maskable interrupt input
P6S/WR
I/O port 6/Write strobe output
Input port 2/External interrupt input/timer
trigger
P66/WAIT
I/O port6/Wait input
Input port 2/External interrupt input/
Clock input
Input port2/External interrupt input/timer
trigger
P2S"NTP4/ASCK
Input port2/External interrupt input/
Asynchronous serial clock
Input port 2/External interrupt input
I/O port6iRefresh output
P70-P77/ANIO-ANI7
D/A converter output
ASTB
Address strobe output
RESET
External reset input
MODE
External memory access control input
Xl,X2
I/O port 3/Serial clock input/output
P33/S0/SBO
I/O port 3/Serial output/Serial bus I/O
I/Oport3lTImeroutput .'
I/O port 4/Lower address byte/data bus
6-120
External crystal or external clock input
A/D converter reference voltage
I/O port3/Serial receive input
I/O port 3/Serial transmit output
Input port 7/A/D converter inputs
ANOO-ANOl
Input port 2/Serial input
P30/RxD
Function
OutPlJt port 0
D/A converter reference voijages
AV••
Voo
AVoo
Analog ground
. Positive power supply input
Positive power supply input; analog section
Vss
Power return; normally ground
NC
No connection
~
if.
J!
e:gO
:a
~
~1;8 ;g ;g ;g ;g ;g ;g ;g ~ x
O"'o)U1~WI\)""'O(J)
....
"'I!i
~g ~ 8 2
-c
""C
"'tI
""C
~
"tI
s·
oo
:::J
eS'
c
ao·
:::J
(/I
;(
~
"tJ
Jf '" '" (/) '"
d2==i==i~~Q~
Q
g ~ ~I
PElsIWAIT
P3 l trxD
P6SIWR
P30/RxD
P64Ro
P27/S1
P62/A1B
P2s" NTPS
P2S"NTP4IASCK
P6l/A17
P24"NTP3
P6:3/A 19
P60/A16
P~IINTP2ICI
P5]/A 1S
P22"NTPl
P5slA14
P2l "NTPO
P5slA13
P20 /NMI
PS4A12
P53/All
AVREF3
AVREF2
ANOl
P~/A10
PS1/A9
ANOO
PSo/Aa
AVss
P47/AD7
AVREFl
P4ij/AD6
AVDD
P77/ANI7
P4S/ADS
P76 /ANI6
P7S/ANIS
P44/AD4
P43/AD3
"tJ ""C ""C > < !: "tJ "'tJ ""C '"C ." "'C ""C "tJ < ""C '"'0 ""C "'tI "'C
~.!'"~~~ g~-r~w.citot~g~~~~~
»
); :>
000
'"
~
0
aJ
m~~
s:::: s:
o
~~~L~
......
0
I\)
(.0)
.i)..
~
1=
"G
....a
CD
~
O'l
~
W
>C
....
I\)
II
NEe
j.LPD7823x
84-Pin PLCC (Plastic Leaded Chip Carrier)
P74/ANI4
P42/AD2
P7&'ANIS
P43/AD3
P7&'ANI6
P44'AD4
P77/ANI7
P4s'ADS
AVDD
P4s/ADs
AVREF1
P47/AD7
AVss
ANOO
P50/AB
AN01
P52/A10
AVREF2
P5a'A11
AVREF3
P20/NMI
PS4'A12
P21/1NTPO
PSslA14
P22/1NTP1
PS7/A1S
P2alINTP2ICI
PSO/A16
P24IINTP3
P61/A17
P2s/INTP4/ASCK
P62"A1B
P2&'INTPS
P51/A9
PS&'A13
P6a'A19
P27/S1
P64RD
P3Q/RxD
P6sfWR
P31ITxD
P6sfWAIT
83AD-S425B
6-122
~
~
'1:1
iii
!II
Jl
il
m
" ~ Z
::0
0-....1
;g ~ ;g ~ ;g ;g
OcnC1l.r.:..ctlN ....
N N N
~
5o
N
N
.... 0
~ Z en< en< x x
O
OWm .... N
....
.... .... .... .... .... .... .... ....
~
m
-....I
m en
.f,:I.
o
W N
~
~
flll~};;S~ ~~
g ffi g2~ g~ ~I
m
-....I
en en
.f,:I.
W N ....
P6sIWA1T
24
P6SIWR
25
P3 1ITxD
P64/RD
26
P63 /A 19
27
P30 /RxD
P27 /S1
P62 /A 1S
P6 1/A 17
28
P%/INTP5
29
P2s/INTP4/ASCK
P60 /A16
30
NC
31
P24 /1NTP3
P2s/INTP2ICI
P~/A15
32
P56 /A 14
33
P22 /1NTP1
P21 /1NTPO
P55 /A 13
34
P20 INM1
NC
35
NC
P54A12
36
AVREF3
P53 /A 11
37
AVREF2
P5 2/A 10
AN01
PSo/AS
38
39
40
NC
41
NC
P47'AD 7
42
AVREF1
P46/AD6
43
AVDD
P4S/AD5
44
P77/ANI7
P44AD4
45
P76/ANI6
P~/AD3
46
P7S/ANI5
P42/AD 2
47
PS 1/Ag
~
o
ANOO
AVSS
~ ~ ~ ~ ~ ~ ~
m~
." ." > < < Z;;::
Z
.!~~3i~()g
»
);
00
~
0
OJ
m
()
'1J
~ ~
W~
"0 "U ""C Z
~~~~
o
.....
~~
;;:: ;;::
o
~
I\)
C/.l
~ ~
ffi
~
"tJ ""C ""C ""C
ffi
m~ mm~
< <
"'C
""0
"'C
Z
P74/AN14
~
""C
()~~cn~g8C}~~O~
»
»»
Z Z Z
0::;: f\i
»
Z
(;l
~
".....
m
CI
~
en
w
~
I\)
>C
eN
13
t\fEC
f.LPD7823x
Pin Functions
a
POo-P07. Port is an 8-bit, tristate output port with direct
transistor drive capability. Port can also be configured as
two 4-bit, real.time (timer-controlled) output ports.
a
P10·P17. Port 1 is an 8-bit input/output port with the programmable pullup option. Port 1 has direct LED drive
capability.
PWMO-PWM1. These are pulse-width modulated outputs
for dc motor control.
P2o-P27. Port 2 is an 8-bit input port with the programmable pullup option except for P2 0 and P2,.
NMI. Non-maskable interrupt input.
INTPO-INTP5. External interrupt inputs. INTPa, INTP1,
and INTP3 are timer capture trigger inputs.
CI. External clock input to the timer.
ASCK. Asynchronous serial clock input.
SI. Serial data input for three-wire serial 1/0 mode.
P30·P37. Port 3 is an 8-bit tristate 1/0 port with the programmable pullup option.
RxD. Receive serial data input.
TxD. Transmit serial data output.
SCK. Serial shift clock output.
SO. Serial data output for three-wire serial 1/0 mode.
SBO. 1/0 bus for the clocked serial interface.
TOO-T03. Timer flip-flop outputs.
P4o-P47. Port 4 is an 8-bit, bidirectional tristate port with
the programmable pullup option. Port 4. has direct LED
drive capability.
ADo-AD7. Multiplexed addressldata bus used with external memory or expanded 1/0.
P50·P57. Port 5 is an 8-bit, bidirectional tristate port with
the programmable pullup option. Port 5 has direct LED
drive capability.
As-A,s. Upper-order address bus used with external
memory or expanded 1/0.
P6o-P63. Pins P6o-P63 of port 6 are outputs.
A'6-A'9. Extended-order address bus used with external
memory.
6-124
P64-P67. Pins P64-P67 of port 6 are tristate II0s with the
programmable pullup option.
RD. Read strobe output used by external memory (or data
registers) to place data on the 1/0 bus during a read
operation.
WR. Write strobe output used by external memory (or data
registers) to latch data from the 1/0 bus during a write
operation.
WAIT. Wait signal input.
REFRQ. Refresh pulse output used by external pseudostatic memory.
P7o-P77. Port 7 is an 8-bit input port.
ANI0·ANI7. Analog voltage inputs to AID converter.
AN01, AN02. Analog voltage outputs from DIA converters.
ASTB. Address strobe output used by external circuitry to
latch the low-order 8 address bits during the first part of a
read or write cycle.
RESET. A low level on this external reset input sets all registers to their specified reset values. This pin, together
with P2 o/NMI, sets the fJ,PD78P234 in the PROM programming mode.
MODE. Control signal input that selects external memory
or internal ROM as the program memory. When MODE is
low, fJ,PD78234 is set in ROMless mode and external
memory is accessed.
X1, X2. For frequency control of the internal clock oscillator, a crystal is connected to X1 and X2. If the clock is
supplied by an external source, the clock signal is connected to X1 and the inverted clock signal is connected
to X2.
AVREF1. AID converter reference voltage.
AVREF2, AVREF3. DIA converter reference voltage.
AVoo. AID converter supply voltage.
AVss. AID converter ground.
t-iEC
fJ-PD7823x
J.LPD7823x Block Diagram
Bus Control
A 16-A 19 1
P60-P63
SF R Address/Data Bus
As-A1SI
PSO-PS7
P21 - P261
INTPO-INTPS
ADo-AD71
P40-P47
P30/RxD _
P31/TxD
P2S/I~16~
P64/RD
P32/SCK
P3s ISo/SBO
P6SIWR
P2]/SI
P66IWAIT
INTP3
P34/TOO
P67/REFRQ
P3S/T01
ASTB
Micro
Sequencer
INTPO
System Control
X1
INTP1
P23/INTP2ICI
P36/T02
P3 7 /T03 -----1.._ _ _---'
m
X2
RESET
MODE
VDD
VSS
ANI0-ANI7 -JJ<.....- - - - - ,
AVREF1
AVoD
AVSS
INTPS -~------'
Macroservlce
Channels
(2S6 Bytes)
PWM1
Internal Data Bus
Data Bus
POO
-P0 7
P10 P20
- P1 7 - P2 7
P30
- P3 7
P40
- P4 7
PSO
-PS 7
PSo
-PS 3
P64
-PS7
P70
-P7 7
83RD-6433B
6-125
fttfEC
/LPD7823x
FUNCTIONAL DESCRIPTION
Timing
The maximum clock frequency is 12 MHz. The clock is derived from an external crystal or an external oscillator. The
internal processor clock is two-phase and the machine
states are executed at a rate of 6 MHz. The shortest instructions require two states (333 ns). The CPU contains a
one-byte instruction prefetch. This allows a subsequent
instruction to be fetched during the execution of an instruction that does not reference memory.
Memory Map
The fJ,PD7823x has 1M byte of address space. This
address space is partitioned into 64K bytes of program
memory starting at address OOOOOH. (See figure 1.) The
remainder of the 1M bytes can be accessed as data memoryspace.
External memory is supported by I/O port 4, an 8-bit multiplexed address/data bus. The memory mapping register
controls the size of external memory as well as the number
of added wait states. The upper address byte is derived
from port 5, and the extended address nibble is derived
from port 6.
The fJ,PD78234 has on-chip mask ROM occupying the
space from OOOOOH to 03FFFH. When the ROM is used
and no other program or data space is required, ports 4, 5,
and 6 are available as additional I/O ports.
Figure 1. Memory Map
OOOOOH
OOOOOH
0003FH
00040H
On·Chip ROM
16,834 Bytes
(Must be external
memory
In IlPD78233)
03FFFH
04000H
External Memory
OFC7FH
OFC80H
~
007FFH
00800H
~
:
External
Memory
(Extended
Address
Area)
Program Area
CAllF Entry
Area
OOFFFHI
01000H
Program Area
03FFFHI
+
On-Chip
RAM
OFEDFH
OFEEOH
Special Function
Register (SFR)
Area
OFFFFH
10000H
CAllT Table Area
OFC80H
On-Chip RAM
640 Bytes
OFEFFH
OFFOOH
0007FH
00080H
Interrupt Vector
Address Table Area
OFEFFH
General-Purpose
Registers
r
FFFFFH
83RD-G430B
6-126
fttIEC
j.LPD7823x
General-Purpose Registers
Special Registers
The general-purpose registers are mapped into specific
addresses in data memory. They are made up of four
banks, each bank consisting of eight 8-bit or four 16-bit
registers. The register bank used is specified by a CPU
instruction. This can be checked by reading RBSO and
RBS1 in the program status word (PSW).The generalpurpose register configuration is shown in figure 2.
There are three different special registers. The first is a 16bit binary counter that holds the next program address to
be executed and is named the program counter. The stack
pointer is the second special 16-bit register. The stack
pointer holds the address of the stack area (a last in, first
out system). The third special register is an 8-bit program
status word. This register contains various flags that are
set or reset depending on the results of instruction execution. The program status word format is as follows:
Figure 2. Register Mapping
OFEEOH
7
~
IE
Bank
0
Z
I RBS1 I
AC
I
RBSO
0
ISP
CY
r-----L2
I--
For 16-Blt
Processing
CY
ISP
RBSO, RBS1
AC
I - - - - V / (R1)A
(RO)X
(RPO)AX
OFEF8H
(R3) B
(R2) C
(RP1)BC
OFEFAH
Z
(RS) D
(R4) E
(RP2) DE
OFEFCH
IE
(R7) H
(R6) L
(RP3) HL
OFEFEH
o
OFEFFH
For8-Blt
Processing
~" "
( ) = Absolute Name
83ML-6082A
Carry flag
Interrupt priority status flag
Register bank selection flags
Auxiliary carry flag
Zero flag
Interrupt request enable flag
Special Function Registers
These registers are assigned to special functions such as
the mode and control registers for on-chip peripheral
hardware. They are mapped into the 256-byte memory
space from OFFOOH to OFFFFH. Table 1 is a list of special
function registers.
6-127
tVEC
J.LPD7823x
Table 1. Special Function Registers
Handleable
Bit Unit
1
8 16
Bit Bit Bit
Symbol
R/W
OFFOOH
PortO
PO
R/W
0
0
Indeterminate
Address
Special Function Register (SFR) Name
On Reset
OFF01H
Port 1
Pl
R/W
0
0
Indeterminate
OFF02H
Port2
P2
R
0
0
Indeterminate
OFF03H
Port 3
P3
R/W
0
0
Indeterminate
OFF04H
Port 4
P4
R/W
0
0
Indeterminate
OFF05H
Port 5
P5
RIW
0
0
Indeterminate
OFF06H
Port 6
P6
R/W
0
0
xOH
OFFO?H
Port?
P?
R
0
0
Indeterminate
OFFOAH
Port 0 buffer register (low)
POL
R/W
0
0
Indeterminate
OFFOBH
Port 0 buffer register (high)
POH
R/W
0
0
Indeterminate
OFFOCH
Real-time output port control register
RTPC
R/W
0
0
OFF10H,
OFFllH
l6-bitcompare register 0 (16-bittimer/counter)
CROO
R/W
0
Indeterminate
OFF12H,
OFF13H
l6-bitcompare register 1 (16-biltimer/counter)
CROl
R/W
0
Indeterminate
OFF14H
8-bit compare register (8-bit timer/counter 1)
CR10
R/W
0
Indeterminate
OFF15H
8-bit compare register (8-bittimer/counter 2)
CR20
R/W
0
Indeterminate
OFF16H
8-bit compare register (8-bittimer/counter 2)
CR2l
RIW
0
Indeterminate
OFF1?H
8- bit compare register (8-bit timer/counter 3)
CR30
RIW
0
OFF18H,
OFF19H
l6-bit capture register (16-bit timer/counter)
CR02
R
OFF1AH
8-bit capture register (8-bittimer/counter 2)
CR22
R
0
Indeterminate
OFF1CH
8-bitcapture/compare register (8-bittimer/counter 1)
CRll
R/W
0
Indeterminate
OFF20H
Port 0 mode register
PMO
W
0
FFH
OFF21H
Port 1 mode register
PMl
R
0
FFH
OFF23H
Port 3 mode register
PM3
W
0
FFH
OFF25H
Port 5 mode register
PM5
W
0
FFH
OFF26H
Port 6 mode register
PM6
R/W
0
FxH
OFF30H
Capture/compare control register 0
CRCO
W
0
10H
OFF31H
Timer output control register
TOC
W
0
OOH
OFF32H
Capture/compare control register 1
CRCl
W
0
OOH
OFF34H
Capture/compare control register 2
CRC2
W
0
OOH
OFF40H
Pull-up option register
PUO
R/W
0
0
OOH
OFF43H
Port 3 mode control register
PMC3
R/W
0
0
OFF50H,
OFF51H
l6-bit timer register 0
TMO
R
OFF52H
8-bit timer register 1
TMl
R
6-128
OOH
Indeterminate
0
OOH
0
0
Indeterminate
OOOOH
OOH
ftWEC
/J-PD7823x
Table 1. Special Function Registers (cant)
Handleable
Bit Unit
1
Address
Special Function Register (SFR) Name
8
16
Symbol
R/W
Bit Bit Bit
On Reset
OFF54H
B-bit timer register 2
TM2
R
o
OOH
OFF56H
B·bittimer register 3
TM3
R
o
OOH
OFF5CH
Prescaler mode register 0
PRMO
W
o
OOH
OFF5DH
Timer control register 0
TMCO
R/W
o
OOH
OFF5EH
Prescaler mode register 1
PRM1
W
o
OOH
OFF5FH
Timer control register 1
TMC1
R/W
o
OOH
OFF60H
D/A converter value setting register 0
DACSO
RIW
o
OOH
OFF61H
D/A converter value setting register 1
DACS1
R/W
o
OOH
o
OFF6BH
AID converter mode register
ADM
R/W
0
OOH
OFF6AH
AID conversion result register
ADCR
R
o
Indeterminate
OFF70
PWM control register
PWMC
RIW
o
OFF72H,
OFF73H.
PWM modulo register 0
PWMO
W
o
Indeterminate
OFF74H,
OFF75H
PWM modlilo register 1
PWM1
W
o
Indeterminate
OFF7DH
One-shot pulse output control register
as PC
RIW
o
0
OFFBOH
Clocked serial interface mode register
CSIM
R/W
o
0
OOH
OFFB2H
Serial bus interface control register
SBIC
R/W
o
0
OOH
05H
OOH
OFFB6H
Serial shift register
SIO
R/W
o
Indeterminate
OFFBBH
Asynchronous serial interface mode register
ASIM
R/W
o
0
BOH
OFFBAH
Asynchronous serial interface status register
ASIS
R
o
0
OOH
OFFBCH
Serial receive buffer:
RxB
R
o
Indeterminate
UART
OFFBEH
Serial send shift register:
TxS
W
o
Indeterminate
OFF90H
Baud rate generator control register
BRGC
W
o
OOH
OFFCOH
Standby control register
STBC
R/W
o
OOOOxOOOB
OFFC4H
Memory expansion mode register
MM
R/W
o
0
20H
OFFC5H
Programmable wait control register
PW
R/W
o
0
BOH
OFFC6H
Refresh mode register
RFM
R/W
o
OFFCFH
Memory size control register
IMS
W
OFFEOH
Interrupt request flag register L
IFOL
OFFE1H
Interrupt request flag register H
IFOH
OFFE4H
Interrupt mask flag register L
MKOL
UART
IFO
MKO
0
OOH
o
Indeterminate
R/W
000
OOOOH
R/W
o
0
OOOOH
RIW
000
FFFFH
RIW
o
0
FFFFH
R/W
000
FFFFH
FFFFH
OFFE5H
Interrupt mask flag register H
MKOH
OFFEBH
Priority specification flag register L
PROL
OFFE9H
Priority specification flag register H
PROH
RIW
o
OFFECH
Interrupt service mode specification flag register L
ISMOL ISMO
R/W
000
OFFECH
Interrupt service mode specification flag register L
ISMOL ISMO
RIW
o
0
OFFEDH
Interrupt service mode specification flag register H
ISMOH
RIW
o
0
OOOOH
PRO
0
0
OOOOH
OOOOH
OFFF4H
External interrupt mode register 0
INTMO
RIW
o
0
OOH
OFFF5H
External interrupt mode register 1
INTM1
R/W
o
0
OOH
OFFFBH
Interrupt status register
1ST
RIW
o
0
OOH
6-129
NEe
,...,PD7823x
InputlOutput Ports
AID Converter
Port 0 is a byte programmable tristate output port. Port 1 is
bit programmable as input or output pins. Port 2 is bit selectable as input or control pins. Port 3 is bit programmable as
input, output, or control pins. Port 4 is byte programmable
as an I/O port or as the external address/data bus. Port 5 is
bit programmable as 1/0 or the upper address byte. Port 6
is bit programmable as 1/0, control pins, or the extended
address nibble. Port 7 is an input only port.
The f.LPD7823x A/D converter (figure 4) uses the successive-approximation method of converting any or all of the
eight multiplexed analog inputs into 8-bit digital data. This
data is stored in a result register that can be accessed at
any time. The conversion time is 30 f.Ls at 12-MHz operation. Quantization error is ±1/2 LSB; maximum full-scale
error is 0.4%.
Real-Time Output Port
The real-time output port (figure 3) shares pins with port O.
The high and low nibbles may be treated separately or together. In the real-time output function, data stored beforehand in the buffer register is transferred to the output
latch simultaneously with the generation of either a timer
interrupt or external interrupt. Using the real-time output
function in conjunction with the macroservice function
enables port 0 to output preprogrammed patterns at preprogrammed variable time intervals.
There are two methods for starting the AID conversion
operation. Conversion may be started by hardware by
using an external interrupt as a trigger. The second method
of starting conversion is with a software command.
There are also two methods by which the f.LPD7823x will
operate after conversion has begun. The first, the scan
method, selects several analog input signals sequentially
and obtains data from each pin producing an interrupt with
each conversion. The converted data can be successively
transferred to memory by using the macroservice function.
The second, the select mode, chooses anyone input
and the result is updated continuously, with or without interrupt generation depending on the chosen start method.
Figure 3. Rea/-Time Output Port
Internal Bus
RTPC
Buffer ,egister
4-Bit
Real-Time
Output (POH)
POH
POL
4-Bit Real-Time
Output (POL)
8
1--------1 4 1---------.14
8-Bit Real-Time
Output (PO)
EXTR
63ML·6083B
6-130
NEe
j-LPD7823x
Figure 4. Analog-to-Digital Converter
:
ff
Resistor String
ANIO-ANIIANI2ANI3AN!4ANI5
r-r-----'
S
&l
a;
Ul
Rl2
Sample and
Hold Circuit
I
r----'
I
R
I
I
I
I
i-----r-O
AVREF
I
;J;":
L _ _ _ _ -'
I
IS
I &l
I
I
I
3J
10.
I~
Successive Approximation
Register [SAR]
I
I
I
I
~
INTP5-
Trigger Enable
'----------1"
NO Converter Mode
Register [ADM]
B
'1
Rl2~AVSS
~rl-s-e-Iec-to-r--.L~ :.~~~_
AID Conversion Result
Register [ADCR]
8
Internal Bus
83RD-6429B
D/A Converter
Figure 5. Dlgltal-to-Analog Converter
The f1PD7823x has two D/A converters as shown in figure 5.
The 8-bit digital input, written to the DACSn register
(n = 0, 1), selects one of 256 taps on a resistor ladder between reference voltages AVREF2 and AVREF3' The selected
voltage becomes the analog output at the ANOn pin.
Rl2
R
Because of the high impedance at ANOn, an external buffer is required to drive a low-impedance load.
I
I
I Tap I
ISelectr--<' ANOn
The ANOn pin is high impedance also while the RESET
signal is active. After reset clears, the DACSn register is
loaded with Os.
I
-
-
-
- -
-
-
I
I
_1- __ I
63RO-642BA
6-131
NEe
J.LPD7823x
PWMOutput
Serial Interface
The two pUlse-width modulators of the fLPD7823x (figure 6)
have 12-bit resolution. Designed for dc motor speed control, the outputs at PWMn (n = 0, 1) are selectable independently as active low or high.
The j.LPD7823x has two independent serial interfaces.
• Asynchronous serial interface (UART) (figure 7)
• . Clock-synchronized serial interface (figure 8)
A universal asynchronous receiver transmitter (UART) is
used as an asynchronous serial interface. This interface
transfers one byte of data following a start bit. The
fLPD7823x co'ritains a baud rate generator. This allows
data to be transferred over a wide range of transfer rates.
Transfer rates may also be defined by dividing the clock
input to the ASCK pin. Transfer rates may also be generated by 8-bit timer counter 3.
Figure 6. Pulse- Width Modulator
The clock-synchronized serial interface has two different
modes of operation:
4-Blt Counter
Note: n =0,1
• Three"line serial 1/0 mode.
In this mode, data 8 bits long is transferred along three
lines: a serial clock (SCK) line and two serial bus lines
(SO and SI). This mode is convenient when the
j.LPD7823x is connected to peripheral II0s and display controllers that have the conventional clocksynchronized serial interface.
83RD-&I27A
• Serial bus interface mode (S81).
In this mode the fLPD7823x can communicate data with
several devices using the serial clock (SCK) and the serial data bus (S80) lines. This mode conforms to NEC's
serial bus format. In S81 mode, addresses that select a
device to communicate with, commands that direct the
device, and actual data are output to the serial data bus.
A handshake line, which was required for connecting
several devices in the conventional clock-synchronized
serial interface, is not needed.
6-132
ftt{EC
JJ.PD7823x
Figure 7. Asynchronous Serial Interface
L....,;;.;.;r.;;;;...,r--INTSR
83ML-6085B
6-133
NEe
jJ>PD?823x
Figure 8. Clock-Synchronized Serial Interface
N-ell Open-Drain
Output Possible
Bus Release!
Command!
Acknowledge
Detection
Circuit
INTCS1
FromTimerl
...---'L....___ Counter 3
'ClK/S
'CLK132
83ML-6086B
6-134
NEe
j.LPD7823x
Timer/Counters
The f.tPD7823x has four timer/counters: one 16-bit and
three 8-bit. The 16-bit timer/counter (figure 9) has the
basic functionality of an interval timer, a programmable
square-wave output, and a pulse width measurer. These
functions can provide a digital delayed one-shot output, a
pulse width modulated output, and a cycle measurer.
The first two 8-bit timer/counters can provide the basic
functions of an interval timer and a pulse width measurer.
Timer/counter 1 can also be used as a timer for output
trigger generation for the real-time output port. Timer/
counter 2 can also provide an external event counter, a
one-shot timer, a programmable square-wave output, a
pulse-width modulated output, and a cycle measurer.
Timer/counter 3 can operate as an internal timer or as a
counter to generate clocks for a baud rate generator. See
figures 10, 11, and 12.
Figure 9. 16-8it Timer/Counter
Internal Bus
External
Interrupt
Mode Register
(INTM1)
Capturel
Compare
Control
Register
(CRCO)
m
...--........-r---..Z--, ~:~I
..-___,Ir-.... Register
(TMCO)
16
16
83ML..so7GB
6-135
NEe
J.1PD7823x
Figure 10. 8-Bit Timer/Counter 1
Internal Bus
Externallnterrupt
Mode Register 0
(INTMO)
r--...::r----.
8
8
Capturel
Compare
Cont Reg 1 '-.,...";"''--. .--'--,-...1
(CRC1)
INTPO
INTC10
, ClK /512
'ClK /256
, ClK /128
'ClK /64
'ClK /32
'ClK /16
Selector 1 - - + - 1
Capture
Trigger
Prescaler
Mode Register
(PRM1)
L..._......I_...--L._ _.J
.......- - - - 1 - - - 1 - - - 1 ~H>-----... INTC11
Timer
Control
Register 1
(TMC1)
8
Internal Bus
83ML·6077B
6-136
NEe
f.LPD7823x
Figure 11. 8-Bit Timer/Counter 2
INTP1
'-------+-INTC21
Prescaler
Mode Register
(PRM1)
Internal Bus
83ML·8078B
Interrupts
There are 20 interrupt request sources; each source is allocated a location in the vector table. (See table 2.) There is
one software interrupt request and one of the remaining 19
interrupts is non-maskable. The software interrupt and the
non-maskable interrupt are unconditionally received even
in the DI state. These two interrupts possess the maximum
priority. The maskable interrupt requests are subject to
mask control by the setting of the interrupt mask flag.
There are default priorities associated with each maskable
interrupt and these can be assigned to either of two programmable priority levels. Interrupts may be serviced by
the vectored interrupt method where a branch to a desired
service program is executed. Interrupts may also be handled
by the macroservice function where a preassigned process is performed without program intervention.
6-137
NEe
JJ.PD7823x
Figure 12. 8-Bit Timer/Counter 3
Internal Bus
8
BI
ES41
T
-:*--------'1 j ~ ,~"
ES41, ES40
~
INTP41 ASCK
--1,--_D_;d_I!_"ro_r--,~
fClK/512fClK/256fClK/128fClK/64 MPX
IClK/32fClK/16fClK/8-
Prescaler Mode
I
ES40
' - - - - - _ _ + Serial Interface
a·Bit Timer 3
[TM3]
I
I
Register 0 [PRMO] L_P_R_S_3-,-_P_R_S_2..,~P_R_S_1..L_P_R_S_OJ
r-------'B'--------:-=------>LB~
Internal Bus
49TB·497S'
Table 2. Interrupt Sources and Vector Addresses
Interrupt
Request
Type
Default
Priority
Software
None
BRK instruction execution
Non-maskable
None
NMI (pin input edge detection)
Maskable
6-138
o
Interrupt Request Generation Source
Macroservice
Mode
Vector
Table
Address
003EH
0002H
INTPO (pin input edge detection)
Yes
INTP1 (pin input edge detection)
Yes
0008H
2
INTP2 (pin input edge detection)
Yes
OOOAH
3
INTP3 (pin input edge detection)
Yes
OOOCH
4
INTCOO (TMO-CROO coincidence signal generation)
Yes
0014H
5
INTC01 (TMO-CR01 coincidence signal generation)
Yes
0016H
6
INTC10 (TM1-CR1 0 coincidence signal generation)
Yes
0018H
7
INTC11 (TM1-CR11 coincidence signal generation)
Yes
001AH
8
INTC21 (TM2-CR21 coincidence signal generation)
Yes
001CH
9
INTP4 (pin inputedgedetection)/INTC30 (TM3-CR30 coincidence signal generation)
Yes
OOOEH
10
INTP5 (pin input edge detection)/INTAD (end of AID conversion)
Yes
0010H
11
INTC20 (TM2-CR20 coincidence signal generation)
Yes
0012H
12
INTSER (generation of asynchronous serial interface receive error)
13
INTSR (end of asynchronous serial interface reception)
Yes
0022H
14
INTST (end of asynchronous serial interface transmission)
Yes
0024H
15
INTCSI (end of clocked serial interface transmission)
Yes
0026H
0006H
0020H
t-IEC
Macroservice
The macroservice function can be programmed to transfer
data from a special function register to memory or from
memory to a special function register. Transfer events are
triggered by interrupt requests and take place without software intervention. There are 17 interrupt requests where
macroservicing can be executed. The macroservice function is controlled by the macroservice mode register and
the macroservice channel pointer. The macroservice
mode register assigns the macroservicing mode and the
macroservice channel pointer indicates the address of the
memory location pointers. The location of each register
and its corresponding interrupt is shown in figure 13.
Refresh
The refresh signal is used with a pseudostatic RAM. The
refresh cycle can be set to one of four intervals ranging
from 2.6 to 21 .3 fLS. The refresh is timed to follow a read or
write operation so there is no interference.
Standby Modes
Halt and stop functions reduce system power consumption. In the halt mode, the CPU stops and the system clock
continues to run. A release of the halt mode is initiated by
an unmasked interrupt request, an NMI, or a RESET
input. In the stop mode, the CPU and system clock are
both stopped, reducing the power consumption even
further. The stop mode is released by an NMI input or a
RESET input.
j-LPD7823x
Figure 13. Macroservice Control Word Map
OFEDFH
Channel Pointer
OFEDEH
Mode Register
OFEDDH
Channel Pointer
OFEDCH
Mode Register
OFEDBH
Channel Pointer
OFEDAH
Mode Register
OFED9H
Channel Pointer
OFED8H
Mode Register
INTSR
INTST
INTCSI
INTC10
OFED7H
Channel Pointer
OFED6H
Mode Register
OFED5H
Channel Pointer
OFED4H
Mode Register
OFED3H
Channel Pointer
OFED2H
Mode Register
OFED1H
Channel Pointer
OFEDOH
Mode Register
OFECFH
Channel Pointer
OFECEH
Mode Register
OFECDH
Channel Pointer
OFECCH
Mode Register
OFECBH
Channel Pointer
OFECAH
Mode Register
OFEC9H
Channel Pointer
OFEC8H
Mode Register
OFEC7H
Channel Pointer
OFEC6H
Mode Register
OFEC5H
Channel Pointer
OFEC4H
Mode Register
OFEC3H
Channel Pointer
OFEC2H
Mode Register
INTC11
INTP4/1NTC30
INTP5JINTAD
INTCOO
INTC01
INTC20
INTC21
INTPO
INTP1
INTP2
INTP3
83ML·G087A
6-139
NEe
fJ-PD7823x
ELECTRICAL SPECIFICATIONS
Absolute Maximum Ratings
TA
= +25'C.
Item
Rating
Unit
Voo
Conditions
-0.5to+7.0
V
AVoo
AVSS to Voo + 0.5
V
AVSS
-0.5to+0.5
V
V
Symbol
Power supply voltages
Input voltage
VI1
-0.5toAVREF1 + 0.5
Output voltage
Vo
-0.5 to Voo + 0.5
V
Low -level output current
IOL
15
mA
All output pins total
100
mA
One output pin
-10
mA
All output pins total
-50
mA
High-level output current
One output pin
IOH
AID converter reference
input voltage
A"REF1
-0.5 to AVoo +0.3
V
D/A converter reference
input voltage
AVREF2
-0.5 to Voo + 0.3
V
AVREF3
-0.5 to Voo + 0.3
V
Operating temperature
TOPT
-40 to +85
Storage temperature
TSTG
-65 to +150
'c
'c
Operating Frequency
Oscillation Frequency
fXX = 4to 12MHz
TA
Voo
-40 to +85'C
+5V± 10%
Capacitance
= +25'C; voo = vss = 0 V.
TA
Item
Symbol Typ Max Unit Conditions
Input capacitance
CI
20
pF f = 1 MHz; pins not
- ' - - - ' - - - - - - - - ' - - - - - - - used for measure_O_u...:.tp_u_tc_a.:...p_ac_it_a_nc_e_ _ _C-'o"-_ _ _2_0_.:...p_F mentare atO V
Input/output capacitance
6-140
CIO
20
pF
NEe
I-LPD7823x
DC Characteristics
TA = -40 to +85°C; voo = +5 V ±10%; vss = AVss = 0 v.
Item
Symbol
Low-level input voltage
Conditions
V1L
High-level input voltage
Low-level output voltage
High-level output voltage
Input leakage current
Output leakage current
AVREF current
VOO power supply current
VIHl
Except pins in Note 1
Min
Max
Unit
0
0.8
V
2.2
VOO
V
VIH2
Pins in Note 1
VOL1
IOL =2.0mA
VOL2
IOL = 8.0 mA (pins in Note 2)
VOH1
IOH=-1.0mA
Voo-1.0
V
VOH2
IOH=-100fj-A
Voo-0.5
V
VOH3
IOH = -5.0 mA (pins in Note 3)
0. 8VOO
VOO
V
0.45
V
1.0
V
2.0
V
±10
III
OV"VI"VOO
ILO
OV"Vo"VOO
fj-A
±10
fj-A
5.0
mA
AIREF
Operating mode, fxx = 12 MHz
1.5
1001
Operating mode, fxx = 12 MHz
20
40
mA
1002
HALT mode, fxx = 12 MHz
7
20
mA
Data retention voltage
VOOOR
STOP mode
Data retention cu rrent
1000R
STOP mode
2.5
VO OOR =2.5V
VOOOR = 5 V ±10%
Pullup resistor
Typ
RL
VI=OV
15
Notes:
(1) X1, X2, RESET, P2o/NMI, P21/INTPO, P22/1NTP1, P2311I\JTP2/CI,
P24/1NTP3, P2 5I1NTP4/ASCK, P26/1NTP5, P2 7/SI, P32/SCK,
P33/S0/SBO, and EA pins.
5.5
V
2
20
fj-A
5
50
fj-A
40
80
k!1
(2) Pins P1o-P17, P4o-P4]fADo-AD7 and P50-P5]fAs-A15'
(3) Pins POo- P0 7.
Figure 14. Voltage Thresholds for Timing Measurements
X.__L
VOO-l-----.
0.8 VOO or 2.2 V
O.SV
0.45 V - - - - - '
83ML·6089A
6-141
rI
fttIEC
f-LPD7823x
Read/Write Operation
TA = -40 to +85°C; voo = +5 V ± 10%; VSS = 0 V; fxx = 12 MHz; CL = 100 pF. See figures 15, 16, and 17.
Min
Max
XI input clock cycle time
tCYX
82
250
Address setup time to ASTB t
tSAST
52
Address hold time from ASTB t (Note 1)
tHSTA
Item
Address to RD t delay time
Address floatlime from RD •
Address to data inputtime
ASTB t to data inputtime
RD t to data input time
ASTB • to RD t delay time
Symbol
Conditions
Unit
ns
ns
25
ns
tOAR
129
ns
tFAR
11
RL =5kO,CL =50pF
ns
tOAIO
228
ns
tOSTIO
181
ns
IORIO
99
ns
tOSTR
52
ns
ns
Data hold time from RD t
tHRIO
0
RD t to address active time
tORA
124
ns
RD t to ASTB t delay time
tORST
124
ns
ns
RD low-level width
tWRL
124
IWSTH
52
ns
Address to WR t delay time
tOAW
129
ns
ASTB high-level width
ASTB t to data outputtime
tosTOO
142
ns
WR t to data outputtime
tOWOO
60
ns
ASTB. toWR. delay time
tOSTWl
!OSTW2
Data setup time toWR t
tSOOWR
Data setup time to WR t (Nole 1)
tSOOWF
Data hold time from WR t
WR t to ASTB t delay time
WR low-level width
ASTB t to WAIT. inputtime
WAITholdtimefromXl.
WAITsetuptimetoXI t
ns
ns
22
ns
tHWOO
20
ns
tOWST
42
ns
tWWL1
196
ns
114
ns
Refresh mode
Refresh mode
IOAWT
146
ns
tOSTWT
84
ns
tHWTX
0
ns
tSWTX
0
ns
Notes:
(1) The hold time includes the time during which VOH and VOL are
retained under the following load conditions: CL = 100 pF and
RL =2kO.
6-142
ns
129
146
tWWL2
Address to WAIT. inputtime
Refresh mode
52
tt{EC
fJ,PD7823x
Figure 15. Read Operation Timing
XI
1+------tOAIO - - - - - - + {
Input Oata
AOO-A07 - - - {
tFAR
i+----+ tOSTIO------1""i
ASTB
tOSTR
tORIO
1+----tWRL--------~
83ML-6091B
6-143
NEe
I-LPD7823x
Figure 16. Write Operation Timing
X1
ADO-AD7
---<
Output Data
-+--0f.4---tSODWR----oo-t
~,-II.....--oo-t t SODWF
ASTB
~---f--tWWL1
tWWL2
t DSTW2 - - - . j
83Ml·6092B
Figure 17. External WAIT Input Timing
X1
~---ltDAWT------oo-t
ASTB
83ML·59938
6-144
ttlEC
/J-PD7823x
Serial Port Operation
TA = -40 to +85'C; Voo = +5 V ± 10%; VSS = 0 V; fxx = 12 MHz; CL = 100 pF. See figures 18, 19, and 20.
Item
Symbol
Serial clock cycle time
tCYSK
Serial clock low-level width
tWSKL
Serial clock high-level width
tWSKH
Conditions
Min
Unit
External clock
1.0
Output
Internal clock/16
1.3
tJ.S
Internal clock/64
5.3
,,"s
ns
,,"S
Input
External clock
420
Output
Internal clock/16
556
ns
Internal clock/64
2.5
,,"s
Input
External clock
420
ns
Output
Internal clock/16
556
ns
Internal clock/64
2.5
,,"S
ns
SI, SBO setup time to SCK t
tSSSK
150
SI, SBO hold time from SCK t
tHSSK
400
SO/SBO output delay time from SCK!
Max
Input
ns
tOSBSKl
CMOS push-pull output
(3-line serial I/O mode)
0
300
ns
IoSBSK2
Open-drain output
(SBI mode), RL = 1 kO
0
800
ns
SBO high, hold time from SCK t
tHSBSK
SBlmode
4
tCYX
SBO low, setup time to SCK!
tSSBSK
SBlmode
4
tCYX
SBO low-level width
tWSBL
4
tCYX
SBO high-level width
tWSBH
4
tCYX
RxD setup time to SCK t
tSRXSK
80
ns
RxDholdtimeafterSCK t
tHSKRX
80
SCK ~ to TxD delay time
ns
210
IoSKTX
ns
Figure 18. Clock-Synchronized Serfsllnterface Timing; Three-Line liD Mode
5CK
51------<
so _ _-IX~'
___---,
~_ _Ou_~_~_o_a~_ _-J)(~______________J)(~_________
6-145
II
NEe
f.LPD78~3x
Figure 19. Clock-SynchronIzed Serial Interlace Timing; S81 Mode
m
Bus Release Signal Transfer Timing
~ ~A,"""
I.:
tWSBH
twsBL
\'-----/
i\.____J/
~~
tSSBSK
\----
...r-.L=======X'--_____>C
SBO
__
Command Signal Transfer Timing
SBO
83RD........
Figure 20. Asynchronous Mode TIming
tCYSK
.o....---tWSKL_ r t W S K H -
It
\
\
)
TxO
I--tosKTXRxD
(
)
tSRXSK
tHSKRX
83ML·59898
~EC
fJ.PD7823x
AID Converter Operation
TA = -40 to +85'C; Voo = + 5 V ±10%; Vss = AVss = 0 V.
Item
Symbol
Conditions
Resolution
Min
Typ
Max
FUll-scale error
AVREF= 4.0VtoVoo;TA =-10to+70'C
0.4
%
AVREF = 3.4 VIoVoo;TA = -10 to + 70'C
0.8
%
AVREF = 4.0VtoVoo
0.8
%
±1/2
LSB
Quantization error
Conversion time
Sampling time
Analog input voltage
Input impedance
Analog reference voltage
AVREFcurrent
tCONV
tSAMP
83 ns;;; tCYX;;; 125 ns
360
tcYX
125 ns ;;; tcyX;;; 250 ns
240
tCYX
83 ns;;; tcYX;;; 125 ns
72
tCYX
125 ns ;;; tcyX;;; 250 ns
48
tCYX
0
VIAN
AVREF
1000
RAN
3.4
V
MO
Voo
V
Operating mode, fxx = 12 MHz
1.5
5.0
rnA
STOP mode
0.2
1.5
mA
Typ
Max
Unit
8
Bit
AVREF
AIREF
Unit
Bit
8
DIA Converter Operation
Ta = -40 to +85'C; AVREF2 = Voo = +5 V ±10%; AVREF3 = vss = 0 v.
Item
Symbol
Conditions
Min
Resolution
Absolute accuracy
AVREF2 = Voo = 5 V;
AVREF3 = Vss = 0 V;
Load conditions: 2 MO, 30 pF
LSB
AVREF2 = 0.75 Voo;
AVREF3 = 0.25 Voo;
Load conditions: 2 MO, 30 pF
LS.B
10
Settling time
Undefined
Analog reference voltage
VAVREF2
0.75Voo
Voo
V
- Analog reference voltage
VAVREF3
0
0.25Voo
V
floS
Reference power input current
AIREF2
0
5
rnA
Reference power input current
AIREF3
-5.0
0
rnA
Output resistance
Ro
24
kO
6-147
II
ttiEC
/-LPD7823x
Figure 21. Interrupt Input Timing
Interrupt Timing Operation
Item
Symbol Conditions Min Max Unit
NMllow-level width .
tWNIL
10
NMI high-level width
tWNIH
10
fLs
INTPO-INTP5Iow-level width
tWITL
24
tCYX
INTPO-INTP5 high-level width
tWITH
24
tCYX
RESET low-level width
tWRSL
10
fLS
RESET high-level width
tWRSH
10
fLS
fLs
NMI
Note: See figures 21 and 22.
INTPOINTP5
Figure 22. Reset Input Timing
REsEr
Data Retention Characteristics
TA = -40 to + 85°C.
Item
Symbol
Conditions
Min
Typ
2.5
Max
Unit
5.5
V
2
15
fLA
5
20
fLA
Data retention voltage
VOOOR
STOP mode
Data retention current
IOOOR
VOOOR=2.5V
VOO rise time
tRVO
200
Voofalitime
tFVO
200
fLs
VOO retention time
(for S:rOP mode setup)
tHVO
0
ms
STOP release signal input time
tOREL
0
ms
Oscillation stabilization wait time
tWAIT
30
ms
VOOOR= 5V±10%
LOW-level input voltage
VIL
High-level input voltage
VIH
Crystal oscillator
Ceramic resonator
5
Specified pins (Note 1)
0
0.1 VOOOR
V
0.9VOOOR
VOOOR
V
Notes:
(1) RESET, P20/NMI, P21I1NTPO, P22 /1NTP1, P23 /INTP2/CI, P2 4 1
INTP3, P~NTP4/ASCK, P26 /1NTP5, P27 /SI, P32 /SCK, P33 /S01
S80, and EA pins.
(2) See figure 23.
6-148
fLS
ms
~EC
pPD7823x
Figure 23. Data Retention Characteristics
Set STOP Mode
t
VDD
VDDDR
tHVD
r----tWAIT
RESET
-----r
tRVD
tFVD
VDDDR
O.8V
NMI
(Release by falling
edge Input)
VDDDR
O.8V
NMI
(Release by rising
edge input)
83ML-5992B
6-149
ttlEC
J,LPD7823x
Timing Dependent on tCYX
Item
Symbol
MiniMax
12MHz
Unit
Min
82
ns
tCYX- 3O
Min
52
ns
tOAR
2tCYX-35
Min
129
ns
Address floattimefrom RD ~
tFAR
tCYX/2-30
"Min
11
ns
Address to data inputtime
tOAIO
(4+2n) tCYX-1OO
Max
228
ns
Max
181
ns
99
ns
X1 input clock cycle time
tCYX
Address setup time to ASTB ~
tSAST
AddresstoRD
ASTB
~
~
delay time
to data inputtime
Calculation Formula
tOSTIO
(3+2n)tCYX- 65
RD ~ to data inputtime
tORID
(2+2n)tCYX-65
Max
ASTB ~ to RD ~ delay time
tOSTR
tCYX-30
Min
52
ns
124
ns
RD t to address active time
tORA
2tCYX-40
Min
RD t to ASTB t delay time
tORST
2tCYX-40
Min
124
ns
124
ns
tWRL
(2+2n)tCYX-40
Min
tWSTH
tCYX-30
Min
52
ns
AddresstoWR ~ delay time
tOAW
2tCYX-35
Min
129
ns
ASTB ~ to data output time
tOSTOO
tCyx+60
Max
142
ns
tOSTW1
tCYX-30
Min
52
ns
tOSTW2
2tCYX-35
(refresh mode)
Min
129
ns
Data setup time to WR t
tSOOWR
(3+2n)tCYX-100
Min
146
ns
Data setup time to WR ~
tSOOWF
tCYX-60
(refresh mode)
Min
22
ns
RD low-level width
ASTB high-level width
ASTB
~
toWR! delay time
WR t toASTB t delay time
tOWST
tCYX-40
Min
42
ns
WR low-level width
tWWL1
(3+2n) tcYX-50
Min
196
ns
tWWL2
(2+2n) tCYX-50
(refresh mode)
Min
114
ns
tOAWT
3tcYX-100
Max
146
ns
tOSTWT
2tCYX-80
Max
84
ns
Address to WAIT! inputtime
ASTB ! to WAIT
~
inputtime
Notes:
(1) n indicates the number of wait states.
6-150
t-iEC
fJ-PD7823x
External Clock Operation
Figure 24. Recommended Oscillator Circuit
Item
C1
d::
15~~
II
C2
15pF
T
~
T
X1
I1PD7823x
Min
Max
Unit
XI input low·level width
tWXL
30
130
ns
XI input high·level width
tWXH
30
130
ns
tXR
0
30
ns
tXF
0
30
ns
tCYX
82
250
ns
XI input rise time
XI input fall time
X2
XI input clock cycle time
Crystal frequency f xx
Symbol
Conditions
= 4 to 12 MHz
83RO·6431A
Figure 26. External Clock Timing
Figure 25. Recommended External Clock Circuit
Clock
X1
>O_~---IX1
HCMOS
Inverters
I1PD7823x
X2
tCyX-----+-/
83ML-5995A
Clock frequency f xx = 4 to 12 MHz
83RD-G432A
6-151
NEe
JJ;PD7823x
j.LPD78P238 PROGRAMMING
Table 3. Pin Functions During EPROM Programming
In the 78P238, the mask ROM of 78234 is replaced by a
one-time programmable ROM (OTP ROM). The ROM is
32K x 8 bits and can be programmed using a generalpurpose PROM writer with a ,...,PD27C256A programming
mode.
Pin
The PA c78P238GC/GJ/L are the socket adaptors used for
configuring the ,...,PD78P238 to fit a standard PROM socket.
Function
POO-PO?
AO-A?
Input pins for PROM write/verify
operations
P50/AS
As
Input pin for PROM write/verify operation
P2 1/INTPO
Ag
Input pin for PROM write/verify operation
P52-P56/A1Q-A14
A 10 -A14
Input pins for PROM write/verify
operations
Data pins for PROM write/verify
operations
Refer to tables 3 through 6 and figures 27 a(1d 28 for l;>pecial information applicable to PROM programming.
P6 S/WR
CE
Strobe data,into,the PROM
OE
Enable a data read from the PROM
P20/NMI
NMI
PROM programming mode is entered by
applying a high voltage to this pin
RESET
RESET
PROM programming mode requires
applying a low voltage to this pin
Vpp
High voltage applied to this pin for
program write/verify
, EA
Voo
Voo
Positive power supply pin
Vss
Ground
Table 4. Summary of Operation Modes for PROM Programming
0 0-07
NMI
RESET
CE
OE
Program write
+12,5V
L
L
H
+12,5V
+6V
Program verify
+12,5V
L
H
L
+12,5V
+6V
Data output
Program inhibit
+12,5 V
L
H
H
+12,5V
+6V
HighZ
Readout
+12,5V
L
L
L
+5V
+5V
Data output
H
-t5V
+5V
HighZ
LlH
+5V
+5V
HighZ
Mode
Output disable
+12,5V
L
L
Standby
+12.5V
L
H
Notes:
When + 12,5 V is applied to Vpp and +6 V to Voo , both CE and OE cannot
be set to low level (L) simultaneously,
6-152
Voo
Data input
fttIEC
j.LPD7823x
TableS. DC Programming Characteristics
TA'" 25 ±5°C, VIP = 12.5 ±0.5 V applied to NMI pin, Vss = 0 V.
Symbol
Symbol*
Max
Unit
High·level input voltage
VIH
VIH
2.4
VDDP +0.3
V
Low-level input voltage
VIL
VIL
-0.3
0.8
V
10
"A
Parameter
Condition
Min
Input leakage current
VUP
Vu
ooS VI oS VDDP
High·level output voltage
VOHI
VOH
IOH=-400"A
2.4
IOH=-IOO"A
VDD-0.7
VOH2
Low·level output voltage
VOL
Output leakage current
ILO
NMI pin high-voltage input current
liP
VDDP power voltage
VPP power voltage
VOH2
VPP power current
V
V
IOH=2.1 mA
VOL
ooS Vo oS VDPP, OE = VIH
VDDP
VPP
VCC
VPP
IDD
Ipp
ICC
Ipp
V
10
"A
±10
"A
5.75
6.0
6.25
V
Program memory read mode
4.5
5.0
5.5
V
Program memory write mode
12.2
12.5
12.8
V
V
VPP = VDDP
Program memory write mode
5
30
mA
Program memory read mode
CE = VIL, VI = VIH
5
30
mA
Program memory write mode
CE = VIL, OE = VIH
5
30
mA
100
"A
Max
Unit
Program memory read mode
*
0.45
Program memory write mode
Program memory read mode
VDDP power current
Typ
Corresponding symbols of the "PD27C256A.
Table 6. AC Programming Characteristics
TA = 25 ±5°C, VIP = 12.5 ±0.5 V applied to NMI pin, Vss = 0 V, VDD = 6 ±0.25 V, Vpp = 12.5 ±0.3 V.
Parameter
AddresssetuptimetoCE l
Symbol
Symbol*
Condition
Min
Typ
tSAC
tAS
2
Data to OE l delay time
tDDOO
tOES
2
"s
Input data setup time to CE l
tSIDC
tDS
2
"s
Address hold time from CE t
tHCA
tAH
2
"s
InputdataholdtimefromCE t
tHCID
tDH
2
Output data hold time to OE t
tHOOD
tDF
0
VppsetuptimetoCE l
tsvPC
tvps
VDDPsetuptimetoCE l
tSVDC
tVDS
Initial program pulse width
tWL1
tpw
0.95
Additional program pulse width
tWL2
topw
2.85
NMI high·voltage input setup time
(vs.CE l)
tspc
"s
"s
130
ns
ms
ms
1.0
1.05
ms
78.75
ms
2
"s
Address to data output time
tDAOD
tACC
CE=OE=V1L
200
ns
CE l to data outputlime
tDCOD
tCE
OE=VIL
200
ns
OE l to data outputlime
tDOOD
toE
CE=VIL
75
ns
Data hold time from OE t
tHCOD
tOF
CE=VIL
0
60
ns
Data hold time from address
tHAOD
tOH
CE=OE=VIL
0
*
ns
Corresponding symbols of the "PD27C256A.
6-153
II
t-IEC
IJ.PD7823x
Figure 27. PROM Write Mode Timing
=>--
I-- tSAC
Data
Input
00-0 7 ~
VIP
NMI
Vil
VPP
VPP
VDDP
-
~
--
Effective Address
~
~IDC_
-
_
tHooD
Data
OUtput
tHCID
i+-
tSIDC ___
-
Data
Input
-II
-
K
tHCA
tHCID
tspc
-- r.~
tsvPC
VDDP + 1
VDDP
VDDP
VIH
-- I-~
--
tSVDC
i-
BE
~
Vil
VIH
-tWl1
tDDoo
---
~lOOOD
_tWl2_
5
OE
Vil
Notes:
VDDP must be applied before applying V pp. It should be removed after removing V PI"
(1)
(2)
VPP must not exceed +13 V,lncludlng overshoot.
83MLos9S68
Figure 28. PROM Read Mode Timing
Effective Address
tHCOD
tHAOD
Hl-Z
6-154
HI-Z
Data Output
fttfEC
/J-PD7823x
PROM Write Procedure
PROM Read Procedure
(1) Connect the RESET pin to a low level and apply
+ 12.5 V to the NMI pin.
(1) Fix the RESET pin to a low level and apply + 12.5 V to
the NMI pin.
(2) Apply +6 V to the Voo pin and + 12.5 V to the Vpp pin.
(2) Apply +5 V to the Voo and Vpp pins.
(3) Provide the initial address.
(3) Input the address ofthe data to be read to pins Ao-A 14 .
(4) Provide write data.
(4) Read mode is entered with a pulse (active low) on both
the CE and OE pins.
(5) Provide 1-ms program pulse (active low) to the CE pin.
(6) This bit is now verified with a pulse (active low) to the
OE pin. If the data has been written, proceed to step 8;
if not, repeat steps 4 to 6. If the data cannot be correctly written after 25 attempts, go to step 7.
(7)
(5) Data is output to the Do to D7 pins.
Classify as defective and stop write operation.
(8) Provide write data and supply program pulse (for
additional writing) for· 3 ms times the number of
repeats performed between steps 4 to 6.
(9) Increment the address.
(10) Repeat steps 4 to 9 until the end address.
6-155
NEe
f.LPD7823x
INSTRUCTION SET
Table 7. Operands (cont)
All microcomputers. in the f1PD7823x family have a 1-byte
instruction lookahead buffer. This allows the first byte of
the next opcode in program memory to be fetched while the
current opcode is being executed. This pipeline architecture allows instruction fetch and excute cycles to overlap.
An instruction can be fetched from program memory while
data is being read from or written to RAMor an 1/0 port.
Symbol
sfrp
Special function register pair:
CROO-CR02, TMO, IFO, MKO, PRO, ISMO
mem
Memory address indirectly addressed
Register indirect mode: [DE], [HL], ]DE+], [HL +], [DE-], [HL-]
Base mode: [DE+by1e], [HL+by1e], [SP+by1e]
Indexed mode: word[A], word[B], word[DE], word [HL]
meml
The advantage of the pipeline is that one instruction can be
executed while another is being fetched, virtually halving
the time required for these two operations and thereby
reducing overall program execution time.
Memory address addressed by means of indirect addressing
group I : [DE], [HL]
saddr
Memory address Indirectly addressed:
FE20H- FFI FH immediate data or label
Operands and Operations
Meaning
saddrp Memory address addressed by means of direct addressing pair:
FE20H- FFI EH immediate data (LSB= 0; odd address) or label
addr16 16-bit address: OOOOH-FEFFH immediate data or label
Refer to tables 7 and 8 for the meanings of symbols in the
operand and operations columns of the Instruction Set
table.
Specify operands in accordance with the rules of operand
representation; for details, refer to the assembler specifications. If two or more description methods are available,
select one. The symbols +, -, #, !, $, I, [ ], and & are
keywords and must be used in conjunction with each
instruction.
When describing immediqte data as a label, use one of the
following modifiers: +, -, #, !, $, I, [ ], and &. Symbols rand
rp can be described in both the function name and absolute
name.
Table 7. Operands
Symbol
+
#
$
&
rl
rp
sfr
6-156
Meaning
addrll
II-bit address: BOOH-FFFH immediate data or label
addr5
5-bit address: 40H-7EH immediate. data or label
word
16-bit data: 16-bit immediate data or label
by1e
B-bit data: B-bit immediate data or label
bit
3-bit data: 3-bit immediate data or label
n
Number of shift bits: 3-bit immediate data (0-7)
RBn
Register bank: RBO-RB3
Table 8. Registers and Flags
Symbol
Meaning
A
A register; B-bit accumulator
X
X register
B
Bregister
C
Cregister
Autoincrement
D
Dregister
Autodecrement
E
E register
Immediate data
H
Hregister
Absolute address
L
Lregister
Relative address
RO-R7
RegistersO to 7 (absolute names)
Bit inversion
AX
Register pair (AX); 16-bit accumulator
Indirect addressing
BC
Register pair (BC)
Subbank
DE
Register pair (DE)
Register
Function name: X, A, C, B, E, D, L, H
Absolute name: RO to R7
HL
Register pair (HL)
RPO-RP3
Register pairs 0 to 3 (absolute names)
Registergroup 1: C, B
Register pair
Function name: AX, BC, DE, HL
Absolute name: RPO to RP3
Special function register:
PO, P2-P7, POH, POL, RTPC, CR10, CRll, CR20, CR21, CR22,
CR30, PMO, PM3, PM5, PM6, PMC3, PUO, CRCO-CRC2, TOC,
TM1-TM3, TMCO, TMC1, PRMO, PRM1, ADM, ADCR, CSIM,
SBIC, SIO, ASIM, ASIS, RxB, TxS, BRGC, STBC (dedicated instruction only), MM, PW, RFM, IFOL, IFOH, MKOL, MKOH, PROL,
PFjOH, IS MOL, ISMOH, INTMO, INTM1, 1ST
PC
Program counter
SP
Stack pointer
PSW
Program status word
CY
Carry flag
AC
Auxiliary flag
Z
Zero flag
RBS1- RBSO Register bank select flags
IE
Interrupt enable flag
STBC
Standby control register
ttiEC
f-1PD7823x
Table 8. Registers and Flags (cont)
Operation· Codes
Symbol
Meaning
( )
Memory contents indicated by address or register contents
in( )
Table 11 defines the symbols used in the operation code
field.
xxH
Hexadecimal number
xH, xL
Higher 8 bits and lower 8 bits of IS-bit register pair
Clocks
The clock field specifies the number of clocks required
under the conditions defined by the four column headings
as follows:
IROM
Program in internal ROM is executed.
IRAM
Program in external ROM is executed and internal
RAM is accessed.
SFR
Program in external ROM is executed and special
function register is accessed.
EM EM Program in external ROM is executed and external
memory is accessed.
Ina shift/rotate instruction, n in the clock field indicates the
number of bits by which data is shifted.
The hyphen (-) indicates a range of values; for example
10-13 means 10, 11, 12, or 13.
The virgule symbol (I) means either/or; for example, alb
means either a or b.
The number of clocks when execution is branched by a
conditional branch instruction is shown after the symbol (I).
The number of clocks for instruction having the saddr or
saddrp operand and when an SFR is accessed with FFOOH
to FFFFH described as saddr or saddrp is shown after the
symbol (I).
Bytes and Clocks
The number of bytes and clocks for instructions with a mem
or &mem operand depends on the particular instruction
and the memory addressing mode (register indirect, base,
or indexed). Table 9 is applicable when the program in
internal ROM is executed (ROM clock column of the Instruction Set table). Table 10 is applicable when the program in external ROM is executed (IRAM, SFR, and
EMEM clock columns).
Flags
The symbols in the flag field have the following meanings.
Blank No change
o
Cleared to 0
1
Setto 1
x
Set or cleared depending on the result
R
Value previously saved is restored
Registers and Register Pairs. The r, rl, and rp operands
are specified in the opcode by one or more bits as shown in
figure 29. For example, 001 as bits R2R1RO (or RsR5R4)
specifies register A.
In the first and second operands are registers or register
pairs; the higher 4 bits of the register specification byte
define the first operand and the lower 4 bits define the second operand. For example, in the MOV A,L instruction
(transfer L register contents to register A), the second byte
of the opcode is obtained from figure 29 as shown below.
InstruCtion
Opcode, Bytes 1 and 2
. MOV r,r
00100100
o RsR5R4 0 R2Rl Ro
MOV A, L
00100100
00010110
Memory Addressing Modes. The 3-bit mem code and the
5-bit mod code are selected from figure 30 according to the
description of mem in the operand field (table 7).
A MOV instruction with register indirect mode specified for
mem is a special 1-byte instruction. When base mode or
indexed mode is specified for mem, the 8-bit or 16-bit
offset data corresponding to byte and word, respectively, is
added from the third byte onward.
The opcode for an &mem or &mem1 operand is modified
by inserting a 01 H code as the first byte preceding the firstbyte code listed in the Instruction Set table. Subsequent
bytes are as shown in the table.
Figure 29. Opcodes for Registers (r, r1, rp)
rn
r1
R2
Rl
R6
RS
RO
reg
0
0
0
0
1
1
1
1
0
0
1
1
0
0
1
1
R4
0
1
0
1
0
1
0
1
RO
X
Rl
A
R2
C
R3
B
E
D
L
H
R4
RS
R6
R7
rp
0
reg
PI
Po
o
C
P2
PI
1
B
P6
Ps
0
0
1
1
0
1
0
1
reg-pair
RPO
AX
RPI
BC
RP2
DE
RP3
HL
83ML·5998A
6-157
n.
1:11
NEe
fLPD7823x
Figure 30. Opcodes for Memory Addressing Modes
(mem, mod)
I~
Mem
0
0
0
0
1
1
0
0
1
1
0
0
1
0110
Register
Indirect Mode
0
1
0
1
0
1
0
0110
Base Mode
0
1010
Index Mode
[DE+)
[DE+byte)
word [DE]
[HL+)
[SP+byte)
word [A)
[DE-)
[HL+byte)
word [HL)
[HL-)
word [B)
[DE]
[HL)
83ML·5999A
Tableg. Bytes and Clocks for Instructions With "mem" and "&mem" Operands; Internal ROM (IROM)
Register Indirect
Mode
[DE+]
[HL+]
[DE-]
[HL-]
[DE]
[HL]
[DE+byte]
[HL+byte]
[SP+byte]
word[A]
word[B]
word[DE]
word[HL]
mem
1/2'
1/2'
3
3
4
&mem
2/3'
2/3'
4
4
5
A,mem
6/8
6/8
8-11
9-12
8-11
8/10
8/10
10-13
11-14
10-13
Instruction
Bytes
Clock
Cycles
MOV
Indexed
Mode
Base Mode
mem,A
A,&mem
&mem,A
XCH
ADD,ADDC,
SUB,SUBC,
AND,OR,
XOR,CMP
A,mem
11-15
9-13
10-15
11-16
10-15
A,&mem
13-17
11-15
12-17
13-18
12-17
A,mem
10/12
8112
9/12
10-13
9-12
A,&mem
12/14
10/14
11114
12-15
11-14
When internal RAM is accessed with an instruction having a mem
operand, the number of bytes is the number before the symbol (I).
6-158
When the external memory (including the SFR area) is accessed, the
number of bytes is the number after the symbol (I).
~EC
,...,PD7823x
Table 10. Bytes and Clocks for Instructions With "mem" and "&mem" Operands; External ROM
(IRAM, SFR, EMEM)
Register Indirect
Mode
[DE+]
[HL+]
[DE-]
[HL-]
[DE]
[HL]
[DE + byte]
[HL + byte]
[SP+byte]
word[A]
word[B]
word[DE]
word[HL]
mem
2-
2-
3
3
4
&mem
3-
3-
4
4
5
A,mem
9/11
6/8
11/13
12/14
14/16
12/14
9111
14/16
15/17
17/19
Instruction
Bytes
Clock
Cycles
MOV
Indexed
Mode
Base Mode
mem,A
A,&mem
&mem,A
XCH
ADD,ADDC,
SUB,SUBC,
AND, OR,
XOR,CMP
A,mem
14/18
12/16
13/17
14/18
16/20
A,&mem
17/21
15/19
16/20
17/21
19/23
A,mem
13/15
11/13
12/14
13/15
15/17
A,&mem
16/18
14/16
15/17
16/18
18/20
When [DE], [HLj, [DE+ j, [HL + j, [DE-j, or [HL-j is specified as the mem
operand of a MOV instruction, the instruction is used as a dedicated
I-byte type. When the operand is &mem, the instruction is 2-byte.
Table 11. Opcode Symbols
Symbol
Meaning
Bn
Immediate data corresponding to bit
Nn
Immediate data corresponding to n
Data
8-bit immediate data corresponding to byte
LowlHigh Byte
16-bit immediate data corresponding to word
Saddr-offset
Lower 8·bit offset data of 16- bit address corresponding
tosaddr
Sfr·offset
Lower 8-bit offset data of 16-bit address of special
function register (sfr)
Low/High Offset 16-bit offset data corresponding to word in indexed
addressing
LowlHigh Addr
16-bit immediate data corresponding to addr16
jdisp
Signed 2's complement data (8 bits) indicating relative
address distance between first address of next
instruction and branch destination address
fa
Lower 11 bits of immediate data corresponding to addr11
ta
Lower 5 bits of immediate data corresponding to
(addr5xdis)
6-159
t\'EC
J.LPD7823x
Instruction Set
Clocks
Mnemonic Operand
Operation
Bytes
IROM
IRAM
2
2
6
Flags
SFR EMEM ZACCY
Operation Code (Bits 7-0)
Bytes B1 thru B5
8-Blt Data Transfer
MOV
r,#byte
r ... byte
1 0
1
R2 R1 Ro
Data
saddr,#byte
(saddr) ... byte
3
3/5
9
9
12
0 0
0 1 0
Saddr-offset
Data
sfr,#byte
sIr ... byte
3
5
9
12
0 0
0
0 1 1
SIr-offset
Data
r,r
r ... r
2
2
6
A,r
A ... r
2
3
A,saddr
A ... (saddr)
2
2/4
6
6
saddr,A
(saddr) ... A
2
3/5
6
8
0 0 1 0
0 1 0 0
0 Rs Rs R4
0 R2 R1 Ro
1
9
1 0
0 0
1
0 R2 R1 Ro
0
0 0 0 0
Saddr-offset
0 0 1 0
0 0 1 0
Saddr-offset
sad dr, saddr
(saddr) ... (saddr)
3
3-7
9
0 0 1 1
1 0 0 0
Saddr-offset
Saddr-offset
A,slr
A ... sIr
2
4
0 0 0 1
6
0 0 0 0
SIr-offset
slr,A
sIr ... A
2
5
0 0 0 1
6
0 0 1 0
SIr-offset
A,mem
A+-(mem)
1-4
6-12
6-14
8-16
8-16
• 0
mem
0
mod
0 0 0
0
mem
0 0 0 0
Low Offset
High Offset
A,&mem
A+-(&mem)
2-5
8-14
9-17
11-19
11-19
• 0 0 0 0
0
mem
0 0 0 0
0 0 0
mod
0 0 0
0
0 0 0 1
0
mem
0 0 0 0
Low Offset
High Offset
Note:
• If [DEl, [HL1, [DE+l, [DE-l, [HL+l or [HL-l is described as mem, these
instructions are used as dedicated 1-byte codes. II the register name is
described as &mem, the instructions are used as dedicated 2-byte
codes.
6-160
tvEC
/-LPD7823x
Instruction Set (cont)
Clocks
Mnemonic Operand
Operation
Bytes IROM
IRAM
Flags
Operation Code (Bits 7-0)
Bytes B1 thru B5
SFR EMEM ZACCY
8-BIt Data Trans'er (cant)
MOV
mem,A
(mem) ... A
1-4
6-12
6-14
B·16
B-16
• 0
0
0
0 0 0
mem
mod
o
mem
0 0 0
Low Offsel
HighOffsel
·&mem,A
(&mem) ... A
2·5
B-14
9-17
11-19
11-19
• 0 0 0 0
0
0
0 0 0 0
0 0
0 0 0 1
0
mem
o
0
0
mod
0
o
mem
0 0 0
Low Offset
High Offset
A,!addr16
A ... (!addr16)
4
6/B
14
0 0 0 0
16
1 1
0 0
o
0 0 0
Low Addr
High Addr
A,&!addr16
A ... (&laddr16)
5
8110
o
0
0 0 0
0 0 0
0
0 0
0 0
19
1
0 0 0 0
Low Addr
High Addr
!addr16,A
(!addr16) ... A
4
6/B
14
17
0 0 0
0
1 0 0
1
1
o
0 0
Low Addr
High Addr
&!addr16,A
(&laddr16) ... A
5
B/10
20
o
0
0 0 0
0
0 0
1
,
0 0 0
0 0
0 0 0
Low Addr
High Addr
PSW,#byle
PSW ... byte
3
3
9
9
9
x x x
0 0
1 0
0
1 1
0
Data
PSW,A
PSW ... A
2
2
6
6
6
x x x 0
0 0
0 0
A,PSW
A ... PSW
2
2
6
6
6
0
0 0
0 0 0 0
0
0
0
6-161
II
t-IEC
t-tPD7823x
Instruction Set (cont)
Clocks
Mnemonic Operand
Bytes IROM
Operation
IRAM
Flsgs
SFR EMEM ZACCY
Operation Code (Bits 7-(1)
Bytss B1 thru B5
8·BIt Data Trans'er (cont)
XCH
A,r
A_r
r,r
r_r
A,mem
A_(mem)
4
4
1 o 1
1 R2R1 Ro
2
3
6
0 o 1 ;J
o 1 o 1
o RaRsR4
o R2 R1 Ro
2-4
9-16
12-16
16-20
mod
000
0
o 1 o 0
mem
Low Offset
High Offset
A,&mem
A_(&mem)
3-5
11-18
15-19
19-23
0 0 0 0
0
o 0 0
mod
0 0 0
o 1 0 0
mem
Low Offset
HighOflset
A,seddr
A-(seddr)
2
4/8
6
0 0 1 0
o 0 o 1
Saddr-offset
A,sfr
A_sfr
3
6/10
13
0 0 o 0
o 0 0
0 0 1 0
o 0 0
Sfr-offset
saddr ,saddr
(saddr) _
(saddr)
3
6-14
10
0 0 1 1
1 0 0
Saddr-offset
Saddr-offset
f6-BIt Data Transfer
MOVW
rp,#word
rp
~word
3
3
o 1 1 0
9
o P2 P1 0
Low Byte
High Byte
saddrp,#word
(saddrp)
~
word
4
4/8
12
12
18
o 0 o 0
1 1 o 0
Saddr-offset
Low Byte
High Byte
sfrp,#word
sfrp
~
word
4
8
12
o 0 o 0
1 0 1 1
Saddr-offset
Low Byte
High Byte
rp,rp
2
rp~rp
4
o 0 1 0
6
AX,seddrp
AX
~
(saddrp)
2
6110
8
12
Ps
o 1 0 0
0
1 P2 P1 0
0 0 o 1
1 1 0 0
o Pa
Saddr-offset
saddrp,AX
(saddrp)
~
AX
2
519
8
12
0 0 o 1
1 0
Saddr-of/set
6-162
0
NEe
fJ-PD7823x
Instruction Set (cont)
Clocks
Mnemonic Operand
Operation
Bytes
IROM
AX +- slrp
2
10
IRAM
SFR
Flags
EM EM
ZACCY
Operation Code (Bits 7-0)
Bytes B1 thru B5
16-Blt Data Transfer (cant)
MOVW
AX,slrp
o
12
0
0
1
o
0
0
0
1 1
1
SIr-offset
slrp,AX
slrp +- AX
2
12
9
0
0 0
1
o
SIr-offset
AX,mem1
AX+- (mem1)
2
9-15
12
16
16
0
0 0 0
0
AX,&mem1
mem1,AX
&mem1,AX
AX +- (&mem1)
3
(mem1) +- AX
2
(&mem1) +- AX
3
11-17
8-14
10-16
15
11
14
19
15
18
19
15
0
0 0
0
0
0
0 0 0
0
0 0
0
0
0
0
0
0
0 0
0 0 0
0
0
0
0
0
0 0 0
0
1
Ro
0 0 0 0
0 0
18
0
0
0 0
Ro
0
1
Ro
1
Ro
8-Blt Operation
ADD
A,#byte
A,CY +- A + byte
2
2
x
6
x
x 1 0 1 0
0
0 0
Data
saddr, #byte
(saddr),CY +- (saddr)
+ byte
3
317
9
x
11
x x 0 1
0
1 0 0
0
Saddr-offset
Data
slr,#byte
slr,CY +- sIr + byte
4
x x x 0 0 0 0
14
9
0
0 0
0
0 0 0
0
SIr-offset
Data
r,r
r,CY +- r + r
2
3
x
7
x x
o
0 0
0 Rs R5 R4
A,saddr
A,CY +- A + (saddr)
2
3/5
6
7
B
x
x
x
0 0
1
0 0 0
0 R2 R, Ro
1 0 0
0
Saddr-offset
A,slr
A,CY +- A + sIr
3
7
10
x x x 0 0 0 0
0 0 0
0 0
0 0
0
1 0 0
0
SIr-offset
saddr,saddr
(saddr),CY +- (saddr)
+ (saddr)
3
3-9
9
11
x
x x 0 1 1 1
Saddr-offset
Saddr-offset
6-163
B
NEe
/J-PD7823x
Instruction Set (cont)
Clocks
MnemOnic' Operand
Operation
Flags
Bytes
IROM
IRAM
SFR EMEM ZACCY
2-4
8-13
11-15
13-17
Operation Code (Bits 7-0)
Bytes B1 thru B5
8-8it Operation (cont)
ADD
A,mem
A,CY ... A + (mem)
13-17
x x x
0
0
0
0
mod
mem
1 0 0
0
Low Offset
High Offset
A,&mem
A,CY ... A + (&mem)
3-5
10-15
14-18
16-ID
16-20
x x x
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
1
mod
1 0
mem
Low Offset
High Offset
ADDC
A,#byte
A,CY ... A + byte
+ CY
2
2
x x x
6
1 0
1 0
1 0
Data
saddr,#byte
(saddr),CY ... (saddr)
+ CY
+ byte
3
3/7
9
x x x
11
0
1
0
0
Saddr-offset
Data
sfr,#byte
sfr,CY ... sfr + byte + CY
4
x x x
14
9
0
0
0
0
0
0 0
0
0
0
0
0
0
Sfr-offset
Data
r,r
r,CY ... r + r + CY
2
3
x x x
7
0
0
0 R6 Rs R4
A,saddr
A,CY ... A + (saddr)
+ CY
2
2/5
6
7
8
x x x
1 0
1
0
1
0 R2 R1 Ro
0
0
1
Saddr-offset
A,sfr
A,CY ... A + sfr + CY
3
7
x x x
10
0
0
0
0
0
0
0
0
0
0
0
SIr-offset
saddr,saddr
(saddr),CY ... (saddr)
+ CY
+ (saddr)
3
3-9
9
x x x
11
0
1
1
1
1 0 0
1
Saddr-offset
Saddr-offset
A,mem
A,CY ... A + (mem)
+ CY
2-4
8-13
11-15
13-17
13.17
x x x
0
0
0
mod
0
mem
1 0
0
1
0
1
0
0
Low Offset
High Offset
A,&mem
A,CY ... A + (&mem)
+ CY
3-5
10-15
14-18
16-ID
16-20
x x x
0
0 0
0
0
0
0
0
0 0
mod
mem
1 0
Low Offset
High Offset
6-164
t¥EC
f.LPD7823x
Instruction Set (cont)
Clocks
Mnemonic Operand
Operation
Bytes
IROM
IRAM
2
2
6
Flags
SFR EMEM ZACCY
Operation Code (Bits 7-0)
Bytes B1 thru B5
8-Blt Operation (cont)
SUB
A,#byte
A,CY .. A-byte
x x x 1 0 1 0
0 1 0
Data
saddr,#byte
(saddr),CY .. (saddr) - (byte)
3
317
9
x x .)( 0 1
11
0 1 0
0
Saddr-offset
Data
slr,#byte
slr,CY .. sIr - byte
4
14
9
x x x 0 0 0 0
0 0 0
0
0
0
0
SIr-offset
Data
r,r
r,CY .. r-r
2
3
x x x 1 0 0 0
7
0 Rs Rs R4
A,saddr
A,CY .. A-(saddr)
2
3/5
6
7
8
x x x
0 1 0
0 R2 R1 Ro
0 0 1
0 1 0
Saddr-offset
A,slr
A,CY .. A-sIr
3
7
10
x x x 0 0 0 0
0 0 0
0
0 0
0
SIr-offset
saddr,saddr
(saddr),CY .. (saddr) - (saddr)
3
3-9
9
11
x x x 0 1 1 1
1 0 1 0
Saddr-offset
Saddr-offset
A,mem
A,CY .. A-(&mem)
2-4
8-13
11-15 13-17 13-17 x
x x 0 0 0
0
mod
1 0 1 0
mem
Low Offset
High Offset
A,&mem
A,CY .. A-(&mem)
3-5
10-15
14-18 16-20
16-20 x
x x 0 0 0 0
0 0 0
mod
0 0 0
0
1 0 1 0
mem
Low Offset
High Offset
SUBC
A,#byte
A,CY .. A-byte-CY
2
2
x x x 1 0
6
0 1 1
0
Data
saddr,#byte
(saddr),CY ...(saddr) -byte-CY
3
3/7
9
11
x x x 0 1
0 1 1
0
Saddr-offset
Data
sfr,#byte
sfr,CY .. slr-byte-CY
4
9
14
x x x 0 0 0 0
0
0 0 0
0
0
SIr-offset
Data
6-165
II
t¥EC
fLPD7823x
Instruction Set (cont)
Clocks
Mnemonic Operand
Operation
Bytes
IROM
IRAM
2
3
7
Flags
SFR EMEM ZACCY
Operation Code (Bits 7-0)
Bytes B1 thru B5
8-Blt Operation (cant)
SUBC
r,r
A,saddr
r,CY ... r-r-CY
A,CY ... A-(saddr)-CY
2
3/5
6
x
7
8
x
x
x
x
1 0 0 0
0 1 1
0 As As A4
0 A2 A1 Ao
0 0 1
0 1 1
x
Saddr-offset
A,sfr
A,CY ... A-sfr-CY
3
x
10
7
x
x
0 0 0 0
0 0 0
0 0
0
Sfr-offset
saddr,saddr
(saddr),CY ... (saddr) - (saddr)
-CY
3
3-9
9
x
11
x
x
0 1 1 1
1 0 1 1
Saddr-offset
Saddr-offset
A,mem
A,CY ... A-(mem)-CY
2-4
8-13
11-15
13-17
13-17
x
x x 0 0 0
mod
mem
0
1 0 1 1
Low Offset
High Offset
A,&mem
A,CY ... A-(&mem)-CY
3-5
10-15
14-18
l&aJ
16-20
x
x
x
0 0 0 0
0 0 0 1
mod
0 0 0
0
1 0 1 1
mem
Low Offset
High Offset
AND
A,#byte
A ... A"byte
2
2
x
6
1 0
0
1 0 0
Data
saddr, #byte
(saddr) ... (saddr)" byte
3
3/7
9
x
11
0 1
0
0 0
Saddr-offset
Data
sfr,#byte
sfr ... sfr "byte
4
9
14
0 0 0 0
0
0 0 0
0
0 0
Sfr-offset
Data
r,r
A,saddr
r ... r" r
A ... A"(saddr)
2
2
3
3/5
x
7
6
7
8
x
0 0 0
1 0 0
0 As As A4
0 A2 A1 Ao
0 0 1
1 0 0
Saddr-offset
A,sfr
A ... A"(sfr)
3
7
10
x
0 0 0 0
0 0 0
0 0
0 0
Sfr-offset
saddr,saddr
(saddr) ... (saddr)" (saddr)
3
3-9
9
11
x
0 1 1 1
1 1 0 0
Saddr-offset
Saddr-offset
6-166
t\'EC
f.LPD7823x
Instruction Set (cont)
Flags
Clocks
Mnemonic Operand
Operation
Bytes
IROM
IRAM
SFR EMEM ZACCY
2-4
8-13
11-15
13-17
Operation Code (Bits 7-(»
Bytes B1 thru B5
8-Blt Operation (cont)
AND
A,mem
A ... AA(mem)
13-17
x
0 0 0
0
mod
1 1 0 0
mem
Low Offset
High Offset
A,&mem
A ... AA(&mem)
3-5
10-15
14-18 162)
16-20
x
0 0 0 0
o
0 0 0
1 1 0 0
mem
0
0 0
mod
Low Offset
High Offset
OR
A,#byte
A ... AVbyte
2
2
x
6
1 0
1 0
0
Data
saddr,#byte
(saddr) ... (saddr) V byte
3
3/7
9
x
11
0 1
1 0
0
Saddr-offset
Data
slr,#byte
sIr ... sIr V byte
4
x
14
9
0 0 0 0
0
0 0 0
0
0
SIr-offset
Data
r,r
r ... rVr
2
3
o
x
7
0 0
0 Rs Rs R4
A,saddr
A ... A V (saddr)
2
3/5
6
7
8
x
1 1 0
0 R2 R1 Ro
0 0 1
1 0
Saddr-offset
A,sfr
A ... AVslr
3
7
x
10
0 0 0 0
0 0 0
0
0 0
SIr-offset
saddr,saddr
(saddr) ... (saddr)V (saddr)
3
3-9
9
0 1 1 1
11
1 1 1 0
Saddr-offset
Saddr-offset
A,mem
A ... AV(mem)
2-4
8-13
11-15
13-17
13-17
x
mod
0 0 0
0
mem
1 1 1 0
Low Offset
High Offset
A,&mem
A ... AV(&mem)
3-5
10-15
14-18 162)
16-20
x
0 0 0 0
0 0 0
0
o
0 0 1
mod
mem
1 1 1 0
Low Offset
High Offset
6-167
rI
ftlEC
/-LPD7823x
Instruction Set (cont)
Clocks
Mnemonic Operand
Operation
Bytes
IROM
IRAM
2
2
6
Flags
SFR EMEM ZACCY
Operation Code (Bits 7-0)
Bytes B1 thru 85
8·Blt Operation (cont)
XOR
A,#byte
A+- A .....byte
x
1 0
1 0
1 0
1
Data
saddr,#byte
(saddr) +- (saddr) ..... byte
3
3/5
9
x
11
0 1
0 1
0
Saddr-offset
Data
slr,#byte
sIr+- slr..... byte
4
7
x
14
0 0 0 0
0 0 0
0
0
0
SIr-offset
Data
r,r
r+-r¥r
2
3
x
7
a
A,saddr
A+- A ..... (saddr)
2
3/5
6
7
8
a a
0
Rs Rs R4
a a
x
1
a
a
1
R2 R1 Ro
1
1
a
1
Saddr-offset
A,slr
A+- A ..... (slr)
3
7
saddr,saddr
(saddr) +- (saddr)¥(saddr)
3
3-9
x
10
a a a a
a a
a a a
a
SIr-offset
9
a
11
1
1 1
1 1
a
1
a
1
a
1
a
1
Saddr-offset
Saddr-offset
A,mem
A+- A ..... (mem)
2-4
8-13
II-IS
13-17
13-17
x
a
a
a
0
mod
mem
1
1
Low Offset
High Offset
A,&mem
A +- A-¥(&mem)
3-5
la-IS
14-18
l&aJ
16:20
x
a a a a
a a a
a mem
a
0
mod
1
1
Low Offset
rlighOffset
CMP
A,#byte
A-byte
2
2
x x x 1
6
a
a
1 1 1
Data
saddr,#byte
(saddr) - byte
3
3/5
9
11
x x x 0 1
a
1 1
Saddr-offset
Data
sfr,#byte
sIr-byte
4
7
14
x x x
a
a
0
a a
a
0
SIr-offset
Data
6-168
a a
NEe
J.LPD7823x
Instruction Set (cont)
Flags
Clocks
Mnemonic Operand
Operation
Bytes
IROM
IRAM
2
3
7
SFR EMEM ZACCY
Operation Code (Bits 7-0)
Bytes B1 thru B5
8-8it Operation (cont)
CMP
r,r
A,saddr
r-r
A-(saddr)
2
3/5
6
x x x
7
8
0
o
0
1 1 1
0 R6 R5 R4
0 R2 R1 Ro
0 0 1
1 1 1
x x x
Saddr-offset
A,slr
A-sir
3
7
x x x 0 0 0 0
10
0 0 0
0 0
Sir-offset
saddr,saddr
(saddr) - (saddr)
3
3-7
9
x x x 0 1 1 1
11
1 1 1 1
Saddr-offset
Saddr-offset
A,mem
2-4
A-(mem)
8-13
11-15 13-17
13-17 x
x x 0 0 0
0
mod
1 1 1 1
mem
Low Offset
High Offset
A,&mem
3-5
A-(&mem)
10-15
14-18 1&2)
16-20
x x x 0 0 0 0
0 0 1
1 1 1 1
mem
0
o
mod
0 0 0
Low Offset
High Offset
16-8it Operation
ADDW
AX,#word
AX,CY .. AX + word
3
4
x x x 0 0 1 0
9
1 1 0 1
Low Byte
High Byte
AX,rp
AX,saddrp
AX,CY .. AX
AX,CY ... AX
+ rp
+ (saddrp)
2
2
6
7/11
x x x
8
9
13
0 0 0
0 0 0
0 0 0 0
1 P2 P1 0
x x x 0 0 0
1 1 0
Saddr-offset
AX,slrp
AX,CY ... AX + slrp
3
13
16
x x x 0 0 0 0
0 0 0
0 0 0
0
Sir-offset
SUBW
AX,#word
AX,CY .. AX-word
3
4
x x x
9
o
0 1 0
1 1 1 0
Low Byte
High Byte
AX,rp
AX,saddrp
AX,CY ... AX-rp
AX,CY ... AX-(saddrp)
2
2
6
7/11
x x x
8
9
13
o
0
1 0 1 0
0 0 0 0
1 P2 P1 Po
0
x x x 0 0 0
1 1 1 0
Saddr-offset
6-169
B
~EC
fJ.PD7823x
Instruction Set (cont)
Flags
Clocks
Mnemonic Operand
Operation
Bytes
IROM
3
13
IRAM
SFR EMEM ZACCY
Operation Code (Bits 7-0)
Bytas B1 thru B5
16-81t Operation (cont)
SUBW
AX,slrp
AX,CY +- AX-slrp
16
x
x
x
0 0 0 0
0 0 0
0 0 0
0
Sir-offset
CMPW
AX,#word
AX-word
3
3
x
9
x
x
o
0 1 0
1 1 1 1
Low Byte
High Byte
AX,rp
AX,saddrp
AX-rp
AX-(saddrp)
2
2
5
6/10
7
8
x
12
x
x
x
x
x
0
o
0
1
0 0 0 0
1 P2 P1 0
0 0 0
1 1 1
Saddr-offset
AX,slrp
AX-slrp
3
15
12
x
x
x
0 0 0 0
0 0 0
0 0 0
Sir-offset
Multiplication! Division
MULU
AX +- Axr
AX(quotient), r (remainder) +AX+r
DIVUW
2
2
22
71
0 0 0 0
24
76
0 1 0 1
0 0 0 0
R2 R1 Ro
0 0 0 0
0 1 0 1
0 0 0
R2 R1 Ro
Increment! Decrement
INC
r +- r+ 1
saddr
(saddr) +- (saddr) + 1
2
2
3
2/6
6
2
3
2/6
6
7
x
x
x
x
x
x
x
x
0 0
0 0
0
o
R2 R1 Ro
0 1 1 0
Saddr-offset
r +- r-1
DEC
2
7
0 0
0 0
1 R2 R1 Ro
0
0 1 1 1
saddr
(saddr) ... (saddr) - 1
INCW
rp
rp+-rp+1
3
3
0
0 0
DECW
rp
rp+-rp-1
3
3
0
0 0
Saddr-offset
0
P1 Po
P1 Po
Shift! Rotate
ROR
r,n
(CY,r7 +- ro, rm-1 +- 'm)
xntimes, n=0-7
2
3+2n
5+2n
x
ROL
r,n
(CY,ro'" '7, rm+1 ... rm)
xntimes, n=0-7
2
3+2n
5+2n
x
6-170
0 0 1 1
0
o
0 0
0 1 N2 N1
No R2 R1 Ro
0 0 1 1
000 1
0
No R2 R1 Ro
N2 N1
t-IEC
fLPD7823x
Instruction Set (cont)
Clocks
Mnemonic Operand
Operation
Flags
Bytes
IROM
IRAM
SFR EMEM ZACCY
(CY +- ro, r7 +- CY, rm-1 +- rm)
xntimes, n=0-7
2
3+2n
5+2n
x
(CY +- r7, ro +- CY, rm+1 +- rm)
xntimes, n=0-7
2
(CY +- ro, r7 +- 0, rm-1 +- rm)
xntimes, n=0-7
2
(CY +- r7, ro +- 0, rm+1 +- rm)
xn times, n=0-7
2
(CY +- rpo, rp15 +- 0, rPm-1 +rPm) xn times, n=0-7
2
(CY +- rP15,rPO +- 0,rPm+1 +rPm) xn times, n=0-7
2
A3 -0 +- (mem1b_o, (meml)7_4
+- A3_0,(mem113_0 +- (meml)7-4
2
A3-0 +- (&mem1 13_0, (&meml)7-4
+- A3-0, (&meml 13-0 +(&meml17_4
3
Operation Code (Bits 7-0)
Bytes B1 thru B5
Shift/Rotate (cont)
RORC
ROLC
SHR
SHL
SHRW
SHLW
ROR4
r,n
r,n
r,n
r,n
rp,n
rp,n
meml
&meml
ROL4
3+2n
3+2n
5+2n
x
5+2n
x
0
x
0 0
1
1
0
o N2 N1
0
0
0
0 N2N1
0
0
1
1
1
1
o N2 N1
3+2n
5+2n
x
0
x
0
0
1
1
0 N2 N1
3+3n
x
5+3n
0
x
0
0
1
1
N2 N1
3+3n
5+3n
x
0
x
0
0
1
1
N2 N1
24
26
26
29
34
37
34
37
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0 0
27
35
35
0
0
0
&meml
A3-0 +- (&meml)7-4, (&meml)3-Q
+- A3-0, (&meml17_4 +(&memlh_o
3
27
30
38
38
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
1
No R2 R1 Ro
0
25
0
No R2 R1 Ro
0
2
0
No R2 R1 Ro
0
A3-0 +- (meml)7_4, (meml)3_0
+- A3_0,(meml)7_4 +- (meml)3-Q
0
No R2 R1 Ro
0
meml
0
No R2 R1 Ro
0
0
0
No R2 R1 Ro
0
1 0
1
R1 0
0
0
0
R1 0
0
1 0
0
0
0
0
0 0
0
0
0
1
R1 0
0
0
R1 0
6-171
m
NEe
/-LPD7823x
Instruction Set (cont)
Clocks
Mnemonic Operand
Operation
Bytes
IROM
IRAM
Flags
SFR EM EM ZACCY
Operation Code (Bits 7-0)
Bytes B1 thru B5
BCD Adjustment
ADJBA
Decimal adjust accumulator after
addition
ADJBS
Decimal adjust accumulator after
addition
3
3
x x x 0 0 0 0
-t
3
3
x x x 0 0 0 0
3
517
0
Bit Manipulation
MOVl
CY,saddr.bit
CY +- (saddr bit)
9
9
x 0 0 0 0
11
0 0 0 0
0 0 0
0 B2 B1 Bo
Saddr-offset
CY,slr.bit
CY +- slr.bit
3
9
7
x
0 0 0 0
0 0 0
0 0 0 0
B2 B1 Bo
SIr-offset
CY,A.bit
CY +- Abit
2
5
x 0 0 0 0
7
0 0 0
CY,X.bit
CY +- X.bit
2
5
7
0 0
1 1
0
B2 B1 Bo
x 0 0 0 0
0 0 1 1
0 0 0
o B2 B1 Bo
0
SIr-offset
CY,PSW.bit
CY +- PSW.bit
2
5
x 0 0 0 0
7
0 0 0 0
saddr.bit,CY
(saddrbit) +- CY
3
8112
12
14
14
0 0 1 0
0 B2 B1 Bo
0 0 0
0 0 0 0
0 0 0
0 B2 B1 Bo
Saddr-offset
sfr.bit,CY
sIr. bit +- CY
3
12
14
0 0
0 0
0 0 0
0 0 0
B2 B1 Bo
SIr-offset
Abit,CY
Abit +- CY
2
8
10
0 0 0 0
0 0 1 1
0 0 0
X.bit,CY
X.bit ... CY
2
8
10
B2 B1 Bo
0 0 0 0
0 0 1 1
0 0 0
o B2 B1 Bo
SIr-offset
PSW.bit,CY
ANDl
CY,saddr.bit
PSW.bit +- CY
CY ... CY II (saddr.bit)
2
3
7
517
9
9
11
x x
0 0
0 0 0
0 B2 B1 Bo
x 0
0 0 0
0 0
0
0 0 0
0 B2 B1 Bo
Saddr-offset
6-172
1 0
0 0 0 0
t\'EC
j.LPD7823x
Instruction Set (cont)
Clocks
Mnemonic Operand
Operation
Bytes IROM
IRAM
Flags
SFR EMEM ZACCY
Operation Code (Bits 7-0)
Bytes B1 thru B5
Bit Manipulation (cont)
AND1
CY,Isaddr.bit
CY ... CY /\ (saddr.bit)
3
517
9
11
x 0 0 0 0
0 0
0 0 0
0 B2 Bl Bo
SIr-offset
CY,slr.bit
CY ... CY /\slr.bit
3
11
7
x 0 0 0 0
0 0 0
0
a
B2 Bl Bo
a
a
a
a
a
a
a
a
a
a
a
a
a a a
a
a a 0
a
a
0 a a
a
a a a
a
a
0 a a
1
a
SIr-offset
CY,Islr.bit
CY,A.bit
CY,IAbil
CY ... CY /\slr.bit
CY ... CY /\Abit
CY ... CY /\ Abil
3
2
2
11
7
5
5
x
x
7
x
7
CY,X.bit
CY ... CY /\X.bit
2
5
7
x
CY,IX.bit
CY ... CY /\ X.bit
2
5
7
x
CY,PSW.bil
CY ... CY /\ PSW.bit
2
5
CY,IPSW.bit
CY ... CY /\ PSW.bit
2
7
7
5
x
0
a a a
0 1 0
a a a
a
a a a a
a
a a
x 0
0
OR1
CY,saddr.bit
CY ... CY V (saddr.bit)
3
517
9
11
x
0
a a
B2 Bl Bo
0
a
1
1
B2 Bl Bo
a a
1
1
B2 Bl Bo
a a 1 1
a B2 Bl Bo
a 0 1 1
a B2 Bl Bo
a a 1 0
a B2 Bl Bo
a a 1 a
a B2 Bl Bo
0 a a
0 B2 Bl Bo
Saddr-offset
CY,lsaddr.bit
CY ... CYV(saddr.bit)
3
517
9
11
x
a a a a
a
0
a
a
0
a
B2 Bl Bo
SIr-offset
CY,slr.bil
CY ... CYVslr.bit)
3
7
11
x 0 0
0
a a
a
a a a
B2 Bl Bo
SIr-offset
6-173
m
ttlEC
j.LPD7823x
Instruction Set (cont)
Clocks
Mnemonic Operand
Operation
Bytes
IROM
3
7
IRAM
Flags
SFR EMEM Z'ACCY
Operation Code (Bits 7-0)
Bytes Bl thru B5
Bit Manipulation (cont)
ORl
CY/slr.bit
CY .... CY V sIr. bit
11
x 0 0 0 0
0
CY,A.bit
CY,/A.bit
CY .... CYV A.bit
CY .... CYV A.bit
2
2
5
5
1 0 1
x 0 0 0 0
7
7
lB2 B,Bo
0 0 1
1
0 1 0 0
B2 B, Bo
x 0 0 0 0
0 0 1 1
0
1 0 1
1 B2 B, Bo
0 0 1 1
CY,X.bit
CY .... CYVX.bit
2
5
7
x 0 0 0 0
0
o B2 B, Bo
CY,/X.bit
CY .... CYVX.bit
2
5
7
x 0 0 0 0
0 0 1 1
1
o B2 B, Bo
CY,PSW.bit
CY .... CY V PSW.bit
2
5
7
x 0 0 0 0
0 0 1 0
CY,/PSW.bit
CY .... CYVPSW.bit
2
5
7
x 0 0 0 0
0
0
0
0
0 1 0 0
0
XORI
1 0 0 0
CY,saddr.bit
CY .... CY ..... (saddr.bit)
3
5/7
9
11
1 0
o B2 B, Bo
0
1
,
0
0 B2 B, Bo
x 0 0 0 0
0
0
0
0
0 0
0 B2 B, Bo
Saddr-offset
CY,slr.bit
CY .... CV ..... slr.bit
3
11
7
x 0 0 0 0
0
1 0
1 0 0 0
1 B2 B, Bo
Slr-olset
CY,A.bit
CY .... CY .....A.bit
2
5
x 0 0 0 0
7
0
CY,X.bit
CY .... CY .....X.bit
2
5
x 0 0 0 0
7
0 1 1 0
CY,PSW.bit
SETI
saddr.bit
CY .... CY ..... PSW.bit
(saddr.bit) .... 1
2
2
5
3/7
7
6
0 0 1 1
1 1 0
x 0 0 0 0
B2 B, Bo
0 0
1 1
0 B2 B, Bo
0 0
1 0
0 1 1 0
o B2 B, Bo
1 0 1 1
OB2 B,Bo
Saddr-offset
slr.bit
sIr. bit .... 1
3
10
14
0 0 0 0
1 0 0 0
1 0 0
1 B2 B, Bo
0
SIr-offset
6-174
t-IEC
fJ-PD7823x
Instruction Set (cont)
Clocks
Mnemonic Operand
Operation
Bytes IROM
IRAM
Flags
SFR EMEM ZACCY
Operation Code (Bits 7-0)
Bytes B1 thru B5
Bit Manipulation (cont)
SEn
Abit
X.bit
PSW.bit
CLRl
saddr.bit
A.bit ... l
X.bit ... 1
PSW.bit ... l
(saddr.bit) ... 0
2
2
2
2
6
6
8
8
5
6/10
0 0 0 0
7
0 0
1 1
1 0 0 0
1 B2B1 Bo
0 0 0 0
o 0
1 0 0 0
0 B2 B1 Bo
1 1
x x x 0 0 0 0
0 0 1 0
1 0 0 0
0 B2 B1 Bo
1 0
0 B2 B1
6
0
Be
Saddr-offset
sIr. bit
slr.bit ... 0
3
10
14
0 0 o 0
1 0 0 0
1 0 0 1
1 B2B1 Bo
SIr-offset
A.bit
X.bit
PSW.bit
NOTl
saddr.bit
A.bit ... 0
X.bit ... 0
PSW.bit ... 0
(saddr.bit) ... 0 (saddr.bit)
2
2
2
3
6
6
8
8
5
6/10
7
10
1 1
0 0 0 0
o 0
1 0 0
1 B2B1 Bo
0 0 0 0
o 0
1 0 0 1
o B2B1 Bo
1 1
x x x 0 0 0 0
o 0 1 0
1 0 0 1
0 B2 B1 Bo
o 0 0 0
1 0 o 0
0
0 B2 B1 Bo
14
1 1
Saddr-offset
slr.bit
slr.bit ... slr.bit
3
10
14
0 0 0 0
1 000
0 1 1 1
1 B2B1 Bo
SIr-offset
A.bit
A.bit ... A bit
2
6
0 0 0 0
8
X.bit
X.bit ... X.bit
2
6
PSW.bit
PSW.bit ... PSW.bit
2
5
8
7
0 0 1 1
1 1
1 B2B1 Bo
0 0 0 0
0 0 1 1
0 1 1 1
o B2 B1 Bo
0
x x x 0 0 0 0
0
0 0 1 0
1 1
o B2B1 Bo
0 1 0 0
0 o 0 1
SEn
CY
CY ... 1
2
3
CLRl
CY
CV ... O
2
3
0
0 1 0 0
0 0 0 0
Non
CV
CV ... CV
2
3
x 0 1 o 0
0 0 1 0
6-175
II
NEC
J-LPD7823x
Instruction Set (cont)
Clocks
Mnemonic Operand
Operation
Bytes IROM
IRAM
SFR
Flags
EM EM
ZACCY
Operation COde (Bits 7-0)
Bytes B1 thru B5
Call/Return
CALL
!addr16
(SP-l) ... (PC + 3)H,
(SP-2) ... (PC + 3)l,
PC ... !addr16, SP ... SP-2
3
(SP-l) ... (PC + 2)H,
(SP-2) ... (PC + 2)l, PCH ...
rpH, PCl ... rPl, SP ... SP-2
2
(SP-l) ... (pC + 2)H, (SP-2) ...
(pC + 2)l, PC15+11 ... 00001,
PC1CHJ ... !addrll, SP ... SP - 2
2
10-15
17
21
0 0
1 0
1 0 0 0
LowAddr
High Addr
rp
CALLF
!addrll
12-17
15
19
0 0 0 0
0
10-15
14
18
0
0
1
0 0
0
P2 PI 0
0
...
ta
-+
(SP-l) ... (PC + l)H, (SP-2) ...
(PC + 1L PCH ... (00000000,
addrS + 1), P~ ... (00000000,
addr5),SP ... SP-2
14-20
20
24
1 1 1
...
la
-+
BRK
(SP-l) ... PSW,(SP-2) ...
(PC + llH,(SP-3)'" (PC +l)l,
PCH ... (003FH), PCH ...
(003FH), SP ... SP-3, IE ... a
16-26
22
28
a
a
1
1 1 1
a
RET
PCl ... (SP), PCH ... (SP + 1),
SP ... SP + 2
10-15
11
15
a
a
1
a
1
a
RETI
PCl'" (SP), PCH'" (SP + 1),
PSW ... (SP + 2), SP ... SP + 3,
NMIS ... 0
12-20
15
21
R R R
a
1
a
1
a
1 1 1
RETB
PCl'" (SP), PCH'" (SP + 1),
PSW ... (SP+2),SP ... SP +3
12-20
13
19
R R R
a
1
a
1
1 1 1 1
CALLT
[addr5]
1
Stack Manipulation
PUSH
PSW
(SP-l) ... PSW, SP ... SP-l
sfr
(SP-l) ... str,SP ... SP-l
rp
(SP-l) ... rpH(SP-2) ...
rPl, SP ... SP-2
2
4-8
5
7
7-9
9
12
a 1 a a
a a 1 0
8-13
8
12
a a
1
1
a a
a a
1
SIr-offset
6-176
1 1
1 1 PI Po
tt{EC
/l-PD7823x
Instruction Set (cont)
Flsgs
Clocks
Mnemonic Opersnd
Operation
Bytes IROM
IRAM
SFR EMEM Z.ACCY
Operation Code (BIta 7.0)
Bytes B1 thru B5
Stack, Manipulation (cont)
POP
PSW
PSW .. (SP). SP .. SP + 1
sfr
sfr .. (SP). SP .. SP + 1
2
4-8
6
8
9-11
9
12
R R R
o
o
1
1
o
o
0
1 0 0 0
0
o
0
1 1
Sfr-offset
MOVW
rp
rPL .. (SP). rpH .. (SP + 1).
SP .. SP+2
SP.#word
SP .. word
10-15
4
8
11
15
12
o
0
0
0 0 0
1 1
1 1
1 1
o
1 P1 Po
0
1
1 1
1 0 0
Low Byte
High Byte
SP.AX
AX.SP
SP .. AX
AX .. SP
2
2
9
10
11
12
0
0
o
1
o
0
1
1
1.
1
1
1 0 0
0
0
o
1
0 0
o
1
1 1
1
1 0
0
0 0 0 0
o
1 0
1 1 0 0
1 0 0 0
0 0 0 0
o
1 1 0
1 0
1 1
INCW
DECW
SP
SP
SP .. SP+1
SP .. SP-1
2
2
5
5
7
7
1 1
0
1
o
o
1
1
6-.177
II
tvEe
,....PD7823x
Instruction Set (cont)
Clocks
Mnemonic Operand
Operation
Flags
Bytes IntROM Branch No Branch ZACCY
Operation Code (Bits 7-(1)
Bytes B1 thru B5
Unconditional Branch
BR
laddr16
"j',
PC +- laddr16
3
5
11
0 0
1 0
1 1 0 0
Low Addr
rp
$addr16
PCH +- 1'IlH, PCL +- rpL
PC,+- $addr16
2
2
6
4
10
9
0 0 0 0
0
0 1 0 0
1 P2 P, 0
0
0 0 0
0 1 0 0
jdisp
Conditional Branch
BC
$addr16
PC +- $addr16 if CY = 1
2
214
9
6
0 0 0
BNC
$addr16
PC +- $addr16If CY = 0
2
2/4
9
6
0 0 0
$addr16
PC +- $addr16 if Z = 1
2
214
9
6
0 0 0
'$addr16 '
PC +- $addr16 if Z = 0
2
214
9
6
1 0 0 0
BNE
BT
0
0 0 0
jdisp
BE
BNZ
0 0
jdisp
BNL
BZ
0 0
jdisp
BL
0 0 0 0
jdisp
saddr.bit, $addr16
PC +- $addr16 if (saddr.bit) = 1
3
5-9
12
9
0
1
OB2B, BO
Saddr-offset
jdisp
sIr.blt, $addr16
PC +- $addr16 ifsfr.bit = 1
4
7/9
16
13
0 0
o
0
0 1 1
1 0
o
0
1 B2 B, Bo
Sfr-offset
jdisp
Abit,$addr16
PC +- $addr16 if A.bit = 1
3
5f7
12
9
0 0 0 0
0
o
0 1 1
1B2B,80
jdlsp
X.bit,$addr16
PC +- $addr16ifX.bit = 1
3
5f7
12
9
0 0 0 0
0
o0 1 1
o B2B, 80
jdisp
PSW.bit,$addr16
PC +- $addr16If PSW.bit = 1
3
517
12
9
0 0 0 0
o
1 0
OB2B, BO
jdisp
6-178
0 1 0
t\'EC
j.LPD7823x
Instruction Set (cont)
Clocks
Mnemonic Operand
Operation
Flaga
Bytes IntROM Branch No Branch ZACey
,
Operation 90de (Bits 7-0)
B~ B1 thru B5 .
Conditional Branch (cont)
BF
saddr.bit,$addr16
PC +- $addr16 if (saddr.bit) = 0
4
5-9
15
12
0 0 0 0
0 1 0
1
o
0 0
1 B2B1
So
Saddr-offset
jdisp
sfr.blt,$addr16
PC +- $addr16 ifsfr.bit = 0
4
7/9
16
13
0 0
o
0
0 1 0
1 0
o
0
1 ~B1 Bo
Sfr-offset
jdisp
A.bit,$addr16
PC +- $addr16if A.bit = 0
3
517
12
9
0 0 0 0
0
0
o
0 1 1
1 B2B1
So
idlsp
X.bit,$addr16
PC +- $addr16 if X.bit = 0
3
517
12
9
0 0 0 0
0
0
o
0 1 1
OB2B1 BO
jdisp
PSW.b",$addr16
PC +- $addr16 if PSW.bit = 0
3
517
12
9
0 0 0 0
0
0
o
0 1 0
OB2B1 BO
jdisp
BTCLR
saddr.b",$addr16
PC +- $addr16 H(saddr.bit) = 1
then reset (saddr.bit)
4
5-13
15
12
0 0 0 0
0
1 000
1 B2B1 Bo
Saddr-offset
jdisp
sfr.b",$addr16
PC +- $addr16 if sfr.bit = 1
then reset sfr .bit
4
7/13
18
13
0 0
o
0
0 1
1 0
o
0
1 B2B1 Bo
Sir-offset
jdisp
A.bit,$addr16
PC +- $addr16 if A.b" = 1
then reset A.blt
3
PC +- $addr16 HX.b" = 1
then reset X.b"
3
PC +- $addr16IfPSW.blt= 1
then reset PSW.blt
3
5/9
12
9
0 0 0 0
0
o
0 1 1
1 B2B1 Bo
jdisp
X.bit,$addr16
5/9
12
9
0 0 0 0
0
o0 1 1
o ~ B1 So
jdisp
PSW.blt,$addr16
5/8
12
9
x x x 0 0 0 0
0
o 0 1 0
o ~ B1 So
jdisp
6-179
II
fttfEC
f-1PD7823x
Instruction Set (cont)
Clocks
Mnemonic Operand
Operation
Flags
Bytes Int ROM Branch No Branch ZACCY
Operation Code (Blt8 7-0)
Bytes B1 thru B5
Conditional Branch (cant)
DBNZ
rl,$addr16
saddr,$addr16
rl .... rl-1, then PC ....
$addr16 if rl .. 0
2
(saddr) .... (saddr) -1, then
PC .... $addr16 if (saddr)" 0
3
3/5
9
6
o
0
1
0 0
1 Ro
jdisp
4-10
12
9
1 0
0 0
1 1
Saddr-offset
jdisp
CPU Control
MOV
STBC,#byte
STBC .... byte
4
10
15
0 0 0
0
0 0
0 0
0 0 0 0
Data
Data
SEL
RBn
RBS1-o .... n, n = 0--3
2
2
6
0 0
0 0
0
0
0
1 0
0
o N, No
0 o 0
NOP
No Operation
2
3
0 0
0 0
EI
IE .... 1 (Enable Interrupt)
2
3
0
0 0
0
01
IE .... 0 (Disable Interrupt)
2
3
0
0 0
0
6-180
1
0
ftlEC
J.lPD78K3 Series:
i6-Bit Microcomputers
7-1
II
16-Bit, Advanced Microcomputers
Section 7
"PD78K3 Series:
16-Bit, Advanced Microcomputers
I'PD7831xA178P31xA
16IB-Bit, Single-Chip CMOS Microcomputers,
Real-Time Control Oriented
I'PD7832x
Advanced, B/16-Bit, Real-Time Control
Microcomputers With AID Converter
I'PD71P301
Memory Extender and Port Re-Creation Logic
(Turbo Access Manager)
7-2
7-3
7-61
7-113
NEe
NEe
pPD7831xA/78P31xA
16-/8-Bit, Single-Chip
CMOS. Microcomputers,
Real·Time Control Oriented
NEG Electronics Inc.
Description
The J.lPD7831xA family of microcomputers is designed
for use in process control. They perform all the usual
process control functions and are particularly wellsuited for driving stepping motors and dc motors in
servo loops. The processors include on-Chip memory,
timers, input/output registers, and a powerful interrupt
handling facility. The J.lPD78310A/312A is constructed of
high-speed CMOS circuitry and operates from a single
+5-volt power supply.
The input frequency (maximum 12 MHz) is derived from
an external crystal or an external oscillator. The internal
processor clock is two-phase, and thus machine states
are executed at a rate of 6 MHz. The shortest instructions require three states, making the minimum time
SOO ns. The CPU contains a three-byte instruction
prefetch queue, which allows a subsequent instruction
to be fetched during execution of an instruction that
does not reference memory.
Program memory is 8K bytes of mask-programmable
ROM (JlPD78312A only), and data memory is 256 bytes
of static RAM. The J.lPD78310A is the ROMless version.
J.lPD78P312A is.a prototyping chip for J.lPD78312A. It has
an on-Chip 8K EPROM instead of a mask ROM.
o Four-channel 8-bit AID converter
o Two 4-bit real-time output ports
o Two nonmaskable interrupts
o Eight hardware priority interrupt levels
o Macroservice facility for interrupts gives the effect
of eight DMA channels
o Bidirectional serial port
- Either UART or interface mode
- Dedicated baud rate generator
o watchdog timer
o Refresh output for pseudostatic RAM
o Programmable HALT and STOP modes
o One-byte call instruction
o On-chip clock generator
o CMOS silicon gate technology
o + 5-volt powe~ supply
Ordering Information
Part Number
Package
IlPD78310ACW
64-pln plastic shrink DIP
IlPD78310AGF-3BE
64-pln plastic QFP
IlPD78310AGQ-36
64-pln plastic QUIP
IlPD78310AL
58-pin plastic PLCC
IlPD78312ACW.xxx
64-pln plastic shrink DIP
IlPD78312AGF-xxx-3BE
64-pin plastic QFP
IlPD78312AGQ-xxx-36
64-pin plastic QUIP
IlPD78312AL-xxx
68-pin plastic PLCC
o Instruction prefetch queue
o 16-bit unsigned multiply and divide
o String instructions
IlPD78P312ACW
64-pin plastic shrink DIP
IlPD78P312AGF-3BE
64-pin plastic QFP
IlPD78P312AGQ-36
64-pin plastic QUIP
o Memory expansion
IlPD78P312AL
68-pin plastic PLCC
IlPD78P312ADW
64-pln ceramic shrink
DIP with window (350 ml~
IlPD78P312AR
64-pln ceramic QUIP
with window
Features
o Complete single-chip microcomputer
-16-bitALU
-8K ROM (JlPD78312A only)
- 256 bytes RAM
- 1-bit and 8-bit logic
- 8085A bus-compatible
- Total 64K address space
o Large I/O capacity: up to 32 I/O port lines
o Extensive timer/counter system
-
Two 16-bit up/down counters
Quadrature counting
Two 16-bit timers
Free-running counter with two 16-bit capture
registers
- Pulse-width modulated outputs
- Timebase counter
Notes:
ROM
ROMless
Mask ROM
OTP EPROM
EPROM
xxx is the ROM code number.
7-3
II
ttiEC
pPD7831xA/78P31xA
Pin Configurations
64-Pin Shrink DIP and QUIp, Pla.tic and Ceramic
POO
POl
VDD
P47/AD7
P02
P4&/AD&
P03
P4s/ADs
P04
P44/AD4
POs
P43/AD3
POe
P42/AD2
P07
P4l/ADl
Pl0
P40/ADo
Pll
ALE
P12
WR
P13
RD
P14
RESET/PROG
Pls
EAlVpp
Pls
P57/A1S
P17
P5&/A14
P20/NMI
P5s/A13
P2l/1NTEO
P54/A12
P22/1NTEl
P53/All
P23/1NTE2
P52/Al0
P24ITxD
P5l/Ag
P2s/RxD
P50/As
P2&/SCK
P37/CLR1/TOl
P27/CTS
P3&/CLRO/TOO
RFSH
P30/CIO
P3l/CTRLO
P32/Cll
P3s/PWM1
P34/PWMO
AVSS
AVREF
P33/CTRLl
AN3
Xl
AN2
X2
AN1
Vss
ANO
83-003822A
7-4
~EC
IlPD7831xA/78P31xA
Pin Configurations (cant)
S4-Pin Plastic QFP
P06
P41/AD1
P07
P40/ADo
P10
ALE
P11
WR '
P12
RD
P13
RESET/PROG
P14
EA/Vpp
P1S
PS7/A1S
P16
PS6/A14
P17
PSs/A13
P201NMI
PS4/A12
P21/1NTEO
PS3/A11
P22/1NTE1
PS2/A10
P231INTE2
PS1/Ag
P24/TxD
PSo/AIi
P2s/RxD
P37/CLR1/T01
P26/SCK
P3etCLRO/TOO
P27/CTS
P3s/PWM1
RFSH
P341PWMO
II
83-(J038238
7-5
NEe
pPD7831xA/78P31xA
Pin Configurations (cont)
6B-Pin PLCC (plastic Leaded Chip Carrier)
P07
P10
P40/ADO
0
ALE
P11
WR
P12
RD
P13
RESET/PROG
P14
EA/Vpp
P1s
PS7/A1S
P1&
PS&/A14
P17
P20/NMI
P21/1NTEO
PSs/A13
51
PS4/A12
P53/A11
P22/1NTE1
P52/Al0
P23fINTE2
PS1/Ag
P24/TxD
NC
P2s/RxD
PSo/As
P2&/SCK
P37/CLR1/T01
P27/CTS
P3&/CLRO/TOO
83~004442B
7-6
NEe
pPD7831xA/78P31xA
Pin Identification
EA/Vpp
Symbol
Function
ANO-AN3
ND converter inputs
ALE
Address latch enable output
ENVpp
External access control input; programming
voltage
On ItPD78312A, a low on EA enables use of external
memory in place of on-Chip ROM. The EA pin must be low
on ItPD78310A. On the ItPD78P312A, this pin is used for
programming voltage. In normal operation, it must be
connected to VDD.
POrPOo
I/O port 0
I/O port 1
P20fNMI
Nonmaskable interrupt input
P21-P2a1
INTEO-INTE2
Maskable interrupt inputs
P2.vTxD
I/O port 2; serial transmit output
P2s1RxD
I/O port 2; serial receive input
I/O port 2; serial clock output
I/O port 2; clear to send input
P3ofCI0
Up/down counter 0 input
Up/down counter 0 cont rol input
P32"Cll
Up/down counter 1 input
P3a1CTRL 1
Up/down counter 1 control input
P3.vPWMO
I/O port 3; pulse width modulated output 0
P3s1PWMl
I/O port 3; pulse width modulated output 1
P3s1CLRO/TOO
I/O port 3; counter 0 Clear input; timer 0 output
P37/CLR1/TOl
I/O port 3; counter 1 clear input; timer 1 output
P<7-P4ofADrADo
I/O port 4; external address; data bus
P5TP5ofA15-Ae
I/O port 5; high address byte output
RD
Read strobe output
RESET/PROG
External reset input; PROM programming mode
RFSH
P(q-POo (Port 0)
Port 0 consists of 8 bits, individually programmable for
input/output or two 4-bit real-time (timer controlled)
output ports.
P17-P10 (Port 1)
Port 1 consists of 8 bits, individually programmable for
input/output.
P2o/NMI (Port 2; Nonmaskable Interrupt)
Port P20 is dedicated to NMI, the nonmaskable external
interrupt request.
P21-P23/INTEO-INTE2 (Port 2; Maskable
Interrupts)
Ports P2l-P23 are dedicated to INTEO, INTE1, and
INTE2, the maskable external interrupt requests.
P24/TxD (Port 2; Serial Transmit)
P24 is an I/O port bit or the transmitted serial data
output.
Refresh output
P25/RxD (Port 2; Serial Receive)
Write strobe output
P2 5 is an I/O port bit or the received serial data input.
Xl
External crystal or external clock input
X2
External crystal
P2a/SCK (Port 2; Serial Clock)
ND reference voltage
P2 6 is an I/O port bit or the serial shift clock output.
AVss
Analog ground
Voo
Power supply
Vss
Power return
PIN FUNCTIONS
P27/CTS (Port 2; Clear to Send)
P27 is an I/O port bit or clear-to-send input (external
serial transmission control) in the asynchronous communication mode. In the serial I/O interface mode, it
becomes the serial receive clock I/O pin.
ANO-AN3 (AID Converter Inputs)
ANO-AN3 are the four program selectable input channels
for the A/D converter.
P30/C10 (Port 3; Counter 0)
Port P30 is dedicated to e 10, the external count input for
up/down counter o.
ALE (Address Latch Enable)
ALE is the address latch enable. It is to be used by
external circuitry to latch the low-order 8 address bits
during the first part of a read or write cycle.
P31/CTRLO (Port 3; Counter 0 Control)
Port P30 is dedicated to eTR LO, the external control
input for up/down countero.
7-7
II
ttiEC
pPD7831xA/78P31xA
P~/CI1
(Port 3; Counter 1)
Port P32 is dedicated to C11; the external count input for
up/down. counter 1.
RD (Read Strobe)
RD is the read strobe output. It is to be used by external
memory (or data registers) to place data on the I/O bus
during a read operation.
,P33/CTRL 1 (Port 3; Counter 1 Control)
Port P33 is dedicated to CTRL1, the external control
input for up/down counter 1.
P34/PWMO (Port 3; Pulse Width 0)
P34 is an I/O port bit or the pulse-width modulated output
o.
P3s/PWM1 (Port 3; Pulse Width 1)
P35 is an I/O port bit or the pulse-width modulated output
RESET/PROG
This pin is used for the external reset input. A low level
sets all registers to their speCified reset values. During
programming of the I-4PD78P312A, this pin is used to
place the device into PROM programming mode.
RFSH (Refresh)
RFSH is the refresh pulse output to be used for external
pseudostatic DRAM.
1.
WR (Write Strobe)
P3s/CLRO/TOO (Port 3; Counter 0 Clear; Timer 0)
WR is the write strobe output. It is to be used by external
memory (or data registers) to latch data from the I/O bus
during a write operation.
P3s is an I{O port bit, or the clear input for up/down
counter 0, or the timer 0 flip-flop output. .
P37/CLR1/T01 (port 3; Counter 1 Clear; Timer 1)
P37 is an I/O port bit, or the clear input for' up/down
counter 1, or the timer 1 flip-flop output.
P40-P47/ADo-AD7 (Port 4; External Address/Data
Bus)
X1, X2 (External Crystal or Clock Input)
X1 and X2 are the external oscillator inputs or the
connections for an external crystal. If an external clock
is used, it is connected to X1 and its inverse is connected
to X2. The system clock frequency is half the input
frequency.
AVRE F (AID Reference Voltage)
Port 4 consists of 8 bits, programmable as a unit for input
or output, or as the multiplexed address/data bus if
external memory or external interface circuitry is used.
The port is contrqlled by the memory mapping register.
If the EA pin is low, port 4 is always an address/data bus.
AVREF is the reference voltage input for the A/D converter.
P50-P57/Aa-A15 (Port 5; High-Address Byte)
AVss is the analog ground pin.
Port 5 consists of 8 bits, individually programmable for
input or output, or the high-order address bits for external memory. Under control of the memory mask register,
bits P53-P50 are used for 4K memory expansion, bits
P55-P50 for 16K memory expansiQn, or bits P57-P50 for
56K memory expansion. If the EA pin is low, port 5 is
always the high-order address bus.
VDD (Power Supply)
7-8
AVss (Analog Ground)
VDO is the positive power supply input.
Vss (Power Return)
Vss is the power supply return, normally ground.
NEe
pPD7831xA/78P31xA
Block Diagram
16
P20INMI
P50-57/AS-15
P21/1NTEO
P22/1NTE1
P23/1NTE2
ALE
lID
WR
Internal
P24/TxD
P2S/RxO
ROM
8K
RFSH
Bytes
EAlVpp
P26/SCK
P27/eTS
P30/CID
P31/CTRLO
P32/CI1
P33/CTAll
P3s/CLAD/TOO
Xl
!£!;
P37/CLA1/T01
3
n
P21"NTEO
P22/1NTE1
X2
RESET
0
[
P34/PWMO
Vee
Vss
P3s/PWM1
II
AVREF
ANa-AN3
AVss
~~l-_ _ _~
4' '~
P36/CLAD/TOO P37/CLR1/T01
Pl
P2
,,
;
~
•'v'• •V •
P3
P4
49-001302C
FUNCTIONAL DESCRIPTION
On-chip features designed to facilitate process control
include two 16-bit timers, quadrature counting, two 16bit up/down counters, two pulse-width modulated outputs, a free-running counter with two capture registers,
two 4-bit real-time (timer-controlled) output ports, an
'8-bit A/D converter with four input channels, a timebase
counter to generate widely spaced interrupts, and a
watchdog timer to guard against infinite program loops.
In addition, a serial I/O port can be used in either an
interface mode or an asynchronous communication
mode. HALT and STOP modes are provided to conserve
power at times when CPU action is not required.
AliI/a, timer, and control registers are defined as special
function registers and assigned addresses in the top 256
bytes of memory. The special function registers may be
operated on directly by many of the arithmetic, logic,
and move instructions of the CPU. Table 1 describes the
registers.
Addressing
The J£PD783101xA features 1-byte addressing of the special function registers and 1-byte addressing of the
internal RAM, There are nine mod~s of addressing main
memory, including auto increment, autodecrement, indexing, and double indexing. There are 8- and 16-bit
immediate operands.
7-9
NEe
pPD7831xA/78P31xA
Figure 2. Register Designation and Storage
Figure 1. Memory IIap
FFFFH
- -
FEOOHr- __
FFfFH r - - - - - - - ,
-
---I
Special Function
Registers
FFOOH
\
'\
FE80H
\
LF~O.!!
__ r - Register I
Storage I Internal
Avaiiiible 1 RAM
a9:..e....IL..-_--'
L-St_or_
Register
Bank
7
FE80H
6
S
RSS=O
RSS= 1
A_[Rl]
I _X
[RO]
__
_ _ _ ..1...
__
__
I _RO
Rl ..1..
_ ___
__
4
I
External
Memory
Area
2
I
I
I
I
f--- - - Internal
ROM
pPD78312A
or
OFFFH
-----PROM
pPD78P312A
Fixed Area
0800H
1
______ _
I
AX [RPO]
I
I
I
iOFFFH
lFFFH
I
3
B [R3]
I
C [R2]
------~-----
I
I
I
BC [RP1]
RPl
___
_ _ _ ...L..
___
I _ _R4
RS
_ _
_ _ ..L.
____
A
[RS]
I X
[R4]
I
I
RP2
AX [RP2]
___
_ _ _ ....L___
I _ _R6
R7
____
I C
[R6]
B_ ___
[R7] ..1..
RP3
BC [RP3]
0
______
_ _[R8]
__
VPH [R9] ...JI _
VPL
JI
007FH
Call Table Area
0040Hf- _ _ _ _ _ _
OOOOH 1..-._ _- - ' _ _ _ ~~
Vector Table Area
49-001304A
FEFFH \
\
\
\
\
RPO
I _R2
_ R3
_ _ _ ..1.
__
VP [RP4]
-
I UPL
[Rl0]
UPH
_ _ _[Rll]
_ _ _ ...L..
___
__
UP [RPS]
\
\
\
\
I _E
D _[R13]
__
_ _ _ ...L.
_[R12]
___
DE [RP6]
\
\
\
_H
_ [R1S]
_ _ _ .....1...
I _L_[R14]
___
HL [RP7]
External Memory
83-003824A
,External memory (figure 1) is supported by 110 port 4, an
8-bit multiplexed address/data bus. The memory mapping register controls the size of external memory as
well as the number of additional wait states. High-order
address bits are taken from I/O port 5as required. No bits
are required for 256 bytes
external memory; bits
P5s-P5o are used for 4K bytes, P55-P50 for 16K bytes, and
P57-P50 for' 56K bytes. Any remaining port 5 bits are
available for I/O.
of
Refresh
The p.PD7831xA has a refresh signal for use with the
'pseudostatic RAM. The refresh cycle can be set to one of
four intervals ranging from 2.67 to 21.3 p.s. The refresh is
timed to follow a read or write operation so that there is
no interference.
7-10
General Registers
The CPU has sixteen 8-bit registers (figure 2) that can
also be used in pairs to function as .16-bit~egisters. A
complete set of 16 general registers is mapped into each
of 8 program-selectable register banks stored ,in RAM.
Three bits in the PSW specify which ofthe register banks
is active at any given time. Each register bank has two
program-selectable accumulators.
The general registers of'the p.PD7831xA have both absolute and functinal names. AX is the functional name for
the accumulator: Setting theRSS bit in the PSW to 1
transfers the AX and BC registers from their normal RPO
and RP1 positions to RP2 and RP3 as shown in figure 2.
This adds considerable programming flexibility.
ttlEC
pPD7831xA/78P31xA
Program Status Word
Timers
Following is the program status word format.
The ""PD7831xA has two 16-bit timers. The inputs to
these timers may be the internal clock divided by 6 or by
128. Each timer has an associated modulus register to
store the timer count. The timer counts down to zero,
sets a flag, reloads from the modulus register, and then
counts down again. The timer flags can be used under
program control to generate interrupt requests and/or a
square-wave output. TMO also functions optionally as
two one-shot timers.
I
0
R~
RB1
RBo
I
o
0
IE
o
15
I
8
S
Z
IRSS
AC
UF
P/V
SUB
RB2-RBo
IE
S
Z
RSS
AC
UF
PN
SUB
CY
I
CY
o
7
Active register bank number
Interrupt enable
Sign (1 if last result was negative)
Zero (1 if last result was zero)
Register set select
Auxiliary carry (carry out of 3rd bit)
User flag
Parity or arithmetic overflow
Subtract (1 if last operation was
subtract)
Carry
Figure 4 is a diagram of the interval timers.
There is a free-running counter that counts the internal
clock divided by 4 or by 16. The counter has two 16-bit
capture registers. Capture is triggered by an external
interrupt request or by the up/down counter clock.
The timebase counter generates a signal at one of four
intervals ranging from 170 p.s to 175 ms. The signal can
be used to generate an interrupt request and/or an
up/down counter capture.
Figure 3. Pulse-Width Modulated Output
Input/Output
r-----------------------,I
All ports may be used for either latched output or highimpedance input. All ports except port 4 are bitprogrammable for input or output. Port 0 is used for
real-time or normal I/O. Port 1 is used for normal I/O. The
low nibble of ports 2 and 3 is always used for control and
the high nibble for control or normal I/O. Port 4 is used
for the external address/data bus or byte-programmable
I/O. Port 5 is used for the high bits of the external
address or for normal I/O.
Real-Time Output Port
: fCLK
The real-time output port shares pins with I/O port O. The
high and low nibbles are treated separately or together.
Data is transferred from a buffer to the port latches on
either a timer or software command.
I
:
fCLK/256
:
:
I
fCLK/1024
fCLKl4096
I
:
I
fCLK/65536
:
I
I
I
I
a
I
I
I
I
II
:
Load
I
PWMO
S
I
I
R
I
IL _________________________
I
:
I
~
I
¢N~
IL _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ JI
49-Q01303A
Serial Port
The serial port can operate in UART or interface mode
with the baud rate and byte format under program
control. The serial port also includes a dedicated baud
rate generator.
Pulse-Width Modulated Outputs
The two independent pulse-width modulated outputs are
controlled by two 16-bit modulus registers and counters.
There are four programmable repetition rates ranging
from 91.6 Hz to 23.4 MHz. Figure 3 shows one of these
outputs.
7-11
t-IEC
pPD7831xA/78P31xA
Figure 4.
Timer Block Diagram
1----------I
-----------,
I
I
MOl (16)
I
I
I
I
I
I
fCLK/6Output
Control
fCLK/128
TOl
I
---I
fCLK/12=1-.--------.~0.1I----t°l
MOO ( 1 6 ) . - - - - - - - - - - - - - -
fCLK/128
I
I
I
I
TMFl
.
I
I
I
I
.
I
I
TMO(16)
---------n-----
Output
Control
I
TOO
I
I
I
_-.J
Internal Bus
49'001305C
Up/Down Counters
The pPD7831xA has two 16-bit up/down counters, each
of which has two capture/compare registers. There are
three modes of operation: compare and interrupt, capture on external command, and capture on timebase
counter command. There are five sources of counts: the
internal clock divideq by 3, the external clock, external
independent up and down inputs, external clock with
direction control, and external clock with automatic
up/down discrimination. Figure 5 shows an up/down
counter.
7-12
NEe
Figure 5.
pPD7831xA/78P31xA
lJp/Down Counter Block Diagram
A-------------------------~
I
~y
I
I
CTRl19
ClR10
1------;0,;----I
T~~~~~::
Capture
I
I
I
----------l
Interrupt
Request
CIO
Up/Down
Discrimination G~~~~~==:::ri':":"'----l
CTRlO
ClRO
I
I
Interrupt
Request
capture
I
L _____ _
_ _ _ _ _ _ _ _ _ ...1
II
49-001306B
Quadrature Counting
The two up/down counters, UDCO and UDC1, have an
optional quadrature counting mode, which is activated
by specifying mode 4 in the counter unit input mode
register, CUlM. It is designed to count the output of a
two-phase pulsed optical shaft angle encoder. The
input for phase A is the CIO(or C11) pin, and the input
for phase B is the CTRLO (or CTRL 1) pin. The counter
UDCO (or UDC1) is incremented or decremented at both
positive and negative transitions of both input signals.
Whether it is incremented or decremented is dependent
upon the relative phase of the two signals as illustrated
in figure 6.
7-13
NEe
pPD7831xA/78P31xA
Figure 6. Counter Operation (IIode 4)
t-----COuntUp--------i
1------COunt Downl--------/
CIO
(CI1)
CTRLO
(CTRL1)
UDCO
(UDC1)
83Vl-6837B
Standby Modes
HALT and STOP modes conserve power when CPU
action is not required. In HALT mode, the CPU stops and
the clock continues to run. Maskable interrupts can
restart the CPU.
In STOP mode, the CPU and clock are both stopped. A
RESET pulse or the nonmaskable external interrupt is
required to restart them. There is also the option of
slowing the system clock by a factor of four. The standby
control register controls the standby modes and is a
protected location written to only by a special instruction.
There are eight hardware priority interrupt levels, level 0
having the highest priority and level 7 the lowest. The 15
maskable interrupt sources (table 2) are divided into five
groups, and each group can, under program control, be
assigned to anyone of the priority levels.
Interrupts may be serviced by routines entered either by
vectoring or by context switching. Context switching
automatically saves all the general registers, the program status word, and the program counter. Figure 7
illustrates the mechanism of context switching.
Finally, an optional macroservice function transfers data
between anyone special function register and memory
without program intervention.
Watchdog Timer
Macroservice
The watchdog timer protects against inadvertent program loops. A nonmaskable interrupt occurs if the timer
is not reset before a timeout occurs. There are four
program-selectable intervals ranging from 5.5 to 349.3
ms. The watchdog timer can be disabled by software.
The watchdog timer mode register controls the watchdog timer and is a protected location written to only by a
special instruction.
The macroservice controller can be programmed to
perform word or byte transfers. It can transfer data from
a special function register to memory or from memory to
a special function register. Transfer events are triggered
by interrupt requests and take place without software
intervention.
AID Converter
The AID converter has four input channels and can
operate in either scan or select mode. The AID converter
performs 8-bit successive approximation conversions,
has a 3O-I4S conversion time, and is triggered either
internally or externally. The AID converter includes an
on-chip sample and hold amplifier.
Interrupts
There are two nonmaskable interrupt sources: the external nonmaskable interrupt and the watchdog timer. Their
relative priorities are software selectable.
There are eight macroservice channels; .channel control
information is stored in RAM. This information (figure 8)
consists of a 16-bit memory address (optionally incremented at each transfer), and 8-bit special function
register designator, and an 8-bit transfer counter (decremented at each transfer). When the count equals 0, a
context switch or vectored interrupt occurs.
NEe
IIPD7831xA/78P31xA
Figure B. Macroserrice Pointer Addresses
Figure 7. Harrlwllre Context Switching
Current Active
Register Bank
New Active
Register Bank
AX
AX
BC
BC
Save
RP2
~
RP3
1S
FEE3H
SFRP4
I
FEE7H
SFRPS
Register
Bank 1
SFRPS
UP
FEEFH
DE
DE
HL
HL
SFRP7
FEE8H } s
I
I
MSC7
FEEEH
SFRPO
MSCO
FEF2H
MSC1
FEF6H
I
I
FEFOH }o
MSP1
Program
Counter
c::.-
FEF7H
SFRP1
FEFBH
SFRP2
Register
BankO
Load
Program
I
Status Word
FEF4H }1
MSP2
I
FEF8H }2
MSC2
MSP3
49-001307A
FEFFH
SFRP3
I
FEEAH
FEECH}7
MSPO
FEF3H
FEESH
MSC6
MSP7
UP
FEE2H
FEE4H } s
MSCS
MSPS
FEEBH
VP
I
Chan
FEEOH }4
MSC4
MSP5
PC
Save Area
PSW
Save Area
VP
o
8 7
MSP4
FEFAH
FEFCH}3
MSC3
FEFEH
Note:
[1] The macroservice pOinters share storage with register
banks 0 and 1.
[2] MSP = Memory address pointer
8FRP = Special function register pointer
MSC = Transfer counter
83·003825A
Table ,. Special Function Registers
Address
FunctIon
MnemonIc
Read/Wrlte
16-81t Transfer
Reset State
Undefined
FFOOH
I/O port 0
PO
R/W
No
FF01H
I/O port 1
Pl
R/W
No
Undefined
FF02H
I/O port 2
P2
R/W
(Note 1)
No
Undefined
R/W
Undefined
FF03H
I/O port 3
P3
(Note 1)
No
FF04H
I/O port 4
P4
R/W
No
Undefined
FF05H
I/O port 5
P5
R/W
No
Undefined
FFOSH
FF09H
Capture/compare register 00
CROOl
CROOH
CROO
R/W
Yes
Undefined
FFOAH
FFOSH
Capture/compare register 01
CROll
CR01H
CROl
R/W
Yes
Undefined
FFOCH
FFODH
Capture/compare register 10
CR10l
CR10H
CR10
R/W
Yes
Undefined
FFOEH
FFOFH
Capture/compare register 11
CRlll
CR11H
CRll
R/W
Yes
Undefined
FF10H
FllH
Capture register 0 (from FRC)
CPTOl
CPTOH
CPTO
R/W
Yes
Undefined
FF12H
FF13H
Capture register 1 (from FRC)
CPT1l
CPT1H
CPTl
R/W
Yes
Undefined
7-15
II
NEe
pPD7831xA/78P31xA
Table 1. Special Function Registers (cont)
Address
Function
Mnemonic
Read/Wrlte
16-Blt Transfer
Reset State
FFI4H
FFI5H
PWM register 0 (duration)
PWMOl
PWMOH
PWMO
R/W
Yes
Undefined
FFI6H
FFI7H
PWM. register I (duration)
PWMll
PWM1H
PWMI
R/W
Yes
Undefined
FFICH
FFIDH
Presettable up/down counter 0
UDCOl
UDCOH
UDCO
R/W
Yes
Undefined
FFIEH
FFIFH
Presettable up/down counter 1
UDCIl
UDCIH
UDCI
R/W
Yes
Undefined
FF20H
Port 0 mode register
PMO
R/W
No
FFH
FF21H
Port I mode register
PMl
R/W
No
FFH
FF22H
Port 2 mode register
PM2
R/W (Note I)
No
FFH
FF23H
Port 3 mode register
PM3
R/W (Note I)
No
FFH
FF25H
Port 5 mode register
PM5
R/W
No
FF!-I
FF32H
Port 2 mode control register
PMC2
R/W
No
OFH
FF33H
Port 3 mode control register
PMC3
R/W
No
OFH
FF38H
Real-time output port control
register
RTPC
R/W
No
08H
FF3AH
FF3BH
Port 0 buffer register (Note 2)
POL POH
R/W
No
Undefined
FF40H
Memory expansion mode
register
MM
R/W
No
30H
FF41H
Refresh mode register
RFM
R/W
No
IOH
FF42H
Watchdog timer. mode register
WDM
R/W
No
OOH
FF44H
Standby control register
STBC
R/W
No
2nH
(Note 3)
FF46H
Timebase mode register
TBM
R/W
No
OOH
FF48H
External interrupt mode
register
INTM
R/W
No
DOH
FF4AH
In-service priority register
ISPR
R
No
OOH
FF4EH
CPU control word
CCW
R/W
No
OOH
FF50H
Serial communication mode
register
SCM
R/W
No
OOH
FF52H
Serial communication control
register
SCC
R/W
No
OOH
FF53H
Baud rate generator
BRG
R/W
No
OOH
FF56H
Serial communication receive
buffer
RXB
R
No
Undefined
FF57H
Serial communication transmit
buffer
TXB
W
No
Undefined
FF60H
Free-running counter control
register
FRCe
R/W
No
OOH
7-16
NEe
pPD7831xAn8P31xA
Table 1. Special Function Registers (conI)
Address
Function
Mnemonic
Read/Wrlte
16-Blt Transfer
FF64H
Capture mode register
CPTM
R/W
No
OOH
FF66H
PWM mode register
PWMM
R/W
No
OOH
FF68H
AID converter mode register
ADM
R/W
No
OOH
FF6AH
AID converter result register
ADCR
R
No
Undefined
FF70H
Count unit input mode
register
CUlM
R/W
No
OOH
FF72H
Up/down counter control
register 0
UDCCO
R/W
No
OOH
FF74H
Capture/compare control
register
CRC
R/W
No
OOH
FF7AH
Up/down counter control
register 1
UOCCl
R/W
No
OOH
FFSOH
Timer 0 control register
TMCO
R/W
No
OOH
FF82H
Timer 1 control register
TMCl
R/W
No
OOH
FFasH
FF89H
Timer 0
TMOl
TMOH
TMO
R/W
Yes
Undefined
FFBAH
FF8SH
Modulus/timer register 0
MOOl
MOOH
MOO
R/W
Yes
Undefined
FF8CH
FF8DH
Timer 1
TMll
TM1H
TMl
R/W
Yes
Undefined
FF8EH
FF8FH
Modulus register 1
MOll
TM1H
MOl
R/W
Yes
Undefined
FFSOH to
FFBFH
External area (Note 4)
FFCOH
CRFOO interrupt control
Up/down counter 0
CRICOO
ANI
No
47H
FFC1H
CRFOO macroservlce control
Up/down counter 0
CRMSOO
R/W
No
Undefined
FFC2H
CRFOl interrupt control
Up/down counter 0
CRICOl
R/W
No
47H
FFC4H
CRF10 Interrupt control
Up/down counter 1
CRIC10
R/W
No
47H
FFC5H
CRF10 macroservice control
Up/down counter 1
CRMS10
R/W
No
Undefined
FFC6H
CRF11 interrupt control
Up/down counter 1
CRICll
R/W
No
47H
FFC8H
EXIFO interrupt control
External interrupt INTEO
EXICO
R/W
No
47H
FFC9H
EXiFO macroservice control
External interrupt INTEO
EXMSO
R/W
No
Undefined
FFCAH
EXiFl interrupt control
External interrupt I NTE 1
EXlCl
R/W
No
47H
FFCSH
EXIF1 macroservice control
External interrupt INTEl
EXMS1
ANI
No
Undefined
FFCCH
EXlF2 interrupt control
External interrupt INTE2
EXlC2
R/W
No
47H
Reset State
7-17
•
NEe
pPD7831xA/78P31xA
Tllble 1. Specilll Function Registers (conI)
Address
Function
Mnemonic
Read/Wrlte
16-Blt Transfer
Reset State
FFCDH
EXlF2 macroservice control
External interrupt I NTE2
EXMS2
RNI
No
Undefined
FFCEH
TMFO interrupt control
Timer flag
TMICO
RNI
No
47H
FFCFH
TMFO macroservice control
Timer flag
TMMSO
RNI
No
Undefined
FFDOH
TMFI interrupt control
Timer flag
TMICI
RNI
No
47H
FFDIH
TMFI macroservice control
Timer flag
TMMSI
RNI
No
Undefined
FFD2H
TMF2 interrupt control
Timer flag
TMIC2
RNI
No
47H
FFD3H
TMF2 macroservice control
Timer flag
TMMS2
RNI
No
Undefined
FFDAH
Receive error interrupt control
Serial port
SEIC
RNI
No
47H
FFDCH
Receive interrupt control
Serial port
SRIC
RNI
No
47H
FFDDH
Receive macroservice control
Serial port
SRMS
RNI
No
Undefined
FFDEH
Transmit interrupt control
Serial port
STIC
RNI
No
47H
FFDFH
Transmit macroservice control
Serial port
STMS
RNI
No
Undefined
FFEOH
AID converter Interrupt control
ADIC
RNI
No
47H
FFE1H
AID converter macroservice
control
ADMS
RNI
No
Undefined
FFE2H
Timebase counter interrupt
control
TBIC
RNI
No
47H
Notes:
(1) Bits 0-3 of port 2 and of port 3 are read-only.
(3) Bit 3 of the STBC is not affected by RESET (n = 0 or 8).
(2) POH and POL are 4-bit buffer registers used to store data to be
loaded into the high and low nibbles of the real·time output (PO).
The high order 4 bits of POH and the low order 4 bits of POL are
used.
(4) External registers interfaced with these addresses can be ac·
cessed by special function register addressing.
7-18
NEe
pPD7831xA/78P31xA
Tllble 2. Interrupt Sources lind HH:tor Addresses
Default Priority
Software
Nonmaskable Interrupts
Maskable interrupts
o
Mnemonic
Interrupt Source
Macroservlce
Vector
,
BRK
Break instruction
No
003EH
0002H
OOOAH
NMI
External nonmaskable interrupt
No
WDT
Watchdog timer
No
CRFOO
Up/down counter 0
Ves
001AH
CRF01
Up/down counter 0
No
001CH
2
CRF10
Up/down counter 1
Ves
001EH
3
CRF11
.Up/down counter 1
No
0020H
4
EXIFO
External Interrupt 0
Ves
0004H
5
EXlF1
External interrupt 1
Ves
0006H
6
EXlF2
External interrupt 2
Ves
0008H
7
TMFO
Timer flag 0
Ves
OOOEH
8
TMF1
Timer flag 1
Ves
0010H
9
TMF2
Timer flag 2
Ves
0012H
10
SEF
Serial port error
No
0022H
11
SRF
Serial port receive buffer
Ves
0024H
12
STF
Serial port transmit buffer
Ves
0026H
13
ADF
AID converter done flag
Ves
0028H
14
TBF
T imebase counter flag
No
OOOCH
~
External reset line
Reset
OOOOH
II
ELECTRICAL SPECIFICATIONS
Absolute Maximum Ratings
TA +25'C
Power supply voltage Voo
-0,5 to +7,0 V
Reference voltage, AVREF
-0,5 V to Voo +0,3 V
Power supply return, AVss
Input voltage, VI1
(except RESET of "PD78P312A)
Input voltage, VI2
(RESET of "PD78P312A only)
Output voltage, Vo
Output current, low; IOl (single pin)
Output current, low; IOl; total,
all output pins (,tLPD78312/310A)
-0,5 to +0,5 V
-0,5 to + Voo + 0,5
-0,5 to +13,5 V
-0,5 to Voo +0,5 V
4mA
100mA
Output current, low; IOl; total,
all output pins (,tLPD78P312A)
60mA
Output current, high; IOH (single pin)
-1 mA
Output current, high; IOH; total,
all output pins (,tLPD78312/310A)
Output current, high; IOH; total,
all output pins (,tLPD78P312A)
-10 to +70'C
Operating temperature, TOPT
-65 to
Storage temperature, TSTG
+150 'C
Exposure to Absolute Maximum Ratings for extended periods may
affect device reliability; exceeding the ratings could cause permanent
damage,
Operating Frequency
Oscillator Frequency fxx
4 MHz s fxx s 12 MHz
Voo
-10 to +70'C
+5.0V 10%
Capacitance
TA
-25mA
-15mA
=
+25'C; voo
= Vss = 0 V
Parameter
Symbol
Max
Unit
Input capacitance
CI
10
pF
Output capacitance
Co
20
pF
I/O capacitance
CIO
20
pF
Conditions
f = 1 MHz;
unmeasured
pins returned
to 0 V,
7-19
NEe
pPD7831xA/78P31xA
DC Characteristics
TA
= -10 to
+70°C; voo
= +5.0 V ±5%; Vss = 0 V
Parameter
Symbol
Max
Unit
Input low voltage
VIL1
0
0.8
V
Except EA on "PD783lON312A
VIl2
0
0.5
V
EA on t/lPD78310A/312A only)
VIHI
2.2
VOO
V
Except P2oINMI, XI, X2, RESET
VIH2
3.8
Voo
V
P201NMI XI, X2, RESET
0.45
V
IOl
V
IOH
I!A
I!A
P2ofNMI, RESET VI
Input high voltage
Min
Typ
Output low voltage
VOL
Output high voltage
VOH
Input current
'-I
±10
Input leakage current
lu
±10
Voo -l
Conditions
= 2.0mA
= -1 mA
= 0.45 V to VOO
Input/output leakage current
ILO
±10
"A
AVREF current
AIREF
1.5
5
mA
felK
Voo supply current
1001
30
60
mA
Operating mode; felK
1002
5
15
mA
Halt mode; felK
V
Stop mode
3
15
Stop mode; VOOOR
10
50
I!A
I!A
Data retention voltage
VOOOR
Stop mode supply current
1000R
2.5
= 6 MHz
= 6 MHz
= 6 MHz
Stop mode; VOOOR
= 2.5 V
= 5.0 V ±10%
AC Characteristics
TA
= -10 to
+70°C; VOO
= +5.0 V ±10%; vss = 0 V
Parameter
Typ
Max
Unit
2000
ns
Symbol
Min
System clock cycle time
tcVK
166
Address setup time to ALE J-
IsAl
150
ns
Address hold time after ALE J-
IrlLA
30
ns
tOAR
230
ns
Conditions
Read/Write Operation
Address to
R5 J- delay time
RD J- to address floating
tFRA
0
ns
Address to data input
tOAIO
410
ns
ALE Ho data input
touo
230
ns
RD J- to data input
tORIO
180
ns
ALE J- to RD J- delay time
tOlR
60
ns
Data hold time after RD i
tHRIO
0
ns
RD i to address active
tORA
50
ns
RD i to ALE i delay time
tORl
100
ns
tWRl
200
ns
tWlH
120
ns
tOAW
300
RD width low
ALE width high
Address to WR J- delay time
ALE J- to data output
toLOO
WR J- to data output
toVlOO
100
ALE J- to WR J- delay time (Note 2)
tOLlN
7-20
IsOOWR
(Note 4)
ns
190
Data setup time to WR i
(Note 1)
ns
ns
30
ns
110
ns
150
ns
During refresh mode
NEe
pPD7831xA/78P31xA
AC Characteristics (cant)
Parameter
Symbol
Min
Re.d/Wrlte Oper.tlon (cont)
Data setup time to WR ~ (Note 3)
Data hold time to WR i
tsOOWF
30
ns
During refresh mode
ft.Iv.oo
20
ns
(Note 4)
WR i to ALE i delay time
toWL
110
ns
WRwldth low
twWL
200
ns
teVSK
1.33
JLS
,~ output (Note 5)
1.33
JLS
"O'i'S output (Note 6)
"O'i'S Il1Iut (Note 7)
Typ
Max
Unit
Conditions
S.rl.' Port
Serial clock cycle time
JLS
Serial clock low level width
Serial clock high level width
twSKL
iwsKH
560
ns
~ output (Note
560
ns
420
ns
"O'i'S output (Note 6)
"O'i'S Input (Note 7)
560
ns
~.. output (Note 5)
560
ns
"O'i'S output (Note 6)
420
ns
teYK
ns
"O'i'S high. low level
twCSH.
twcsL
3
RxD setup time to "O'i'S i
tsRXSK
80
RxD hold time after "O'i'S i
tHSKRX
60
~ ~ to TxD delay time
iosKTX
5)
' m Input (Note 7)
Asynchronous mode
ns
210
ns
II
A/DConverter
TA = -10"C to +7O"C; Voo = +5 V %10%; AVREF = 4.0V'to Voo; AVss = Vss = 0 V
Resolution
Bit
8
Full scale error
0.4
%
Quantization error
:1:1/2
LSB
Conversion time
Sampling time
Analog input voltage
teONY
tsAMP
VIAN
Input impedance
RAN
Analog reference voltage
AVREF
AVREF current
AIREF
teVK = 166 to 500 ns
160
teYK
teYK = 166 to 250ns
120
teYK
teYK = 250 to 500 ns
36
teYK
teYK = 166 to 250 ns
24
teYK
V
teYK = 250 to 500 ns
0
AVREF
rna
1000
4.0
1.5
Voo
V
5.0
rnA
fCLK = 6 MHz
Counter Oper.tion
CIO. CI1 high. low levels
twCIH.
twCIL
3
teYK
eTRLO. CRTl1 high. low levels
twCTH'
twCTL
3
teVK
eTR LO. eTR l1 setup time
to CI i
tsel-CI
2
teYK
Operating mode of count
unit is set to mode 3. CI
input is set to rising edge
active.
7-21
,..,EC
pPD7831xA178P31xA
AC Characteristics (cent)
Parameter
Typ
Symbol
Min
Max
Unit
Conditions
CTRLO, CTRL 1 hold time after
Cit
ft-iCICT
5
tcVK
CLRO. CLR1 high, low level width
\veRH,
\veRL
3
tcVK
CIO, CI1 setup time to CTRL
ts4crc1
6
tcVK
Counter mode 4
CTR LO, CTR L 1 setup time to CI
ft-i4CTC1
6
tcVK
Counter mode 4
CI0/CI1, CTRLOICTRL 1 cycle
time
tc't'C4
KHz
Counter mode 4
Counter Operation (cont)
250
External Interrupts and Reset
NMI high, low level width
tWNIH,
twNlL
10
[.IS
twlOH'
3
tcVK
INTE1 high, low leVel width
twl1H,
twl1L
3
tcVK
INTE2 high, lOw leVel width
twl2H,
twl2L
3
tcYK
mET high, low level width
\vRSH,
\vRSL
10
p.s
VDD rise, fall time
Ifw,
200
[.IS
INTEO high, low level width
twroL
lfvo
Notes:
(1) The internal clock (fCLlQ equals the oscillation clock ~xx) divided
by 2 or 8 as determined by bit 5 of the STBC. In this table, fxx =
12 MHz and fCLK fx:xI2.
(4) Hold time Is measured with CL = 100 pF and RL = 2 kl) load, and
includes the period necessary to guarantee VOH and VOL'
(2) During refresh operation, the WR signal falls to low leVel 1/2 clock
cycle later than If there Is no refresh.
(6) I/O interface mode receive data, Internal clock, at a data rate of
750 kb/s.
(3) When accessing data frompseudostatlc DRAMs (e.g. p.PD4168)
with the, failing edge of the WR Signal, the data setup time Is
tsOOWF instead of tsODWR'
(7) 'In the I/O Interface mode this Is the optional external clock for
, received data at a maximum rate of 1 MB/s.
=
7-22
(5) I/O interface mode transmit data at a data rate of 750 kb/s.
NEe
pPD7831xAn8P31xA
Oscillator Characteristics
= +5.0 V ::1:10%; Vss = AVSS = 0 V;
Timing Dependent on tCYK
TA = -10 to 70·C; VOO
4 V :SO AVREF :SO VOO
Oscillator
Ceramic
resonator or
crystal
resonator
External clock
Parametar
Symbol
Oscillation
frequency
Min Max Unit
4
fxx
XI Input frequency
Xl Input rise, fall
time
XI Input high-lowlevel width
Ix
txR,txF
0
twxH,twxL
30
4
12
12
30
130
MHz
MHz
ns
ns
Recommended Ceramic Resonators
C#4PD78310/312A)
Manufacturer
Part No.
Murata Mfg.
Co., Ltd.
CSAI2.0MT
CSTI2.OMT
Frequency
(MHz)
12.0
12.0
External
Capacitance (PF)
Symbol
Formula
tsAL
1.5T -100
teAR
2T-l00
teAIO
(3.5 + n) T - 170
teLIO
(2
ioRIO
(1.5 +n) T -70
loLA
0.5T-2O
IoRL
T-50
loRA
0.5T -30
twRL
(1.5+n)T-50
twLH
T-40
ns
Max
ns
Min
ns
IoAW
2T-l00
IoLOO
0.5T + 110
Max
ns
IoIW
0.5T - 20 (normal operation)
Min
ns
T - 50 (during refresh mode)
C2
30
30
tsOOWR.
(1.5 +n) T - 100
Included
tsOOWF
0.5T-50
tOWL
T-50
twWL.
(1.5 + n)-50
Recommended Circuits
Unit
Min
+ n)T-l00
C1
Included
MInIMax
Notes:
Ceramic Resonator
ar
Crystal Resonator
(Notes)
Extemal Cicek
(1) n is the number of additional walt cycles specified by the MM
reglstet
(2) T = tcVK
frequency.
= I/fCLK = 2/fXX'
fCLK Is the Internal sytem clock
(3) Any parameter not included in this table Is not dependent on fOLK'
Nota.:
1. When using a crystal resonator, the following extemsl capacitor
Is recommended:
Cl =C2= 15pF
2. Oscillator circuit must be located as close as possible to the XI
and X2plna.
3. To prevent noise from affecUng operaUon. avoid locating other
signal lines within the shaded area.
7-23
II
ttiEC
pPD7831xA/78P31xA
Timing Waveforms
AC Timing Test Points
VOO-1V~
. 2 . 2 V _ T e s t _ 2.2V
0.8V - P o i n t s - 0.8 V
0.45 V
x=
.
83-004443A
Read Operation
elK
Address [high byte)
P57-P50
i+----------tOAIO----------i
P47-P40
Address [low byte)
i+----tSAl----+i i+----+-tOlIO------+i
tHRIO
tFRA
ALE
I-----IORID
i+------twRl------+i
i+-----tOAR----~
83-0044448
7-24
NEe
pPD7831xA/78P31xA
Timing Waveforms (cont)
Write Operation
eLK
Address [high byte]
P57-P50
P47-P40
Address [low byte]
ALE
~------+---tWWL--------~
tSOOWF
----+-~--------+---~+---------
\
1+-----1-- tOLW ----~
1+-_________ tOAW ________---+I [Refresh mode I
83-0044456
7-25
NEe
pPD7831xA/78P31xA
Timing waveforms (cont)
Serial Port, I/O Interface Mode
Data Transmit
1+-------ICySK-------+/
IWSKH
TxO
Data Receive
1 + - - - - - - - ICySK------+!
IWSKL
RxO
IWSKH
-------------f~~·
IHSKRX---+lX~------_
83-004446B
Serial Port, Asynchronous Mode
Send Enable Input Timing
Counter Operation (Mode 3)
CLR
83-00444BA
7-26
NEe
pPD7831xA/78P31xA
Timing Waveforms (cont)
External Reset
Count Timing Specification (Mode 4)
CIO
83-004450A
(Cll)
External Clock
CTRLO
(CTRL1) _ _ _ _...II
83VL-6839A
XI
External Interrupts
1+-----tCYK----.j
83-004451A
NMI
INTEO
Data Retention Timing
I
i
DD
:~_I
V V_D~D",-_ _
IFVD
IRVD
83YL-6840A
II
INTEl
INTE2
7-27
NEe
pPD7831xA/78P31xA
PROM PROGRAMMING
The PROM in the IlPD78P312A is an OTP or UVE EPROM
with an 8,192 x 8-bit configuration. The pins listed in the
table below are used to program the PROM.
Pin Functions, PROM Programming Mode
64-Pin Shrink DIP and QUIP. Plastic and Ceramic
,,,{
When used in the normal operation mode, 5V ± 10% is
applied to the Voo and Vpp pins. A voltage higher than
Voo should not be applied to other pins.
The programming characteristics of the jJPD78P312A
are identical to those of the IlPD27C256A.
Pin
voo
07
06
05
Open {
CE
04
03
02
OE
01
AO
00
A1
Function
A2
} Open
vpp
High voltage input (write/verify mode),
high-level input (read mode)
A4
PROG
PROG
High voltage input (write/Verify mode, read mode)
AS
VPP
Address input (lower 8 bits)
AS
A3
A7
,,,{
Address input (upper 8 bits)
Oata input (write mode), data output (verify mode)
CE
Program pulse input
OE
Output enable input
Voo
Power supply pin
} Open
A12
A11
A10
Notes:
(1) Mask the window of the LNE EPROM version to protect the PROM
, from being erased accidentally.
(2) The OTP EPROM version cannot be erased by ultraviolet rays
because it does not have a window.
O~{
,,,{
Programming Setup
Programming socket adaptors PA-78P312CW/GF/GQ/L
are used to configure the IlPD78P312A to fit a standard
PROM socket. Set the PROM programmer to program
the 27C256A. If the PROM programmer is an older
model, check that the programming voltage does not
exceed 12.5 volts.
7-28
Open
A9
AS
}-
},"
VSS
Notes:
[1 J VSS: Ground this pin.
[2J Open: 00 not connect this pin.
83VL-6841A
NEe
pPD7831xAJ78P31xA
Pin Functions, PROM Programming Mode (cant)
64-Pin Plastic QFP (bent leads)
~
a
~
~
0
>
Or--COU')..;tt"')N
,..-----"----. > 0 0 0 0 0 0
CE
DE
AD
01
0
DO
A1
} Open
A2
A3
PROG
A4
Vpp
AS
A6
A7
} Open
flP07SP312AGF
41
{
~"{
A12
A11
'"
A10
A9
AS
}o~"
N ~ gJ ~ ~ ~ ~
re
re ~ ;;;
II
Notos:
VSS: Ground this pin
Open: Do not connect this pin
83YL-6842A
7-29
ttlEC
pPD7831XAn8P31XA
Pin Functions, PROM Programming Mode (cant)
68-PinPLCC
o
DO
A2
A3
PROG
A4
Vpp
AS
A6
} Open
jiPD78P312AL
A7
AI2
A11
AIO
A9
Ie
AS
}Qpen
Not..:
[I J VSS: Ground thIs pin.
[2J Open: Do not connect thIs pin.
83V1.-8843B
7-30
NEe
pPD7831xA/78P31xA
PROM Programming Mode
When + 6 V is applied to the VDD pin and + 12.5 V is
applied to the PROG pin and Vpp pin, the pPD78P312A
enters the program write!verify mode. Operation in this
mode is determined by the setting of CE and OE pins as
indicated in the table below.
(5)
Use the verify mode to test the data. If the data has
been written, proceed to (7), if not, repeat steps
(3) to (5). If the d~ta cannot be correctly written in
25 attempts, go to step (6).
(6)
Classify the PROM as defective and cease write
operation.
(7)
Provide write data and supply program pulse (for
additional writing) for 3 ms times the number of
repeats performed between steps (3) to (5).
CE
OE
Vpp
Voo
PROG
Write
L
H
+ 12.5 V
+6V
+12.5V
Verify
H
L
(8)
Increment the address.
Program inhibit
H
H
(9)
Read (Note 2)
L/H
L
Repeat steps (3) to (8) until the last address is
reached.
Read (Note 3)
L/H
H
Mode
+5V
+5V
+12.5 V
PROM Read Procedure
Notes:
(1) When + 12.5 V is applied to Vpp and +6 V is applied to VDD, both
CE and OE must not be set to the low level (L) simultaneously.
(2) Data is output from the
Do-~
pins.
(3) Do-D7 are high impedance.
The contents of the PROM can be read out to the
external data bus 0 0-07 by using the following procedure.
(1)
Set the unused pins as indicated in table 3.
(2)
Supply. + 5 V to the VDD pin and Vpp pin, and
+ 12.5 V to the PROG pin.
(3)
Input the address of the data to be read to the Ao
to A12 pins.
(4)
Put an active low pulse of at least 1 ps on the OE
pin.
(5)
Data is output to the Do to 07 pins.
Recommended Conditions for Unused Pins
Table 3 describes how to set unused pins when programming the PROM.
Table 3. Recommended Conditions for Unused
Pins
Pin
Recommended Connection
Connect to Vss
Open
Connect to Vss
P25-P27, RFSH
Open
Connect to Vss
X2
Open
ANO-AN3, AVREF, AVSS
Connect to VSS
PROM Write Procedure
Data can be written to the PROM by using the following
procedure.
(1)
Set the pins not used for programming as indicated in table 3, and supply + 6 V to the VDD pin,
and + 12.5 V to the Vpp and PROG pins.
(2)
Provide the initial address.
(3)
Provide write data
(4)
Provide a 1 ms program pulse (active low) to the
CE pin.
Erasure
The UVE EPROM can be erased by exposing the window to light having a wavelength shorter than 400 nm,
including ultraviolet rays, direct sunlight, and fluorescent light. To prevent unintentional erasure, mask the
window.
Typically, data is erased by.254-nm ultraviolet rays. A
minimum lighting level of 15 W s/cm 2 (ultraviolet ray
intensity x exposure time) is required to completely
erase written data Erasure by an ultraviolet lamp rated
at 12,000pW/cm2 takesapproximately 15to 20 minutes.
Remove any filter on the lamp and place the. device
within 2.5 cm of the lamp tubes.
7-31
II
NEe
IIPD7831xA/78P31xA
DC Programming· Characteristics
TA
= 25 ±5'C; VIP = 12.0 ±0.5 V; VSS = 0 V
Max
Unit
2.2
Voop +0.3
V
-0.3
0.8
V
10
JiA
V
IOH = -1.0 mA
0.45
V
IOL = 2.0 mA
ILO
10
JiA
liP
±10
JiA
Parameter
Symbol
Symbol (Note)
High-level input voltage
VIH
VIH
Low-level input voltage
VIL
VIL
Input leakage current
VUP
Vu
High-level output voltage
VOH
VOH
Low-level output voltage
VOL
VOL
Output leakage current
PROG pin high voltage
input current
VOOP power supply
voltage
VOOP
VPP power supply voltage
Vpp
Min
Typ
Vo[)"'l
Voo
Vpp
5.75
6.0
6.25
V
Program memory write mode
4.5
5.0
5.5
V
Program memory read mode
12.2
12.5
12.8
V
Program memory write mode
V
Program memory read mode
Vpp
VOOP power supply
current
100
Vpp power supply current
Ipp
ConditiOn
100
Ipp
= Voop
10
30
rnA
Program memory write mode
10
30
mA
Program memory read mode
CE = VIL. VI = VIH
10
30
mA
Program memory write mode
CE = VIL. OE = VIH
100
JiA
Program memory read mode
Notes:
(1) Corresponding symbols for the JiPD27C256A
AC Programming Characteristics
TA
= 25 ±5'C; VIP = 12.0 ±0.5 V; VSS = 0 V
Parameter
Address setup time to CE
~
Data to OE ~ delay time
Input data setup time to CE
~
Address hold time after CE t
Symbol
Symbol (Note)
tSAC
tAS
2
toOOO
toES
2
tSIOC
tos
2
tHCA
tAH
2
Min
Input data hold time after CE t
tHCID
tOH
2
Output data hold time after OE t
tHOOO
tOF
0
tsyPC
tyPS
2
tsyOC
!VOS
2
Initial program pulse width
tWL1
tpw
0.95
Additional program pulse width
twL2
topw
2.85
PROG high-voltage input setup
time before CE ~
tspc
Address to data output time
tOAOO
tACC
OE ~ to data output time
tOOOO
tOE
Data hold time after OE t
tHCOO
tOF
0
Data hold time after address not valid
tHAOO
toH
0
Vpp setup time before
V~~p
CE.~
setup time before CE ~
Notes:
(1) Corresponding symbols for the J1PD27C256A
7~32
Typ
Max
Unit
J1s
1.0
130
ns
1.05
ms
78.75
ms
2
2
130
ns
Condition
NEe
pPD7831xA/78P31xA
PROM Write Mode Timing
A12-AO
D7-DO
~
-
~
r-
-1
t SAC
Data Input
tSIDC_
K
Effective address
~
Data output
)----<
~tHCID
~
-1
I-E- tHooD
~j
Data Input
I+-
--1
~
tHCA
~
-L~"
~tspc
Vpp
Vpp
--1
~
~ tsvPC
--:/-
-
~ tSVDC
((
~
I~
~
ri j.:=.
,
\
I
tDDoo
,
tDooD
J
I
tWL2
I
j
Notes:
[1] VDDP must be applied before V pp Is applied and
must be removed after Vpp Is removed.
[2] Vpp must not exceed +13 V Including overshoot voltage.
83YL·6844B
PROM Read Mode Timing
A12-AO
).
K
Effective address
tHCOD
f--
!.--tDooDtbAOD
D7-DO
HI-Z
)0
--------------~
tHAOD~
Data output
I+~
Hi-Z
-------83YL-6845B
7-33
t-IEC
pPD7831xA/78P31xA
INSTRUCTION SET
Symbols
The instruction set for the J.lPD7831xA has 8- and 16-bit
arithmetic instructions including: a 16x 16-bit unsigned
multiply with a 32-bit product; a 32 by 16-bit unsigned
divide with a 32-bit quotient and a 16-bit remainder. The
instruction set also executes an 8-bit and a 16-bit shift
and rotate by count, 1-and 8-bit logic, and 1-, 2-, and
3-byte call instructions. String manipulation instructions are also included.
Symbols designations, and codes used in the instruction set are explained in the following tables.
, In addition to the general register designations (such as
P2P1PO, Q2Q1QO and R2R1RO), the following designations appear in the Operation Code column.
Bit number (bit = 0 through 7) in
single-bit instructions
Number of bits (n = 0 through 7) in
shift and rotate instructions
Register bank number (n = 0 through
7) in BRKCS and SEL instructions
Branch
There are four addressing modes for unconditional
branching. Branch instructions exist to test single bits
in the program status word, the 16-bit accumulator, the
special function registers, and internal RAM. The instruction set also includes multiple register PUSH and
POP instructions.
Addressing
On-chip RAM locations FE20H through FEFFH can be
addressed by "saddr" addressing, in which the machine
code specifies the address by its low-order byte only.
This mode is also used to address the first 32 special
function registers, addresses FFOOH through FF1FH.
Timing
Symbols
Symbol
r1
RO-R7
r2
C,B
rp
RPO·RP7*
rp1
RPO·RP7*
rp2
DE, HL, Vp, UP
sfr
Special function register. a bits
sfrp
Special func1ion register. 16 bits
post
RPO. RP1. RP2. RP3. RP4. RP5/PSW, RPS. RP7. Bits set
to 1 indicate register pairs to be pushed/popped to/
from the stack. RP5 pushed/popped by PUSH/POP:
SP is stack pointer. PSW pushed/popped by PUSHU/
POPU: RP5 Is stack pointer
mem
Register indlrec1: [DE]. [HLI. [DE+ I. [HL+ I. [DE-I.
[HL-I. [VP]. [UPI
Base index mode: [DE + AI. [HL +AI. [DE + BI.
[HL + BI. [VP + DE]. [VP + HLI
Base Mode: [DE + by tel. [HL + by tel. [VP + by tel.
[UP + bytel. [SP + by tel
Index mode: Word [AI. word [BI. word [DEI. word [HLI
saddr
FE20H·FF1FH: Immediate byte addresses one byte in
RAM. or label
saddrp
FE20H·F F1 FH: immediate byte (bit 0 = 0) addresses
one word in RAM or label'
Access to on-chip ROM requires one state per byte,
on-Chip RAM two states per byte, and external memory
four states per byte minimum.
The States column of the instruction set listing indicates the number of states required to execute an
instruction after it has been fetched. In "saddr" addressing, the number after the slash is applicable when
addressing special function registers FFOOH through
FF 1FH. In conditional branch instructions, the number
in parentheses is applicable when the branch is not
taken. String instructions are interruptable, and the
number in parentheses applies if the instruction has
been interrupted during its execution.
The Idle States column indicates the number of states
during which the CPU does not use the peripheral bus.
They are therefore available for fetching succeeding
instructions. If sufficient idle states are available, prefetching will continue until the buffer is full, so as many
as three bytes can be pre-fetched in this manner. If the
instructions are stored in external memory, a minimum
of four states is required for each byte. Idle states from
each instruction are used in multiples of four, and any
states in excess of multiples of four are lost.
7-34
Meaning
RO-R15
#Word
16 bits of immediate data or label
#byte
a bits of immediate data or label
jdisp
a·blt two's complement displacement
(immediate data)
Eleven bits of immediate data corresponding to addr11
Five bits of immediate' data corresponding to addr5
*rp and rp1 refer to the same register pairs. but generate different
machine code.
NEe
pPD7831xA/78P31xA
Symbols
Symbol
Meaning
.blt
3 bits of immediate data (bit position in byte), or label
n
3 bits of immediate data
laddr16
16-bit absolute address specified by an immediate
address or label
$addr16
Relative branch address ({PC)
Symbol
+ jdisp} or label
l6-bit address
laddr11
11-bit immediate address or label
+ 11-bit immediate address
addr11
0800H to OFFFH; 0800H
addr5
Pointer into call table, 0040H-007EH: or 8040H-807EH,
5 bit immediate data or label
A
A register (8-bit accumulator)
x
X register
B
B register
C register
D
D register
E
E register
H
H register
L
L register
RO-R15
Register 0-15
Logical complement
()
Contents of the location whose address is within ( );
(+) and (-) indicate that the address is incremented or
decremented after it is used.
«))
Contents of the memory location defined by the
contents of the location defined by the quantity within
the
XXH
Hexadecimal number
XH,XL
High-order 8 bits and low-order 8 bits of X
«».
addr16
C
Rag Indicators
Symbol
Meaning
(blank)
No change
o
Cleared to 0
X
Set or cleared according to result
Set to 1
P
Parity of result
v
Arithmetic overflow
U
Undefined
R
Restored from saved PSW
AX
Register pair AX (16-bit accumulator)
BC
Register pair BC
VP
Register pair VP
UP
Register pair UP (user stack pointer)
DE
Register pair DE
HL
Register pair H L
Instruction
Register pair 0-7
MOV
RPO-RP7
PC
Program counter
SP
Stack pointer
PSW
Program status word
CY
Carry flag
AC
Z
P/V
Parity/overflow flag
Meaning
Execution Times of Memory Reference
Instructions: Number of Processor States
Memory Reference Mode
A,mem
Register
Indirect
Base
Index
Base
Index
5
6
6
6
7
8
8
8
7
7
mem,A
XCH
A,mem
mem,A
A,mem
6
7
Auxiliary carry flag
ADD, ADDC,
SUB, SUBC,
AND, OR, XOR
mem,A
7
8
8
8
Zero flag
CMP
A,mem
6
7
7
7
S
Sign flag
SUB
Subtract flag
TPF
Table position flag
RBS
Register bank select flag
RSS
Register set select flag
IE
Interrupt enable flag
EOS
End of software interrupt flag
STBC
Standby control register
WDM
Watchdog timer mode register
mem,A
7-35
t\'EC
pPD7831xA17SP31xA
lIemory Addressing IIodes
mod
mem
1 0110
10111
rp
00110
01010
Register
Base
Indirect
Index
Base
Index
000
[DE+]*
[DE+ A]
[DE+ byte]
word [DE]
001
[HL+]*
[HL+A]
[SP+ byte]
word [A]
010
[DE-]*
[DE+ B]
[H L+ byte]
word [HL]
o1
[HL-]*
[HL+ B]
[UP+ byte];
word [B]
[VP+ byte]
1
100
[DEJ*
[VP+ DE]
1 0 1
[HL]*"
[VP+ HL]
1 1 0
[VP]
1 1 1
[UP]
Po
o
o
o
o
o
o
o
o
o
0
0
o
o
Reg
o
RO
o
o
C
Reg
o
C
B
7-36
Rl0
Rll
o
R12
R13
o
1
R8
R9
o
o
o
RP6
1
R14
R15
Reg Pair
o
RPO
o
RP4
o
RPl
RP5
0
RP2
RP6
rl
Li __ ~ __,__ :___ _
o
o
o
o
R2
I'·: : :
Q
RP4
RP5
Qo
o
o
o
o
Rl
R3
o
o
RP3
o
RP7
Ro
0
o
RP2
1,
rpl
o
0
o
o
General Register Designation r, r1
I
I
I
I
RPO
RPl
*l-byte instructions: defined by epecial opcode and mem only.
o
o
o
o
o
o
o
o
Reg Pair
o
RP3
RP7
rp2
s,
So
Reg Pair
o
o
o
VP
UP
o
DE
HL
t\'EC
pPD7831xA/78P31xA
Instructions
Mnemonic
Operand
Data Transfer
MOV
rl,lIbyte
OpBralion
rl +- byte
Flags
States
Idle
Statas
Bylas
3
3
2
0
3/4
0
3
0 0
S Z AC P/V SUB CY
Operallon Coda (Bits 7-01
Bytes Bl thru B5
1 lR2R1 RO
Data
saddr,lIbyte
(saddr) +- byte
1 1
o
1 0
Saddr-offset
.Data
sfr,lIbyte
sfr +- byte
4
0
3
0
o
1 0 1 0
Sfr-offset
Data
r,rl
r+- rl
3
3
2
o
0 1
o
o
0
0
Ra R2 Rl Ro 0 R2 Rl Ro
A,rl
A+- rl
A,saddr
A+- (saddr)
3
3
o1
o
1 1
2
3/4
0 0 1
0 R2 Rl Ro
0 0 0 0
Saddr-offset
saddr,A
(saddr) +- A
3/4
0
2
0
o
1 000 1 0
Saddr-offset
saddr,saddr
(saddr) +- (saddr)
4/6
0
3
0
o
1 1 1
o
0 0
Saddr-offset
Saddr-offset
A,sfr
A+-sfr
2
4
0
o
0 1
o
0 0 0
Sfr-offset
sfr,A
sfr +- A
4
0
2
0 0
o
1
o
0
0
Sfr-offset
A,mem'
A+-(mem)
5
3
1
A,mem
A+-(mem)
5-6
3-4
2-4
0 1
o
0 0 0
0
mem
mem
1
mod
o
0
o0
Low offset
High offset
mem,A'
(mem) +-A
5
2
1
mem,A
(mem) +-A
5-6
2
2-4
0 1
o
0 0 0
mem
mem
1 0
mod
o
0
o
0
Low offset
High offset
'When mem is [DEj, [HLj, [DE+j, [DE-j, [HL+j, or [HL-j
7-37
B
fttIEC
pPD7831xA/78P31xA
Instructions (cont)
Mnemonic
Operand
Operallon
Slales
Idle
Slales
Flags
Byles
S Z AC P/V SUB CY
Operallon Code (Blls 7-0)
Bytes B1 Ihru B5
Data Transfer (cont)
MOV (cont) A,[saddrp)
A - ((saddrp))
5/6
2
o
0 0
1 1 0 0 0
Saddr-offset
[saddrp),A
((saddrp)) - A
4/5
0
2
o
0 0
1 1 0 0
Sad dr-offset
A,!addr16
A - (addr16)
5
3
4
0
o
0 0 1 0 0 1
1 1 0 0 0 0
Lowaddr
High addr
!addr16,A
(addr16) ..... A
4
2
4
o
0 0
0 1 0 0
1 1 0 0 0
Lowaddr
High addr
PSWL,#byte
PSWL -
byte
4
0
3
X X X
X
X
X
0 0 1 0 1 0
1
1 1 1
0
Data
PSWH,#byte
PSWH -
byte
4
0
3
o
0 0
1 0
1 1
Data
PSWL,A
PSWH,A
A,PSWL
PSWL-A
PSWH -A
A-PSWL
4
4
0
0
4
2
2
2
X X X
X
X
X
0 0 0
0 0
0
1 1
1 1
0
0 0 0
0 0
0
1 1 1
1 1 1
0 0 0
0 0 0 0
1 1
1 1
2
0 0 0
0 0 0 0
1
A,PSWH
A-PSWH
4
A,r1
A-r1
4
4
1
r,r1
r-r1
4
4
2
0
1
XCH
0 1 1 R2 R1 Ro
0 0
0
o
1 0 1
Ra R2 R1 Ro 0 R2 R1 Ro
A,mem
A-(mem)
7-8
3-4
2-4
000
mem
0
mod
o
1
o
Low offset
High offset
A,saddr
A-(saddr)
A,slr
A-sir
4/6
0
2
0 0 1 0 0 0 0
8
3
3
0 0
Saddr-ollsel
0
o
o
0 0 0 0
1 0 0 0 0
Sir-offset
0
fttfEC
pPD7831xA/78P31xA
Instructions (cant)
Mnemonic
Operand
Operation
Flags
States
Idle
States
Bytes
6/7
0
2
Operallon Code [Bits 7-0)
Bytes Bl thru B5
S Z AC P/V SUB CY
Data Transfer (cant)
XCH (cont) A,[saddrp]
A - - ((saddrp))
0 0 1
o
0 0 1
Saddr-offset
saddr,saddr
(saddr) .......... (saddr)
8/12
0
3
0 0 1 1 1
o
0
Saddr-offset
Saddr-offset
MOVW
rp1,#word
rp1
+-
word
3
3
3
0 1 1 0002 01 00
Low byte
High byte
saddrp,#word
(saddrp)
+-
word
3/4
0
4
o
0
o
0 1 1 0 0
Sad dr-offset
Low byte
High byte
sfrp,#word
sfrp + - word
4
0
4
o
0
o
0 1 0 1 1
Sfr-offset
Low byte
High byte
rp,rp1
rp
+-
rp1
3
3
2
o
0 1
o
0 1
o
0
P2 P1 Po 0 1 02 01 00
AX,saddrp
AX +- (saddrp)
3/4
2
000 1 1 1
o
0
Saddr-offset
saddrp,AX
(saddrp)
+-
AX
3/4
0
2
0 0 0 1 1 0 1 0
saddrp,saddrp
(saddrp)
+-
(saddrp)
4/6
0
3
0 0 1 1 1 1 0 0
Saddr-offset
Saddr-offset
Saddr-offset
AX,sfrp
AX
+-
sfrp
4
2
0
o
0 1
o
0 0
Sfr-offset
sfrp,AX
sfrp +- AX
4
0
2
0 0 0 1
o
0
Sfr-offset
rpl,!addr16
rpl
+-
(addr16)
10
6
4
0 0
o
0 1 0 0
0 00002 01 00
Low Addr
High Addr
!addr16,rpl
(addr16)
+-
rpl
8
4
4
0 0
o
0 1 0 0 1
0 0 1
o 02 01
00
Low Addr
High Addr
7-39
IJ
t-iEC
IIPD7831xA/78P31xA
Instructions (cont)
Mnemonic
Operation
Operand
Flags
Slales
Idle
Slales
Byles
4/6
0
2
Operation Code (Blls 7-0)
Byles Bllhru B5
S Z AC P/V SUB CY
Data Transfer (cont)
XCHW
AX,saddrp
AX
+-+
(saddrp)
o
0 0
1 1 0 1
Saddr-offset
AX,sfrp
AX
+-+
sfrp
9
3
3
0 0 000 0 0
0 0 0 1 1 0
Sfr-offset
saddrp, saddrp
(saddrp) +-+ (saddrp)
8/12
0
0 0 1 0 1 0
3
0
Saddr-offset
Saddr-offset
rp,rp1
rp
+-+
rp1
5
5
o
2
0 1 0 0 1 0
P2 P1 Po 0
02 01 00
8-BIt Operation
ADD
A,#byte
A, CY +- A + byte
3
3
2
X X X
V
0
X
0
0
0 0 0
Data
saddr,#byte
(saddr), CY +- (saddr) + byte
5/7
0
3
X X X
V
0
X
o
0
1 0 0 0
Saddr-offset
Dala
sfr,#byte
sfr, CY +- sfr + byte
10
3
4
X X X
V
0
X
0 0 000 0 0
1 0 1 0 0 0
0
Sfr-offset
Data
r,r1
r, CY +- r + r1
3
3
2
X X X
V
0
X
o0
1 0
1 0
o0
R3 R2 R1 Ro 0 R2 R1 Ro
A,saddr
A, CY +- A + (saddr)
3/4
2
X X X
V
0
X
1
o
0 1 1 000
Saddr-offset
A,sfr
A, CY +- A + sfr
7
4
3
X X X
V
0
X
0
o
0 0 0 0 0 1
0
o
1 1 0 0 0
Sfr-offset
saddr,saddr
(saddr), CY +- (saddr)
6/9
0
3
X X X
V
0
X
0
1 1 1 0 0 0
+ (saddr)
Saddr-offset
Saddr-offset
A,mem
A, CY +- A + (mem)
6-7
4-5
2-4
X X X
V
0
X
0
0
o
0
mem
mod
1 0 0 0
Low offset
High offset
mem,A
(mem), CY +- (mem) + A
7-8
2-3
2-4
X X X
V
0
X
0 0 0
mem
mod
1 0 0 0
Low offset
High offset
7-40
~EC
pPD7831xA/78P31xA
Instructions (cont)
Mnemonic
Operand
Operallon
Flags
Slales
Idle
Slalas
Byles
3
3
2
Operation Code (Blls 7-0)
Byles Bl Ihru B5
S Z AC P/V SUB CV
8-BIt Operation (cont)
ADDC
A,#byte
A, CY -
A + byle + CY
X X X
V
0
0
X
0 1 0 0
Dala
saddr,#byte
(saddr), CY + byte + CY
(saddr)
5/7
0
3
X X X
V
0
X
0
0 1 0 0
Saddr-offset
Data
sfr,#byte
sfr, CY - sfr + byte + CY
10
3
4
X X X
V
0
X
0 0
o
0
1 0 1 0 0
0 0 0 0
Sfr-offset
Data
r,r1
r, CY -
r + r1 + CY
3
3
2
X X X
V
0
X
o
1 0
0 1 0
o
1
R3 R2 R1 Ro 0 R2 R1 Ro
A,saddr
A, CY - A + (saddr) + CY
2
3/4
X X X
V
0
X
1
o
0 1 1
o
0 1
Saddr-offset
A,sfr
A, CY - A + sfr + CY
7
4
3
X X X
V
0
X
o
o
0 0
0
0 0 0 0
1 1 0 0
Sfr-offset
saddr,saddr
(saddr), CY - (saddr)
+ (saddr) + CY
6/9
A, CY - A + (mem) + CY
6-7
0
3
X X X
V
0
X
0
1 1 1 0 0
Saddr-offsel
B
Saddr-offset
A,mem
4-5
2-4
X X X
V
0
X
0 0 0
mod
mem
0
1 0 0
Low offset
High offset
mem,A
(mem), CY +A+CY
(mem)
7-8
2-3
2-4
X X X
V
0
X
0 0 0
mod
mem
1 0 0
Low offset
High offset
SUB
A,#byte
A, CY - A - byte
3
3
2
X X X
V
X
0 1
o
1 0
0
Data
saddr,#byte
(saddr), CY - (saddr) - byte
5/7
0
3
X X X
V
X
0 1 0
0
0
Saddr-offset
Data
sfr,#byte
sfr, CY - sfr - byte
10
3
4
X X X
V
X
0 0
o
0
1 0 1 0
0 0 0 0 1
0
Sfr-offset
Data
r,r1
r, CY -
r - r1
3
3
2
X X X
V
X
1 0
o
0 1 0 1 0
R3 R2 R1 Ro 0 R2 R1 Ro
A,saddr
A, CY -
A - (saddr)
3/4
2
X X X
V
X
1
o
0 1 1
o
1 0
Sad dr-offset
7-41
t-IEC
pPD7831xA/78P31xA
Instructions (cont)
Mnemonic
Operation
Operand
Flags
States
Idle
States
Bytes
7
4
3
S
Operation Code [Bits 7-oJ
Byles B1 Ihru B5
Z AC P/V SUB CY
8-Bit Operation (cont)
SUB (cont) A,sfr
A, CY +- A - sfr
X X X V
X 0 0 000 0 0 1
0 0 1 1 0
0
Sfr-offset
saddr,saddr
(saddr), CY +- (saddr)
- (saddr)
6/9
A, CY +- A - (mem)
6-7
0
3
X X X V
1 1 1 0
X 0
0
Saddr-offset
Sad dr-offset
A,mem
4-5
2-4
X X X V
X 0 0 0
mem
0
mod
1 0 1 0
Low offset
High offset
mem,A
(mem), CY +- (mem) - A
7-8
2-3
2-4
X X X V
mod
X 0 0 0
mem
1 0
0
Low offset
High offset
SUBC
A,#byte
A, CY +- A - byte - CY
saddr,#byte
(saddr). CY +- (saddr)
- byte - CY
3
3
2
X X X V
X
5/7
0
3
X X X V
X 0
0 1 0 1 0
Data
0 1 0
Saddr-offset
Data
sfr,#byte
sfr, CY +- sfr - byte - CY
10
3
4
X X X V
X 0 0 0 000 0
0
1 0 1 0
Sfr-offset
Data
r,r1
r, CY
A,saddr
A, CY +- A - (saddr) - CY
A,sfr
A, CY +- A - sfr - CY
+-
r - r1- CY
3
3
o
2
X X X V
X 1 0
2
X X X V
X 1 0 0 1 1 0 1 1
3
X X X V
X 0 0 000 0 0
0 1 0 1 1
Ra R2 R1 Ro 0 R2 R1 Ro
3/4
Sad dr-offset
7
4
0 0 1 1 0
Sfr-offset
saddr,saddr
(saddr), CY +- (saddr)
- (saddr) - CY
6/9
0
3
X X X V
1 1 1 0
X 0
Sad dr-offset
Saddr-offset
A,mem
A, CY +- A - (mem) - CY
6-7
4-5
2-4
X X X V
X 0
0
o
0
mem
mod
1 0
Low offset
High offset
7-42
t\'EC
pPD7831xA/78P31xA
Instructions (cont)
Mnemonic
Operation
Operand
Flags
States
Idle
States
Bytes
7-8
2-3
2-4
S
Z AC P/V SUB CY
Operation Code (Bits 7-01
Bytes B1 thru B5
8-BIt Operation (cont)
SUBC
(cont)
mem,A
(mem), CY - (mem)
-A-CY
X X X
V
X
0
o
mod
0
mem
1 0
Low offset
High offset
AND
A,Hbyte
A - A A byte
3
3
2
X X
P
0
0
0 1
0 0
Data
saddr,Hbyte
(saddr) - (saddr) A byte
5/7
0
3
X X
P
0
0 0
0 1
0
Saddr-offset
Data
sfr,Hbyte
sfr -
sfr A byte
10
3
4
X X
P
0
0 0
o
0
1 0 1 1 0 0
000 0 1
Sfr-offset
Data
r,r1
r-rAr1
A,saddr
A - A A (saddr)
3
3
2
X X
P
0
2
X X
P
0
o
1 0
0 1 1
o
0
Ra R2 R1 Ro 0 R2 R1 Ro
3/4
1
o
0 1 1 1
o
0
Saddr -offset
A,sfr
A - A A sfr
7
4
3
X X
P
0
0
o
000 0 0
0 0 1 1 1 0 0
Sfr-offset
saddr,saddr
(saddr) - (saddr) A (saddr)
6/9
0
3
X X
P
0
0
1 1 1 1 0 0
Sad dr-offset
Saddr-offset
A,mem
A - A A (mem)
6-7
4-5
2-4
X X
P
0
0 0 0
0
mem
mod
1 1 0 0
Low offset
High offset
mem,A
(mem) - (mem) A A
7-8
2-3
2-4
X X
P
0
mod
0 0 0
mem
1 1 0 0
Low offset
High offset
OR
A,Hbyte
A-AVbyte
3
3
2
X X
P
0 1 0 1 1
0
0
Data
saddr,Hbyte
(saddr) -
(saddr) V byte
5/7
0
3
X X
P
0
0
0 1
0
Sad dr-offset
Data
7-43
II
ttEC
pPD7831xA/78P31xA
InstructIons (cont)
Mnemonic
Operand
Operation.
Flags
811las
Idle
Slllas
Bylas
10
3
4
8
Z AC P/V SUB CY
Operation Code (Bits 7-OJ
Bytes BI thru B5
8-BIt Operation (cont)
OR (corit)
slr,Hbyte
sir +- sir V byte
X X
P
0
0 0
o
0
1 0 1 1
0 0 0 0 1
0
Sir-offset
Data
r,rl
r+-rVrl
3
3
2
X X
P
0
o 01
1 0
Ra R2 Rl
A,saddr
A +- A V (saddr)
2
314
X X
P
0
flo
o
0
1 1 0
0 R2 Rl Ro
11 1 1 0
Saddr-ollset
A,slr
A+-AV sir
7
4
3
X X
P
0
0
o0
0 0 0 0 1
0 0 1 1 1
0
Sir-oliset
saddr ,saddr
(saddr) +- (saddr) V (saddr)
619
0
3
X X
P
0
1 1 1 1
0
0
Saddr-ollset
Saddr-offset
A,mem
A+-AV (mem)
6-7
4-5
2-4
X X
P
0
0
o0
mod
mem
0
1 1
0
Lowollset
High offset
mem,A
(mem) +- (mem) V A
7-8
2-3
2-4
X X
P
0
0 0 0
mod
mem
1 1
0
Low offset
High offset
XOR
A,H~Yte
A +-'V- byte
3
.3
2
X X
P
0
0 1 1 0
0
Data
saddr,Hbyte
(saddr) +- (saddr) 'V- byte
517
0
3
X X
P
0
0
0 1
0
Saddr-offset
Data
sfr,Hbyte
sir +- sfr ¥- byte
10
3
4
X X
P
0
0 0
o0
0
1 0 1 1 0
0 0 0
Sfr-offset
Data
r,rl
r+- r'V-rl
A,saddr
A +- A'V- (saddr)
3
3
2
X X
P
0
2
X X
P
0
3
X X
P
0
1 0
o
Ra R2 Rl
ai4
o
0 1 1 0 1
flo
0 R2 Rl Ro
0 1 1 1 0
Saddr-offset
A,sfr
..A +-A'f sfr .
7
4
0 0 000 0 0
0 0 1 1 1 0
Sfr-oflset
7-44
fttIEC
pPD7831xA/78P31xA
Instructions (cont)
Mnemonic
Flags
Operallon
States
Idle
SIate8
Byles
(saddr) - (saddr) ¥- (saddr)
6/9
0
3
Operand
Operallon Code (Blt8 7-0)
Byles B1 Ihru B5
S Z AC P/V SUB CY
8-Bit Operation (cont)
XOR (cont) saddr,saddr
X X
p
0
1 1 1 1 0
0
Saddr-offset
Saddr-offset
A,mem
A - A¥- (mem)
6-7
4-5
2-4
X X
P
0
mod
0 0 0
mem
0
1 1 0
Low offset
High offset
mem,A
(mem) - (mem)¥- A
7-8
2-3
2-4
X X
P 0
mod
0 0 0
mem
1 1 0
Low offset
High offset
CMP
A,Hbyte
A - byte
saddr,Hbyte
(saddr) - byte
3
3
2
X X X
V
X
3
X X X
V
X
0 1 0 1 1
Data
5/7
o
0
1
Saddr-offset
Data
sfr,Hbyte
sfr - byte
10
4
4
X X X
V
X
0
o
0 0 0 0 0
1 0 1 1
0
B
Sfr-offset
Data
r,rl
r - rl
A,saddr
A - (saddr)
3
3
2
X X X
V
X
2
X X X
V
X
o
1 0
0 1 1 1 1
R3 R2 R1 RoO R2 R1 Ro
3/4
1
o
0 1 1 1 1 1
Saddr-offset
A,sfr
A - sfr
7
4
3
X X X
V
X
0
o
0 0 0 0 0
0 01 1 1
Sfr·olfset
saddr,saddr
(saddr) - (saddr)
6/8
3
X X X
V
X
0
1 1 1 1
Saddr·offset
Saddr-offset
A,mem
A-(mem)
6-7
4-5
2-4
X X X
V
X
0 0 0
0
mem
mod
1 1
Low offset
High offset
mem,A
(mem) -A
6-7
3-4
2-4
X X X
V
X
0 0 0
mem
mod
1 1
Low offset
High offset
7-45
t\'EC
pPD7831XA/78P31XA
Instructions (cont)
Mnemonic
Operand
Operation
Flags
States
Idle
States
Bytes
4
4
3
S
Z AC P/V SUB CY
Operation Code (Bits 7-0)
Bytes Bl thru 85
16-8it Operation
ADDW
AX,#word
AX, CY ..... AX + word
X X X
V
0
X
0 0 1
o
1 1 0
Low byte
High byte
saddrp,#word
(saddrp), CY ..... (saddrp)
5/7
0
4
X X X
V
0
X
o
0
+ word
o
0 1 1 0
Saddr-offset
Low byte
High byte
slrp,#word
slrp, CY ..... slrp + word
10
3
5
X X X
V
0
X
0 0
0 0
o
o
0 0 0 0
0 1 1 0
SIr-offset
Low byte
High byte
rp,rp1
rp, CY ..... rp + rp1
4
4
2
X X X
V
0
X
1 0
o
0 1 0
o
0
P2 P1 Po 0 1 02 01 00
AX,saddrp
AX, CY ..... AX + (saddrp)
4/5
2
2
X X X
V
0
X
o
0
o
1 1 1 0
Saddr-offset
AX,slrp
AX, CY ..... AX
+ slrp
8
5
3
X X X
V
0
X
0
o
0 0
0 0 0 0 0
o
1 1 1 0
Sft-offset
saddrp,saddrp
(saddrp), CY ..... (saddrp)
+ (saddrp)
6/9
0
3
X X X
V
0
X
0 0 1 1 1 1 0
Saddr-offset
Saddr-offset
SUBW
AX,#word
AX, CY ..... AX - word
4
3
3
X X X
V
X
o
0 1
o
1 1
0
Low byte
High byte
saddrp,#word
(saddrp), CY ..... (saddrp)
-word
5/7
0
4
X X X
V
X
o
0
o
0 1 1
Saddr-offset
Low byte
High byte
7-46
0
ttlEC
pPD7831xA/78P31xA
Instructions (cont)
Mnemonic
Operand
Operallon
Flags
Siaies
Idle
Siaies
Byles
10
3
5
S
Z AC P/V SUB CY
Operallon Code (Blls 7-01
Byles B1 Ihru B5
16-81t Operation (cont)
SUBW
(cont)
slrp,#word
slrp, CY
+-
slrp - word
X X X
V
1
X
0 0
0 0
o
o
0 0 0 0 1
0 1 1
0
SIr-offset
Low byte
High byte
rp,rp1
rp, CY +- rp - rp1
AX,saddrp
AX, CY +- AX - (saddrp)
AX,slrp
AX, CY
4
4
2
X X X
V
X
1 0
o
0 1 0 1 0
4/5
2
2
X X X
V
X
P2 P1 Po 0 102 0100
000 1 1 1 1 0
8
5
3
X X X
V
X
0 0
Saddr-offset
+-
AX - slrp
0
o
o
000 0 1
0 1 1 1
0
Slr-ollset
saddrp,saddrp
(saddrp). CY +- (saddrp)
- (saddrp)
6/9
0
3
X X X
V
1
X
0 0 1 1 1 1
0
Saddr-offset
Saddr-offset
CMPW
AX,#word
AX - word
4
3
3
X X X
V
X
0
o
1 0 1 1
Low byte
High byte
saddrp,#word
(saddrp) - word
4/5
4
X X X
V
X
o
0
o
II
0 1 1
Saddr-offset
Low byte
High byte
slrp,#word
slrp - word
8
4
5
X X X
V
1
X
0 0
0 0
o
o
0 0 0 0
0 1 1
SIr-offset
Low byte
High byte
rp,rp1
rp - rp1
4
4
2
X X X
V
X
1 0
o
0 1 1 1 1
P2 P1 Po 0 1 02 01 00
AX,saddrp
AX - (saddrp)
AX,slrp
AX - slrp
4/5
2
X X X
V
X
000 1 1 1 1 1
3
X X X
V
X
0 0 000 0 0
Saddr-offset
8
4
0
o
0 1 1 1
SIr-offset
saddrp,saddrp
(saddrp) - (saddrp)
5/7
3
X X X
V
X
0 0 1 1 1 1
Sad dr-offset
Sad dr-offset
7-47
tNEC
pPD783'1xA/78P31xA
Instructions (cont)
Mnemonic
Operlnd
Operation
Flags
Stat..
Idle
Statas
Bytes
18
18
2
Operation Code (Bits 7-OJ
Bytes Blthru B5
S Z AC P/v SUB CY
Multiplication/Division
MULU
rl
AX +-Axrl
0 0 0 0
o
1 0
0 0 0 0 1 R2 R1 Ro
DIVUW
MULUW
DlVUX
AX (Quotient), rl (Remainder)
+- AX -HI
26
AX (High-order 16 bits),
rpl (Low-order 16 bits)
+- AX x rpl
27
AXDE (Quotient),
rpl (Remainder)
+- AXDE -;- rpl
50
rl
rl+-rl+l
3
3
1
X X X
V
0
1 1
saddr
(saddr) +- (saddr) + 1
4/6
0
2
X X X
V
0
0
rl
rpl
rpl
26
27
2
0 0 0 0
2
2
1
o
1
1 R2 R1 Ro
0 0 0 0
o
0 0
50
o
0 0 0
1
o
1
0 lQ2Q1Qo
0 0 0 0
o
1
o
1
0 1 ~ Q1 Qo
IncremenVDecrement
INC
o
o
0 0 R2 R1 Ro
1 001 1 0
5addr-offset
DEC
rl
rl+-rl-l
saddr
(saddr) +- (saddr) - 1
3
3
4/6
0
2
X X X
V
X X X
V
1 001R2R1Ro
0
o
1
o
0 1 1 1
5addr-offset ..
INCW
rp2
rp2 +- rp2 + 1
saddrp
(saddrp) +- (saddrp) + 1
..
3
3
1
0 1 00015150
6/8
2
3
0 0 000 1 1 1
1
o
1 000
5addr-offset
DECW
rp2
rp2 -- rp2-1
saddrp
(saddrp) -- (saddrp) - 1
3
3
6/8
2
0 1
3
o
0 1 1 51 50
0 00001 1
1
o
1
o
0
5addr-offset
Shift and Rotate
ROR
rl,n
(CY,rI7 +- rio,
rl m-1-- r1 m)Xn
4+3n
4+3n
2
P
0
X
ROL
rl,n
(CY, rio -- r17,
rl m+1-- rim) x n
4+3n
4+3n
2
p
0
X
(CY -- riO, r17 -- CY,
. rim -1 -- rim) x n
4+3n
(CY""": r17' riO -- CY,
rim + 1-- rim) x n
4+3n
RORC
ROLC
7-48
-- rl,n
rl,n
0 0 1 1 000 0
0 1 N2 N1 No R2 R1 Ro
0
o
1 1
o
0 0 1
0 1 N2 N1 NO R2 R1 RO
4+3n
2
P
0
X
0
0
4+3n
2
P
0
X
0
0
o 1 1 000
o N2 N1 NO R2 R1
o1 1 o0 0
o N2 N1 NO R2 R1
0
RO
1
Ro
NEe
pPD7831xA/78P31xA
Instructions (cont)
Mnemonic
Flags
Operallon Code (BHa 7-01
Byte. Bl thru B5
States
Idle
Statea
Byte.
(CY +- r10, r17 - 0,
r1 m-1- r1 m)xn
4+3n
4+3n
2
(CY - r17, r10 - 0,
r1 m+1- r1m) x n
4+3n
(CY - rp10, rp115 +- 0,
rp1 m-1- rp1 m)xn
4+3n
4+3n
2
X X 0
P
0
X
0 0' 1 1 0 0 0 0
4+3n
4+3n
2
X X 0
P
0
X
0
3
2
Operlnd
Operation
S Z AC PIV SUB CY
Shift and Rotate (cont)
SHR
SHL
r1,n
r1,n
4+3n
rp1,n
SHLW
rp1,n
(CY +- rp115, rp10 - 0,
rp1m + 1 - rp1m) x n
ROR4
[rp1]
A3-0 +- (rp1)a-o,
(rp117-4 - Aa-o,
(rp1)3-ll - (rp1)7-4
7
Aa-O - (rp1)7-4,
(rp1)3-ll - As-o,
(rp117-4 +- (rp1)3-ll
7
Decimal adjust accumulator
3
3
617
4
[rp1]
X X 0
P
P
0
0
X
X
0
0
1
SHRW
ROL4
2
X X 0
o1 1 0 0 0
o N2 N1 No R2 R1
o 11 0 0 0
o N2 N1 No R2 R1
1 1 N2 N1 No 02 01
o
1
Ro
00
1 1 0 0 0 1
1 N2 N1 No 02 01
0 0
0
Ro
o
0
o
00
1 0 1
0 0 0 102 01 00
3
2
0 0 0 0
0 0
o
1 0 1
102 01 00
BCD AdJustment
AOJ4
X X X
P
X
0 0 0 0 0
X
0 0 0 0
0 0
Bit Manipulation
MOV1
CY,saddr.bit
CY - (saddr.bit)
3
0 0 0
0 0 0 0 082 81 80
Saddr-offset
CY,sfr.bit
CY-sfr.bit
7
4
3
X
0 0 001000
0 0 001828180
Sfr-offset
CY,A.bit
CY -A.bit
6
6
2
X
0 0 0 0 001 1
CY,X.bit
CY -X.bit
6
6
2
X
0 0 0 0 182 81 80
0 0 0 0 001 1
CY,PSWL.bit
CY - PSWH.bit
6
6
2
X
0 0 0 0
X
0 0 0 0 182 81 80
0 0 0 0 001 0
0 0 0 0 082 81 80
CY,PSWL.bit
CY
saddr.bit,CY
(saddr.bit) - CY
+-
PSWL.bit
6
6
2
7/8
3
3
o
0 1 0
0 0 0 0 082 81 80
0 0 0 0 100 0
0 0 0
082 81 80
Saddr-offset
sfr.bit,CY
sfr.bit-CY
8
3
3
0 0 00100 0
0 0
A.bit,CY
A.bit- CY
8
8
2
o
1 182 81 80
Sfr-offset
0 0 0 0
0 0
o1
o
0 1 1
1 82 81 80
7-49
II
1ttfEC
pPD7831xA/78P31xA
Instructions (cont)
Mnemonic
Operand
Operation
Flags
States
Idle
Statas
Bytas
8
8
2
S
Operallon Code (Bits 7-0)
Bytes B1 thru B5
Z AC P/V SUB CY
Bit Manipulation (cont)
MOV1
(cont)
X.bit,CY
X.bit +- CY
0 0 0 0
0 0 0
PSWH.bit,CY
PSWH.bit +- CY
9
9
2
0 0 0 0
o0 1
o B2 Bl
o0 1
Bo
0
0 0 0 1 1 B2 Bl Bo
PSWL.bit,CY
PSWL.bit +- CY
9
9
2
X X X
X
X
0 0 0 0
0 0 0 1
AND1
CY,saddr.bit
CY +- CY A (saddr.bit)
6/7
4
3
X
o0 1
o B2 Bl
0
Bo
0 0 0 0 1 000
0 0 1
o
0 B2 B, BO
Saddr-offset
CY,Isaddr.bit
CY +- CY A (saddr.bit)
6/7
4
3
X
0 000 1 000
0 0 1 1
o B2 B,
Bo
Saddr-ollset
CY,slr.bit
CY +- CY A slr.bit
7
4
3
X
0 0
o
0 1 000
0 0 1 01B2B, BO
SIr-offset
CY,I sIr.bit
CY +- CY A slr.bit
7
4
3
X
0 0
o
o
0 1 000
0 1 1 1B28, BO
SIr-offset
CY,A.bit
CY +- CY A A.bit
6
6
2
X
0 0 0 0
o
0 1 1
0 0 1 0 1 B2 B, Bo
CY,lA.bit
CY,X.bit
CY +- CY A A.bit
CY +- CY A X.bit
6
6
6
6
2
2
X
X
0 0 0 0
o
0 0
1 B2 B, Bo
0 0 0 0
o0 1
o B2 B,
o0 1
o B2 B,
o0 1
0 0 1 0
CY,IX.bit
CY +- CY A X.bit
6
6
2
X
0 0 0 0
0 0 1 1
CY,PSWH.bit
CY +- CY A PSWH.bit
6
6
2
X
0 0 0 0
0 0
CY, I PSWH.bit
CY,PSWL.bit
CY +- CY A PSWH.bit
CY +- CY A PSWL.bit
6
6
6
6
2
2
X
X
CY +- CY A PSWL.bit
6
6
2
X
CY,saddr.bit
CY +- CY V (saddr.bit)
6/7
4
3
X
1
Bo
0
0 0 0 0
o
0 0 1
1 B2 B, Bo
0 0 0 0
o0 1
o B2 Bl
o0 1
o B2 B,
0 0 0 0
0 0 1 1
ORI
1
Bo
0 1 B2 B, Bo
0 0 1 0
CY,IPSWL.bit
0 1 1
0 1 0
0
Bo
0
Bo
0 0 0 0 1 000
0
0 0 OB2B1 BO
Saddr-offset
CY,I saddr.bit
CY +- CY V (saddr.bit)
6/7
4
3
X
0 000 1 000
o
1 0 1
o B2 Bl
Saddr-offset
7-50
Bo
NEe
pPD7831xA/78P31xA
Instructions (cont)
Mnemonic
Operand
Operation
Flags
States
Idle
States
Bytes
7
4
3
Operation Code (Bits 7-0)
Bytes B1 thru B5
S Z AC P/V SUB CY
Bit Manipulation (cont)
ORI
(cont)
CY,sfr.bit
CY - CY V sfr.bit
X
0 0 o 0 1 o 0 0
0
o 0 lB2B1 BO
Sfr-offset
CY'/sfr.bit
CY - CY V sfr.bit
7
4
3
X
0 0 o 0 1 000
0
0 1 lB2B1 BO
Sfr-offset
CY,A.bit
CY - CY V A.bit
6
6
2
X
0 0 0 0 0 o 1 1
CY,/A.bit
CY - CY V A.bit
6
6
2
X
0 0 0 0 0 o 1 1
CY,X.bit
CY - CY V X.bit
6
6
2
X
0 0 0 0 o 0 1 1
CY,/X.bit
CY -
6
6
2
X
CY,PSWH.bit
CY - CY V PSWH.bit
6
6
2
X
CY, I PSWH.bit
CY -
CY V PSWH.bit
6
6
2
X
0 0 0 0 0 0 1 0
CY,PSWL.bit
CY - CY V PSWL.bit
6
6
2
X
0 0 0 0 0 0 1 0
0 1 0 0 1 B2 B1 Bo
0 1 0 1 lB2B1 BO
0 1 0 0 o B2 B1 Bo
CY V X.bit
0 0 0 0 o 0 1 1
0
0
0 B2 B1 Bo
0 0 0 0 o 0 1 0
0
0 0
0 1 0
0
CY,/ PSWL.bit
CY -
CY V PSWL.bit
6
6
2
X
CY,saddr.bit
CY - CYJ,f- (saddr.bit)
6/7
4
3
X
B2 B1 Bo
0 0 0 B2 B1 Bo
0 0 0 0 o 0 1 0
0
XORI
B2 B1 Bo
0
0 B2 B1 Bo
0 0 0 0 1 000
0
0 o B2 B1 Bo
Saddr-offset
CY,sfr.bit
CY - CY J,f- sfr.bit
7
4
3
X
0 0 o 0 1 000
0
1 01B2B1 BO
Sfr-offset
CY,A.bit
CY - CY J,f- A.bit
6
6
2
X
CY,X.bit
CY - CY J,f- X.bit
6
6
2
X
0 0 0 0 o 0 1 1
0
1 0
B2 B1 Bo
0 0 0 0 o 0 1 1
0 1 1 0 OB2B1 BO
CY,PSWH.bit
CY - CY J,f- PSWH.bit
6
6
2
X
0 0 0 0 o 0 1 0
0 1
CY,PSWL.bit
CY - CY J,f- PSWL.bit
6
6
2
X
0 1 B2 B1 Bo
0 0 0 0 o 0 1 0
0
0 o B2 B1 Bo
7-51
II
ttiEC
pPD7831xA!78P31xA
Instructions (cont)
Mnemonic
Operand
Operation
Siaies
Idle
Siaies
Flags
Bytes
Operation Code (Blls 7-0)
Byles B1 Ihru B5
S Z AC P/V SUB CY
Bit Manipulation (cont)
sm
saddr.bit
(saddr.bit) - 1
5/7
2
0 1 1
o B2 B1BO
Saddr-offset
slr.bit
slr.bit -1
8
2
0 0
3
1 0
o
o
0 1 000
0 1 B2 B1 Bo
SIr-offset
A.bit
A.bit-1
7
7
2
0 0 0 0 0 0 1 1
X.bit
X.bit-1
7
7
2
0 0 0 0
1 0 0 0 1 B2 B1 Bo
0 0 0
PSWH.bit
PSWH.bit -1
8
8
2
PSWL.bit
PSWL.bit-1
8
8
2
0 0 0 0
o0 1
o B2 B1
o0 1
1
Bo
0
1 0 0 0 1B2B1 BO
X X X
X
X
X
0 0 0 0
0 0 0
CLR1
saddr.bit
(saddr.bit) - 0
2
5/7
0
o0 1
o B2 B1
0
Bo
0 OB2B1 BO
Saddr-offset
slr.bit
sIr. bit +- 0
8
2
0 000 1 000
3
0 0 1 1 B2 B1 Bo
SIr-offset
A.bit
7
A.bit-O
7
2
0 0 0 0
o
0 1 1
0 0 1 1 B2 B1 Bo
X.bit
X.bit-O
7
7
2
0 0 0 0 0 0 1 1
PSWH.bit
PSWH.bit-O
8
8
2
0 0 0 0
0 0 1 0 B2 B1 Bo
o
0 1 0
1 0 0 1 1B2B1 BO
PSWL.bit
PSWL.bit-O
8
8
2
X X X
X
X
X
0 0 0 0
1 0 0 1
NOT1
saddr.bit
(saddr.bit) -
(saddr.bit)
6/8
2
o0 1
o B2 B1
0
Bo
0 0 0 0 1 000
3
o B2 B1
0
Bo
Saddr-offset
sIr. bit
slr.bit - sIr. bit
8
2
3
0 0
o
0
1 1 1 B2 B1 BO
0 1 000
Slr-ollset
A.bit
X.bit
A.bit - A.bit
7
7
X.bit - X.bit
PSWH.bit
PSWH.bit -
PSWH.bit
PSWL.bit
PSWL.bit -
PSWL.bit
7
7
2
2
8
8
2
8
8
2
0 0 0 0
o
0
1 B2 B1 BO
0 0 0 0
o
0 1
0 B2 B1 BO
0 1 1
0 0 0 0 0 0 1 0
0 1
X X X
X
X
X
1
B2 B1 BO
0 0 0 0 0 0 1 0
0
7-52
0 1 1
0 B2 B1 Bo
";EC
IIPD7831xAl78P31xA
Instructions (cont)
Mnemonic
Operand
Operation
States
Idle
States
Flags
Bytes
S
Operallon Code (Bits 7-0)
Bytes Bl thru B5
Z AC P/V SUB CY
Bit Manipulation (cont)
SETI
CY
CY-l
3
3
CLRI
CY
CY-O
3
3
0
CY-CY
3
3
X 0
(SP - 1) - (PC + 3)H,
(SP - 2) - (PC + 3)l,
PC - addrl6,
SP - SP-2
(SP -1) - (PC + 2)H,
(SP - 2) - (PC + 2lL,
PC - addrll,
SP- SP-2
(SP - 1) - (PC + I)H,
(SP - 2) - (PC + l)l,
PCH - (TPF x 8000H
+ addrS + 1),
PCl - (TPF x 8000H
+ addrS),
SP- SP-2
8
0
NOTI
CY
CalifReturn
!addrl6
CALL
CALLF
!addrll
CALLT
[addrS]
CALL
rpl
[rpl]
BRK
(SP - 1) - (PC + 2)H,
(SP - 2) - (PC + 2lL,
PCH - rplH' PCl - rp1l,
SP - SP-2
(SP - 1) - (PC + 2)H,
(SP - 2) - (PC + 2lL,
PCH - (rpl)H, PCl - (rpl)l,
SP - SP-2
(SP -1) - PSWH,
(SP - 2) - PSWl,
(SP - 3) - (PC + I)H,
(SP - 4) - (PC + Ill,
PCl - (OO3EH),
PCH - (OO3FH),
SP - SP-4
IE-O
0 0 0 0
0 0
0
0
0 0 0
High addr
8
0
2
1 0 0 1
o flO
f9 fa
f7 f6 f5 f4 f3 f2 fl fo
1 1 1 14 t3 t2 tl to
13
0
9
0
2
0 0 0 0 0 1 0 1
0 1 0
1 02 01 00
11
0
2
0 0 0 0 0 1
0
20
0
0
o
PCl - (SP),
PCH - (SP + 1),
SP - SP+2
8
0
RETI
PCl - (SP),
PCH - (SP + 1),
PSWl - (SP + 2),
PSWH - (SP + 3),
SP - SP+4,
EOS-O
14
0
((SP -1) - rpPH,*
(SP - 2) - rPPl,
SP - SP-2) x n
41+4n
41
(SP -1) - PSWH,
(SP - 2) - PSWl,
SP- SP-2
S
PSW
0 0 0 0 0 1
0 0 0 0 0 0
Lowaddr
RET
Stack Manipulation
PUSH
post
3
0
0
R R R
R
2
R R
o
1
02 01 00
1 1 0
0
1 0 1 0 1 1 0
0 1 0 1 0 1 1 1
o
0 1 1
o
1 0 1
Post byte
0 1
o
0 1 0
o
1
'rpp refers to register pairs specified in post byte. n is the number of register pairs specified in post byte.
7-53
II
1\'EC
pPD7831xA/78P31xA
Instructions (cont)
Flags
Operallon
Statas
Idle
States
Bytes
((UP - 1) - rpPH,*
(UP - 2) - rpPl.
UP -- UP - 2) x n
42+4n
42
2
(rpPl -- (SP),*
rpPH -- (SP + 1).
SP -- SP + 2) x n
41+5n
PSW
PSWl - (SP).
PSWH -- (SP + 1).
SP - SP+2
6
2
post
(rpPl -- (UP),*
rpPH -- (UP + 1).
UP - UP + 2) x n
42+5n
42+n
Mnemonic
Operand
Operallon Code (Bits 7-0)
Bytas Blthru B5
S Z AC P/V SUB CY
Stack Manipulation (cont)
PUSHU
POP
POPU
MOVW
post
post
Sp,tlword
SP-word
0 0 1 1
o
1
Post byte
41+n
o
2
0 1 1
o
1
o
0
o
0
Post byte
R R R
R
R
2
R
0 1
o
o
0 1 0
0 1 1
o
1 1 0
Post byte
4
0
4
0 0
o
1
1 1 1 1 0 0
0 1 0 1
Low byte
High byte
o
0 1
2
0 0 0 1
2
0 0
0 0 0 1 0 0 0 1
SP.AX
SP-AX
4
AX.SP
AX-SP
4
INCW
SP
SP -- SP+ 1
5
5
2
0 0 0 0 0 1 0 1
1 1 0 0 1 0 0 0
DECW
SP
SP - SP-1
5
5
2
0 0 0 0 0 1 0
0 0
0 0
PC -- addr16
4
0
3
0 0
0
1 1 1 1 1 1 0 0
Unconditional Branch
BR
!addr16
0
0 0
Lowaddr
High addr
o
PCH -- rp1H. PCl - rp1l
5
0
2
[rp1)
PCH - (rp1)H. PCl - (rp1lL
8
0
2
0 0 1 0 1
0 1 0 0 102 0100
0 0 0 0 o 1 o 1
$addr16
PC -
7
0
2
0 1 1 0 1D2 01 00
0 0 0
0 1 o 0
rp1
addr16
0 0
jdisp
Conditional Branch
BC
or BL"
$addr16
BNC
or BNL"
$addr16
BZ
or BE"
$addr16·
PC - addr16 if CY = 1
7(3)
0(3)
2
o
0 0
jdisp
PC -
addr16 if CY =0
7(3)
0(3)
2
0 0
o
0 0
jdisp
PC - addr16 if Z = 1
7(3)
0(3)
2
. 'rpp refers to register pairs specified in post byte. n is th·e number of register pairs specified in post byte.
"Either of the two mnemonics may be used·.
7-54
0 0
0 0
o
0 0 0
jdisp
0
t-IEC
pPD7831xAJ78P31xA
Instructions (cont)
Mnemonic
Operand
Operation
Flags
States
Idle
Stales
Bytes
7(3)
0(3)
2
S Z AC P/V SUB CY
Operation Code (Bits 7-0)
Bytes Blthru B5
Conditional Branch (cont)
BNZ
or BNE"
$addrl6
BV
or BPE"
$addrl6
BNV
or BPO"
$addrl6
BN
$addrl6
PC -- addr16 if Z = 0
0 0
o
0 0 0 0
jdisp
PC -- addr16 if P/v = 1
7(3)
0(3)
2
0 0
o
0
0
jdisp
PC -- addr16 if P/V = 0
7(3)
0(3)
2
0 0
o
0 0
0
jdisp
PC -- addr16 if S = 1
7(3)
0(3)
2
0 0
o
0
jdisp
BP
$addrl6
PC -- addr16 if S = 0
7(3)
0(3)
2
0 0
o
0
0
jdisp
BGT
$addrl6
PC -- addr16 if
(P/V.Y.S) V Z = 0
9(5)
0(5)
3
0 0 0
o
0 1
1 1 0
jdisp
BGE
$addrl6
PC -- addr16 if p/V.y. S = 0
9(5)
0(5)
3
0 0 0
o
0 1
1 1 0 0
jdisp
BlT
$addr16
PC -- addr16 if p/V.y. S = 1
9(5)
0(5)
3
0 0 0
o
1
1 1 0 0 0
0 1 1 1
jdisp
BlE
$addrl6
PC -- addr16 if
(p/V.y. S) V Z = 1
9(5)
0(5)
3
0 0 0
o
0 1
1
1 1 0
0
jdisp
BH
$addrl6
PC -- addr16 if Z V CY = 0
9(5)
0(5)
3
0 0 0
o
0
1 1
0 1
jdisp
BNH
$addr16
PC -- addr16 if Z V CY = 1
9(5)
0(5)
3
0 0 0
o
0
1 1
1 1
0 0
jdisp
BT
saddr.bit,$addrI6
PC -- addr16 if
(saddr.bit) = 1
9(6)1
10m
0(4)
PC -- addr16 if
sfr.bit= 1
11(8)
0(5)
3
0
1 OB2B1 BO
Saddr-offset
jdisp
sfr.bit,$addrI6
4
0 0
o
0 1
o
0 0
0 1 1 lB2B1 BO
Sfr-offset
jdisp
A.bit,$addrI6
PC -- addr16 if A.bit = 1
10(7)
0(7)
3
0 0 0 000 1 1
0
1 1 B2 Bl Bo
jdisp
"Either of the two mnemonics may be used.
7-55
II
ttiEC
pPD7831xA/78P31xA
Instructions (cont)
Mnemonic
Operation
Operand
Flags
States
Idle
States
Bytes
10(7)
0(7)
3
S Z AC P/V SUB CY
Operation Code (Bils 7-01
Bytes B1 thru B5
Conditional Branch (cont)
BT (cont)
X.bit,$addr16
PC -
addr16 if X.bit = 1
0 0 0 000 1
0
1
o B2
B1 Bo
jdisp
PSWH.bit,$addr16
PC - addr16 if
PSWH.bit = 1
10(7)
0(7)
3
0 0 0 000 1 0
0
1 1 B2 B1 Bo
jdisp
PSWl.bit,$addr16
PC - addr16 if
PSWl.bit = 1
10(7)
0(7)
3
0 0 0 000 1 0
1 0 1 1
o B2
B1 Bo
jdisp
BF
saddr.bit,$addr16
PC - addr16 if
(saddr.bit) = 0
10(7)1
11(8)
0(5)
4
0 0 0 0 1 000
1 0 1 0
o B2
B1 Bo
Saddr-offset
jdisp
sfr.bil,$addr16
PC -
addr16 if sfr.bit = 0
11(8)
0(5)
4
0 0 0 0 1 0 0 0
1 0 1 0 1 B2 B1 Bo
Sfr-offset
jdisp
A.bit,$addr16
PC -
addr16 if A.bit = 0
10(7)
0(7)
3
0 0 0 000 1 1
0
0 1 B2 B1 Bo
jdisp
X.bit,$addr16
PC -
addr16 if X.bit = 0
10(7)
0(7)
3
0 0 0 000 1 1
1 0
o
0 B2 B1 Bo
jdisp
PSWH.bit,$addr16
PC - addr16 if
PSWH.bit = 0
10(7)
0(7)
3
0 0 0 000 1 0
0
0 1 B2 B1 Bo
jdisp
PSWl.bit,$addr16
PC - addr16 if
PSWl.bit=O
10(7)
0(7)
3
0 0 0 000 1 0
0
o
0 B2 B1 Bo
jdisp
BTClR
saddr.bit,$addr16
PC - addr16 if
(saddr.bit) = 1;
then reset (saddr.bit)
12(7)1
14(8)
PC - addr16 if
sfr.bit = 1;
then reset sfr.bit
14(8)
PC - addr16 if A.bit = 1;
then reset A.bit
11(7)
0(5)
4
0 0 0 0 1 000
1 1 0 1
o B2
B1 Bo
Sad dr-offset
jdisp
sfr.bit,$addr16
0(5)
4
0 0 0 0 1
o
0 0
1 0 1 1B2B1 BO
Sfr-offset
jdisp
A.bit,$addr16
0(7)
3
0 0 0 000 1 1
1 0 1 1 B2 B1 Bo
jdisp
7-56
NEe
IIPD7831xA/78P31xA
Instructions (cont)
Mnemonic
Operlnd
Operallon
Flags
States
Idle
Statas
Bytes
11(7)
0(7)
3
S Z AC P/V SUB CY
Operation Code (Bits 7-OJ
Bytes Bl thru 85
Conditional Branch (cont)
BTCLR
(cont)
X.bit,$addr16
PC -- addr16 if X.bit = 1;
then reset X.bit
0 0 0
o
0 1
0 0 1 1
o 8:! B1
So
jdisp
PSWH.bit,$addr16
PSWL.bit,$addr16
BFSET
sadd r.bit,$add r16
PC -- addr16 if
PSWH.bit = 1;
then reset PSWH.bit
12(7)
0(7)
PC -- addr16 if
PSWL.bit = 1;
then reset PSWL.bit
12(7)
PC -- addr16 if
(saddr.bit) = 0;
then set (saddr.bit)
12(7)/
14(8)
0(5)
PC -- addr16 if sfr.bit = 0;
then set sfr.bit
14(8)
0(5)
3
0 0 0 000 1 0
0 1 1 8:! B1 So
jdisp
0(7)
3
X X
X
X
X
X
0 0 0 000 1 0
1 1 0 1
o 8:! B1
So
jdisp
4
0 0 0
o
1 000
0 00B2B1 BO
Sad dr-offset
jdisp
sfr.bit,$add r16
4
0 0
o
0 1
o
0 0
001B2B1 BO
Sfr-offset
jdisp
A.bit,$addr16
PC -- addr16 if A.bit = 0;
then set A.bit
11(7)
0(7)
3
0 0 0 000 1 1
0 01B2B1 BO
jdisp
X.bit,$addr16
PC -- addr16 if X.bit = 0;
then set X.blt
11(7)
0(7)
0 0 0 000 1 1
3
0 00B2B1 BO
jdisp
PSWH.bit,$addr16
PSWL.bit,$addr16
DBNZ
r2,$addr16
saddr,$addr16
PC -- addr16 if
PSWH.bit = 0;
then set PSWH.bit
12(7)
PC -- addr16 if
PSWL.bit = 0;
then set PSWL.bit
12(7)
r2 -- r2-1;
then PC - addr16 if r2 # 0
8(5)
(saddr) -- (saddr) - 1;
then PC -- addr16 if
saddr # 0
9(6)/
11(8)
0(7)
3
0 0 0 000 1 0
0
0(7)
3
X X X
X
X
X
o 18:!B1BO
jdisp
0 0 0 000 1 0
0 008:! B1So
jdisp
0(5)
2
0 0
1 0 0
Co
jdisp
0(2)
3
0 0
1 1 0
Saddr-offset
jdisp
7-57
II
t\fEC
pPD7831xA/78P31xA
Instructions (cont)
States
Idle
States
Bytes
PCH - - R5. PCl - - R4.
R7 - PSWH. R6 - PSWl.
RBS2-RBSO - n.
RSS-O.IE-O
12
0
2
PCH - R5. PCl - R4.
R5. R4 - !addrI6.
PSWH - R7.
PSWL - R6. EOS - 0
6
(DE+) - A. C - C - 1
End if C= 0
2+7n
(4+7n)
2+5n
(3+5n)
2
(DE-) - A. C - C -1
End if C = 0
2+7n
(4+7n)
2+5n
(3+5n)
2
[DE+l.[HL+l
(DE+) - (HL+). C - C-1
End if C= 0
2+10n
(4+ IOn)
2+6n
(3+6n)
2
0001010
[DE-l.[HL-l
(DE-) - (HL-). C - C -1
End if C= 0
2+10n
(4+ IOn)
2+6n
(3+6n)
2
00010101
[DE+l.A
(DE+) - - A. C End if C = 0
C-1
2+12n
(4+ 12n)
2+6n
(3+6n)
2
00000
[DE-].A
(DE-) - - A. C End if C = 0
C -1
2+12n
(4+12n)
2+6n
(3+6n)
2
0001010
[DE+l.[HL+l
(DE+) - - (HL+). C - C-1 2+15n
End if C= 0
(4+ 15n)
2+7n
(3+7n)
2
00010101
[DE-l.[HL-l
(DE-) +----+ (HL-). C - C-1 2+15n
End if C = 0
(4+ 15n)
2+7n
(3+7n)
2
o
o
o
(DE+) - A. C - C-l
End if C = 0 or Z = 0
2+7n
(4+7n)
2+5n
(3+5n)
2
[DE-l.A
(DE-) - A. C - C- 1
End if C = 0 or Z = 0
2+7n
(4+7n)
2+5n
(3+5n)
2
X X X
V
[DE+l.[HL+l
(DE+)-(HL+).C-C-l
End if C = 0 or Z = 0
2+1On
(4+IOn)
2+6n
(3+6n)
2
X X X
[DE-J.(HL -1
(DE-)-(HL-).C-C-l
End if C= 0 or Z = 0
2+10n
(4+10n)
2+6n
(3+6n)
2
[DE+l.A
(DE+) - A. C - C-l
End if C= 0 or Z = 1
2+7n
(4+7n)
2+5n
(3+5n)
2
[DE-l.A
(DE-) - A. C - C- 1
End if C= 0 or Z = 1
2+7n
(4+7n)
2+5n
(3+5n)
2
X X X
V
[DE+l.[HL +1
(DE+)-(HL+).C-C-l
End if C = 0 or Z = 1
2+10n
(4+ IOn)
2+6n
(3+6n)
2
X X X
V
[DE-l.[HL -1
(DE-)-(HL-).C-C-l
End if C = 0 or Z = 1
2+10n
(4+10n)
2+6n
(3+6n)
2
X X X
V
Mnemonic
Operand
Operation
S
Flags
Z AC P/V SUB CY
Operallon Code (Bits 7-0)
Bytes Bl thru B5
Context Switch
BRKCS
RETCS
RBn
!addrl6
0 0 0 0 0 1 0 1
1 0
o
3
RRRRRROO
1 N2 N1 No
01001
Lowaddr
High addr
String
MOVM
[DE+l.A
[DE-l.A
MOVBK
XCHM
XCHBK
CMPME
CMPBKE
CMPMNE
CMPBKNE
7-58
[DE+l.A
000
0
01
000 0 0 0 0
000
000
o
0
V
X
1
0
0001
0 0 0 0
o
0 1
0 0 0
o
0000
0 0 0 0 0 0
000
X X X
0
0 0 0
0 0 0 0 0
001
o
o
o
o
o
o
0 000
o
0 0 1
0
0 0
X
0 0 0 1 0 1 0 1
0 0 0
0
0 0
V
X
0 0 0
0
0 0 1 0 0
0
0 0
X X X
V
X
0 0 0
0 0
0
0
0
0 0
X X X
V
X
0 0 0
0
o
o
o
o
o
o
o
o
1
o
0 000
X
0 0 0
0 0 0
0
0
1
X
000
0
0 0 1 0 0
1
X
0 0 0
0 0
0
0
ttlEC
pPD7831xA/78P31xA
Instructions
Flags
States
Idle
States
(DE+) - A, C - C - 1
End if C= 0 or CY = 0
2+7n
(4+7n)
2+5n
(3+5n)
2
(DE-) - A, C - C - 1
End if C= 0 or CY = 0
2+7n
(4+7n)
2+5n
(3+5n)
2
[DE+],[HL+]
(DE+) - (HL+), C - C-l
End if C = 0 or CY = 0
2+10n
(4+10n)
2+6n
(3+6n)
2
X X X
V
[DE-],[HL-]
(DE-) - (HL-), C- C-l
End if C= 0 or CY = 0
2+10n
(4+10n)
2+6n
(3+6n)
2
X X X
[DE+],A
(DE+) - A, C - C - 1
End if C= 0 or CY = 1
2+7n
(4+7n)
2+5n
(3+5n)
2
[DE-],A
(DE-) - A, C - C -1
End if C= 0 or CY = 1
2+7n
(4+7n)
2+5n
(3+5n)
[DE+],[HL+]
(DE+) - (HL+), C - C-l
End if C= 0 or CY = 1
2+10n
(4+10n)
[DE-],[HL-]
(DE-) - (HL-), C - C-l
End if C= 0 or CY = 1
2+10n
(4+10n)
Mnemonic
Operand
Operation
Bytes
S
Operation Code (Bits 7·0)
Bytes B1 thru B5
Z AC P/V SUB CY
String (cont)
CMPMC
[DH],A
[DE-],A
CMPBKC
CMPMNC
CMPBKNC
X X X
V
X
0 0 0 1 0
0
0 0 0 0 0
X X X
V
X
0 0 0
0
0 0 0
0
1
X
0 0 0
0
0
0 0 1 0 0
1
V
X
0 0 0
0
0
0 0 1
0
1 1
X X X
V
X
0 0 0
0
0
0 0 0 0 0
1 0
2
X X X
V
X
0 0 0
0
0
0 0 0
0
0
2+6n
(3+6n)
2
X X X
V
X
0 0 0 1 0
0 1
2+6n
(3+6n)
2
X X X
V
X
0 0 0
0
0 0
0
0 0
0
0 0
0
0
0
CPU Control
MOV
STBC,Hbyte
STBC -
6
byte
4
0 0 0 0 1 0 0 1
0
0 0 0
0 0
Data
Data
WDM,Hbyte
WDM -
4
6
byte
0 0 0
0
0
o
o
1 0 0
0 0 1 0
Data
Data
SWRS
SEL
RSS -
RSS
3
3
0 1 0 0 0
o
1 1
RBn
RSS - 0, RBS2·RBSO - n
4
4
2
0 0 0 0 0 1 0 1
RBn,ALT
RSS -1, RBS2·RBSO -
4
4
2
0 0 0 0
0
n
0 1 N2 N1 No
0
o
1 0 1
1 N2 N1 No
o
NOP
No operation
3
3
0 0 0 0
EI
IE - 1 (Enable interrupt)
3
3
0
0 0
0
1
DI
IE - 0 (Disable interrupt)
3
3
0
0 0
0
0
0 0 0
7-59
II
pPD7831xA/78P31xA
7-60
t-IEC
tvEe
NEG Electronics Inc.
Description
The pPD7832x (78320, 78322) is a single-chip microcomputer designed for process control. It features a 16-bit
CP\..I. an 8-bit external data bus, and a powerful set of
on-chip peripherals including counters and timers, an
A/D converter, two serial ports, and a maximum of 55
input/output lines.
An advanced interrupt handling facility includes a
ttJree-level program-controlled hardware priority interrupt controller and three separate methods of handling
interrupt requests. It is manufactured of 1.2p CMOS
process, operates from a single 5 V power supply, and
has a maximum oscillator frequency of 16 MHz.
The pPD7832x has 16K bytes of on-Chip maskprogrammed ROM, and the pPD78320 is a ROM-less
ve{Sion. Both chips have 640 bytes of on-chip RAM and
are supplied in a 68-pin PLCC ,or 74-pin plastic QFP
package.
The pPD7832x has an interface for a special dedicated
memory chip. the pPD71 P301. The pPD71 P301 includes
memory, interface circuitry, and an instruction prefetch
pointer. This makes it possible to fetch instructions from
external memory at the same high speed at which they
can be fetched from on-Chip ROM.
The primary applications of the pPD7832x include automotive engine contrOl, antilock braking control, and
control of computer disks and tapes. Its speed and
powerful on-Chip peripherals, however, make it suitable
for all of the more demanding types of process control.
Features
o Complete single-chip microcomputer
-16-bitALU
-16K bytes of ROM (pPD78322 only)
- 640 bytes RAM
o Powerful instruction set
~ 16-bit multiply and divide
-1-bit and 8-bit logic instructions
~ String instructions
o Minimum instruction time
-~
pPD7832x
Advanced 8/16-Bit,
Real Time Control Microcomputer
Wi1h AID Converter
o Large I/O capacity
- Up to 55 I/O port lines
o Special interface for turbo access manager (TAM)
pPD71P301
o Memory-mapped on-chip peripherals
(special function registers)
o Multipurpose pulse input/output unit
-16-/18-bit free-running timer
-16-bit timer/event counter
- Six 16-bit compare registers
- Four 18-bit capture registers
- Two 18-bit capture/compare registers
- Six external interrupt/capture lines
- One external event counter/interrupt line
-Six timer-controlled output lines
o 10-bit, 8-channel analog to digital converter
- On-chip sample and hold amplifier
o Two-channel serial communication interface
- Asynchronous serial interface (UARl)
- Serial bus interface
- Dedicated baud rate generator
o Programmable priority interrupt controller (3 levels)
o Three methods of interrupt service
- Vectored interrupts
- Context switching with hardwar~ save of all
general registers
- Nine macroservice functions
o watchdog timer with dedicated output
o STOP and HALT standby functions
o Single 5-volt power supply
Ordering Information
Part Number
On-Chip ROM
.pPD78320L
Package Type
No
68-pln PLCC
pPD78320GJ-5BJ
No
74-pin plastic QFP
pPD78322L-xxx
Yes
68-pin PLCC
pPD78322GJ-xxx-5BJ
Yes
74-pin plastic QFP
xxx is the mask code number
ns @ 16-MHz input
o 3-byte in~truction prefetch queue
o Memory expansion
8085 bus compatible
- 64K-byte address space
- High-speed fetch from external memory
-
7-61
NEe
pPD7832x
Pin Configurations
tiB-Pin PLeC
P71/AN1
P30ITxD
P70/ANO
P31/RxD
P3iSO/SBO
AVss
P33/SIISB1
VDD
P34SCK
PS7/A1S
PSoITOOO
PSs'A14
P81ITOO1
PSs'A13
P8;!ITOO2
PS4A12
P831TOO3
PS3/A11
P84IT010
PS2"A10
PS1/Ag
P8SIT011
RESET
PSoIA8
X2
48
P47/AD7
X1
47
P4&,AD6
VSS
46
P4S/ADS
WDTO
4S
P44AD4
RTPo/POO
44
P43"AD3
83R[).6731B
7-62
NEe
pPD7832x
Pin Configuration (cont)
74-Pin Plllstic QFP
POO/RTPO
WDTO
P4:!/AD 3
P44AD4
VSS
IC
P4f;/AD 5
P4s/AD 6
P,?/AD 7
P5Q/A8
X1
51
X2
RESET
P51/Ag
P8sfT011
P52/A10
P84fT0 10
P5alA11
PBafTOO3
P82"lOO2
P81ITOO1
P8oITOOO
NC
P54fA 12
P55/A13
IC
P5slA 14
P57/A15
VDD
P34fSCK
41
P3a1SI/SB1
P3~SO/SBO
AVSS
P70/ANO
P31/RxD
P71/AN1
P3o/TxD
II
83RD-6730B
7-63
NEe
pPD7832x
Pin Function
Symbol
Second Function
RTPO-RTP7
Bit seleotable, timer-oontrolled,
port
Port 2; 8-bit input port
NMI
INTPO.
INTP1
INTP2
INTP3
INTP4
INTP5
INTP6/T1
External nonmaskable interrupt
Maskable external interrupts; edge-selectable
Port 3; 5-bit, bit selectable I/O port
TxD
RxD
SO/SBO
SVSB1
SCK
Asynchronous serial transmit
Asysnchronous serial receive
Synchronous serial line
Synchronous serial line
Serial olock input or output
Symbol
First Function
POO-P07
Port 0; 8-bit,bit seleotable
va port
va port
va port
Port 4; 8-bit, byte selectable
P50-P5]
Port 5; 8-blt, bit selectable
Port 7; 8-bit input port
Port 8; 6-bit, bit selectable
va port
Port 9; 4-bit, bit-seleotable I/O port
ASTB
External address latoh strobe
EA
External aooess 90ntrol; a high level enables
aooess to on-ohip ROM; a low level is applied if
all program memory is external. Must be tied
low for the JlPD78320.
RESET
External system reset Input
WDTO
Watchdog timer output
X1,X2
For frequency oontrol of the internal olook
oscillator, a crystal is conneoted to X1 and X2.
If the clock is supplied by an external source,
the clock signal is connected to X1 and the
inverted clock signal is connected to X2.
AID converter reference voltage input
+ 5-volt power input
AVee
AID converter
AVss
AID converter ground
Vee
+ 5-volt power input
Vss
Ground
7-64
ADo-AD7
rea~time
output
External Interrupt or timer input
Low-order byte of external address/data bus
High-order byte of external address bus
ANO-AN7
Inputs for A/D converter
TOOO
T001
T002
T003
T010
T011
Timer (RPU) output lines
RD
WR
TAS
TMD
External read strobe
External write strobe
TAM strobe,
TAM oontrol
NEe
pPD7832x
"PD7832x Block Diagram
Execution
NMI (P20)
INTPO • INTPS
Memory
Control
X1
X2
Programmable
Interrupt
Controller
RESET
ASTB
(P2 1·P2 S)
AD (P90)
ROM
1SK Bytes
WR( P9 1)
&
TAS (P92l
RAM
384'Bytes
TMD(P93)
EA
TOOO (PSO)
Too1 (PS1)
Too2 (PS2)
T003 (f'S:Jl
Timer/Counter
Unit
(Real·tlme
Pulse Unit)
Micro Sequence
Control
I
Micro ROM
As·A 1S
(PS O·PS 7)
I
ADO·AD7
(P40· P47)
T010 (PS4l
T011 (PSS>
TVINTPS (P27)
SCK (P34)
SO/SBO (P32)
SVSB1 (P33)
TxO (P30)
Serial Interface
(SBI)
(UART)
P90· P9 3
PSo· PS
s
RxO (f'31)
P7o· P7 7
WDTO
AVSS
AVREF
PS o • PS 7
II
P40· P47
ANO • AN7 (P7)
INTPS
AVDD
VO
Ports
AID Converter
(10 Bit)
(S Channels)
P3 0 • P3 4
P20· P27
PO o ·P1 7
V DD VSS-
83RD-6732B
7-65
NEe
pPD7832x
FUNCTIONAL DESCRIPTION
External Memory
Central Processing Unit
The. external memory bus is 8 bits wide, and external
memory can be used to fill up the 64K-bit address space.
Either ROM or RAM (or both) can be used as required.
The low order 8 bits of the address/data bus are multiplexed, and are supplied by I{O port 4. High-order
address bits are taken from port 5 as required. Address
latch, read, and write strobes are provided. Two special
control lines provide access to the TAM. The memory
mode register controls the size of the external memory
and the number of additional wait states. The high-order
address uses 0, 4, 6, or.8 bits from port 5, depending on
the amount of external memory required, Any remaining
port 5 bits can be used for I/O. Figure 1 shows the
memory map of the J£PD7832x.
The Central Processing Unit (CPU) of the J£PD7832x
features 16-bit arithmetic including 16-by-16 bit multiply,
both signed and unsigned, and 32-by-16 bit divide (producing a 32-bit quotient and 16-bit remainder). String
instructions and both 8-bit and 1-bit logic instructions
are included.
Instructions range in length from one to five bytes,
depending on the instruction and addressing mode. A
1-byte call instruction can access up to 32 addresses
specified in the CALLT vector table in lower memory. A
2-byte call instruction can access any routine beginning
in a specific CALLF area. A single instruction can test
individual bits both in a portion of on-chip RAM and in
the special function registers.
A 3-byte instruction prefetch queue makes it possible to
fetch instruction bytes on a separate bus during execution cycles. Instructions are fetched from on-chip ROM at
a rate of one byte per cycle. An interface is provided for
the J£PD71P301 memory chip, called the Turbo Access
Manager (TAM). TAM makes possible similar fetch rates
from external memory.
The CPU clock is generated by dividing the oscillator
frequency by two. Therefore, when the oscillator frequency is 16 MHz, the clock is 8 MHz. Some instructions
execute in two cycles, and the minimum instruction time
is 250 ns.
Addressing
The J£PD7832x features 1-byte addressing of both the
special function registers and a portion of the on-chip
RAM. The 1-byte sfr addressing accesses the entire SFR
area, while the 1-byte saddr addressing accesses 32
bytes ofthe SFR area and 224 bytes of the on-chip RAM.
Nine modes for addressing main memory include indexing, double indexing, autoincrement, and autodecrement. Main memory addressing can be used to access
the entire 64K address space including the SFR area and
RAM. There are also both 8-bit and 16-bit immediate
operands.
7-66
General Registers
Sixteen 8-bit general registers can be used in pairs to
function as 16-bit registers. A complete set of 16 registers is mapped into each of eight program selectable
register banks stored in RAM. Three bits in the PSW
(figure 2) specify which of the register banks is active at
any time. Registers have both functional names (A, AX,
C, DE, etc.) and absolute names (R1, RPO, R2, RP6, etc.).
Each instruction determines whether a register is referred to by functional or absolute name and whether it
is 8 or 16 bits.
Two possible relationships may exist between the absolute and functional names of the first four register pairs.
The RSS bit in the PSW determines which of these is
active at any time. The effect is that the accumulator and
counter registers can be saved, and a new set can be
specified by toggling the RSS bit. Figure 3 illustrates the
general register configuration.
NEe
pPD7832x
Figure 1. pPD7B32X Memory Map
OOOOH
Interrupt
Vector Table
64 Bytes
(32 Addresses)
On-Chip ROM
Address Space
64K Bytes
003FH
0040H
OOOOH
On-Chip ROM
16K Bytes
(jlPD78322)
CALLT
Vector Table
64 Bytes
(32 Addresses)
External Memory
(jlPD78320)
007FH
3FFFH
4000H
3FFFH
saddr Addressing
FE20H
External
Memory
FC80H
General RAM
Area
General
48,256 Bytes
II
RAM
512 Bytes
Register
Storage
Area
FEFFH
Special Function
Register Area
FFFFH - - - - - - - - -
32 Bytes of SFR Area
FFFFH
83R~733B
7-67
NEe
pPD7832x
Figure 2. Progrsm Ststus Kbrd
15
UF
14
13
12
IRBS21 RBS1 I RBSO I
UF
RBS2 - RBSO
S
Z
RSS
AC
IE
PN
LT
CY
11
10
0
9
0
I
0
I
8
7
0
S
5
4
3
RSS
AC
IE
6
I
I
z
I
2
PN
0
CY
LT
I
User flag
Active register bank selector
Sign flag
Zero flag
Register setselection flag
Auxilliary carry flag
Interrupt Enable flag
Parity or Overflow flag
In-service priority level transition flag
Carry bit
83RD-S735B
Figure 3. Register Configurstlon snd Storsge
Register Storage
RSS=D
1H
FE60H
Bank 7
OH
f-~~J_X(RO~_
AX (RPO)
B (R3)
__
_ ..JI _C
_(R2)
__
Bank 6
R2_
_ _R3_ ..JI _ _
BC(RP1)
R4_
_ _R5_ ..JI _ _
RP1
BankS
!
RP2
A (RS)
__
_ ..J _ X
_(R4)
__
R6_ _
_ _R7_ -.J _ _
!
AX (RP2)
RP3
;-~R7) J_~~_
V~(R9) I VPL(R8)
BC(RP3)
Bank 4
Bank 3
r----.J---VP(RP4)
Bank 2
UPH(R11) I UPL(R10)
f---..J---UP (RP5)
Bank 1
D (R13) I E (R12)
r---..J---DE (RP6)
FEFOH
BankO
RSS= 1
R1
I
RO
f----.J---RPO
I-
~R1S) J _L~1~_
HL (RP7)
FEFFH
FH
EH
83R[).6734B
NEe
Input/Output
Eight 1/0 ports range in size from 4 to 8 bits, providing a
total of 55 I/O lines. All 1/0 lines have alternate control
functions which can be specified under program control.
All except ports 2, 4, and 7 can be specified for input or
output on an individual bit basis. Ports 2 and 7 are input
(or control input) only. Port 4 is byte selectable for input,
output, or control.
Real-Time Output Port
Port 0 can function on a bit-selectable basis as a realtime output port. Real-time port bits can be directly
written under program control, or they can be set or
cleared under control of timing signals generated by the
real-time pulse unit. This provides output timing that is
independent of interrupt latency.
External Interrupts
One nonmaskableand 7 maskable external interrupts
share pins with port 2. The maskable interrupts can also
be used to trigger capture events in the real-time pulse
unit. Any masked interrupt automatically becomes an
input line. INTP6 is also used as the counter input for
timer TM1 when TM1 is used as an external event
counter.
Serial Ports
The 14PD7832x has two serial ports. The first is a standard asynchronous serial port that shares pins with P30
(TxD) and P31 (RxD). It generates three interrupts INTST
(transmit complete), INTSR (receive buffer full), and
INTSER (receive error).
The second serial port can be used in one of two modes.
The first mode is a 3-wire I/O interface mode with send,
receive, and clock lines. Data are sent and received most
significant bit first, and the clock line can be driven
either internally or externally. The second mode is the
2-wire NEC serial bus interface (SBI) mode. SBI features
wake~up signals and distinction between commands,
.
addresses, and data, all decoded by hardware.
The synchronous serial port shares 1/0 pins with port 3
bits 2-4. and generates a single interrupt, INTCSI. A
dedicated baud rate generator is included so that all of
the commonly used baud .rates can be generated when
the oscillator frequency is correctly chosen.
.
Analog to Digital Converter
An 8-channel 10-bit AID converter provides a relative
accuracy of 0.2% full scale. An on-chip sample-and-hold
amplifier is included, and the eight input channels share
pPD7832x:
pins with port 7. The AID converter can be operated in
either the scan mode (where either channels 0-3 or 4-7
are repeatedly scanned) or the select mode (where a
specific channel is selected and converted repeatedly).
The conversion can be started either by software or by
an external signal on INTP5.
Real-Time Pulse Unit
The real-time pulse unit (RPU, figure 4) consists of an
18-bitfree-running timer, TMO, 16-bittimer/counter, TM1,
six 16-bit compare registers, four 18-bit capture registers, two 18-bit registers which can be used for either
capture or compare, and six timed output latches. TMO
always counts the system clock (divided by either 4 or 8)
and can be reset by external RESET only. TM1 can count
either the system clock (divided by either 8 or 16) or
external events. TM1 can be reset by either a compare
event (a match between a timer and an associated
compare register) or by an external signal in INTPO.
Capture events can be triggered by external maskable
interrupts INTPO-INTP5, and compare events can be
used to generate interrupts, control timed output pins, or
both. In addition, two of them, INTCM03 and INTCCXO,
can be used to control the real-time output port. The
timed output latches share pins with port 8. Four of them
can be toggled or set and reset by compare events, and
the remaining two can be toggled. These latches, with
the macroservice facility, can be used to generate up to
four pulse-width modulated outputs.
Standby Modes
HALT and STOP modes conserve· power when CPU
action is not required. In HALT mode, the QPU is stopped
and the clock continues to run. Any unmasked interrupt
can then restart'the CPU. In STOP mode, the CPU and
clock are both stopped. Either an external RESET pulse
or an external nonmaskable interrupt is required to
restart them. The standby control register (STBC) is a
protected location and can be written to only by a
special instruction.
Watchdog Timer
The watchdog timer protects against inadvertent program loops. A nonmaskable interrupt occurs if the timer
is not reset before it overflows. Three program selectabte
intervals are available: 8.19, 32.7,and 131.0 msec for a
system clock frequency of 8 MHz. An output line is
provided, which can be connected to the RESET pin or
used to control external circuitry. Once started, the
timer can be stopped by external RESET only. In addition, the watchdog timer mode register, WDM, is a
protected location and can be written to only by a
special instruction.
7-69
II
ttiEC
IIPD7832x
Figure 4. Relll-Time Pulse Unit
TMO
TM1
INTPOO
. ~---- (Opposite Edge)
INTCMOO
INTCMOl
Compare Reg. CMll
INTCM02
1C;;;;;;;;F~CMi031--.....-_ INTCM03
T
T010
TOO3
INTPO--L
~
INTPl - - r - - " " " I - - - - - - - = - - - t
INTP2 _1-_c_a.,;..p_tu_re_R_eg_ls_te_r_C_TO_2_-t
T011
INTP3 --r--"""L-_
~
Capture
Register
CT03_--'
INTCCXO
___
_; -_
TOOO
INTCCOl
Mode 0
Mode 1
TOOl
CTXO
T002
83AD·6736B
Interrupt Handling
The ~PD7832x has three different methods of handling
maskable interrupt requests, standard vectoring, context switching, and macroservice. The programmer can
choose the mode that is most advantageous in any .given
situation. The ~PD7832x has 19 maskable hardware
interrupt sources: 7 external and 12 internal. In addition,
there are two nonmaskable interrupts, two software
interrupts, and a RESET. See table 1.
Interrupt Priority
The two nonmaskable interrupts, NMI and INTWDT, take
priority over all others. Their priority relative to each
other is under program control.
7-70
Three hardware controlled priority levels are available for
the maskable interrupts. Anyone of the three levels can
be assigned by software to each of the maskable interrupt lines. Interrupt requests of a priority equal to or
higher than the processor's current priority level are
accepted. Requests of lower priority are pending until
the processor's priority state is lowered by a return
instruction from the current service routine. Interrupt
requests programmed to be handled by macroservice
have priority over all software interrupt service regardless of the assigned priority level. See figure 5.
Software interrupts, the BRK and BRKCS instruction,
and operation code trap, are executed regardless of the
processor's priority level and do not alter the priority
level.
NEe
pPD7832x
Figure 5. Interrupt Service Sequence
Interrupt Request
----r- MKxx
L
MKxx
I
t
D
1 (Interrupt Masked) Interrupt Pending.
D
0 (Unmasked)
ISMxx
= 1 Macro Service.
ISMxx = 0 Software Service.
b· --'-'~
EI
b""n.. ,-~ ,,CSExx = 1 Context Switch.
83RD-6737A
Table 1. Interrupt Sources
Request
Default
Priority
Mnemonic
Source
Vector
Address
Macroservlce
Control
Word*
Software
BRK
Break instruction
003EH
N
Software
TRAP
Opcode trap
003CH
N
Nonmaskable
NMI
External NM I
0002H
N
Nonmaskable
INTWOT
Watchdog timer
0OO4H
N
INTOV
RPU
0006H
Y
FE06H
INTPO
RPU/External
0OO8H
y
FE08H
FEOAH
Maskable
0
Maskable
Maskable
2
INTPl
RPUlExternal
OOOAH
Y
Maskable
3
INTP2
RPUlExternal
OOOCH
Y
FEOCH
Maskable
4
INTP3
RPUlExternal
OOOEH
Y
FEOEH
Maskable
5
INTP4/1 NTCCXO
RPUlExternal
0010H
Y
FE10H
Maskable
6
INTP5/1 NTCCOl
RPU/External
0012H
Y
FE12H
Maskable
7
INTP6
External
0014H
Y
FE14H
Maskable
8
INTCMOO
RPU
0016H
Y
FE16H
Maskable
9
INTCMOl
RPU
0018H
Y
FE18H
Maskable
10
INTCM02
RPU
001AH
Y
FE1AH
Maskable
11
INTCM03
RPU
001CH
Y
FElCH
Maskable
12
INTCM10
RPU
001EH
Y
FE1EH
Maskable
13
INTCMll
RPU
0020H
Y
FE20H
Maskable
14
INTSER
UART
0022H
N
Maskable
15
INTSR
UART
0024H
Y
FE24H
Maskable
16
INTST
UART
0026H
Y
FE26H
Maskable
17
INTCSI
Clocked serial interface
0028H
Y
FE28H
Maskable
18
INTAO
NO Converter
002AH
Y
FE2AH
RESET
External reset
OOOOH
N
RESET
*Address of macroservice control word in on-chip RAM.
7-71
II
NEe
pPD7832x
Vectored Interrupt
When vectored interrupt is specified for a given interrupt
request, the program status word and the program
counter are saved on the stack, the processor's priority
is raised to that specified for the interrupt, and the
routine whose address is in the interrupt vector table is
entered. At the completion of the service routine, the
RETI instruction (or RETB instruction for software interrupts) reverses the process.
Context Switch
When context switching (figure 6) is specified for a given
interrupt, the active register bank is changed to the
register bank specified by the three low-order bits of the
word in the interrupt vector table. The program counter
is loaded from RP2 of the new register bank, and the
program counter and program status word are saved in
RP2 and
of the new register bank. At the completion
of the service routin.e, the RETCS instruction for routines
entered from hardware requests, orthe RETCSB instruction for routines entered from the BRKCS instruction,
reverses the process. These instructions have a 16-bit
immediate operand which must be set to the entry
address of the service routine.
Rra
Macroservlce
When mac~service is specified for a given interrupt, the
macroservlce hardware performs anyone of nine functions during cycles "stolen" from the executing program.
Control is then returned to the executing program and
the operation is therefore completely transparent. 'Macroservice significantly improves response time and
makes it unnecessary to save any registers. .
7-72
For each request on the interrupt line, one operation is
performed, and a counter is decremented. When the
counter reaches zero (or when some other completion
condition is met), a software service routine is entered.
~~ther vectored interrupt or c?ntext switch can be specIfied for entry to the completion routine and the routine
is entered according to the specified p;iority.
Macroservjce is provided for all but one of the maskable
interrupt requests, and each has a specific macroservice control Word stored in on-chip RAM. The function to
be performed is specified in the control word.
The nine macroservice functions are as follows:
Function
Description
EVTC NT
DTACMP
BITSHT
BITLOG
ADCBUF
BLKTRS
DTADIF
DTADI F-P
DTADD·
Event counter
Data compare
Bit shift
Bit logic
AID converter buffering
Block transfer
Data difference
Data difference-pointer
Data addition
The BLKTRS function moves either a byte or word of data
in either direction between a specified special function
register and a specified memory location. It therefore
has an effect similar to that of a DMA channel.
NEe
pPD7832x
Figure 6. Context Switching and Return
Context Switch
Return From Context Switch
Current Active
Register Bank
New Active
Register Bank
AX
AX
I
Immediate
Data, 16 Bits
BC
BC
RP2
~
PC
Save Area
RP3
~
I
I
Current Actlve
Register Bank
Former Active
Register Bank
AX
AX
BC
BC
PC
Save Area
-
RP 2
PSW
Save Area
PSW
Save Area
-
R P3
VP
VP
VP
VP
UP
UP
UP
UP
DE
DE
DE
DE
HL
HL
HL
HL
I
I
Program
Counter
~
Program
Counter
--1
Program
Status Word
Program
Status Word
I
I
83RD-6738B
Special-Function Registers
The special-function registers (table 2) include the 1/0
ports, the counters and timers, all registers associated
with peripherals, and all of the control and mode registers, They are memory mapped iii the top 256 memory
addresses and can be addressed either by main memory
addressing or by the special one byte sfr addressing,
Most can be either read or. written, and individual bits
within them can be modified· or tested with a single
instruction,
Table 2. Special-Function Registers
Access Unit (Bits)
Address
Register
Symbol
R/W
1
8
FFOOH
PortO
PO
R!W
X
X
FF02H
Port 2
P2
R
X
Undefined
FF03H
Port 3
P3
R!W
X
X
Undefined
FF04H
Port 4
P4
X
Undefined
Port 5
P5
R!W
R!W
X
FF05H
X
X
Undefined
FF07H
Port 7
P7
R
X
Undefined
FF08H
Port 8
P8
R/W
X
X
Undefined
FF09H
Port 9
P9
R!W
X
X
Undefined
FFOAH-FFOBH
Free-running counter Oower 16 bits)*
TMOLW
R
X
FF10H-FF11H
Capture register XO Oower 16 bits)*
CTXOLW
R
X
Undefinlld
FF 12H-FF 13H
Capture register 01 Oower 16 bits)*
CT01LW
R
X
Undefined
FF14H-FF15H
Capture register 02 Oower 16 bits) *
CT02LW
R
X
Undefined
16
State after RESET
Undefined
OOOOH
7-7~
n
..
ttlEC
pPD7832x:
Table 2. SpeclllI-Funcllon Regi.'ers (conI)
Acee.. Unit (Bltl)
Addre..
Regl.~r
Symbol
R!W
16
State after RESET
FF16H·FF17H
Capture register 03 Oower 16 blts)*
CT03LW
R
X
Undefined
FF18H·FF19H
Capture/compare register XO Qower
16 blts)* .
CCXOLW
RtN
X
Undefined
FF1AH·FF1BH
Capture/compare register 01 Oower
16 bits)*
CCOILW
. RtN
X
Undefined
FF20H
Port 0 mode register
PMO
W
X
FFH
FF23H
Port 3 mcde register
PM3
W
X
xxxi IIIIB
FF25H
Port 5 mcde register
PM5
W
X
FFH
FF28H
Port 8 mode register
PM8
W
X
xxllliliB
X
8
FF29H
Port 9 mode register
PM9
W
FF2AH·FF2BH
Free running counter (hIgh 16 blts)*
TMOUW
R
X
xxxx IIIIB
FF2CH-FF2DH
Timer register I Qower 16 blts)*
TMI
R
X
OOOOH
FF30H-FF3IH
Capture register XO (HIgh 16 blts)*
CTXOUW
R
X
Undefined
OOOOH
FF32H-FF33H
Capture register 01 (HIgh 16 blts)*
CTOIUW
R
X
Undefined
FFS4H-FF35H
Capture register 02 (HIgh 16 blts)*
CT02UW
R
X
Undefined
FF36H-FF37H
Capture register 03 (HIgh 16 blts)*
CT03UW
R
X
Undefined
FF38H-FF39H
Capture/compare register XO
(high 16 blts)*
CCXOUW
RtN
X
Undefined
FFSAH-FF3BH
. Capture/compare register 01
(hIgh 16 blts)*
CCOIUW
RtN
X
Undefined
PMCO
W
FF40H
Port 0 mode control regl ster
FF41H
Real,~imeoutput
FF43H
Port 3 mode control regl ster
PMC3
FF48H
Port 8 mode control regl ster
FF4CH-FF40H
Baud rate generator
FF60H
Real·time output port register
RTP
FF61H
Real·tlme output port reset register
RTPR
port set register
.-:rrPS
X
OOH
X
OOH
W
X
xxxO OOOOB
PMC8
W
X
BRG
RtN
RtN
RtN
RtN
RtN
X
XXoOOOOOB
X
. Undefined
X
X
Undefined
X
X
001{
X
X
OOH
X
X
FF62H
Port read control register
F"F68H
AID converter mode register
FF6AH
AID converter result register
(16·blt access)
ADCR
R
FF6BH
AID converter result register
(high 8 bits)
ADCRH
R
FF70H-FF7IH
Compare register 00
CMOO
FF72H-FF73H
Compare register 01
CMOI
FF74H·FF75H
Compare register 02
CM02
FF76H-FF77H
Compare register 03
CM03
FF7CH-FF70H
Compare register 10
CMIO
FF7EH·FF7FH
Compare register II
CMII
FF80H
ClOck synchronized serial interf ace
mode register
CSIM
RtN
RtN
RtN
RtN
RtN
RtN
RtN
X
X
DOH
FF82H
Serial bus interface control register
SBIC
RtN
X··
X
OOH
7-74
PROC
RtN
. ADM
OOH
X
undefined
Undefined
X
X
Undefined
X
Undefined
X
Undefined
X
Undefined
X
Undefined
X
Undefined
NEe
pPD7832x
Table 2. Special-Function Registers (cont)
Access Unit (Bits)
16
State after RESET
Address
Register
Symbol
R/W
1
8
FF86H
Serial 1/0 shift register
SIO
R/W
X
X
Undefined
FF88H
Asynchronous serial interface mode
register
ASIM
R/W
X
X
80H
FF8AH
Asynchronous serial interface
status register
ASIS
R
X
OOH
Undefined
FF8CH
Serial receive buffer: UART
AXB
R
X
FF8EH
Serial transmit shift register: UART
TXS
W
X
Undefined
FFBOH
Timer control register
TMC
R/W
X
X
OOH
FFB1H
Baud rate generator mode register
BRGM
R/W
X
X
OOH
FFB2H
Prescalar mode register
PRM
R/W
X
X
OOH
FFB8H
Timer output control register 0
TOCO
R/W
X
X
OOH
FFB9H
Timer output control register 1
TOCl
R/W
X
X
OOH
FFBFH
Real-time pulse unit mode register
RPUM
X
X
OOH
FFCOH
Standby control register
STBC
R/W
R/W**
X
X
OOOOXOOOB
FFC1H
CPU control word
CCW
R/W
X
X
OOH
FFC2H
Watchdog timer mode register
WDM
R/W**
X
X
OOH
FFC4H
Memory extension mode regi ster
MM
R/W
X
X
OOH
FFC6H
Programmable wait control register
PWC
R/W
X
X
22H
FFC9H
Fetch cycle control register
FCC
R/W
X
X
OOH
FFDOH-FFDFH
External access area
R/W
X
X
II
Undefined
X
OOH
FFEOH
Interrupt request flag register Ol
IFOll1FO
R/W
X
X
FFE1H
Interrupt request flag register OH
IFOH
R/W
X
X
FFE2H
Interrupt request flag register 1l
IFlll
IFl
R/W
X
X
X
OOH
FFE4H
Interrupt mask flag register Ol
MKOll
MKO
R/W
X
X
X
FFH
OOH
FFE5H
Interrupt mask flag register OH
MKOH
R/W
X
X
FFE6H
Interrupt mask flag register 1l
MKlll
MKl
R/W
X
X
X
xxxx xlllB
FFH
FFE8H
Priority selection buffer register Ol
PBOll
PBO
R/W
X
X
X
OOH
FFE9H
Priority selection buffer register OH
PBOH
R/W
X
X
FFEAH
Priority selection buffer register 1l
PBlll
PBl
R/W
X
X
X
OOH
FFECH
Interrupt service mode selection
register Ol
ISMOll
ISMO
R/W
X
X
X
OOH'
FFEDH
Interrupt service mode selection
register OH
ISMOH
R/W
X
X
FFEEH
Interrupt service mode selection
register II
ISMlll
ISMl
R/W
X
X
X
OOH
FFFOH
Context switch enable register Ol
CSEOll
CSEO
R/W
X
X
X
OOH
FFF1H
Context switch enable register OH
CSEOH
R/W
X
X
OOH
OOH
OOH
7-75
pPD7832x
Tabl.2. Special-FullCtion Registers (cont)
Acce.. Unit (BIts)
Address
Register
Symbol
R!W
8
1.
Stste after RESET
FFF2H
Context switCh enable register 1L
CSE1LJ
CSE1
AIW
X
X
X
OOH
FFF4H
External Interrupt mode register 0
INTMO
AIW
X
X
OOH
FFF5H
External Interrupt mode register 1
INTMI
AIW
X
X
OOH
FFF8H
In-servlce priority register
ISPR
R
X
OOH
FFFSH
Priority selection register.
PRSL
AIW
X
OOH
X
* Lower or upper 16 bits of an 18·bit regl ster.
** Protected location: special Instruction required for write.
Operating Conditions
ELECTRICAL SPECIFICATIONS
Absolute Maximum Ratings
Oscillator Frequency
TA = 25°C
8 MHz
Supply voltage, Voo
Supply voltage!_ AVoo
Supply voltage, Ailsa
Input voltags, VI
Output voltage, Vo
Reference Input voltage, AVREF
'xx:!: 16MHz
-0.5 to +0.5 V
-0.5 to Voo+0.5 V
-0.5 to Voo+0.5 V
-0.5 to AVoo +0.3 V
4.0mA
Total
SOmA
Output current, high; 10H
Each output pin
-1.0 mA
-20mA
Total
Storage temperature, TSTG
-10 to +700C
~5to
+1500C
Exposure to Absolute Maximum Ratings for extended periods may
affect device reliability; exceeding the ratings cou,ld cause permanent
damage.
7-76
fxx
:!:
16 MHz
TA
VDD
-10 to +7O"C
+5.0 V :!: 10%
-0.5 to +7.0 V
-0.5 to Voo +0.5 V
Output current, low; 10L
Each output pin
Operating temperature, TOPT
:!:
Capacitance
TA = 25"C; Voo = Vss = 0 V
Parameter
Symbol
-Max
Unit
Input pin
capacitance
CI
,10
pF
Output pin
, capacitance
Co
20
pF
I/O pin
capacitance
CIO
20
pF
Conditions
f = 1 MHz;
unmeasured pins
returned to 0 V
NEe
IIPD7832x
DC Characteristics
TA = -10 to +70"C; voo = +5.0 V :1:10%; Vss = 0 v
Parameter
Symbol
Input voltage, low
VIL
Input voltage, high
VIHl
2.2
V
VIH2
0.8VOO
V
Note 2
0.45
V
IOL = 2.0mA
V
IOH = -400 p.A
oV
Operating mode
Output voltage, low
VOL
Min
Typ
Max
Unit
0.8
V
o
Output voltage, high
VOH
Input leakage current
ILl
:1:10
Output leakage current
ILO
:1:10
f.IA
f.IA
Voo supply current
VOo-1.0
Conditions
Note 1
:S VI :S Voo
OV:s VO:S Voo
1001
40
65
mA
1002
20
35
mA
HALT mode
V
STOP mode
f.IA.
f.IA
VOOOR = 5.0 V ± 10%
Data retenti on voltage
VOOOR
Data retention current
1000R
2.5
2
·10
10
50
STOP mode VOOOR = 2.5 V
Notes:
(2) RESET, X1, X2, P2ofNMI, P21/1NTPO, P~NTP1, P2a/lNTP2, P2.v
INTP3, P2sf1NTP4, P2s11NTP5, P27/1NTP6/TI,P¥80ISO, P3i
SB1/SI, P3,vsCK.
.
(1) All except RESET, X1, X2, P2oINMI, P21/1NTPO, ~/lNTP1, P2i
INTP2, P2.VINTP3, P2s11NTP4, P2s11NTP5, P27/1NTP6/TI, P3i
S80/SO, P3i$B1/SI, P3.vSCK.
AC Characteristics
TA = -10 to +70"C; voo = +5.0 V :1:10%; Vss = 0 V
Parameter
Symbol
Min
Max
Unit
Conditions
II
Normal External Memory Read/Write Operation
Turbo Access Manager Data Read/Write Operation
Turbo Access Manager Branch Operation (Fetch Pointer +- address)
System clock cycle time
tCYK
125
250
ns
Twice the crystal or external clock Input period
Address setup time to ASTB ~
ns
32
tCYK = 125 ris
tsAST
------~------------~~---------------------Address hold after ASTB ~
ns
32
tHSTA
RD ~ to address floatirig
tFRA
0
ns
ns
Address to data Input
tOAlo
222
ns
RD Ho data Input
tORIOl
112
ns
ASTB. ~ to RD ~ delay time
tOSTR
42
ns
Data hold time from RD i
tHRIO
0
ns
RD i to address active
tORA
37
ris
RDwidth low
tWRL
157
ns
ASTB width, high
tWSTH
37
ns
Address to WR ~ delay
tOAw
85
ASTB ~ to data output
tOSTOO
Address to RD ~ delay time
tOAR
85
ns
102
ns
7-77
NEe
pPD7832x
AC Characteristics (cont)
Parameter
Symbol
Min
Max
Normsl Externsl Memory Resd/Write Operstion
Turbo Access Msnsger Dsts Resd/Write Operstion
Turbo Access Msnsger Brsnch Operstion (Fetch Pointer
~
Unit
sddress) (cont)
WR to data output
to'M)O
ASTB Ho WI'! ~ delay
tOSTW
42
ns
ns
Data setup time to WR i
tsooW
147
ns
32
ns
40
Data hold time after WR i
Conditions
WR ito ASTB i delay time
tOWST
42
ns
WR width, low
tWWL
157
ns
icVK
=
125 ns
Opcode Fetch with Turbo Access Msnsger: Brsnch snd Continuous Fetch
'fAS width, low
'fAS width, high
'fAS i to data input
TMD ito 'fAS i
Rl5 ~ to data input
'fAS setup to ASTB ~
tWTAL
37
tWTAH
42
tSTAST
32
ns
TMD setup to ASTB ~
tSTMST
42
ns
tOTMFTA
95
ns
ASTB ~ to TMD ~ delay time
tOSTTM
85
ns
Data hold after 'fAST
tHTMIO
0
ns
TMD ~ to
'fASi delay time
ns
ns
Parameter
Symbol
sc::R cycle time
tCYSK
ns
65
tORI02
Serial Port Operation
ns
157
tOTMRTA
TA = -10 to +70°C; VOO = +5.0 V ±10%; Vss = 0
ns
55
tOTAIO
v
Min
Max
Unit
420
ns
420
ns
SCi( input from external clock
420
ns
420
ns
sc::R output from internal clock
sc::R input from external clock
ns
liS
sc::R with low
sc::R width high
tWSKL
tWSKH
SI setup time to SCi( i
tSRXSK
80
S I hold time after SCi( i
tHSKRX
80
sc::R ~ to SO delay time
tOSKTX
7-78
Conditions
sc::R output from internal clock
sc::R input from external clock
sc::R output from internal clock
liS
ns
210
ns
NEe
pPD7832x
AID Converter
Timing Dependent on tCYK
Symllol
Calculation Formula
MinIMax
Unit
tSAST
0.5T - 30
Min
ns
tHSTA
0.5T - 30
Min
ns
tOAR
T - 40
Min
ns
tOAIO
(2.5 + n)T - 90
Max
ns
tORIOl
(1.5+n)T - 75
Max
ns
tOSTR
0.5T - 20
Min
ns
tORA
0.5T - 25
Min
ns
tWRL
(1.5+n)T - 30
Min
ns
0.5T - 25
Min
ns
T - 40
Min
ns
tOSTOO
0.5T + 40
Max
ns
tOSTW
0.5T - 20
Min
ns
tsoow
1.5T - 40
Min
ns
tWSTH
tOAW
tH1t\OO
0.5T - 30
Min
ns
tOWST
0.5T - 20
Min
ns
tWWL
(1.5+n)T - 30
Min
ns
tWTAL
0.5T - 25
Min
ns
tWTAH
0.5T - 20
Min
ns
T - 45
Min
ns
1.5T - 30
Min
ns
tORI02
T - 60
Max
ns
tS1AST
0.5T - 30
Min
ns
tSTMST
tOTAlO
tOTMRTA
0.5T - 20
Min
ns
tOTMFTA
T - 30
Min
ns
tOSTTM
T - 40
Min
ns
Notes:
(1) n is the number of additional wait cycle specified by the PWC
register.
(2) T
= tCYK =
(ns).
(3) Parameters not included in this table are not dependent on tCYK'
=
=
=
TA
-10 to +70°C; VOO
+5.0 V ±10%; AVss
VSS
VOO -0.5 V :s; AVOO :s; VOO; 3.4 V :s; AVREF :s; Voo
Parameter
Symbol
Min
Typ
= 0 V;
Max
Unit
0.2%
FSR
±1/2
LSB
10
Resolution
Bit
Relative accuracy
Quantization error
Conversion time
tCONV
144
Sampling time
tSAMP
24
tCYK
tCYK
Zero offset error
±1.5
LSB
Full scale error
±1.5
LSB
Unearity error
±1.5
Analog input voltage
ViAN
AVREF current
AIREF
AVoo current
Aloo
LSB
AVREF
V
1.0
3.0
mA
2.0
6.0
mA
0
NEe
pPD7832x
Timing waveforms
Discontinuous R,." Cycle
Clock
P57-P50
)
Address (High Byle)
I'OAIO
P47-P40
HlghZ
H«~
Address (Low Byte)
-
~ISAST- !+-IHSTA-
ASTB
--.J
;.--IWSTH_ !+IOSTR'"
Read Oala
>----1
Address 0-7
\.
HlghZ
/
IHRIO
~IFRA
!+-IORA-
~IORI01IWRL
IOAR
83RD-67398
NEe
pPD7832x
Timing waveforms (cant)
Discontinuous Write Cycle
Clock
P57-P50
X
Address (High Byte)
P47-P40
Address (Low Byte)
Undefined
Write Data
)
~tSAST- .tHSTA"
Address 0-7
\
/
~tHWOD~
tDSTOD
ASTB
K
)0
~
/
r-c----tWSTH--
~tDSTW"" ~tDWOD- ~tSODW)o I--tDWSTtWWL
tDAW
)0
83RD-674OB
ttiEC
pPD7832x
Timing waveforms (cont)
Branch Cycl.. 71lII Interface
\"----J1
Clock
\'----J1
\"----J1
\"----J1
CWSTHASTB
X
P5o-P57
Address (High Byte)
~tSAST_ ,.tHSTA.
High Z
HlghZ
Address 0-7
P4()-P47
««
Undefined
tORI01
)
HlghZ
Read Oata
~
tOTAIO
\
I
,
----'J---~~ _ _~r
~tWTAHj
~tSTAST"
tHRIO
\
tSTMST.
TMO
_tOSTTM_
_tOTMFT~
!-tWTAL-!lo(
~I
tHTMIO
&'3R~4t8
7-82
NEe
JlPD7832x
Timing Waveforms (cont)
Continuous Instruction Fetch Cycle, 111M Interface
\'---.JI
Clock
\'---.JI
\'---.JI
\'-----11
r
A5TB
------------------------------~
1~---____ItOTMRTA-----.1
TMO
tORI02
~
High Z
OPn
P40- P4 7
OPn+1
High Z
~--;*- tOTAIO
83RD-6742B
Data Receive. Serial Port
Data Transmit. Serial Port
_ t CY5K
_1
tW5KL ---11~-"'; I+-~I-- tW5KH
5CK
so
-------.£ ,~
51
83Ro..6743A
83RD-6744A
7-83
NEe
pPD7832x
INStRUCTION SET
Example: PUSH RP2, RP3: the post byte is 000011008.
Addressing
On-chip RAM byte location FE20H through FEFFH can
be addressed by· saddr addressing, in which the machine code specifies the low-order byte only. This addreSsing mode is also used to address the first 20H
special tunction registers, those with addresses FFooH
ttlrough F F 1FH. Similarly, saddrp addressing is used to
s~ecify 16-bit word locations within the same area The
saddrp addr~sses must be even.
PUSH:
t = 3
+
POP:
t = 6
+
4 x 4 + 6 x 2 = 31 states
(4 zeros scanned from
high-order end)
4 x 2 + 7 x 2 = 28 states
(2 zeros scanned from
low-order end)
If the stack is in external RAM or peripheral RAM
(OFC80-OFDFF) the formulas become:
PUSH:
PUSHU:
POP:
POPU:
t
t
t
t
=
=
=
=
3
4
6
8
+ 4z +
+ 4z +
+ 4z +
+ 4z +
(8 + 2w)n states
(8 + 2w)n states
(14 + 2w)n states
(14 + 2w)n states
When both source and destination are registers, the
destination designation appears in the machine code
before the source designation. Similarity, if source and
destination are both saddr or saddrp, the destination
appears before the source. Both saddr and saddrp
addresses are expressed as offsets from either FEooH
or FFOOH.
where w is the number of additional wait states specified in the PWC register. The timing for the PUSH (and
PUSHU) instructions is worst case, and it will improve if
the external bus is not busy.
Timing
Interrupt Service Timing
Access. to on-chip ROM and to main RAM (FEOOHFEFFH) requires one sts.te.per byte. Access to on-chip
peripheral RAM (FC80H-FDFFH) and to external memory requires a minimum of. three states per byte unless
the TAM is used. Instructions can be fetched from the
TAM at a rate of one state per byte.
Timin~
of the PUSH and POP Instructions
Operation
States
Interrupt service by context awitc h
12
Vector Interrupt (stack In main RAM)
17
(stack In any other memory)
31+4n
Macroservlce Timing
States
The post byte used by the PUSH post, PUSHU post,
POP post,l:\nd POPU post instructiohS has a bit set for
each register pair to be PUSHed or POPped. Bit 0
specifies RPO, bit 1 RPt, ... , bit 7 RP7. The PUSH (and
PUSHU) and the POP (and POPU) instructions scan the
post byte to d~termine which regiSter pairs are to be
PUSHed orP6Pped. The PUSH (and PUSHU) instructions begin the scan at the high-order end (bit 7), while
the POP (and POPU) instructions begin the scan at the
low-order end (bit 0). If the stack is. in main RAM
(OFEoo-OFEFF), the timing formulas are:
PUSH:
PUSHU:
POP:
POPU:
t =3
4
t
t = 6
t = 8
=
+
+
+
+
4z
4z
4z
4z
Software Inter rupt
EVCNT
10
12
DTACMP
15
17
BITSHT
17
19
BITLOG
19
19
ADCBUF
16
26
DTADIF
Byte
22
22
~~--------------------23
23
... Word
DATADIF-P
24
24 ____
...,B,.:y_te_(:...;l)_ _-,-_
____
+ 6n states
·Byte (2)
26+n
+
Word (1)
25
25
Word (2)
30+2n
3O+2n
24
26
+
+
6n states
7n states
7n states
where n is the number of register pairs to be PUSHed or
POPped, and z is the number of zero bits scanned
before all remaining bits are zero.
7-84
. Normal End
Operation
DTADD
26+n
20 _ _ _ _ _
BLKTRS mem -+ afr _By_t_e(;...1)_ _ _
22 ____
Byte (2)
22+n
Word (1)
21
24+n
23
Word (2)
26+2n
28+2n
NEe
pPD7832x
Macroservice Timing (cant)
Opcodes for Registers
States
Operation
Normal End
r1
Software Interrupt
Byte (1)
19
21
R3
Byte (2)
19
21
0
0
0
0
Word (1)
20
22
0
0
0
0
0
Word (2)
20
22
0
BLKTRS sfr -+ mem
Notes:
R2
R1
RO
R2
R1
Ro
reg
RO
0
0
0
RO
1
R1
0
1
R1
1
0
1
0
R2
0
1
1
R2
R3
0
0
0
1
1
R3
reg
0
1
0
0
R4
1
0
0
R4
(1) Destination is in main RAM (FEOOH-FEFFH).
0
1
0
1
R5
1
0
1
R5
(2) Destination is anywhere but main RAM.
0
1
1
0
R6
1
1
0
R6
(3) n = number of additional wait states specified in the PWC
registet
0
1
1
1
R7
1
1
1
R7
1
0
0
0
R8
1
0
0
1
R9
1
0
1
0
R10
Co
reg
1
0
1
1
R11
0
C
1
B
00
reg·
pair
In the States column of the Instruction Set, the symbol
un" stands for a number as. follows.
Operation
Number un"
Stack
Shift and rotate
String
Register pairs operated on
Bits shifted or rotated
Characters in the string or the
number operated upon before the
condition is satisfied
In the States column, a number in parentheses for a
conditional branch instruction is the number of states
used if the branch is not taken.
Opcodes for Memory Addressing Modes
l~'
mem
0110
Register
Indirect
0
0
0
[DE+]
0
0
0
[HL+]
1
1
0
[DE-]
0
1
1
[HL-]
1
0
0
[DE]
1
0
1
[HL]
1
1
0
[VP]
1
1
1
[UP]
·
·
·
·
1
0111
0
0110
0
Base
Index
[DE+A]
[DE+byte]
word [DE]
[HL+A]
[SP+byte]
word [A]
[DE+B]
[HL+byte]
word [HL]
[HL+B]
[UP+byte]
word[B]
[VP+DE]
[VP+byte]
[VP+HL]
-
-
-
R12
0
1
R13
1
0
R14
1
1
R15
0
1
1
1
1
1
1
rp
rp1
P2
P1
Po
regpair
RPO
0
0
0
RPO
RP1
0
0
1
RP4
RP2
0
1
0
RPl
RP3
0
1
1
RP5
RP2
°2 °1
0
1
0
1
0
0
1
1
1
0
0
RP4
1
0
1
RP5
1
0
0
0
1
1
RP6
1
1
0
RP6
1
1
0
RP3
1
1
1
RP7
1
1
1
RP7
0
0
0
0
1010
Base Index
0
1
1
r2
rp2
S1
So
reg-pair
0
0
VP
0
1
UP
1
0
DE
1
1
HL
83RD-6985A
·One·byte Instructions: Defined by special OP Code & mem only.
83AD-S984A
7-85
t\fEC
pPD7832x
Flag Indicators
Instruction Set Symbols (cont)
Symbol
Action
Symbol
Definition
(blank)
No change
word
16 bits of immediate date
o
Set to 0
byte
8
Set to 1
jdisp
8-blt two's complement displacement (immediate
data)
x
Set or cleared according to result
P
PlY indicated parity of result
v
PlY indicates arithmetic overflow
R
Restored from saved PSW
~its
of im mediate data
Eleven bits of immediate data corresponding to
addrll
Five bits of immediate data corresponding to addrS
bit
3 bits of immediate data (bit position in byte), or
label
Instruction Set Symbols
n
3 bits of immediate data
Symbol
Definition
!addr16
RO, Rl, R2, R3, R4, RS, R6, R7, R8, R9, Rl0, Rll,
R12, R13, R14, R1S
16-bit absolute address specified by an immediate
address or label
$addr16
Relative branch address [(PC) + jdisp] or label
RO,Rl,R2, R3, R4,RS, R6, R7
addr16
16-bit address
rl
r2
C, B
!addrll
ll-blt immediate address or label
rp
RPO, RP1, RP2, RP3, RP4, RPS,RP6, RP7*
addrll
0800H-OFFFH: 0800H + (ll-bit immediate
address), or label
addrS
0040H-007EH: 0040H + 2 X (S-bit immediate
address), or label
rpl
RPO, RP1, RP2, RP3,RP4,RPS,RP6,RP7*
rp2
DE, HL, VP, UP
sfr
Special function register, 8 bits
A
A register
sfrp
Special function register, 16 bits
X
X register
post
RPO, RP1, RP2, RP3, RP4, RPS/PSW, RP6, RP7 Bits
set to 1 indicate register pairs to be pushed/
popped tolfrom stack; RPS pushed/popped by
PUSH/PO P, SP Is stack pointer; PSW pushed/
popped by PUSHU/POPU, RPS is stack pointer;
B
B register
C
C register
mem
Register indirect: [DE], [HL], [DE+], [HL+], [DE-] ,
[HL-], [VPJ, [UP]
D register
E register
H
H register
Base Index Mode: [DE+ A], [HL+ A], [DE+ B],
[HL+ BJ, [VP+ DE], [VP+ HL]
L
L register
Register 0 to register lS
Base Mode: [DE+ byte], [HL+ byte], [VP+ byte],
[UP+ byte], [SP+ byte]
RO-R1S
AX
Register pair AX (16-bit accumulator)
BC
Register pair BC
DE
Register pair DE
HL
Register pair H L
Index Mode: word [A], word [B], word [DE], word
[HL]
saddr
FE20-FFl FH: Immediate byte addresses one byte
in RAM, or label
saddrp
FE20 -F Fl FH: Immediate byte (bit 0= 0) addresses
one word in RAM, or label
7-86
D
E
NEe
pPD7832x
Instruction Set Symbols (cant)
Symbol
Definition
Symbol
Definition
RPO-RP7
Register pair 0 to register pair 7
( )
PC
Program counter
Contents of the location whose address is within
parentheses; (+) and (-) indicate that the address
is incremented after or decremented after it is used
SP
Stack poi nter
(())
UP
User stack pointer (RP5)
Contents of the memory location defined by the
quantity within the sets of parentheses
xxH
Hexadecimal quantity
PSW
Program status word
CY
Carry flag
AC
Auxiliary carry flag
Z
Zero flag
P/V
Parity/overflow flag
S
Sign flag
SUB
Subtract flag
TPF
Table position flag
RBS
Register bank select flag
RSS
Register set select flag
IE
Interrupt enable flag
STBC
Standby control register
WDM
Watchdog timer mode register
High-order 8 bits and low-order 8 bits of X
* rp
and rp1 describe the same registers but generate different
machine code.
7-87
NEe
pPD7832x
Instruction Set
Mnemonic
Operand
Operation
Bytes
States
r1 .. byte
2
2
Flags
SZACPIVCY
7
Operation Code
4
3 2
6
5
0
1
0
8-Bit Data Transfer
MOV
r1, #byte
R2 Rl Ro
Data
saddr, #byte
(saddr) .. byte
3
3
0
6
0
0
Saddr-offset
Data
sfr**, #byte
sfr .. byte
3
6
0
0
1
0
0
Sfr-offset
Data
r, r1
r .. r1
2
3
0
0
1
0
R3 R2 Rl Ro
A,r1
A .. r1
A,saddr
A .. (saddr)
2
2
3
1
0
0
0
0
0
0
1
0
R2 Rl Ro
R2 Rl Ro
0
0
0
0
0
0
Saddr-offset
saddr,A
(saddr) .. A
2
3
0
0
0
0
0
0
Saddr-oflset
saddr, saddr
(saddr) .. (saddr)
3
4
0
0
0
0
0
0
0
0
Saddr-offset
Saddr-offset
A, sIr
A .. sfr
3
4
0
0
0
0
Sfr-olfset
sfr,A
sIr .. A
2
6
0
0
0
0
0
0
Sfr-offset
A,mem*
A .. (mem)
A,mem
A .. (mem)
2-4
6
0
8-10
0
mem
0
0
0
mod
mem
0
0
0
0
0
Low Offset
High Offset
mem,A*
(mem) .. A
mem,A
(mem) .. A
2-4
4
0
6-8
0
0
0
0
mem
mod
0
0
mem
0
0
0
0
0
0
0
0
Low Offset
High Offset
A, [saddrp]
A .. «saddrp))
2
6
0
0
0
1
1
Saddr-offset
[saddrp],A
«saddrp)) .. A
2
4
0
0
0
1
Saddr-offset
A, !addr16
A .. (addr16)
4
6
0
0
0
0
0
Low Addr
High Addr
*
One byte move instruction when [DE], [HL], [DE +], [DE-], [HL +],
or [HL-] is specified for memo
7-88
** A special instruction is used to write to STBC and WDM.
a
0
0
0
0
NEe
JlPD7832x
Instruction Set (cont)
Flags
Mnemonic
Operand
Operation
Bytes
States
4
5
Operation Code
S Z AC PIV CY
7
6
5
4
2
3
0
8-SIt Data Transfer (cont)
MOV
(cont)
iaddrl6,A
(addrI6) +- A
a a a a
a a
a a a
Low Addr
High Addr
PSWL,#byte
PSWL +- byte
3
6
XX
X
X
X
a a
a
a
a
Data
PSWH,#byte
PSWH +- byte
3
6
PSWL, A
PSWL +- A
2
6
PSWH,A
PSWH +- A
2
A,PSWL
A+- PSWL
A,PSWH
A+- PSWH
A,rl
A ... rl
r, rl
r ... rl
A,mem
A ... (mem)
a a
a
a
Data
XCH
a a a
a
0
6
a a a
a
0
2
6
a a a
a
0
2
6
a a a
0
a a
2
4
2-4
9-11
X X X
X
X
a
4
a
a
a
a
a
a
a
R2 Rl Ro
a a
a
R3 R2 Rl Ro
a a a
a mem
a 1 a
a R2 Rl Ro
mod
a
a
a
Low Offset
High Oflset
A,saddr
A ... (saddr)
2
5
a a
a
a a a
Saddr-offset
A, sir
A ... sir
3
13
a a a a
a a
a
A, [saddrp]
A ... ((saddrp))
2
7
a a
0 0 a
a a a
Sir-offset
a
a a
Saddr-offset
saddr, saddr
(saddr) ... (saddr)
3
8
a a
a
0
Saddr-offsel
Saddr-offsel
7-89
IJ
NEe
pPD7832x
Instruction Set (cont)
Flags
Mnemonic Operand
Operation
Bytes
States
rp1 .... word
3
3
S Z AC PIVCY
Operation Code
7
6
5
4
3
2
0
0
02 01
0
16-Bit Data Transfer
MOVW
rp1, #word
0
00
Low Byte
High Byte
saddrp, #word
(saddrp) .... word
4
4
0
0
0
0
0
0
0
0
Saddr-offset
Low Byte
High Byte
sfrp,#word
sfrp .... word
4
7
0
0
0
0
1
0
Sfr-offset
Low Byte
High Byte
rp, rp1
rp .... rp1
2
3
0
0
0
0
P2 P1 Po 0
AX,saddrp
AX .... (saddrp)
2
3
0
0
0
~ 01
1
0
00
0
Saddr-offset
saddrp,AX
(saddrp) .... AX
2
3
0
0
1
0
0
0
Saddr-offset
saddrp, saddrp
(saddrp) .... (saddrp)
3
4
0
0
0
0
Saddr-offset
Saddr-offset
AX,sfrp
AX .... sfrp
2
6
0
0
0
0
0
0
Sfr-offset
sfrp,AX
sfrp .... AX
2
6
0
0
0
0
0
Sfr-offset
rp1, !addr16
rp1 .... (addr16)
4
7
0
0
0
0
0
0
0
0
0
~ 01
0
00
Low Addr
High Addr
!addr16, rp1
(addr16) .... rp1
4
5
0
0
0
0
0
0
0
0
0
02 01
Low Addr
High Addr
AX,mem
AX .... (mem)
2-4
6-10
0
0
0
mod
0
mem
0
0
0
Low-offset
High-offset
mem,AX
(mem) .... AX
2-4
4-8
0
0
mod
0
mem
0
Low-offset
High-offset
7-90
0
0
00
NEe
pPD7832x
Instruction Set (cant)
Mnemonic
Operand
Operation
Bytes
States
2
5
Flags
SZACPNCY
Operation Code
4
3 2
7
6
5
0
0
0
0
16-Bit Data Transfer (cont)
XCHW
AX,saddrp
AX ... (saddrp)
0
1
Saddr-offset
AX,slrp
AX ... slrp
3
13
0
0
0
0
0
0
0
0
0
0
0
0
0
Sir-offset
saddrp, saddrp
(saddrp) ... (saddrp)
3
8
0
0
0
Saddr-offset
Saddr-offset
rp,rp1
rp ... rp1
2
a
4
0
0
0
0
0:1
P2 P1 Po 0
AX,mem
AX ... (mem)
2-4
a
9-11
0
0
0
01 00
mod
0
mem
0
Low-offset
High-offset
8-Bit Arithmetic
ADD
A,#byte
A,Cy .... A+byte
2
2
X X
X
V
0
X
1
0
0
0
0
0
0
0
Data
saddr, #byte
(saddr), CY .... (saddr) + byte
3
4
X X
X
V
X
0
0
Saddr-offset
&
Data
sir, #byte
sir, CY .... sir + byte
4
12
X X X
V
X
a
0
0
0
0
0
0
0
0
0
0
0
0
0
0
Sir-offset
Data
r,r1
r,CY .... r+r1
2
3
X X
X
V
0
X
0
0
R3 R2 R1 Ro
A,saddr
A, CY .... A + (saddr)
2
4
X X
X
V
X
1
0
0
0
1
R2 R1 Ro
0
0
0
0
0
0
0
0
0
0
0
Saddr-offset
A,slr
A,CY .... A+slr
3
9
X X
X
V
X
0
0
0
0
0
0
0
Sir-offset
saddr, saddr
(saddr), CY .... (saddr) + (saddr)
3
5
X X
X
V
X
0
Saddr-offset
Saddr-offset
7-91
NEe
pPD7832x
Instruction Set (cont)
Flags
Mnemonic
Operand
Operation
Bytes
States
2-4
8-9
S Z AC PIV CY
7
6
X X
0
0
Operation Code
4
3 2
5
0
8·Bit Arithmetic (cont)
ADD
(cont)
A,mem
A,CY ... A+ (mem)
X
V
X
0
mod
mem
0
0
0
0
0
Low Offset
High Offset
mem,A
(mem), CY ... (mem) + A
2-4
8-9
X X
X
V
X
0
0
0
mod
mem
0
0
0
0
0
0
Low Offset
High Offset
ADDC
A, #byte
A, CY ... A + byte + CY
2
2
X X
X
V
X
0
0
Data
saddr, #byte
(saddr), CY ... (saddr) + byte + CY
3
4
X X
X
V
X
0
0
Saddr-ollset
Data
slr,#byte
sIr, CY ... sIr + byte + CY
4
12
X X
X
V
X
0
0
0
0
0
0
0
0
0
0
0
0
0
Slr-ollset
Data
r,rl
r, CY ... r + rl + CY
2
3
X X
X
V
0
X
0
0
R3 R2 R1 Ro
A,saddr
A, CY ... A + (saddr) + CY
2
4
X X
X
V
0
X
0
R2 R1 Ro
0
1
0
0
0
0
0
0
0
0
Saddr-offset
A,slr
A,CY ... A+ sIr + CY
3
9
X X
X
V
X
0
0
0
0
0
0
0
SIr-offset
saddr, saddr
. (saddr), CY ... (saddr) + (saddr) + CY
3
5
X X
X
V
X
0
Saddr-offset
Saddr-offset
A,mem
A,CY ... A+ (mem) + CY
2-4
8-9
X X
X
V
X
0
0
0
mod
0
0
mem
0
Low Offset
High Offset
mem,A
(mem), CY ... (mem) + A + CY
2-4
8-9
X X
X
V
X
0
0
mod
0
mem
LowOllset
High Offset
7-92
0
0
ttiEC
pPD7832x
Instruction Set (cont)
Mnemonic
Operand
Operation
Bytes
States
2
2
Flags
S Z AC P/v CY
7
6
5
Operation Code
4
3 2
0
0
1
0
0
0
0
8-Blt Arithmetic (cant)
SUB
A, #byte
A, CY +- A-byte
X X X
V
X
0
Data
saddr, #byte
(saddr), CY +- (saddr) -byte
3
4
X X X
V
X
0
1
0
Saddr-offset
Data
sir, #byte
sir, CY +- sir - byte
4
12
X X X
V
X
0
0
0
0
0
0
0
0
0
0
0
0
0
Sir-offset
Data
r, rl
r, CY +- r-rl
2
3
X X X
V
X
0
0
0
R3 R2 R1 Ro
A, saddr
A,CY +- A-(saddr)
2
4
X X X
V
X
0
R2 R1 Ro
0
1
0
0
1
0
0
0
Saddr-offset
A,slr
A, CY +- A-sir
3
9
X X X
V
X
0
0
0
0
0
0
0
0
0
0
0
Sir-offset
saddr, saddr
(saddr), CY +- (saddr) - (saddr)
3
5
X X X
V
X
0
1
Saddr-offset
Saddr -offset
A,mem
A, CY +- A-(mem)
2-4
8-9
X X X
V
X
0
0
0
' mod
0
0
mem
0
Low Offset
High Offset
mem,A
(mem),CY +- (mem)-A
2-4
8-9
X X X
V
X
0
0
0
mod
0
mem
0
Low Offset
High Offset
SUBC
A, #byte
A, CY +- A-byte-CY
2
2
X X X
V
0
X
1
1
0
0
Data
saddr, #byte
(saddr), CY +- (saddr)-byte-CY
3
4
X X X
V
X
0
0
0
Saddr-offset
Data
sir, #byte
sir, CY +- sir - byte - CY
4
12
X X X
V
X
0
0
0
0
0
0
0
0
0
0
Sir-offset
Data
7-93
B
NEe
IIPD7832x
Instruction Set (cont)
Mnemonic Operand
Operation
Bytes
States
Flags
SZACPNCY
2
3
XX X V X
7
Operation Code
4
3 2 1
6
5
0
0
0
8-Blt ArIthmetIc (cont)
SUBC
(cont)
r,r1
r,CY+- r-r1-CY
'I
0
R3 R2 Rl Ro
A"saddr
A,CY +- A-(saddr)-CY
2
4
XX X V X
1
0
0
0
R2 Rl Ro
0
0
1
0
0
1
Saddr-offset
A,slr
A, CY +- A-slr-CY
3
9
XX X V X
0
0
0
0
0
0
0
0
SIr-offset
saddr, saddr
(saddr),CY +- (saddr)-(saddr)-CY
3
5
XX X V X
0
1
0
Saddr-offset
Saddr-offset
A,mem
A, CY +- A-(mem)-CY
2-4
8-9
XX X V X
0
0
0
0
mod
0
mem
Low Offset
High Offset
mem,A
(mem),CY +- (mem)-A-CY
2-4
8-9
XX X V X
0
0
0
mod
0
mem
Low Offset
High Offset
8-BifLogic
AND
A,#byte
A+-A AND byte
2
2
XX
P
0
,1
0
-
0
0
0
0
Data
saddr, #byte
(saddr) +- (saddr) AND byte
3
4
XX
P
0
0
1
Saddr-offset
Data
sfr,#byte
sIr+- sIr AND byte
4
12
XX
P
0
0
0
0
0
0
0
0
0
0
0
0
0
Sir-offset
Data
r,rl
r+-r AND r1
2
3
XX
P
0
0
0
R3 R2 Rl Ro
A,saddr
A +- A AND (saddr)
2
4
XX
P
1
0
0
0
1
R2 Rl Ro
1
0
0
Saddr-offset
A,slr
A+-A AND sIr
3
9
XX
P
0
0
0
0
0
0
0
0
0
SIr-offset
7-94
0
0
NEe
pPD7832x
Instruction Set (cont)
Mnemonic
Operand
Operation
Bytes
States
3
5
Flags
SZACPIVCY
7
6
XX
0
1
Operation Code
4
3 2
5
0
8-Bit Logic (cont)
AND
(cont)
saddr,saddr
(saddr) +- (saddr) AND (saddr)
P
0
0
0
0
0
0
Saddr-offset
Saddr-offset
A,mem
A +- A AND (mem)
2-4
8-9
XX
P
0
0
0
mod
0
mem
Low Offset
High Offset
mem,A
(mem) +- (mem) AND A
2-4
8-9
XX
P
0
0
mod
0
mem
Low Offset
High Offset
OR
A,#byte
A +- A OR byte
3
4
XX
P
0
0
0
Data
saddr, #byte
(saddr) +- (saddr) OR byte
3
4
XX
P
0
0
0
Saddr·offset
Data
sir, #byte
sir +- sir OR byte
4
12
XX
P
0
0
0
0
0
0
0
0
0
0
Sir· offset
Data
r,rl
r +- r OR rl
2
3
XX
P
0
0
0
R3 R2 R, Ro
A,saddr
A +- A OR (saddr)
2
4
XX
0
P
0
0
R2 R, Ro
1
0
1
0
Saddr·offset
A, sir
A +- A OR sir
3
g
XX
P
0
0
0
0
0
0
0
0
0
0
Sir-offset
saddr, saddr
(saddr) +- (saddr) OR (saddr)
3
5
XX
P
0
0
Saddr·offset
Saddr·offset
A,mem
A +- A OR (mem)
2-4
8-9
XX
P
0
0
mod
0
mem
0
0
Low Offset
High Offset
mem,A
(mem) +- (mem) OR A
2-4
8-9
XX
P
0
0
mod
0
mem
0
Low Offset
High Offset
7-95
D
ttiEC
pPD7832x
Instruction Set (cont)
Flags
Mnemonic
Operand
Operation
Bytes
States
2
2
S Z AC PlY CY
7
Operation Code
4
3 2
6
5
0
1
0
8-Bit Logic (cont)
XOR
A, #byte
A +- A XOR byte
XX
P
0
0
Data
saddr, #byte
(saddr) +- (saddr) XOR byte
3
4
X X
0
P
0
0
Saddr-offset
Data
sIr, #byte
sIr +- sIr XOR byte
4
12
XX
0
P
0
0
0
0
0
0
0
0
0
SIr-offset
Data
r,r1
r +- r XOR r1
2
3
X X
0
P
0
0
0
R3 R2 R1 Ro
A,saddr
A +- A XOR (saddr)
2
4
XX
1
P
0
0
0
R2 R1 Ro
1
0
Saddr-offset
A,slr
A +-A XOR sIr
3
9
X X
0
P
0
0
0
0
0
0
0
0
0
SIr-offset
saddr, saddr
(saddr) +- (saddr) XOR (saddr)
3
5
XX
0
P
0
Saddr-offset
Saddr-offset
A,mem
A +- A XOR (mem)
2-4
8-9
XX
0
P
0
0
0
mod
mem
0
Low Offset
High Offset
mem,A
(mem) +- (mem) XOR A
2-4
8-9
XX
0
P
0
mod
0
mem
0
Low Offset
High Offset
CMP
A, #byte
A-byte
2
2
X X X
V
X
saddr, #byte
(saddr)-byte
3
4
X X X
V
X
0
1
0
1
1
Data
0
0
Saddr-offset
Data
sIr, #byte
sIr-byte
4
12
X X X
V
X
0
0
0
0
0
0
0
SIr-offset
Data
7-96
0
0
1
NEe
pPD7832x
Instruction Set (cont)
Mnemonic
Operand
Operation
Bytes
States
2
3
Flags
SZACPIVCY
7
Operation Code
4
3 2
6
5
0
0
0
8-Bit Logic (cant)
CMP
(cont)
r, r1
r-r1
X X X
V
X
0
R3 R2 R1 Ro
A,saddr
2
A-(saddr)
4
X X X
V
X
1
0
0
R2 R1 Ro
0
1
1
0
0
Saddr-offset
A,slr
A-sir
3
9
X X X
V
X
0
0
0
0
0
0
0
Sir-offset
saddr, saddr
(saddr)-(saddr)
3
5
X X X
V
X
0
1
Saddr-offset
Saddr-offset
A,mem
2-4
A-(mem)
8-9
X X X
V
X
0
0
mod
0
mem
0
Low Offset
High Offset
mem,A
2-4
(mem)-A
8-9
X X X
V
X
0
0
mod
0
mem
Low Offset
High Offset
16- Bit Arithmetic
ADDW
AX,#word
AX, CY +- AX + word
3
3
X X X
V
X
0
0
1
0
II
0
Low Byte
High Byte
saddrp, #word
(saddrp), CY +- (saddrp)
+ word
4
5
X X X
V
X
0
0
0
0
0
Saddr-offset
Low Byte
High Byte
sfrp, #word
slrp, CY +- slrp
+ word
5
10
X X X
V
X
0
0
0
0
0
0
0
0
0
0
0
0
Sir-offset
Low Byte
High Byte
rp, rp1
rp, CY +- rp + rp1
2
3
X X X
V
X
0
0
0
P2 P1 Po 0
AX,saddrp
AX, CY +- AX + (saddrp)
2
4
X X X
V
X
0
0
0
1
0
0
0
~ 01 00
0
Saddr-offset
7-97
NEe
pPD7832x
Instruction Set (cont)
Mnemonic Operand
Operation
Bytes
States
3
9
Flags
SZACP/vCY
7
X X X
0
0
0
0
0
0
6
Operation Code
4
3 2
5
0
16-8it Arithmetic (cont)
ADDW
(cont)
AX,slrp
AX, CY .... AX + slrp
V
X
0
0
0
0
0
Sir-offset
saddrp, saddrp
(saddrp), CY .... (saddrp)
+ (saddrp)
3
5
X X X
V
X
0
0
0
Saddr-offset
Saddr-offset
SUBW
AX,#word
AX,CY .... AX-word
3
3
X X X
V
X
0
0
0
0
Low Byte
High Byte
saddrp, #word
(saddrp), CY .... (saddrp) -word
4
5
X X X
V
X
0
0
0
0
0
Saddr-offset
Low Byte
High Byte
slrp,#word
slrp, CY .... slrp-word
5
10
X X X
V
X
0
0
0
0
0
0
0
0
0
0
0
0
Sir-offset
Low Byte
High Byte
rp,rp1
rp,CY .... rp-rp1
2
3
X X X
V
X
0
0
0
1
P2 P1 Po 0
AX,saddrp
AX,CY .... AX-(saddrp)
2
4
X X X
V
X
0
0
0
0
0
02 01 00
1
1
0
Saddr-offset
AX,slrp
AX,CY .... AX-slrp
3
9
X X X
V
X
0
0
0
0
0
0
0
0
0
0
0
Sir-offset
saddrp, saddrp
(saddrp), CY .... (saddrp) - (saddrp)
3
5
X X X
V
X
0
0
0
Saddr-offset
Saddr-offset
CMPW
AX,#word
AX-word
3
3
X X X
V
X
0
0
0
Low Byte
High Byte
saddrp, #word
(saddrp)-word
4
5
X X X
V
X
0
0
0
0
1
Saddr-offset
Low Byte
High Byte
7-98
NEe
pPD7832x
Instruction Set (cont)
Flags
Mnemonic
Operand
Operation
Bytes
States
slrp-word
5
10
Operation Code
4
3 2
S Z AC PIVCY
7
6
X X X
0
0
0
0
0
0
0
0
5
0
16-Bit Arithmetic (cant)
CMPW
(cont)
slrp, #word
V
X
0
0
0
Sir-offset
Low Byte
High Byte
rp, rpl
rp-rpl
2
3
X X X
V
X
0
0
0
~ Q1
P2 Pl Po 0
AX, saddrp
AX - (saddrp)
2
4
X X X
V
X
0
0
0
1
00
1
Saddr-offset
AX,slrp
AX-slrp
3
9
X X X
V
X
0
0
0
0
0
0
0
0
0
0
0
0
Sir-offset
saddrp, saddrp
(saddrp) - (saddrp)
3
5
X X X
V
X
Saddr-offset
Saddr-offset
Multiplication! Division
MULU
rl
AX ... Axrl
2
14
DIVUW
rl
AX (Quotient), rl (Remainder) ... AX + rl
2
23
MULUW
rpl
AX (High Order 16 Bits), rpl
(Low Order 16 Bits), ... AX x rpl
2
22
AXDE (Quotient), rpl (Remainder) ...
AXDE+rpl
2
AX (High Order 16 Bits), rpl
(Low Order 16 Bits), ... AX x rpl
2
DIVUX
MULW*
rpl
rpl
43
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
Ro
0
0
Q2 Q1 Qo
0
0
0
24-28
Ro
0
R2 R1
0
0
0
R2 R1
Q2 Q1
0
00
0
~ Q1
00
Increment! Decrement
INC
rl
rl ... rl + 1
saddr
(saddr) ... (saddr) + 1
2
2
XX X
V
3
X X X
V
0
0
0
R2 R1 Ro
0
0
1
0
Saddr-offset
DEC
rl
rl ... rl -1
saddr
(saddr) ... (saddr)-l
rp2
rp2 ... rp2+1
saddrp
(saddrp) ... (saddrp) + 1
2
2
XX X
V
3
XX X
V
0
0
0
0
0
R2 R1
Ro
1
0
Saddr-offset
INCW
3
2
0
4
0
0
0
0
0
S1
0
0
0
1
0
0
0
So
0
Saddr-offset
* 16-bit signed multiply instruction.
7-99
II
ttiEC
pPD7832x
Instruction Set (cont)
Mnemonic Operand
Operation
Bytes
States
Flags
SZACP/vCY
7
Operation Code
654
321
0
Incrementl Decrement (cont)
DECW
rp2
rp2+- rp2-1
saddrp
(saddrp) +- (saddrp)-1
o
o
2
3
4
0
0
0
0
0
S1
o
o
So
1
0
0
Saddr-offset
Shift I Rotate
ROR
r1,n
(CY, r1 7+- r1 0,
r1 m-1 +- r1m) x n
2
PX001
6+n
o
0000
N2 N1
No R2 R1 Ro
ROL
r1,n
(CY, r10 +- r17'
r1 m+1 +- r1m) x n
2
6+n
PX00110001
RORC
r1,n
(CY+- r10, r17 +- CY,
r1 m_1 +- r1m) x n
2
6+n
PX00110000
ROLC
r1,n
(CY +- r17, r10 +- CY,
r1 m+1 +- r1m) x n
2
6+n
PXOO
SHR
r1,n'
(CY+- r10, r17 .... 0,
r1 m-1 +- r1m) x n
2
6+n
XXOPX001
SHL
r1,n
(CY +- r17, r10 +- 0,
r1 m+1 +- r1 111) x n
2
6+n
XXOPXOO
SHRW
rp1,n
(CY +- rp10, rp115 +- 0,
rp1 m-1 .... rp1m) x n
2
6+n
xx
0
P
x
SHLW
rp1,n
(CY +- rp115, rp10 +- 0,
rp1 m+1 +- rp1m) x n
2
6+n
xx
0
P
x
o
o
N2 N1
0
N2 N1
No R2 R1 Ro
No R2 R1 Ro
000
--------------------o
0
N2 N1
No R2 R1 Ro
0000
----------------a
N2 N1
No R2 R1 Ro
10001
--------------------o
N2 N1
No R2 R1 Ro
0
a
1
a
N2 N1
No 02 0 1 00
0
0
1
a
1
0
a
0
----------------1
0
0
----------------N2 N1
No 02 01
0
0
00
ROR4
[rp1]
A3-0 +- (rp1 )3-0, (rp1 )7-4 +- A3- 0,
(rp1 b-o +- (rp1 )7-4
2
8
o
ROL4
[rp1]
A3-0 +- (rp1 )7-4, (rp1 b-o +- A3-0,
(rp1h_4+- (rp1b-o
2
8
00000101
Decimal Adjust Accumulator
after add
2
5
Decimal Adjust Accumulator
after subtract
2
0
0
0
BCD Adjustment
ADJBA
ADJBS
XXXPXOOOO
010
----------~-----
o
5
XXXPXOOOO
o
o
----------------1 1
Data Expansion
CVTBW
X+- A,Ae_o +- A7
3
a
0
0
0
0
0
0
0
o
0
0
o
Bit Manipulation
MOV1
CY,saddr.bit
CY +- (saddr.bit)
3
6
x
0
Saddr-offset
CY,slr.bit
CY +- slr.bit
3
9
x
0
a
0
0
o
0
0
0
Sir-offset
7-100
1
0
0
NEe
pPD7832x
Instruction Set (cont)
Mnemonic Operand
Operation
Bytes
States
CY +- A.bit
2
6
Flags
SZACPNCY
7
Operation Code
654
321
0
Sit Manipulation (cont)
MOV1
(cont)
CY, A.bit
CY, X.bit
CY, PSWHbit
CY, PSWL.bit
saddr.bit, CY
CY +- X.bit
CY +- PSWH.bit
CY +- PSWL.bit
(saddr.bit) +- CY
2
2
2
3
x
x
6
x
6
x
6
5
0
0
0
0
o
0
0
0
0
0
0
0
o
0
0
0
0
0
0
0
o
0
0
0
0
0
0
0
o
o
o
0
0
0
0
0
0
0
0
o
o
000
o
0
1
0
B:!
B1
So
o
0
0
o
0
0
Saddr-offset
slr.bit,CY
sir. bit +- CY
3
B
0
0
Sir-offset
A.bit,CY
X.bit,CY
PSWH.bit, CY
AND1
A.bit +- CY
X.bit +- CY
PSWH.bit +- CY
2
2
2
7
7
B
PSWL.bit, CY
PSWL.bit +- CY
2
B
CY, saddr.bit
CY +- CY AND (saddr.bit)
3
6
x
X X
X
X
o
o
o
o
o
o
o
o
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
Ci
o
0
0
0
0
o
0
o 0
o B:!
o 0
B1
1
0
B:!
B1
So
I!I
001
0
..
o
o B:!
0
0
B1
So
0
0
o
0
1
So
Saddr-offset
CY, isaddr.bit
CY +- CY AND (saddr.bit)
3
6
X
0
0
001
Saddr-offset
CY,slr.bit
CY +- CY AND slr.bit
3
9
X
0
0
o
0
0
0
o
0
0
o
B:!
B1
So
Sir-offset
CY,islr.bit
CY +- CY AND slr.bit
3
9
X
0
0
o
0
0
0
Sir-offset
CY,A.bij
CY,IA.bit
CY,X.bit
CY +- CY AND A.bit
CY +- CY AND A.bit
CY +- CY AND X.bit
2
2
2
6
6
6
X
X
X
o
o
o
o
o
o
0
0
0
0
0
0
0
0
0
0
0
0
0
o
NEe
pPD7832x
Instruction Set (cont)
Mnemonic
Operand
Operation
Bytes
States
2
6
Flags
SZACP/vCY
7
Operation Code
654
321
x
0
0
0
o
0
1
0
0
0
0
o
0
1
0
0
Bit Manipulation (cont)
AND1
(cont)
CY,/X.bit
CY, PSWH.bit
CY,/PSWH.bit
OR1
CY +- CY AND X.bit
CY +- CY AND PSWH.bit
CY +- CY AND PSWH.bit
2
2
6
6
x
x
CY, PSWL.bit
CY +- CY AND PSWL.bit
2
6
x
CY,/PSWL.bit
CY +- CY AND PSWL.bit
2
6
x
CY, saddr.bit
CY +- CY OR (saddr.bit)
3
6
x
0
0
0
0
0
o
0
1
1
0
0
00
o
0
1
0
0
0
0
0
o
0
1
1
0
0
0
0
o
100
Saddr-offset
CY,/saddr.bit
CY +- CY OR (saddr.bit)
3
6
x
0
0
0
0
o
o
1
Saddr-offset
CY,slr.bit
CY +- CY OR sir. bit
3
9
x
0
0
o
0
0
o
0
o
0
o
0
1
0
Sir-offset
CY,/slr.bit
CY +- CY OR slr.bit
3
9
x
0
0
o
0
0
o
Sir-offset
CY,A.bit
CY,IA.bit
CY,X.bit
CY,/X.bit
CY, PSWH.bit
CY +- CY OR A.bit
CY +- CY OR X.bit
CY +- CY OR Kbit
CY +- CY OR PSWH.bit
2
2
2
2
2
6
6
6
6
6
CY,/PSWH.bit
CY +- CY OR PSWH.bit
2
6
CY, PSWL.bit
CY +- CY OR PSWL.bit
2
6
CY,/PSWL.bit
7-102
CY +- CY OR A.bit
CY .... CY OR PSWL.bit
2
6
x o
o
x o
o
x o
o
x o
o
x o
o
x o
o
x o
o
0
0
0
1
0
0
0
0
0
o
0
1
1
0
0
0
0
o
0
1
1
0
0
0
0
o
0
1
1
o
0
1
0
x o
o
0
0
0
0
0
1
0
0
0
0
0
o
0
1
0
1
0
o
0
1
0
o
0
1
0
0
0
0
1
0
0
0
0
0
o
1
NEe
I'PD7832x
Instruction Set (cont)
Mnemonic
Operand
Operation
Bytes
States
3
6
Flags
SZACP/vCY
7
Operation Code
654
321
0
0
0
Bit Manipulation (cont)
XORI
CY, saddr.bit
CY +- CY XOR (saddr.bit)
x
o
0
1
0
0
Saddr-offset
CY,slr.bit
CY +- CY XOR sIr. bit
3
x
9
0
0
0
o
0
o
0
1
o
0
1
o
0
1
0
o
0
1
0
o
0
0
0
o
o
x o
000
o
x o
o
x o
o
x o
1
0
SIr-offset
CY, Abit
CY,X.bit
CY, PSWH.bit
CY, PSWL.bit
CY +- CY XOR Abit
CY +- CY XOR X.bit
CY +- CY XOR PSWH.bit
CY +- CY XOR PSWL.bit
2
2
2
2
6
6
6
6
o
SETI
saddr.bit
(saddr.bit) +- 1
sIr. bit
slr.bit +- 1
2
4
3
11
1
0
000
1
0
000
0
0
0
0
1
1
0
o
1
0
0
o
0
Saddr-offset
o
0
0
SIr-offset
A.bit
X.bit
CLRI
A.bit +- 1
X.bit +-1
2
2
o
6
6
PSWH.bit
2
7
PSWL.bit
2
7
saddr.bit
(saddr.bit) +- 0
2
4
sIr. bit
slr.bit +- 0
3
11
X
X
0
0
0
0
000
0
o
0
0
0
0
0
o
xxx
0
o
0000
o
0
o
0
o
0
II
1
o
0010
--------------------0000828160
Saddr-offset
o
0
0
o
0
0
0
o
0
0
o
0
0
SIr-offset
Abit
X.bit
PSWH.bit
A.bit +- 0
X.bit +- 0
2
2
2
6
6
7
o
o
o
0
o
0
1
0
o
0
1
1
000
o
0
1
0
o
0
1
0
0
0
o
0
o
PSWL.bit
2
7
0
1
XXXXXOOOO
---------------------
7-103
NEe
pPD7832x
Instruction Set (cont)
Mnemonic Operand
Operation
Bytes
States
3
5
Flags
SZACPNCY
7
6
5
Operation Code
4
3 2 1
0
0
0
0
0
Bit Manipulation (cont)
NOT1
saddr.bit
(saddr.bit) +- (saddr.bit)
0
0
0
0
0
B2 B1
So
0
0
Saddr-offset
sIr. bit
slr.bit +- slr.bit
3
11
0
0
0
1
0
0
0
B2 Bl
So
SIr-offset
A.bit
A.bit +- A.bit
2
0
0
0
0
0
0
0
0
0
0
0
0
1
0
B2 Bl
0
0
0
B2 Bl
So
0
6
0
X.bit
PSWH.bit
PSWL.bit
X.bit +- X.bit
PSWH.bit +- PSWH.bit
PSWl.bit +- PSWl·bit
2
2
2
6
7
7
X X X
X
X
B2 Bl
0
0
0
1
0
0
0
0
0
0
0
Bo
1
So
0
0
0
0
B2 Bl
So
SETl
CY
CY +-1
2
0
1
0
0
0
0
0
CLRl
CY
CY +- 0
2
0
0
1
0
0
0
0
0
0
NOTl
CY
CY +- CY
2
X
0
1
0
0
0
0
1
0
0
0
1
0
0
0
1
0
Subroutine Linkage
CALL
!addr16
(SP-l) +- (pC + 3)H, (SP-2) +(PC + 3)l, PC +- addr16, SP +- SP-2
3
(SP-l) +- (PC + 2)H, (SP-2) +(PC + 2)l, PCH +- rpl H, PCl +- rpl l,
SP+-SP-2
2
(SP-l) +- (PC + 2)H, (SP-2) +(PC + 2)l, PCH +- (rpl + 1), PCl +- (rpl),
SP +- SP-2
2
(SP-l) +- (pC + 2)H, (SP-2) +(PC + 2JL, PC 15 . 11 +- 00001,
PClO-0 +- addrll , SP +- SP - 2
2
6
0
Low Addr
High Addr
rpl
[rpl]
CALLF
CALLT
BRK
7-104
!addrll
[addr5]
7
0
0
0
10
0
0
0
0
0
0
0
02 01 00
0
0
0
6
(SP-l) +- (PC+ 1)H,(SP-2) +(PC + 1)l, PCH +- (TPFx8000H +
2 x addr5 + 41H), PCl +(TPFx8000H + 2 x addr5 + 40H),
SP +- SP-2
9
(SP-l) +- PSWH, (SP-2) +- PSWl,
(SP-3) +- (PC + l)H, (SP-4) +(PC + 1)l, PCl +- (003EH),
PCH +- (003FH), SP +- SP-4, IE +- 0
12
0
0
O2 01 00
1
0
110 19
18
16 15 14
13
12
11
10
1
t4
t3
t2
tl
to
0
1
0
17
1
1
0
0
NEe
IIPD7832x
Instruction Set (cant)
Mnemonic
Operand
Bytes
Operation
States
Flags
SZACPIVCY
Operation Code
4
3 2
0
0
0
0
7
6
5
Subroutine Linkage (cont)
RET
PCl +- (SP), PCH +- (SP + 1),
SP +- SP + 2
RETB
PCl +- (SP), PCH +- (SP + 1),
PSWl +- (SP + 2), PSWH +- (SP
SP +- SP +4
6
I
10
R R R
R
R
0
0
10
R R R
R
R
0
0
1
0
0
0
0
3),
PCl +- (SP). PCH +- (SP + 1).
PSWl +- (SP I 2). PSWH +- (SP + 3),
SP +- SP + 4
RETI
0
Stack Manipulation
PUSH
sfrp
post
PUSHU
(SP -1) +- sfrH, (SP - 2) +- sfrl,
SP +- SP-2
3
9
I
(SP-1) +- rpPH, (SP-2) +- rpPl,
SP +- SP-21 x n*
POPU
MOVW
(UP-1) +- rpPH.(UP-2) +- rpPl.
UP +- UP-21 x n*
2
sfrL ... (SP), 91rH +- (SP
SP ... SP I 2
3
I
1),
I
rPPl +- (SP),rPPH +- (SP + 1)
SP +- SP + 21 x n*
2
0
0
0
1
3
0
10-52**
a
. ,,_,-",---'-'-...
0
0
0
0
0
0
0
0
0
0
0
0
0
Post Byte
__.._--,-,. ,.
a
10
0
0
0
0
1
0
13-62**
0
0
1
0
Post Byte
PSWl +- (SP), PSWH +- (SP + 1)
SP +- SP + 2
post
rpPl +- (UP). rpPH +- (UP + 1),
UP +- UP+21 x n*
2
SP +- word
4
I
0
Sfr-offset
PSW
SP, #word
0
Post Byte
post
1
9-51**
2
(PS-1) +- PSWH, (SP-2) +- PSWl ,
SP +- SP-2
post
0
Sfr-offset
PSW
slrp
0
0
POP
0
5
15-64**
R R R
R
R
0
a
0
0
0
0
0
0
Post Byte
7
0
0
0
0
0
1.
0
0
0
0
Low Byte
High Byte
SP,AX
SP +- AX
2
6
0
0
0
0
0
AX;SP
AX+- SP
2
6
0
0
0
0
0
INCW
SP
SP +- SP + 1
2
3
0
0
0
0
0
0
DECW
SP
SP +- SP-1
2
3
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
rpp refers to register pairs specified in post byte. n is the number
of register pairs specified in post byte.
** The details of the timing are described under "Timing of the PUSH
and POP Instructions."
*
7-105
II
NEe
pPD7832x
Instruction Set (cont)
Mnemonic Operand
Operation
Bytes
States
3
12
Flags
SZACPNCY
7
6
5
Operation Code
XX
a
0
4,
3
0
0
0
0
0
2
1
0
Pin Level Test
CHKL
sfr
(Pin level) XOR (internal signal level)
P
1
1
0
0
0
Sir-offset
CHKLA
sfr
A +- (Pin level) XOR (internal signal level)
3
12
XX
P
0
0
0
0
1
0
0
0
1
0
0
Sfr-offset
Unconditional Branch
BR
laddr16
PC +- addr16
3
4
a
0
1
0
0
0
Low Addr
High Addr
rpl
PCH+- rplH' PCl +- rp1l
2
4
a
0
0
[rpl]
PCH +- (rpl
+ I), PCl +- (rpl)
2
8
0
0
0
0
0
0
0
0
0
$addrl6
PC ... addr16
2
4
0
0
0
1
0
a2 al 00
0
0
0
a2 al 00
0
0
1
0
0
0
1
0
0
1
0
0
0
0
0
0
0
jdisp
Conditional Branch
BC,
BL
$addr16
BNC,
BNL
$addrl6
BZ,
BE.
$addrl6
BNZ,
BNE
$addrl6
BV,
BPE
$addrl6
BNV,
BPO
$addrl6
BN
$addr16
PC ...
addrl6ifCY~
1
2
4
0
0
0
jdisp
PC +- addr16 if CY ~ 0
2
4
0
0
0
0
jdisp
PC +- addr16 ifZ ~ 1
2
4
0
0
0
jdisp
PC +-
addrl6ifZ~O
2
4
0
0
0
0
jdisp
PC +- addr16 if PIV ~ 1
2
4
0
0
0
0
0
0
0
jdisp
PC +- addr16 if PIV ~ 0
2
4
0
0
0
0
jdisp
PC +- addrl6ifS= 1
2
4
0
0
0
0
jdisp
BP
$addrl6
PC +- addr16 if S = 0
2
4
0
0
0
0
0
jdisp
BGT
$addr16
PC +- addr16if (PIV XOR S) OR Z= 0
3
5
0
0
0
0
0
0
jdisp
BGE
$addr16
PC +- addr16 if PIV XOR S = 0
3
5
0
0
0
0
0
0
jdisp
7-106
0
t-{EC
pPD7832x
Instruction Set (cont)
Flags
Mnemonic
Operand
Operation
Bytes
States
3
5
S Z AC P/v CY
Operation Code
7
6
5
4
3
0
0
0
0
0
2
0
Conditional Branch (cont)
BlT
$addrl6
PC .... addr16 if PIV XOR S = 1
0
0
0
jdisp
BlE
$addrl6
PC .... addr16 if (PIV XOR S) OR Z = 1
3
5
0
0
0
0
0
0
0
jdisp
BH
$addrl6
PC .... addr16ifZ OR CY = 0
3
5
0
0
0
0
0
0
jdisp
BNH
$addrl6
PC .... addr16ifZ OR CY = 1
3
5
0
0
0
0
0
0
0
jdisp
BT
saddr.bit,
$addrl6
PC .... addr16 if (saddr.bit) = 1
sfr.bit, $addrl6
PC .... addr16if sfr.bit = 1
3
7
0
0
B2 B1
Bo
Saddr-offset
jdisp
4
8
0
0
0
0
0
0
~ B1
0
0
So
Sfr-offset
jdisp
A.bit, $addrl6
PC .... addrI6ifA.bit= 1
3
8
0
0
0
0
0
0
0
B2 B1
So
jdisp
X.bit, $addrl6
PC .... addr16if X.bit= 1
3
8
0
0
0
0
0
0
0
0
B2 B1
Bo
0
0
0
B2 B1
So
0
0
0
0
B2 B1
Bo
jdisp
PSWH.bit,
$addrl6
PC .... addrl6ifPSWH.bit = 1
3
8
0
0
0
0
0
jdisp
PSWL.bit,
$addrl6
PC .... addr16if PSWL.bit = 1
3
8
0
0
0
0
0
jdisp
7-107
II
t-IEC
pPD7832x
Instruction Set (cont)
Mnemonic
Operand
Operation
Bytes
States
4
7
Flags
SZACPIVCY
7
Operation Code
4
3 2
6
5
0
0
0
Conditional Branch (cont)
BF
saddr.blt, $addr16
PC +- addr16 It (saddr.bit)
=0
0
0
0
0
0
0
0
0
B2 Bl
So
0
0
Saddr-offset
jdlsp
str.bit, $addr16
PC +- addr16itslr.bit = 0
4
8
0
0
0
1
0
0
0
0
B2 Bl
So
SIr-offset
jdisp
A.bit, $addr16
PC +- addr16 if A.bit = 0
3
8
0
0
0
0
0
0
0
0
B2 Bl
So
jdisp
X.bit, $addr16
PC +- addr16 ifX.bit = 0
3
8
0
0
0
0
0
0
0
0
0
B2 Bl
0
0
0
B2 Bl
~o
Bo
jdisp
PSWH.bit, $addr16 PC +- addr16 if PSWH.bit = 0
3
8
0
0
0
0
0
0
jdisp
PSWL.bit, $addr16 PC +- addr16 it PSWL.bit = 0
3
8
0
0
0
0
0
0
0
0
0
0
~ Bl
So
0
0
jdisp
BTCLR
saddr.bit, $addr16
PC +- addr16 it (saddr.bit)
then reset (saddr.bit)
=1
4
8/10
0
a
0
0
0
0
0
B2 ~1
So
Saddr-offset
jdisp
sIr .bit, $addr16
PC .... addr16 it slr.bit = 1
then reset str.bit
4
8/10
0
0
0
0
0
a
0
B2 Bl
0
Bo
SIr-offset
jdisp
Abit, $addr16
PC +- addr16 it A.bit = 1
then reset A bit
3
8/10
0
0
0
0
0
0
0
B2 Bl
So
jdisp
X.bit, $addr16
PC .... addr16ilX.bit = 1
then reset X.bit
3
8/10
0
0
0
0
0
0
0
0
~ Bl
0
0
0
B2 Bl
So
So
jdisp
PSWH.bit,
$addr16
PC +- addr16 if PSWH.bit = 1
then reset PSWH.bit
3
8/10
0
0
0
0
0
jdisp
7-108
NEe
pPD7832x
Instruction Set (cont)
Flags
Mnemonic
Operand
Operation
Bytes
States
3
8/10
Operation Code
4
3 2
S Z AC PIV CY
7
6
5
X X X
0
0
0
0
Conditional Branch (cont)
BTCLR
(cont)
PSWL.bit,
$addrl6
PC +- addrl6ilPSWl.bit = 1
then reset PSWl.bit
BFSET
saddr.bit,
$addrl6
PC +- addr16 il (saddr.bit)
then set (saddr.bit)
X
X
0
0
0
0
0
0
B2 Bl
So
0
0
jdisp
=0
4
0
8/10
0
0
0
0
0
0
0
B2 81
So
0
Saddr-offset
jdisp
sIr. bit, $addrl6
PC +- addr16 ilslr.bit = 0
then set slr.bit
4
8/10
0
0
0
0
0
0
0
~ Bl
0
Bo
SIr-offset
jdisp
A.bit, $addrl6
PC +- addr16 il A.bit = 0
thensetA.bit
3
8/10
0
0
0
0
0
0
0
0
~ Bl
So
jdisp
X.bit, $addrl6
PC +- addr16 ilX.bit = 0
then set X.bit
3
0
8/10
0
0
0
0
0
0
0
0
~ Bl
0
0
0
B2 Bl
So
0
0
0
0
~Bt
So
0
0
Co
So
jdisp
PSWH.bit,
$addrl6
PC +- addr16 il PSWH.bit = 0
then set PSWH.bit
3
PSWL.bit,
$addrl6
PC +- addr16 il PSWl.bit = 0
then set PSWl.bit
3
8/10
0
0
0
0
0
0
0
0
0
0
jdisp
8/10
XX X
X
X
0
0
jdisp
DBNZ
r2,$addrI6
saddr, $addrl6
r2+-r2-1,
then PC +- addr16 il r2 '" 0
2
(saddr) +- (saddr) -I,
then PC +- addr16 if saddr '" 0
3
0
5/6
0
1
jdisp
6/7
0
0
0
Saddr-offset
jdisp
Context Switching
BRKCS
RETCS
RBn
!addrl6
PCH <+ R5, PCl <+ R4,
R7 +- PSWH, R6 +- PSWl,
RBS2_0 +- n, RSS +- 0, IE +- 0
2
7
0
0
0
0
PCH +- R5, PCl +- R4,
R5, R4 +- addr16, PSWH +- R7
PSWl +- R6 (priority change)
3
PCH +- R5, PCl +- R4,
R5, R4 +- addr16, PSWH +- R7
PSWl +- R6(noprioritychange)
4
5
R R R
R
R
0
0
,
0
0
0
N2 Nl No
u
u
u
LowAddr
HighAddr
RETCSB
!addrl6
5
R R R
R
R
0
0
0
0
1
0
0
0
0
0
0
.0
LowAddr
HighAddr
7-109
II
t-IEC
pPD7832x
Instruction Set (cont)
Mnemonic Operand
Operation
Bytes
States
2
3+6n
Flags
SZACPIVCY
Operation Code
7654
321
0
o
o
0
0
1
010
0
0
0
o
0
o
o
o
o
o
o
o
o
o
o
o
o
o
o
o
0
0
0
0
0
0
0
o
o
o
String Manipulation
MOVM
[DE+].A
(DE+) .... A.C .... C-1
EndifC=O
0
0
(DE-) .... A.C .... C-1
EndifC = 0
2
[DE+]. [HL+l
(DE+) .... (HL+).C .... C-1
EndifC=O
2
3+9n
[DE-l. [HL-]
(DE-) .... (HL-).C .... C-1
EndifC=O
2
3+9n
[DE+l.A
(DE+) <+A.C .... C-1
EndifC=O
2
3+10n
[DE-l.A
(DE-) <+A.C .... C-1
EndifC=O
2
3+10n
[DE+l.[HL+l
(DE+) <+ (HL+).C .... C-1
EndifC=O
2
3+16n
[DE-l. [HL-]
(DE-) <+ (HL-). C .... C-1
EndifC=O
2
3+16n
[DE+l.A
(DE+)-A.C .... C-1
EndifC = OorZ = 0
2
3+10n
X X X
V
X
0
o
0
0
[DE-l.A
(DE-)-A.C .... C-1
EndifC = OorZ = 0
2
3+10n
X X X
V
X
0
0
0
a a
0
0
0
[DE+l.[HL+]
(DE+)-(HL+).C .... C-1
EndifC = OorZ = 0
2
3+13n
X X X
V
X
0
0
0
0
[DE-l. [HL-l
(DE-)-(HL-).C .... C-1
EndifC = OorZ = 0
2
3+13n
X X X
V
X
CMPMNE [DE+l.A
(DE+)-A.C .... C-1
End ifC = OorZ= 1
2
3+ 10n
X X X
V
X
0 0 0
0
0
--------------------0000010
[DE-l.A
(DE-)-A.C .... C-1
EndifC=OorZ=1
2
3+10n
X X X
V
X
0 0 0 1
0 1 0
----------------o 0 0
0
0
(DE+)-(HL+).C .... C-1
EndifC=OorZ=1
2
3+13n
X X X
V
X
0
0
o
0
[DE-l. [HL-]
(DE-)-(HL-).C .... C-1
EndifC = OorZ= 1
2
3+ 13n
X X X
V
X
0
0
0
----------------o 0 1
0 1 0
[DE+].A
(DE+)-A.C .... C-1
EndifC = OorCY = 0
2
3+10n
X X X
V
X
0
0
0
o
0
0
(DE-)-A.C .... C-1
EndifC = OorCY = 0
2
3+10n
X X X
V
X
--------------------o 0 0
0 1
0
0
0
(DE+)-(HL+).C ... C-1
EndifC = DorCY = 0
2
3+13n
X X X
V
X
0 0 0
0
0
----------------o 0
0
0 1
(DE-)-(HL-).C ... C-1
EndifC = OorCY= 0
2
3+13n
X X X
V
X
--------------------o 0 1
0
[DE-].A
MOVBK
XCHM
XCHBK
CMPME
CMPBKE
CMPBKNE [DE+l.[HL+l
CMPMC
[DE-l.A
CMPBKC [DE + l. [HL + 1
[DE-l. [HL-l
7-110
3+6n
0
0
0
0
0
000
1
010
010
o
0
1
0
0
1
0
000
0
o
o
o
o
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
o
o
0
0
o
1
0
0
0
010
0
o
0
0
0
0
o
0
0
0
0
0
0
0
0
00100100
0
0
0
0
0
o
0
1
0
0
0
0
0
0
9
0
0
0
1
0
0
0
1
0
1
0
0
0
0
0
0
1
0
0
tVEC
pPD7832x
Instruction Set (cont)
Mnemonic
Operand
Bytes
States
Flags
SZACP/vCY
(DE+)-A,C ... C-1
EndifC=OorCY= 1
2
3+10n
X X X
(DE-)-A,C ... C-1
EndifC = OorCY = 1
2
3+10n
X X X
V
X
(DE+)-(HL+),C ... C-1
EndifC = OorCY = 1
2
3+13n
X X X
V
X
(DE-)-(HL-),C ... C-1
EndifC = OorCY = 1
2
3+13n
X X X
V
X
STBC ... byte*
4
Operation
Operation Code
4
3 2 1
7
6
5
0
0
0
0
0
0
0
0
0
0
String Manipulation (cont)
CMPMNC [DE+j,A
[DE-j,A
CMPBKNC [DE+j,[HL+j
[DE-j, [HL-j
V
X
0
0
0
0
0
0
1
0
0
1
0
0
1
0
0
0
1
0
0
0
0
1
0
0
0
0
0
0
1
0
0
0
0
0
0
0
1
0
0
0
CPU Control
MOV
STBC,#byte
11
0
0
0
0
0
0
0
0
0
0
0
0
Data
Data
WDM,#byte
WDM ... byte*
4
11
0
0
0
0
0
0
0
0
0
0
Data
Data
SWRS
SEL
RSS ... RSS
2
0
1
0
0
0
0
0
0
1
0
RBn
RSS ... 0, RBS2_0 ... n
2
3
0
0
0
1
0
RBn,ALT
RSS ... 1, RBS2_0 ... n
2
3
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
N2 Nt No
0
NOP
No Operation
2
0
EI
IE ... 1 (Enable Interrupt)
3
0
DI
IE ... 0 (Disable Interrupt)
3
0
1
1
0
1
N2 Nt No
0
0
* Trap if data bytes are not ones complement.
If trap, then: (SP-t) ... PSWH,
(SP-2) ... PSWl, (SP-3) ... (PC-4)H' (SP-4) ... (PC-4)l,
PCl ... (003CH), PCH ... (003DH),
SP ... SP-4, IE ... O.
7-111
II
IIPD7832x
7-112
ttlEC
NEe
NEG Electronics Inc.
pPD71P301
Memory Extender and Port Re-Creation
Logic (Turbo Access Manager)
Description
I'PD71 P301 Architecture
The pPD71P301 is a very high-performance port and
memory expansion device that is designed to complement the pPD7832X microcomputer. The pPD71P301
contains special logic which allows the pPD7832X to
perform full-speed memory access, as well as utilize
lost I/O ports normally used for the external memory
interface. In addition to the port re-creation logic, the
part contains 1K bytes of static RAM and 16K bytes of
EPROM or OTP memory. The pPD71 P301 also has chipselect logic that allows cascading of multiple devices to
form additional ports and memory.
The pPD71 P301 is ideal for systems where external
memory is required but access speed is critical to the
application. This two-chip solution is also an excellent
development system option since software and hardware can be fully emulated without high part count and
speed limitations.
Features
83VL.G135A
o 16K-bytes UV EPROM or OTP; compatible with
27C256A
o 1K-bytes SRAM
o Two a-bit I/O ports
o One cycle/byte instruction fetch
o a-or 16-bit bus interface
Ordering Information
Part Number
Package
Availability
IlPD71 P301 GF-3BE
64-pin plastic
QFP (OTP)
Now
IlPD71 P301 GQ-36
64-pin plastic
QUIP (OTP)
Now
IlPD71 P301 KA
44-pin ceram ic
LCC (EPROM)
Now
IlPD71 P301 KB
64-p in ceram ie
LCC (EPROM)
Now
IlPD71 P301 L
44-pin PLCC
(OTP)
Now
IlPD71 P301 RQ
64-pin ceramic
QUIP (EPROM)
Now
o Instruction pre-fetch pointer
o Address latch
o Chip-select logic
o Address/data distinction
o Single 5 V supply
o CMOS silicon gate technology
50265
7-113
II
NEe
pPD71P301
Block Diagram
VCC
Vpp
VSS
UBE
ALE
OE
WE
Bus
Interface
TAS
TMD
RESET
CE
ADO-AD1S
A 16 -A 19
Chip Select
Control
83YL-6136B
7-114
tttfEC
IlPD722x Series:
LCD Controller/Drivers
8-1
III
Intelligent LCD Controller/Drivers
Section 8
"PD722x Series:
Intelligent LCD Controller/Drivers
"PD7225
8-3
CMOS, Intelligent, Alphanumeric
LCD Controller/Driver
"PD7227
8-13
CMOS, Intelligent, Dot-Matrix
LCD Controller/Driver
"PD7228/28A
CMOS, Intelligent, Dot-Matrix
LCD Controller/Driver
8-2
8-21
NEe
NEe
NEe Electronics Inc.
pPD7225
CMOS, Intelligent, Alphanumeric
LCD Controller/Driver
Description
Pin Configuration
The j.lPD7225 is an intelligent peripheral device designed to interface most microprocessors with a wide
variety of alphanumeric LCDs. It can directly drive any
static or multiplexed LCD containing up to 4 backplanes
and up to 32 segments and is easily cascaded for larger
LCD applications. The IlPD7225 communicates with a
host microprocessor through an 8-bit serial interface. It
includes a 7-segment numeric and a 14-segment alphanumeric segment decoder to reduce system software
requirements. The IlPD7225 is manufactured with a low
power consumption CMOS process allowing use of a
single power supply between 2.7 V and 5.5 V. It is available in a space-saving 52-pin plastic flat package.
~~ ~:;g~ ~~:til iRr'R
520
Features
o
o
o
Single chip LCD controller with direct,LCD drive
Low cost serial interface to most microprocessors
Compatible with
.
- 7-segment numeric LCD configurations
.
up to 16 digits
- 14-segment alphanumeric LCD configurations
up to 8 characters
o Selectable LCD drive configuration:
- Static, biplexed, triplexed, or quadruplexed
o 32-segment drivers
D Cascadable for larger LCD applications
o Selectable LCD bias voltage configuration:
- Static, 1/2 or 1/3
D Hardware logic blocks reduce system software
requirements
- 8-bit serial interface
- Two 32 x 4-bit static RAMs for display data and
blinking data storage
- Programmable segment decoding capability:
- 16-character, 7-segment numeric decoder
- 64-character, 14-segment USASCII
alphanumeric decoder
- Programmable segment blinking capability
- Automatic synchronization of segment drivers
with sequentially multiplexed backplane
drivers
o Single power supply, variable from 2.7 V to 5.5 V
D Low power consumption CMOS technology
o Extended - 40°C to +85°C temperature range
521
57
Sa
5 ••
5s
s.a
5.
50.
53
5.S
50
50s
507
51
50
5.8
COM3
500
53.
COM.
531
COMo
CLI
NC
COM,
r
I'"
~
S S !a 0
iii
CJ~ggg>~~
rn > > >
.s
l!'l I~j U'ef 3
llii
CD
a:
63-OO2798A
Pin Identification
No.
Symbol
CL2
Function
. Sysiem clock output
SYNC
Synchronization port
3-5
VLCDC
VLCD3
LCD bias voltage supply inputs
6
Vss
Ground
7,33
VDD
Power
8
SCK
Serial clock input
9
SI
Serial input
10
CS
Chip select
11
BUSY
Busy output
12
c/ii
Command or data select input
13
RESET
Reset input
14
NC
No connection
LCD backplane driver outputs
15-18
COMo-COM3
19-32, 34-51
SO-S31
LCD segment driver outputs
52
CL1
System clock input
II
Ordering Information
ParI Number
Package Type
Max Frequency
01 Operation
pPD7225G-OO
52-pin plastic OFP
1 MHz
50272 (NECEL-I88)
8-3
t\'EC
J.lPD7225
Pin Functions
CS
COMo-COM3
Chip select input. Enables the I-IPD7225 for data input
from the microprocessor. When CS is deselected, the
display can be updated.
LCD backplane driver outputs.
SO-S31
SYNC
LCD segment driver outputs.
Synchronization port. For multichip operation, tie all
SYNC lines together.
VLC01- VLC03
LCD bias voltage supply inputs to the LCD voltage controller. Apply appropriate voltages from a voltage ladder
connected across Voo.
CL1
System clock input. Connect CL1 either to CL2 with a
180 kQ resistor, or to an external clock source.
SI
CL2
Serial input from the microprocessor.
System clock output. Connect CL2 to CL1 with a 180 kQ
resistor, or leave open.
SCK
Serial clock input. Synchronizes 8-bit serial data transfer from the microprocessor to the I-IPD7225.
BUSY
Handshake output indicates the I-IPD7225 is ready to reo
ceive the next data byte.
c/o
Command/data select input. Distinguishes serially input data byte as a command or as display data.
8-4
RESET
Reset input. R/C circuit or pulse initializes the I-IPD7225
after power-up.
VOO
Power supply positive. Apply single voltage ranging
from 2.7 to 5.5 V for proper operation.
Vss
Ground.
ttiEC
IlPD722~
Block Diagram
COMo-COM3
LCD Driver
SYNc
4
Display latch
32
32
VDD
VlCDI
LCD
Voltage
Controller
.YlCD2
VlCD3
32.4 Bit
'Display RAM
Segment
Decoder
Data
Pointer
32.4 illt
Blinking RAM
VSS
ClI
CL2
==I
Clock
Oscillator
RESET _ _
Buffer
Interface
8
Controller
Command
Decoder
Serial Interface
SI
83-0033798
8-5
NEe
J.lPD7225
DC Characteristics (cont)
Absolute Maximum Ratings
TA=25°C
TA = -40°C to +85°C, voo = +5 V ±10%
Limits
-0.3Vto +7V
Power supply voltage, Voo
Input voltage, VI
-0.3VtoVoo +0.3V
Parameter
Output voltage, Va
-0.3VtoVoo +0.3V
Input voltage
low
VILl
VIL2
Input voltage
high
VIHl
VIH2
Operating temperature, TOPT
-40°C to +85 °C
Storage temperature, TSTG
- 65°C to + 150°C
Comment: Exposing the device to stresses above those listed in Abso·
lute Maximum Ratings could cause permanent damage. The device is
not meant to be operated under conditions outside the limits de·
scribed in the operational sections of the specification. Exposure to
absolute maximum rating conditions for extended periods may affect
device reliabi lity.
DC Characteristics
TA= -10°Cto +70 oC,Voo= +5V±10%
Limits
Parameter
Symbol
Min
TyP
Max
Unit
0. 3Voo
V
Test
Conditions
Input voltage
low
VIL
Input voltage
high
VIH
Output voltage
low
Vall
0.5
V
BUSY, 10L =lOOI'A
VOL2
1.0
V
IOL 900 pA,
NC
SY
Output voltage
high
VOH
V
BUSY, SYNC
IOH=-7 pA
Input leakage
current low
ILiL
Input leakage
current high
ILiH
Output leakage
current
ILDL
Output short
circuit current
los
Backplane
driver output
impedance
RCOM
Segment
driver output
impedance
RSEG
Supply current
0. 7VOO
Voo
Voo
-0.5
-2
I'A
VIL=OV
I'A
VIH=VOO
-2
~
VOL =OV
I'A
VOH=VOO
-300
I'A
SYNC, Vo = 1.0 V
kQ
COMO-COM3,
VOO;;,VLCO
(Note 1)
ILOH
100
5
7
100
V
14
250
kQ
~
SO-S31,
VOO;;,VLCO
(Note 1)
CL1 external clock,
f+=200kHz
Note:
(1) Applies to static·, 1/2·, and 1/3·LCD bias voltage schemes.
Output voltage
low
Symbol
Min
Typ
Test
Conditions
Max
Unit
0
0.3 Voo
V
Except SCK
0
0.25 Voo
V
SCK
0.7 Voo
Voo
V
Except SCK
0.75 VOO
Voo
V
SCK
Vall
0.5
V
BUSY, 10L = 100 I'A
VOL2
1.0
V
IOL = 1.05 rnA
SYNC
V
BUSY, SYNC,
IOH=-7I'A
Output voltage
high
VOH
Input leakage
current low
ILiL
Input leakage
current high
ILiH
Output leakage
current
ILOL
Output short
circuit current
los
Backplane
driver output
impedance
RCOM
5
8
kQ
COMo-COM3,
VOO;;,VLCO
(Note 1)
Segment
driver output
impedance
RSEG
7
20
kQ
SO-S31,
VOO;;,VLCO
(Note 1)
Supply current
100
250
~
CL1 external clock,
Voo=3.0V±10%,
f", = 180 kHz
Voo
-0.75
-2
-2
ILOH
-350
90
I'A
VIL =OV
I'A
VIH=VOO
~
VOL =OV
I'A
VOH=VOO
SYNC, Vo = 1.0 V
Note:
(1) Applies to static·, 1/2·, and 1/3·LCO bias voltage schemes.
Capacitance
TA = 25°C, f+ = 1 MHz
Limits
Parameter
Symbol
Min
Typ
Max
Unit
Test
Conditions(1)
Input
capacitance
CI
10
pF
Output
capacitance
Cal
20
pF
CO2
15
pF
BUSY
1/0
capacitance
Cia
15
pF
SYNC
Clock
capacitance
C+
30
pF
CL1 input
Note:
(1) All unmeasured pins returned to 0 V.
Except BUSY
1fIEC
IlPD7225
AC Characteristics
TA = O·C to +70·C, VOO = 2.7 V to 5.5 V
. TA=-40·Cto+85·C, VOO =+5 V ±10%
Limits
Parameter
Symbol
Clock frequency 1+
Min
Max
Unit
180
kHz
130
180
kHz
R= 180 k~2+5%
10
",s
CL 1, external clock
10
",s
CL 1, external clock
75
losc
80
Clock pulse
width low
,+WL
2
Clock pulse
width high
,+WH
SCKcycle
tCYK
1.2
ps
SCK pulse width tKWL
low
500
ns
SCK pulse width tKWH
high
500
ns
BUSY tlo SCK ~ tBHK
hold time
0
ns
tlSK
100
ns
tlHK
200
ns
~tuptimeto
Te.t
Conditions
Typ
8th SCK t to
i30SY ~ delay
time
C5 HoBUSY
delay time
3
tKOB
~
1.5
tCOB
Cijjs~time tOSK
to 8th SCK t
9
",s
",s
tOHK
",s
CS hold time
after 8th SC K t
tCHK
",s
CS pulse width
low
tCWL
8/1+
",s
CS pulse width
high
SYNC load
capacitance
tCWH
8/1+
",s
after 8th SCi< t
CL
50
pF
Min
CL =50pF
CL=50pF
Typ
50
T••t
Conditions
Max
Unit
140
kHz
140
kHz
R=180kQ+5%,
Voo=3.0V ±10%
losc
50
Clock pulse
width low
t,WL
3
16
",s
CL1, external clock
Clock pulse
width high
t+WH
3
16
",s
CL1, external clock
SCK cycle
100
tCYK
4
",s
SCK pulse width tKWL
low
1.8
",s
SCK pulse width tKWH
high
1.8
",s
0
ns
~USY tlo SCK
hold time
~
tBHK
51 setup time to tlSK
SCK t
",s
SI hold time
afterSCK t
tlHK
",s
8th SCK tto
BUSY ~ delay
time
tKOB
5
",s
CL =50 pF
~
tCOB
5
",s
CL =50 pF
C/Ds~time
tOSK
CS HoBUSY
delay time
",s
C/15 hold time
Symbol
Clock Irequency 1+
SCK t
SI hold time
afterSCKt
Limits
Parameter
18
",s
m
to 8th SCK t
C/ Dhold time
after 8th SCK t
tOHK
.1
",s
CS hold time
tCHK
after 8th SCi( t
10=200 kHz
",s
C5 pulse width
low
tCWL
8/1+
j.ts
CS pulse width
. high
tCWH
8/1,
",s
SYNC load
50
CL
pF
1+=200 kHz
capacitance
~~
,i,IJ;IIY
C;-;aiai;:vi:g::~:;
All Inputs
V---------;f
~'H
VIL
\:----------7-:
~OH
VOL
:----------:.-:------------
All Outputs
----------
--------------
83OO2199B
8-7
NEe
f-tPD7225
Timing Waveforms
Clock
t
Cl1----------------------_
IIf.;
t4>WL
.~..
fJ,WH
1
83·oo2800B
Serial Interface
~--------
__----------------tCWl--------------------------~
teDs
1'-+----.:.;:..::......---------- - - - --+----.J\
}--------;..-.- - - - ----J
~tBHK... ' ..
51---------------------4-l
I
I
_-------------tDsK--------------_~---tDHK==:j
fo
.
ol .
CID------~(,...-------
----
))---_
83·0028018
8-8
N"EC
J.lPD7225
Instruction Set (Note 1)
Command
Oescrlption
Mode Set
Initialize the ",PD7225, including selection of:
1) LCD drive configuration
2) LCD bias voltage configuration
3) LCD frame frequency
Operation Code
Hex
Code
D?
De
Ds
D4
D3
D2
D1
Do
40-5F
a
1
a
d4
d3
d2
d1
do
a
0
a
0
0
0
0
a
a
a
d3
d2
d1
do
Unsynchronous Data Transfer
Synchronize display RAM data transfer to display latch with CS
30
a
Synchronous Data Transfer
Synchronize display RAM data transfer to display latch with LCD
drive cycle
31
0
a
a
Interrupt Data Transfer
Interrupt display RAM data transfer to display latch
38
a
a
Load Data Pointer
Load data pointer with 5 bits of immediate data
EO-FF
1
a
a
d4
a
a
a
a
0
a
d3
d2
d1
do
0
d3
d2
d1
do
d3
d2
d1
do
Clear Display RAM
Clear the display RAM and reset the data pOinter
Write Display RAM
Write 4 bits of immediate data to the display RAM location
addressed by the data pOinter; increment data pOinter
AN DDisplay RA M
Perform a logical AND between the display RAM data addressed by SO-SF
the data pointer and 4 bits of immediate data; write result to same
display RAM location. Increment data pOinter
a
OR Display RAM
Perform a logical OR between the display RAM data addressed by
the data pOinter and 4 bits of immediate data; write result to same
display RAM location; increment data pointer
0
Enable Segment Decoder
Start use of the segment decoder
15
0
0
0
0
Disable Segment Decoder
Stop use of the segment decoder
14
0
0
0
0
Enable Display
Turn on the LCD
11
0
0
0
0
0
0
1
Disable Display
Turn off the LCD
10
0
0
0
0
0
0
0
Clear Blinking RAM
Clear the blinking RAM and reset the data painter
00
0
0
0
0
0
0
0
0
0
0
d3
d2
d1
do
0
0
d3
d2
d1
do
0
d3
d2
d1
do
20
DO-DF
BO-BF
Write Blinking RAM
Write 4 bits of immediate data to the blinking RAM location
addressed by the data pointer; increment data painter
CO-CF
AND Blinking RAM
Perform a logical AND between blinking RAM data addressed by
the data pOinter and 4 bits of immediate data; write result to same
blinking location; increment data painter
SO-SF
0
OR Blinking RAM
Perform a logical OR between blinking RAM data addressed by the AO-AF
data painter and 4 bits of immediate data; write result to same
blinking location; increment data painter
0
Enable Blinking
Start segment blinking at the frequency specified by 1bit of
immediate data
Disable Blinking
Stop segment blinking
1
0
0
1A-1B
0
0
a
0
1S
0
0
0
0
0
do
0
0
Note:
(1) Details of operation and application examples can be found in the ~PD7225lntelilgent Alphanumeric LCD Controller !Driver Technical Manual.
8-9
II
NEe
IlPD7225
Operating Characteristics
TA=25°C
External Resistance vs Oscillation Frequency
~200,
-"
I
"~"'_""~~
___
Supply Voltage vs Oscillation Frequency
140
R=1~
r-______ ICl2R C
Cll1,1
____
~
f
I6
/
/'
100
i
~
80
100
200
500
External Resistance R (kQ)
Supply Voltage vs Supply Current
100
:1c
! 50r-----r-----------~~~~----_r----------_i
E
J
~r_-+------r_----_r----~~
~r_~------~------~----~~
Supply Voltage Voo (V)
8-10
V
~
~ I
R
Lt
Supply Voltage Voo (V)
-
NEe
!-,PD7225
7 ·Segment Numeric Data Decoder Character Set
Decoded Display RAM Data
Display
Byte
(HEX)
00
01
02
03
04
05
06
07
08
09
OA
OB
OCOD
m:
OF
Character
a
a
a
8
a
a
a
8
B
a
a
B
_0
~
B
Quadruplexed
Display RAM Address
n+2
n+1
3
5
0
0
n
3
7
0
8
a
Trlplexed
Display RAM Address
n+1
n
D
7
0
6
E
3
7
3
A
2
3
3
7
2
B
3
0
7
3
F
7
7
3
B
7
2
0
3
0
3
3
o.
3
0
3
0
D
0
0
A
0
E
4
0
0
2
6
0
0
0
8-11
EI
0)
~
I\)
14·Segment Alphanumeric Data Decoder Character Set
D,isplay
IByte
(IHEX) Char.
AO
llml
I~L
Display RAM
Address
n+3
0
n+2
n+1
0
0
n
0
Display
Byte
(HEX) Char.
BO
A1
Invalid
B1
A2
Invalid
B2
A3
Invalid
B3
M
Invalid
B4
A5
Invalid
B5
1\6
Invalid
B6
117
A8
~,9
AA
AB
10
10
A
0
AG
AD
Invalid
m
I~L
4
2
Invalid
AI:
AI'
10
4
0
B8
B9
0
I~Kt
10
10
A
0
~
B7
0
0
0
&~
Display RAM
Address
n+3
n+2
n+1
n
4
CO
It
10
10
10
10
10
3
0
0
C1
C
4
C2
4
C3
4
C4
4
C5
4
C6
0
C7
A
It
10
10
1:
Display
Byte
(HEX) Char.
7
C8
A
4
C9
BA
Invalid
CA
BB
Invalid
CB
BC
10
BO
BE
BF
4
mt
10
10
11
It
10
10
10
10
10
Il
10
10
0
8
IL
0
8
4
CD
10
tl
0
8
8
CE
tilt
mt
CF
m
Invalid
CC
lm
Display RAM
Address
Display
Byte
(HEX) Char.
n+3
n+2
n+1
A
7
C
0
DO
6
4
01
8
8
5
02
0
E
0
03
8
8
6
0
6
0
6
04
4
05
4
06
4
07
4
08
8
09
C
OA
0
0
A
DB
0
DC
DO
6
6
0
Display RAM
Address
n+3
mt
[§
lIlt
lOOt
10
10
10
10
10
10
".....
C
n
4
PI)
Nt
en
8
0
10
uli
n+1
3
~.
I
n+2
3
C
5
4
8
0
E
4
0
6
4
6
6
8
0
0
A
0
0
2
9
4
8
Invalid
10
m
~o
8
0
Invalid
DE
Invalid
OF
Invalid
~
~
NEe
NEe Electronics Inc.
pPD7227
CMOS, Intelligent, Dot-Matrix
LCD Controller/Driver
Description
Pin Configuration
The ",PD7227 intelligent dot-matrix LCD controllerl
driver is a peripheral device designed to interface
most microprocessors with a wide variety of dot
matrix LCDs. It can directly drive any multiplexed LCD
organized as 8 rows by 40 columns, and is easily cascaded up to 16 rows and 280 columns. The ",PD7227
is equipped with several hardware logic blocks, such
as an 8-bit serial interface, ASCII character generator,
40 x 16 static RAM with full read/write capability, and
an LCD timing controller; all of which reduce microprocessor system software requirements. The
",PD7227 is manufactured with a single 5 V CMOS process, and is available in a space-saving 64-pin plastic
flat package.
84 63 62 61 60 59 58 57 58 55 54 53 52
NCI
C'7
o
o
o
Single-chip LCD controller with direct LCD drive
Compatible with most microprocessors
Eight row drives
- Designed for dot-matrix LCD configurations up
to 280 dots
- Designed for 5 x 7 dot-matrix character LCD configuration up to 8 characters
- Cascadable to 16 row drives
40 column drives
- Cascadable to 280 column drives
Hardware logic blocks reduce system software
requirements
- 8-bit serial interface for communication
- ASCII 5 x 7 dot-matrix character generator with
64-character vocabulary
- 40 x 16-bit static RAM for data storage, retrieval,
and complete back-up memory capability.
- Voltage controller generates LCD bias voltages
- Timing controller synchronizes column drives
with sequentially-multiplexed row drives
Single + 5 V power supply
,.,
L.....J "Il.lnC!'
_.,. __
+
h",..I",,\.1
.. ........
_ _ ••••
_._..,#
Ordering Information
Part Number
Package Type
Max Frequency
01 Operation
pPD7227G-12
64-pin plastic QFP
1000 kHz
50273 (NECEL-495)
o
c,s
C,.
C.
C2
C..
Co
R7fR15
C21
C22
RslR,.
7
Rs/R13
C2'
C2'
Features
o
o
o
51C.
2
R4/R12
C25
10
C..
C27
11
12
RsJRl1
R",R,o
R,/R.
RoiRs
~PD7227
Cos
13
C29
14
VLCD1
(:30
15
VlCD2
Co,
18
VLCD3
C.2
C,.
17
18
SYNC
C..
19
cs
VLCD4
(.)~~P.i.==g~ti01E!liiiJ~
(.)(.)u»O(l)
(J~CI)
....
CJ
W
a:
01
(5
en
Pin Identification
Symbol
Function
NC
No connection
2-24.
47-57.
59-64
CO-C39
LCD column driver outputs
No.
25
Vss
Ground
26.58
VDD
Power
27
CLOCK
System clock input
28
RESET
Reset input
29
SI
Serial input
30
C/O
Command or data select input
31
SO/BUSY
Serial output or busy output
32
SCK
Serial clock input
33
CS
Chip select input
34
SYNC
Synchronization port
35-38
VLCD1- VLCD4
LCD bias voltage supply inputs
39-46
Ro/Rs-R7/R15
LCD row driver outputs
II
8-13
NEe
J.'PD7227
Pin Functions
c/o
CO-C39
Command/data select input. Distinguishes serially input data byte as a command or as display data.
LCD column driver outputs.
RO/8-R7I15
Chip select input. Enables the J.lPD7227 for communication with the microprocessor.
LCD row driver outputs.
VLCD1- V LCD4
SYNC
LCD bias voltage supply inputs to the LCD voltage
controller. Apply appropriate voltages from a voltage
ladder connected across VDD.
Synchronization port. For multichip operation, tie all
SYNC lines together and configure with the MODE
SET command.
SI
CLOCK
Serial input from the microprocessor.
System clock input. Connect to externa.l clock source.
SO/BUSY
RESET
Serial output from the J.lPD7227 to the microprocessor
when in read mode and C/O is low. When BUSY (active low), handshake output indicates the J.lPD7227 is
ready to receive/send the next data byte.
Reset input. RC circuit or pulse initializes the J.lPD7227
after power-up.
VDD
Power supply positive. Apply single voltage 5 V±10%
for proper operation.
SCK
Serial clock input. Synchronizes 8-bit serial data
transfer between the microprocessor and J.lPD7227.
Vss
Ground.
Block Diagram
SYNC
VDD
ASCII
5 x 7 Dot Matrix
VLCD1
Character
, VLCD2
VLCD3
VLCD4
Vss
Clock
cs
C/O
SO/BUSY
SCK SI
83-0037958
8-14
I
~EC
",PD7227
Absolute Maximum Ratings
DC Characteristics
TA = 25°e
TA = -10 0 e to +70 0 e, Voo = +5.0V ± 10%
Power supply, Voo
-0.3 V to +7.0 V
limits
Symbol
Min
VIH
0.7 VOO
Vil
0
~p
Test
Max Unit Conditions
All inputs and outputs with respect to_V..::.cc"--__-_0_.3_V_to----'Vo:.:o:...+_0._3_V
Parameter
Storage temperature, TST6
-65°C to +150°C
Input voltage, high
-10°C to +70°C
Input voltage, low
Input leakage
current, high
IUH
+10 jjAVIH = Voo
Input leakage
current, low
IUl
-10 jjAVIH = OV
Operating temperature, TOPT
Comment: Exposing the device to stresses above those listed in
Absolute Maximum Ratings could cause permanent damage. The
device is not meant to be operated under conditions outside the
limits described in the operational sections of this specification.
Exposure to absolute maximum rating conditions for extended
periods may affect device reliability.
Output voltage, high
Capacitance
VOO
VOH1 Voo-0.5
V SO/BUSY,
IOH = -400 jjA
VOH2 Voo-0.5
V SYNC,
IOH = ~100,..A
TA = 25°e, Voo = OV
Output voltage, low
limits
Paramater
Symbol
Input capacitance
CI
Output capacitance Co
Input/output
CIO
capacitance
Min
Max
Unit
10
pF
25
pF
15
Vou
Tast
Conditions
0.45
V SO/BUSY,
IOl = +1:?mA
0.45
V SYNC,
IOl = + 100 jjA
1+=1 MHz
Unmeasured pins
returned to
pF
SYNC ground.
V
0.3 VOO V
=
Output leakage
current, high
IlOH
+10 jjAVOH
Output leakage
current, low
IlOl
-10 ,..AVOl = OV
LCD operating voltage
VlCO
3.0
Voo
va-row
multiplexed
LCD drive
configuration
V 16-row
multiplexed
LCD drive
configuration
Voo
Row drive
output impedance
RROW
4
a
kO
Column drive
output impedance
RCOlUMN
10
15
kO
100
200
400
Supply current
Voo
jjAfO
= 400
KHz
8-15
II
NEe
J.tPD7227
AC Characteristics
TA = -10°C to + 70°C, Voo = +5.0V ± 10%
Limits
Parameter
Symbol
Min
Max
Unit
1000
KHz
Clock Irequency
I,
100
Clock pulse
width high
ttWH
400
ns
Clock pulse
width low
t~WL
400
ns
SCK cycle
tCYK
0.9
,..s
SCK pulse
width high
tKWH
400
ns
SCK pulse
width low
tKWL
400
ns
SCK hold time
after BUSYt
tKHS
0
ns
SI setup time
to SCKt
tlSK
100
ns
SI hold time
after SCKt
tlHK
250
ns
SO delay time
after SCK~
tOOK
SO delay time
after C/O.
tO~~
,..s
SCK hold time
after C/O.
tKHO
,..s
BUSY delay
time after 8th
SCKt
tSOK
BUSY delay _
time after ClOt
tsoo
,..s
BUSY delay
time after CSI
tsoc
,..s
C/O setup time
to 8th SCKt
tOSK
,..s
C/O hold time
after 8th SCKt
tOHK
,..s
CS hold time
after 8th SCKt
tCHK
2
,..s
CS pulse width
high
tCWH
2/1,
,..s
320
3
CSt delay time
tcos
to BUSY Iloating
SYNC load
capacitance
CLOADS
BUSY low
level width
tWLB
8-16
ns
,..s
,..s
18
100
pF
64
III,
Test
Conditions
CLOAO =
50 pF
CLOAO =
50 pF
CLOAO =
50 pF
CLOAO =
50 pF
NEe
JlPD7227
Timing Waveforms
Clock Waveform
t-----------1/f'"----------~
------VIH
Clock
83-0038378
Serial Interface
C5
"-+ ______________________________--+_......J
c/o
(SO)
- v - + l - - - - - - - - - - - - - - -- -- ------+t-,
-------"'\
51
_______ J
------------------------~r-------
------------------------~~-------
83-0038388
8-17
NEe
/APD7227
Command Summary
Instruction Code
Binary
°2
0,
00
HEX
D2
Dl
Do
lS-1F
0
D2
Dl
Do
10-14
D3
D2
Dl
Do
SOB
Dl
Do
64-67
Dl
Do
60-63
0
Dl
Do
6C-6F
Perform a logical OR between the display byte in the
serial register and the RAM
contents addressed by data
pointer; write result to same
RAM location; modify data
painter
0
Dl
Do
68-68
Character Mode
Decode display byte in serial
register into 5 x 7 character
with character generator;
write character to RAM location addressed by data
pointer; increment data
painter by 5
0
0
72
Set 8it
Set single bit of RAM location addressed by data
pointer; modify data pointer
0
Reset Bit
Reset single bit of RAM location addressed by data
pointer; modify data painter
0
0
Enable Display
Turn on the LCD
0
0
0
0
0
Disable Display
Turn off the ICD
0
0
0
0
0
Command
Description
°4
D7
D&
D5
Initialize the I'PD7227,
including selection of
1. LCD drive configuration
2. Row driver port function
3. RAM bank
4. SYNC port function
0
0
0
Frame
Frequency
Set
Set LCD frame frequency
0
0
0
Load Data
Pointer
Load data painter with 7 bits
of immediate data
D6
D5
Write Mode
Write display byte in serial
register to RAM location addressed by data pointer;
modify data painter
0
0
Read Mode
Load RAM contents addressed by data pOinter into serial
register for output; modify
data pointer
0
0
AND Mode
Perform a logical AN D between the display byte in the
serial register and the RAM
contents addressed by data
pointer; write result to same
RAM location; modify data
pOinter
OR Mode
Mode Set
0
D4
03
0
0
0
D4
D3
D2
Dl
Do
40-5F
D4
D3
D2
Dl
Do
20-3F
09
0
Further details of operation can be found in the "PD7227 intelligent dot-matrix LCD controller/driver technical manual.
8-18
OS
NEe
/-lPD7227
5 x 7 Character Set as Generated in JiPD7227
Display Byte
Display Byte
o
0
0
o
.I.
0
0
ro;- D~- -0~TO:-""'0-3"T1-0-2"'I-o-d~0-o-l--+-+--+--l
ro;- --06 -o~-I-o~
0
0
o
0
0
0
0
l1:m!WHmHHlE
00.0"00.000 ••• 00 ••• "
00.",,0 •• 00.000 • • 00".
00,0000.00'000 • • "00.
~
0 ~ 00.00 .000 • • ",,".
000''''00.00 • • • • • •
" " 0 0 " 0 0 . 0 0 . 0 0 0 • • ~"."
OD.OOO • • •
o.
0
0.''.
o."on." •• ".
o
o
o
o
0.".0" ••• 0 •••• "
",.".0.000 • • 0"0.
~.". 0
0" o • • 0 0 " .
o
c,.o_ •• o.ooo • • oo".
o
o o
•
" . 0 0 0 • • 000 • • 000 •
.000 • • 00".0.0.0
• "
•
0 ••• 0 ••••• 00.00
• • "",),."00.0.0.0
.",
•
."<>0".
• , . " • • ,," 0 0 ~. 0 <>", .,'
o ':E~ m~i !!m ~:U
',,,coooo.",,,, • • • • '
'. J' •• ""."O."'.'"
'"."'''
•• 00.',.", •
.".
.0'>00.00."'."
' . n"0"••.. ~·".".""
•
•••••
00 • • ' ' ' 0 ' .
o
0
'.100.,0.000.'Joo.' ••• '
o •••• oo •• ".oo.ooo.co
o
o o ::::: ::::: :m: ':m
•••• 0000.0.00.00.00
o
{lo.ooooo." ••• oooa."o
o
o
• • 000 • • • • • • • • • • • 0 0 0 .
•• 00._0000.0000.000.
000.0 •••• 0.0000.000.
1
nm !!m mi! :ml
0 •• 0000 •• 0
o
o
0000000000.000.0 ••• 0
0000000000 •• 0 •• 000.0
00000 • • • • • • 0.0.000.0
••••• 00000.0.0.000.0
00000 • • • • • • 000.000.0
0000000000.000.000.0
0000000000.000.0 ••• 0
o
•••• ·.00".
eoo."o.coo.cooo.o,'".
o
HlHHHlnmm;;
o •• oc ••••• o ••• o.ooa.
ca.ccOcOO • • COO • • O(J".
1
:::::::::::::::::::::
O Tesl ___ 0.7VOO
0.3 VOO
Points - - - 0.3 VOO
83..()(J2909A
83·003856A
Clock Mtrveform
Interface
RESET
CL
83-002910A
01.02
I.n.~
~IHR03<,-_____
83-002912A
Serial Interface
c/o
BUSY
SCK
SI
LSB
II
)
so
83-0029088
8-29
NEC
pPD7228/28A
Parallel Interface
CID
BUSy----(I
5TB
----------.1
00-D3
DO-D3
83{X)29118
Command Summary
Instruction Code
Mnemonic
Operation
SFF
Set frame frequency
0
0
0
SMM
Set multiplexing mode
0
0
0
DISP OFF
Display off
0
0
DISP ON
Display on
0
LDPI
Load data pointer with immediate
SRM
Set read mode
0
SWM
Set write mode
SORM
SANDM
0
Hex Code
F1
Fo
1
M2
M1
Mo
18H-1FH
0
0
0
0
0
08H
0
0
0
0
0
D6
D5
D4
D3
D2
D1
Do
80H-B1H, COH-F1H
1
1
0
0
0
11
10
60H-63H
0
0
0
11
10
64H-67H
Set OR mode
0
0
11
10
68H-6BH
Set AND mode
0
0
11
10
6CH-6FH
0
1
0
72H
J1
Jo
20H-3FH
Bo
J1
Jo
40H-SFH
1
1
0
0
7CH
0
7DH
0
0
0
01H
Set cha racter mode with left entry
0
0
0
SCMR
Set character mode with right entry
0
0
0
BRESET
Bit reset
0
~
B1
Bo
BSET
Bit set
0
B2
B1
CLCURS
Clear cursor
0
1
WRCURS
Write cursor
0
STOP
Set stop mode
0
0
0
0
0
B2-80
Specifies a data memory bit
D6-DO
Immediate data
F2-FO
Specifies frame frequency as a submultiple of clock
frequency
11-10
Specifies modification of data pointer contents after
byte data is processed
J1-JO
Specifies modification of data pointer contents after
bit is set or reset
M2'"MO
Specifies data memory bank, number of rows, functions
of row/column drivers, and SYNC pin mode
0
OSH
71H
SCML
8-30
10H-14H
F2
0
NEe
Development Tools
9-1
II
NEe
Development Tools
Section 9
Development Tools
4-8il; pPD7500 Series
8-8it; pPD78K2 Series (cont)
EVAKIT-7500B
For the pPD7500 Series
9-3
IE-78210
In-Circuit Emulator
9-51
ASM75
Absolute Assembler for the pPD7500 Series
9-7
IE-78220
In-Circuit Emulator
9-55
CC782XX
C Compiler Package for the pPD782XX
Series
9-59
RA78K2
Relocatable Assembler Package for the
pPD782XX Series
9-63
S178K2
Structured Assembler Preprocessor for the
pPD782XX Series
9-67
4-8it; pPD75000 Series
RA75X
Relocatable Assembler Package for the
pPD75000 Series
S175X
Structured Assembler Preprocessor for the
pPD75000 Series
9-9
9-15
8-8it; pPD7800 Series
DDK-78C10
Evaluation Board for the pPD78CXX Series
9-19
IE-78C11
In-Circuit Emulator
9-23
DDK-78310A
Evaluation Board for the pPD78310A
9-71
CC87
Micro-Series T• C Compiler Package for the
pPD7800 Series
9-27
EB-78320
Evaluation Board for the pPD78320
9-75
9-29
IE-78310A
In-Circuit Emulator
9-79
RA87
Relocatable Assembler Package for the
IlPD7800 Series
IE-78320
In-Circuit Emulator
9-83
CC7831X
C Compiler Package for the pPD7831X/
pPD7831XA Series
9-89
CC7832X
C Compiler Package for the pPD7832X
Series
9-93
RA78K3
Relocatable Assembler Package for the
IlPD7831X/7832X
9-97
8-8it; pPD78K2 Series
DK-78K2
IlPD782XX Designer Kits
9-33
EK-78K2
pPD782XX Evaluation Kits
9-35
IK-78K2
pPD782XX In-Circuit Emulator Kits
9-37
DDB-78K2
Evaluation Boards for the IlPD782XX Series
9-39
EB-78210
Evaluation Board for the pPD78213
9-43
EB-78220
Evaluation Board for the pPD78220
9-47
9-2
8/16-8it; pPD78K3 Series
S178K3
Structured Assembler Preprocessor for the
IlPD783XX Series
9-101
PG-1500 Series
EPROM Programmer
9-105
NEe
EVAKIT-7500B
for the "PD7500 Series
NEG Electronics Inc.
Description
The EVAKIT-7500B is a stand-alone EVAKIT for NEC's
p.PD7500 series of four-bit, single-chip microcomputers.
The EVAKIT-7500B provides complete hardware emulation and software debug capabilities for the p.PD7507
and p.PD7506 microcomputers. With the addition of
device specific add-on boards, the EVAKIT-7500B is
easily tailored to support the remaining members of the
family.
Real-time and single-step emulation capability, together
with a powerful on-board system monitor and real-time
trace capability, create a powerful debug .environment.
The EVAKIT-7500B is controlled either from an on-board
keypad or over a serial line from a terminal or host
computer. User programs are downloaded through a
serial line or read from a PROM. Existing programs can
be modified or small programs can be created using the
on-board hexadecimal keypad.
A host controller program for an IBM PC® series or
compatible computer is provided with each EVAKIT7500B. This program provides the following additional
capabilities: complete EVAKIT-7500B control from the
host console, program upload/download, line assembly,
host system directory display and symbolic debugging.
IBM PC is a registered trademark of International Business Machines
Corporation.
Features
o Real-time and single-step emulation capability
o 8K bytes of user program memory
o Powerful system monitor
- Display/modify/move program memory
- Display/modify data memory
- Load/verify/display PROM
- Examine/modify internal registers
- Full disassembler
o User-specified breakp()int conditions
- Program counter and number of passes
- Stack pointer
- Data address and value
o Real-time trace capability
- 2048 instruction cycle trace
- External trace probes
o Supports three operating modes
- On-board hexadecimal keypad controlled
- External terminal controlled
- Host computer system controlled
o Serial interface: RS-232C or TTL
o EPROM programming capability (2764 and 27128)
o Host Control Software for IBM PC Series or
compatible
EVAKIT-7500B
50196
9-3
NEe
EVAKIT-7500B
EVAKlT-7500B ADD·ON BOARDS
~.
' .
EV7528
EV7508H
The EV7508H is an add-on board for the EVAKIT-7500B
which is required for emulating the ~PD7507Hand the
~PD7508H microcomputers. This board plugs directly
into the ~PD7500 socket on theEVAKIT-7500B, allowing
the system to support thesehigh speed versions afthe
~PD7500 series.
.
EV7514
The EV7528 is an add-on board for the EVAKIT-7500B
required for, emulating the ~PD7527A, ~PD7528A,
~PD7537A,and' ~PD7538A microcomputers. This board
is mounted. under the EVAKIT-7500B, allowing the
EVAKIT tosupport the additional features of these parts:
I/O ports with high dielectric strength, optional pulldown resistors, and zero voltage detection circuits.
EV7533
The EV7533 is an add-on board for the EVAKIJ-7500B
required for emulating the ~PD7533·microcomputer. This
board plugs directly into the ~PD7500 socket, allowing
the EVAKIT to emulate the ~PD7533's four analog inputs
and its 8~bit A/D converter.
EV7554A
The EV7554A is an add-on board for the EVAKIT-7500B
required for emulating the ~PD7554.f54A, ~PD7556/56A,
~PD7564/6~, and ~PD7566/66A microcomputers. This
board mounts 0'; .top of EVAKIT-7500B, allowing the
EVAKIT to emulate the aClditionalfeatures of these parts:
optional pull-up/pull-'dpwn re~i,stors for ports 0, 1, 10,
and '11; cO(T1parator/CMOS inputs for port 1; high
current/CMOS outputsf~r'ports 8, 9, 10, and '11.
The EV7514 is an add-on board for the EVAKIT-7500B
required for emulating the ~PD7502 and ~PD7503 microcomputers. This board is mounted under the EVAKIT7500B, adding LCD controller/driver capability to the
EVAKIT.
9-4
NEe
EVAKIT-7500B
I'PD7500 SERIES SYSTEM
EVALUATION BOARDS
SE-7514A
The SE-7514A is the system evaluation board for the
I4PD7500 series microcomputers with LCD direct drive
capabilities: ItPD7502 and ItPD7503. The SE-7514A is
functionally equivalent to the ROM-based microcomputers. With the user's program housed in either an onboard ItPD2764 or I4PD27128, you can connect the
SE-7514A to your prototype and evaluate total system
performance.
SE-7554A
The SE-7554A is the system evaluation board for the
I4PD7500 series mini/microcomputers: ItPD7554/54A,
I4PD7556/56A, I4PD7564/64A, and ItPD7566/66A. The SE7554A is functionally equivalent to the ROM-based minimicrocomputer. It can be set up to emulate any of the
available mask options. With your program residing in
the lower 4K bytes of an on-board ItPD2754, you can
connect the SE-7554A to your prototype and evaluate
total system performance.
9-5
EVAKIT-7500B
9-6
t\fEC
N"EC
NEC Electronics Inc.
ASM75
Absolute Assembler
for the pPD7500 Series
Description
Ordering Information
The "PD7500 series absolute assembler (ASM75) converts symbolic source code for the enti re "PD7500 series
microcomputer family into executable absolute address
object code. The assembler verifies that each instruction
assembled is valid for the target microcomputer specified at assembly time. An object code file is produced in
ASCII hexadecimal format and may be down loaded to a
PROM programmer or hardware debugger.
Part Number
System
Description
ASM75·D52
MS·DOS
5-1/4" double-density floppy diskette
Features
CJ
CJ
CJ
CJ
CJ
CJ
Absolute address object code output
Macro definition capability
Generic jump with optimization capability
Conditional assembly options
- Up to eight levels of nesting
User-selectable and directable output files
Runs under the MS-DOS@ operating system
MS·DOS Is a registered trademark of Microsoft Corporation.
50191
9-7
ASM75
9-8
NEe
NtEC
NEe Electronics Inc.
RA75X
Relocatable Assembler Package
for the pPD75000 Series
Description
Program Syntax
The RA75X relocatable assembler package converts
symbolic source code for the ~PD75000 series of microcomputers into executable absolute address object
code. The package consists of six separate programs:
assembler (RA75X), linker (LK75X), hexadecimal format
object converter (OC75X), librarian (LB75X), list converter (LCNV75X), and macroprocessor (MP).
An RA75X source module consists of a series of code
and data segments. Each segment consists of statements composed of up to four fields: symbol, mnemonic,
operand, and comment.
RA75X translates a symbolic source module into a relocatable object module. The assembler verifies that each
instruction assembled is valid for the target microcomputer specified at assembly time.
LK75X combines relocatable object modules and absolute load modules and converts them into an absolute
load module. OC75X converts an absolute object modl,I)e or an absolute load module to an ASCII hexadecimal
format object file. LB75X allows commonly used relocatable object modules to be stored in ohe file and linked
into multiple programs, greatly increasing programming
efficiency. When a library file is included as input to the
linker, the linker extracts only those modules required to
resolve external references from the library file and
relocates and links them intothe.absolute load module.
LONV75X allows relocatable list files to be converted
into absolute list files. MP expands macros contained in
a source program prior to assembling.
Features
[J
Absolute address object code output
[J
Generic branch capability and optimization
[J
User-selectable and directable output files
[J
Extensive error reporting
[J
Macro capabilities
[J
Runs under MS-DOS@ and VAX@NMS@ operating
systems
Ordering Information
Part Number
System
Description
RA75X-D52
MS-DOS
5-1/4" double-density floppy diskette
RA75X-WT1
VAANMS
9-track 1600 BPI magnetic tape
MS-DOS is a registered trademark of Microsoft Corporation.
VAA and VMS are registered trademarks of Digital Equipment
Corporation.
IBM PC, PC/XT, and PC/AT are registered trademarks of International
Business Machines Corporation.
50114
The symbol field may contain a label, whose value is the
instruction or data address, or a name, which represents
an instruction address, data address, or a constant. The
mnemonic field may contain an instruction or an assembler directive. The operand field contains the data or
expression for the specified instruction or directive. The
comment field allows explanatory comments to. be
added to a program.
.
Character constants are translated into seven-bit ASCII
codes. Numeric constants may be specified as binary,
octal, decimal, or hexadecimal. Arithmetic expressions
may include the operators +, -, *, /, NOT; AND, OR, XOR,
EO or =, NE or < >, GT or >, GE or > =, LT or <, LE
or < =, SHR, SHL, MOD, .(bit position), the + sign, and
the- sign.
Assembler Directives
Assembler directives give instructions to the assembler.
They are not translated into machine code during assembly. Basic assembler. directives include: storage definition (DB, r:JN, OS, STKLN), symbol definition (EOU, SET),
and program boundary definition (ORG, END). Program
linkage directives are provided to NAME the module and
to declare symbols as PUBLIC or external (EXTRN).
Segment definition directives define whether a segment
is a code segment (CSEG) allocated to ROM, or a data
segment (DSEG) allocated to RAM. The relocation attributes for each segment directive are specified in its
operand. These attributes, which specify how the various segments are to be linked, include INBLOCK,
XBLOCK, SENT, lENT, PAG~, and AT.
I ne Vt:N I n alrectlve aennes me status oT me memory
bank enable flag (MBE), the register bank enable flag
(RBE), and the code entry address for the interrupt
vectors. The TCALL/TBR directives create a table that
allows the CALL and BR instructions to function for the
GETI instruction.
NEe
RA75X
The "PD75000 series instruction set contains three
branch instructions with varying legal address ranges.
To avoid calculating which branch instruction to use,
you can substitute the BR (Branch) directive for any BR
$addr (one-byte branch), BRCB Icaddr (two-byte
branch), or BR laddr (three-byte branch) instruction in
your source program. During assembly, a suitable
branch instruction is chosen for each BR directive.
Figure 1. RA75X Assembler Functional Diagram
Source
Module
File
System
Console
Assembler Controls
The RA75X assembler controls can be specified in a
variety of ways. Depending upon the particular control,
the controls can be specified directly in the assembler
command line, in a parameter file invoked in the command line, at the beginning of the source module, or
anywhere in the source program. The RA75X assembler
controls include the following:
•
•
•
•
•
•
•
Target microcomputer specification
Output file selection and destination
Listing format controls
Date specification
Generation/suppression of listing
Title specification
Inclusion of other source files
On source program only)
• Page eject (in source program only)
The listing file contains the complete assembly listing or
only lines with errors, and a symbol table or cross
reference table. The symbol table shows all defined
symbols in alphabetical order, their types, attributes,
and the values initially assigned to them. The crossreference table contains all defined symbols and the
numbers of all statements that refer to them.
The object file contains the relocatable object module. It
is in aNEC proprietary relocatable object module format.
The object file may also contain local symbol information for the symbolic debugger. Figure 1 is the relocatable
assembler functional diagram.
9-10
Include
File
RA75X
f1I'D75000 Series
Relocatable
Assembler
Relocatable
Object
Module
File
Assembler
List File
49NR-60GA
Linker
The linker combines several relocalable object modules
or absolute load modules, resolving PUBLIC/EXTRN
references between modules, to create an absolute load
module. This load module contains both absolute object
code and symbol information. The linker can search
library files for required modules to resolve external
references.
The linker controls for LK75X can be specified in either
the command line or a parameter file. The programmer
can specify the date, the module name, the stack size
and starting address, an inhibited area in ROM space,
the starting address and order for relocatable code
segments, and whether segments are linked sequentially
as input or randomly in the most effective manner. The
programmer can also specify that a list file containing a
link map, a local symbol table, or a public symbol table
be created. Figure 2 is the linker functional diagram.
tttlEC
RA75X
FIgure 2. UC75X UnIc., Functional 01eg'1IIII
Absolute
Load
Module
Files
Library
Files
FlgUl'll3.
OC75XHe_dec/1IlII1 Fo"na, Object Code
Con"ert., Fullt:tlonal DI."am
Relocatable
Object
Module
Files
I
Relocatable
Object
Module
File"
Absolute
Load
Module
File
I
or
System
Console
~
LK75X
75000 Series Linker
Absolute
Load
Module
File
1+-----+
Temporary
Work Files
!
System
Console
~
Linker
UstFile
OC75X
Hexadecimal Format
Object Converter
Hexadecimal
Object
Code File
Symbol
File for
Debugger
49NR-639A
" Absolute addresses with no external references
49NR-634A
Hexadecimal Format Object Converter
The OC75X object converter outputs the object code file
in ASCII hexadecimal format, which can be downloaded
to a PROM programmer or hardware debugger. The
object converter controls for OC75X can be specified in
the command line or a parameter file. The programmer
can specify whether or not to generate a symbol file for
a hardware debugger and whether the addresses of the
hex code should be sorted in numerical order or left as
ordered in the source program. Figure 3 is the functional
diagram of the hexadecimal format object code conwrter.
LIbrarian
The LB75X librarian creates and maintains library files
containing relocatable object modules. This reduces the
number of files to be linked together by allowing several
modules to be kept in a single file, and provides an easy
wav to link freauentlv used modules into programs.
Modules can be added to or deleted from a library file, or
the contents of the library file can be listed.
LIst Converter
Normally, listing files produced by a relocatable assembler do not show the final absolute address for instructions, because their location is not decided until link
time. The address shown in the listing is only the offset
from the start of the code or data segment.
The LCNV75X list converter uses the assembly list and
object module files from the assembler and the linkers
load module file to· create an absolute address assembly
listing. This absolute listing shows the addresses of
Instructions as their final absolute address in memory. It
Is useful for debugging and documentating the assembled program. The programmer can specify the load
module (-L), assembly list (-A), and output assembly
(-0) file names. Figure 4 is the functional diagram of the
list converter.
9-11
9
NEe
RA75X
Figure 4. LCN75X Ust Converter Functional
Diagram
Figure 5. liP lIacroprocessor Functional Diagram
Operating Environment
The RA75X package can run under a variety of operating
systems. A version is available for an MS-DOS system
with one or more disk drives and at least 128K of system
memory. Another version is available to run on a Digital
Equipment Corporation VAX Computer system under a
VMS (Version 4.1 or later) operating system.
Emulator Controller Program
Macroprocessor
The macroprocessor interprets the macros described in
a source program and expands them to create another
source program. This can be input to the assembler. It
has the following three main functions:
• Expands macros by defining and referencing them
• Reads and expands include files
• Selects assembler source based on a conditional
macro instruction
Figure 5 is the functional diagram of the macroprocessor.
9-12
Absolute hex-format object module files produced by
the RA75X relocatable assembler package can be debugged using an NEC EVAKIT-75X stand-alone emulator.
The EVAKIT-75X controller program EC75X, allows the
programmer to communicate with the . emulator through
an RS-232C serial line. EC75X is available to run on the
IBM PC@, PC/XT@, and PC/AT@ under MS-DOS, and is
included with the MS-DOS version ofthe RA75X package
at no extra charge.
NEe
The EC75X controller program provides the following
features:
• Uploading/downloading of hexadecimal object files
and symbol table
• Symbolic debugging
• Complete emulator control from host console
• On-line help facilities
• Macro command file capabilities
• Host system directory display
• Disk storage of debug session
License Agreement
RA75X
Documentation
For more information on source program formats, assembler operation, and actual program examples NEC
Electronics Inc. provides the following documentation:
• RA75X I-IPD75000 Series Relocatable Assembler
Package, Language Manual (MS-DOS)
• RA75X I-IPD75000 Series Relocatable Assembler
Package, Operation Manual (VMS)
• MP Macroprocessor, User's Manual
This documentation is provided with purchased copies
of the package. Additional copies may be obtained from
NEC Electronics Inc.
RA75X is sold under terms of a license agreement, which
is included with the assembler. The accompanying card
must be completed and returned to NEC Electronics Inc.
to register the license. Software updates are provided
free to registered users.
9-13
RA75X
9-14
NEe
NEe
NEe Electronics Inc.
Description
The ST75X structured assembler preprocessor is a companion program to the RA75X relocatable assembler for
the NEC "PD75000 series of microcomputers. ST75X
converts a source code file containing structured assembly statements into a pure assembly language source file,
which can then be assembled with RA75X.
ST75X
Structured Assembler Preprocessor
for the pPD75000 Series
Structured Assembler PreprocelJllor
Functional Diagram
ST75X converts a structured assembly statement into
one or more "PD75000 assembly language instructions
that perform the desired operation. Since ST75X converts only structured statements and does not convert
"PD75000 assembly language instructions, a structured
source program can include a combination of "PD75000
structured statements and assembly language.
ST75X enables the assembly language programmer to
use some of the structures and syntax of higher-level
languages, such as the C language. This improves program readability and reliability, and increases programmer productivity.
Features
CJ
CJ
CJ
CJ
CJ
CJ
CJ
Control structures for conditions, looping, and
switch-case
Preprocessor directives for conditional code
generation
C-like representation of comparison operations
C-like representation of assignment/arithmetic
operations
Increment and decrement operators
Uses all "PD75000 mnemonics, registers, and
features
Runs under MS-DOS$ and VAX.$NMS$ operating
systems
Ordering Information
The ST75X structured assembler preprocessor is
provided in the follOwing software package at no cost:
RA75X Relocatable Assembler Package for "PD75000
Series Microcomputers.
MS-DOS Is a registered trademark of Microsoft Corporation
VAX and VMS are registered trademarks of Digital Equipment
Corporation.
150115
49NR-638A
A Summary of Structured Language
A line of source code for the ST75X contains either a
structured assembly statement or a "PD75000 assembly
language statement. "PD75000 assembly language
statements (j4PD75000 instructions, RA75X directives,
or RA75X controls) pass through ST75X without change.
Structured assembly statements consist of preprocessor
directives, assignment statements, and control statements. These statements are entered one per line, and
are terminated at the end of aline. An optional comment . . .
may follow a semicolon at the end of the statement; all
text following a semicolon is ignored by ST75)(,
a
Preprocessor directives cause ST75X to include or omit
portions of code. Assignment statements generate one
or more "PD75000 assembly language instructions to
alter the contents of a register· or variable. Control
statements aenerate the necessary instructions to test
conditions and change control flow based on those
conditions.
Preprocessor Directives
ST75X preprocessor direc~ives set and test variables,
allowing conditional processing of code; include external files; and map instructions to "PD75000 GETI table
reference instructions. Table 1 lists the preprocessor
directives and their functions.
9-15
NEe
STt5X
TIIbie 1. PrtIprot:etI8or Dlrecl"",..nd Functions
Directive
Function
#deflne, NAME value
Deflneethe variable NAME, lilt to the
lupplled value.
#IfdefABC
< Itatementl >
#eIae
#endlf
If ABC Is defined ae above, or on the
command line with the -D option, the
flret let of Itatementl Is procll88d
and the 18cond lilt Is Ignoredj If ABC
was net defined, or defined ae zero,
the flret lilt of Itatementals Ignored
and the 18cond lilt II proc888ed.
#Include ''filename"
The named fill Is read from disk and
plOCa8l8d ae If Included In thl source.
#defgetl gatlnaml
< Instructlona >
#Indgatl
Thilistec:llnatructiona are aealgnec:l
to gatlname. When those lnatructlons
are found In the lource, they are
replaced by a "GETI getlnaml"
lnatructlon.
A$Slgnment, Increment, 8nc:1 D$Crement
Statements
8T75X provides the ability to represent an assignment, or
an assignment with an arithmetic operation, In the C
language syntax:
destination source
The assignment operators allow either simple assignment, , or the combination of an assignment with an
arithmetic operation on the source and destination.
Examples:
A ... B;, Move, contents of B register to A
A' + ... @HL ; Add contents of memqry at HL to A,
; store in A
Where an assignment requires an Intermediate register
to hold the value being assigned, the register is deSignated by naming It in parentheses following the assignment operation.
Examples:
,DATA1 ... B (A) ; 8torecontents of B Into memory at
; DATA1, using A as temporary
; storage
BC & ... HL (XA) ; AND BC with HL, store in BC, use
; XAastemp
M/•
.2.
AIIs",nmenl aper.'ortl with &limp_
IIIId nclions
Operator
Example
liunctlon
A-B
A-B
<->
A <-> B
Contents of A and B are exchanged
+-
A += B
A-A+B
A-- B
A-A-B
-&-
A&- B
A - A & B Oogloal AND)
IA
AI- B
AA_ B
A - A I B Oogloal OR)
++
A++
A-A+~
A--
A-A-1
A - A AB Ooglcal XOR)
control Statements
Control statements allow conditions to be tested. Based
on the results of the test, blocks of code can be executed
or Skipped. Reserved words in the control statement
define the start and end of blocks 01 code, and expressions to, be evaluated.
Example:
If (A ...... @HL')
PORTS = B (A)
A ... @HL
else
A += @HL
A- .. B
PORTS ... A
endif
The condition is tested.
If A equals the content of
memory at HL, this code Is
executed.
'
Otherwise, this code is
execut&d.
Table 3 shows the directives used within the control
statements.
TIIbl.3. Conlrol Sf.'emen' D1riN:I"'"
Directive
Function
If - Iiself - 8Ise - endlf
Test variable expressions
IfJllt - elself..bit - else - endlf
Test bit expresSlona
IWItch - caee - default - ends
Select baeec:I on variable
1or- next
Loop, test variable
whlle..,enclw
repeat - until
whlle..blt - endw
~p,testblt
The increment and decrement operatorB-(+ +' and --)
oP$rate on a single operand.
repeat - untlLbIt
break
ExIt control block
Table 2 lists the' assignment operators with examples
and functions.
'
'
continue
Skip to top of, block
goto LABEL
Branch to label
9-16
~EC
ST75X
variable and Bit Expressions
Table 7. Bit Expressions
Variable expressions for tests consist of a single value, a
comparison between two variables, or a logical combi.Il~tion of comparisons. Bit expressions test individual
bits. Table 4 shows examples of comparisons.
Bit Expression
Table 4. Examples of VIIrIBble ExpreSsion
Comparisons
Comparison
Meaning
Example
BILprimary
(PORTO.2)
IBiLprimary
(ICY)
BILprlmary && BiLprlmary
(A.O&&CY)
BiLprlmary II.BiLprimary
( PORTO.2 II Cy)
A BiLprimary can be either a reserved word bit identifier, such as a bit of a register or port (PORTO.1, Cy), or
a bit definition symbol (SBO EQU PORTO.2).
.
If (A).
True If A Is non-zero
If(A C)
Trua if A Is less than B and greater
than C
iLbit ( PORT1.2 )
True if bit 2 of PORT1 is 1
ST75X Operation and Controls
ST75X is invoked by specifying the name of the source
file, followed by optional controls.
The allowable expressions using variables are shown in
table 5.
Example:
C> ST75X ABC.SRC -DXYZ = 3
Table 5. Expressions and Examples
ST75X reads the specified source file and produces an
output assembly language file, which can be input to
RA75X. The output file contains all lines provided in the
input source file, plus those generated by ST75X. Lines
containing no statements for the structured assembler
are passed through unchanged. Lines with structured
assembly statements are placed in the output preceded
by a semicolon. RA75X treats these lines as comments.
These lines are then followed by the code generated by
ST75X.
Expression
Example
Primary
(A)
Term
(A<=B)
Term &&Term
«AC»
Term II Term
«A= =C) II (A= =B»
A primary value for a variable expression is a register
name or defined symbol. A term consists of two primary
values compared with a binary operator. Table 6 lists the
supported binary operators and their meanings.
Table 6. Billllry OperatoTII
Binary Operator
Meaning
Table B. STT5X Preprocessor ControllJ
Equals
1=
Not equal
>
Greater than
->=
Greater than or equal to
<
Less than
< =
Less than or equal to
Cit expretisiulltj Lt:=tjL
i.u.iiviuutli iJiLo u; 1-"'wi~i.i;I-~,
The controls for ST75X are specified in the preprocessor
command line or in a parameter file invoked in the
command line. Table 8 lists the ST75X preprocessor
controls and functions.
tJvi-~~, VI
Control
Function
-Dlilename
Specify name of output assembly source file
-Ffllename
Specify name of parameter file to be read
-EfHename
Specify name of error listing file
-Dsymbol[ =value]
Define symbol Oike #deflne in code)
-I[d:][directory]
Define path for Include file
.. -
~
..... ---
-'''1111,11', ••..,
.... _ ... , _ _ "'JlP"> _ _ ....... , _ _ _ .. _ .. _ _ .... _ .. _ ....................... ....
...................... -... •.... ·a- ._. 0-"-'-"-- ----
memory locations. Table 7 shows the allowable forms of
bit expressions.
9-17
ST75X
The -0 option allows the name of the output file to be
specified. If not specified, the output file name defaults
to the name of the input source file with the extension
.ASM.
The -F option allows a parameter file to be specified,
which will be read by ST75X. This parameter file can
contain a list of controls to be given to ST75X, instead of
or in addition to those specified on the command line.
The -E option specifies the name of the error listing file.
The error file contains the file name, error number,
description of error, and the line containing the error. If
the -E option is not specified, the error file name defaults
to the name of the input source file with the extension
.EST.
9-18
NEe
The -0 control allows a symbol to be defined on the
command line, with an optional value provided. If a
symbol is defined but no value specified, the value
defaults to 1. If the source file contains a #define
directive, which specifies a variable with the same name
as the -0 control, the value on the command line will
override the value in the #define directive.
The -I specifies a drive or directory other than the
current drive and directory to search for include files.
The -wr control specifies the number of TAB characters
to insert before labels, instruction mnemonics, and instruction operands generated by ST75X. This allows
clear separation of assembly language instructions
coded in the source file from those generated by ST75X.
NEe
DDK·78C10
Evaluation Board
for the IIPD78CXX Series
NEe Electronics Inc.
Description
The DDK-7BC10 is an evaluation board for the NEC
IlPD78CXX series of B-bit single-chip microcomputers.
The DDK-7BC10 Is designed to provide maximum flexibility when evaluating and designing with the IlPD7BCXX
series. Prominent features of the DDK-7BC10 are BK
bytes of ROM. BK bytes of RAM. an RS-232C communication port. and a powerful monitor program. The DDK78C10 board Is supplied on an IBM pee compatible card
and includes a playpen area for building your application
specific hardware.
A copy of RAB7. the "PD7800 series relocatable assembler for use on an IBM PC. PCJXT«I. PC A'P. or compatible host computer. is shipped with each DDK-7BC10 to
allow code to be developed for evaluation purposes.
Also included with the DDK-78C10 is an emulator controller program for the IBM PC. the source code for the
monitor. and a complete set of documentation. This total
package provides you with a fast. efficient way of evaluating the capabilities of the IlPD7BCXX series for your
application.
[]
[]
[]
[]
[]
[]
[]
- ROM: BK bytes
- RAM: BK bytes
Powerful on-board debug monitor
- Real-time operation
- Dlsplay/change/filVmove memory
- One software breakpoint
- User program download capability
-Input from ports A, C. andportB (bits 2-7)
- Output to ports A. C. and port B (bits 2-7)
- Repeat the previous command
RS-232C serial interface for terminal or host
computer
Playpen area for user circuitry
IBM PC card form factor
RAB7 "PD7800 series relocatable assembler
package
Host control software for IBM PC. PC/XT, PC/AT,
or compatibles
Source code for DDK-7BC10 monitor included
Ordering Information
Part Number
Deacrlptlon
Features
DDK-78C10
Evaluation board for th~ IIPD78CXX aeries
[] "PD7BCXX series evaluation board with power
supply
[] On-board memory
IBM pc, PCIXT, and pc AT are reglatered trademarks of International
Business Machines Corooratlon.
DDK-78C10 evaluation Board
eo181
NEe
DDK·78C10 ,
Hardware Description
Software Description
The DO K-78C1 0 features a "PD78C10 with 16K bytes of
on·board memory. The first 8K bytes are dedicated to
ROM and contain a powerful monitor program. The
second 8K bytes are dedicated to RAM and can be used
for user program storage. The internal RAM area of the
"PD78C10 (addresses OFFOOH to OFFFFH) is used for
the monitor stack and data area.
The DDK-78C10 comes with a powerful interactive mono
itor to facilitate software design with the "PD78CXX
series. A user program can be downloaded into user
RAM and executed in real·time with or without a break·
point.
The serial port of the "PD78C10 is connected through an
RS-232C driver/receiver to an DB25 pin connector. A
reset switch is provided to return the DDK-78C10 to the
power-up state without losing the contents of the exter·
nal RAM.
The DDK-78C10 supports one address breakpoint that
can be specified in the Go command line. The monitor
sets a breakpoint by substituting a software interrupt
instruction (opcode 72H) for an instruction in the user
program.
Additional commands are available to:
An AC/DC converter is provided to power the DDK-78C10
in the stand·alone mode, The DDK-78C10 can also reo
ceive its power directly from the IBM PC bus.
The DDK-78C10 block diagram is shown below.
•
•
•
•
•
Display, fill, change, or move memory
Display the command list
Input data from ports A, C, and port B (bits 2-7)
Output data to ports A, C, and port B (bits 2-7)
Repeat the previous command
Block Diagram
rPF5-PF7
PFQ-PF4/
PF5-PF7
Address
Decoder
-------v'
Monitor
EPROM
A
-"
v
it
PFQ-PF4
I1PD78C10
POQ-P0 7
PB2-PB7
PB1
~
Address
Buffer
-----"
SRAM
"-
...-
-v
f=>
PBQ
I
TxO
Driver!
Receiver
RxO
J3
r
49NR-580B
9-20
NEe
DDK·78C10
Table 1 contain& a complete list of the DDK-78C10
monitor commands and their syntax.
Table 1. CommandUst
Command
Function
Syntax
C
Change memory byte
C[addr]
D
Display memory
D[saddr][,eaddr]
F
Fill memory
F[saddr],[eaddr],dd
Emulator Controller Program
Absolute address object files produced by the RA87
relocatable assembler package can be downloaded to
the DDK-78C1O using the NEC emulator controller program which is supplied with the DDK-78C1O. This controller program allows you to download files from your
IBM PC or compatible to the DDK-78C10 board. In
addition to downloading files, the NEC emulator controller program provides you the following additional capabilities:
Go (to breakpoint)
G[saddr][,baddr]
Input from port A,C, and
port B (bits 2-7)
I[p]
H
Show this menu of
commands
H
L
Load a HEX file on to the
DDK-78Cl0
L[saddr]
•
•
•
•
M
Move a block of memory
M[saddr][,eaddr][,addr]
License Agreement
0
Output to port A, C, and
port B (bits 2-7)
O[p]
R
Repeats the previous
command
R
G
Notes:
(1) addr
= 16-bit address in hexadecimal format
(2) dd = 8-blt value in hexadecimal format
= 16-bit start address in hexadecimal format
eaddr = 16-bit end address in hexadecimal format
(3) saddr
(4)
Complete DDK-78C1O control from host console
On-line help facilities
Host system directory and file display
Storage of debug session on disk
RA87 is provided under the terms of a license agreement
which is included with the DDK-78C10 board. The accompanying card must be completed and returned to
NEC Electronics Inc. to register the license. Software
updates are provided to registered users.
Documentation
For further information on the DDK-78C10 evaluation
board, NEC Electronics Inc. provides the following
documentation:
(5) p = ports A,B ,C
• DDK-78C10 User's Manual
RA87 Relocatable Assembler Package
The RA87 relocatable assembler package converts symbolic source code for the /-tPD7800 series 8-bit singlechip microcomputers into executable absolute address
object code. A copy of RA87 is included with the DDK78C10 for use on an IBM PC, PC/XT, PC AT, or compatible. Using this software, you can easily write evaluation
programs for the /-tPD78CXX family.
This manual is provided with the board. Additional copies may be obtained from NEC Electronics Inc.
9-21
DDK·78C10
9-22
ttiEC
NEe
IE-78C11
In-Ci rcuit Emulator
NEe Electronics Inc.
Description
The IE-78C11 Is an in-circuit emulator providing both
hardware emulation and software debugging capabilities for the NEC "PD78C10, "PD78C11, "PD78C14, and
"PD78CP14 eight-bit single-chip microcomputers. Realtime and single-step emulation, coupled with sophistIcated memory mapping features, breakpoints and trace
capabilities, create a powerful debugging environment.
A line assembler and disassembler, full register and
memory control, and complete upload/download capabilities simplify the task of debugging hardware and
software. The IE-78C11 Is designed to operate as a
stand-alone, In-circuit emulator controlled from either a
user terminal or a host computer system.
Features
o Real-time and single-step emulation capability
[J User-specified breakpoints
- Logical OR of up to four sets of break conditions:
Opcode fetch count
External sense clips condition
;f:mulatlon" time
logical AND of addresses, data values,
CPU controls, and number of loops
[J Sophisticated trace capabilities
-Instruction or machine cycle display
- 1,024 trace frames
- Address, control. data, and port trace
Powerful memory mapping
- 64K bytes of RAM mappable in 256-byte blocks
[J Une assembler/disassembler
o Operating state LED indicators
[J Latch-up warning for CMOS protection
o Eight external sense probes
[J Self-diagnostic command
[J Stand-alone configuration
- User terminal controlled.
- Host computer system controlled
[J IE78C11 controller program fot IBM PC-. pcncre.
PC ATiI>, or compatibles
- Symbolic debugging
- Autoexecution of commands
- On-line help facility
- Debug session logging
[J
Ordering Information
Part Number
Delcrlptlon
IE-78C11-M
In-clrcult emulator for IlPD78C101C11/C14/CP14
EP-7811HGQ
Emulator probe for 54-pin QUIP package
(shipped with IE-78C11)
EV-8001-54
Optional emulator probe adapter for 54-pin
shrink DIP package (used wHh EP-7811HGQ)
u;lM pc, PCIXT, and pc AT are registered trademarks of international
Buslnese Machines Corporation.
IE-78C11 In-Clrcult Emulator
110182
9-23
II
ttlEC
IE·78C11
Hardware Description
Trace Capabilities
The IE-78C11 hardware consists of a controller module,
driver module, interface probe, external sensing clips,
and the Interconnecting cables. The controller module,
responsible for real-time trace and control of the driver
module, houses the host CPU, two RS-232C serial ports,
and an IEEE-796 bus connection. The driver module
containing the emulatIon chip and associated control
logic is connected to the controller module by two
50-pin flat cables. The driver module Interfaces to the
prototype system through the 64-pln emulation probe
and eight external sensing clips used for monitoring
user-selected signals In the prototype hardware.
The IE-78C11 has a 1K x 56-bit trace RAM for storing
emulation data for each machine C1cIe. For the range
specified by the user, a trace can be performed on the
address, data, and control signals, including RD, WR, OP
and 10/M as well as ports A and B and the signals from
the eight external sense clips, for up to 1,023 machine
cycles. In machine cycle display mode, the trace display
includes the address, data, cycle, port A and port B. In
the Instruction cycle trace mode, the trace display includes the address, object, label, mnemoniC, port A and
port B.
Memory M.pplng
A self-diagnostlc command monitors the IE-7SC11 for
error-free operation. It checks Internal memory. ports A,
B, C, 0, and F, the analog inputs, pins MODEO and
MODE 1, and the serial I/O lines.
The IE-78C11 Incorporates a sophisticated memory
mapping scheme which allows access to up to 64K
bytes of memory mapped In 256-byte units. The map
command allocates memory space of the emulation
CPU either to the user system or to the IE system. Even
if development of the target system is not complete,
software debugging Is possible by using this internal
RAM in place of the target system RAM. When memory Is
mapped as Int8rnal ROM of the IE-78C11, write-protect
becomes oper$tive.
Emulation
Following termination of real-time emulation or during
slngle-step emulation, the registers,. stack pOinter, program staJos word, and program counter are displayed.
Following a real-time emulation break, the IE-7SC11
automatically enters the single-step mode. Each time
the space bar is pressed during slngle-step emulation,
one instruction is executed and the trace data, disassembly list, and the register contents are displayed.
Breakp,olnt Capabilities
The following three conditions cause a break in real-time
emulation:
• Entering the ESC (escape) key on the user terminal
• Attempting l;Iocess to a non-mapped area
• Satisfying a user-designated breakpoint
Four uSer-designated breakpoints may be selected from
a cqmblnatlon of address registers, data registers, or
control signals. A break can also be set 111 the following
ways: by a loop counter, by an Instruption count, by a
timer function set In the range of 1 to 65,535 ms, and by
matching user-speclfied condiJions for the eIght external sense!llg,nals.
'
9-24
Self-Diagnostics
Utilities
The upload/download commands provide easy loading
and saving of hex files to and from a disk. The on-board
assembler/disassembler allows the user to avoid programming In machine code. Display/change register/
memory commands give the user full data manipulation
capability. Initialize commands allow the user to choose
a clock source and a base number, and to define memory
locations.
Operating States and CMOS Protection
Four LED indicators HALT, SO FT STOP, HARD STOP,
and LATCH-UP are provided on the top panel of the driver
module to Indicl!,te the IE-7SC11 operating state. HALT,
and SO FT STOP will light when executing a HLT or
STOP Instruction. The HARD STOP LED lights when a
low level is Input on the STQP pin. The LATCH-UP LED
lights when any CMOS ICin the driver module is in
danger of being dam"ged by improper voltage levels on
the pins. A protection c1rcul~ is'activated to isolate the
CMOS 19s from the power supply.
t-IEC
Emulation Accuracy
Software can designate ports 0 and F as either input or
output ports if they are being used to communicate with
a peripheral device with a bidirectional data bus. However, when using the IE·78C11, the user must specify the
port direction upon power-up, and only use the port in
that configuration. The low level output voltage of RD,
WA, ALE, PDo·per, or PFo·PF7 for the p.PD78C1On8C11/
78C14 is typically .45 V. Depending on the conditions,
the emulator may deviate up to ± 10% of this rating.
IE·78C11
Table 1. Stand-Alone and IBII PC Based
Controller Progrlllll (conf)
Command
Function
RUN
Commencee execution of emulator CPU In realtime with options for break conditions
SN
Saves contents of hex memory onto disk
SPR
Displays or modlflee the speclsl registers of
emulator CPU
SUF
Base number specification (hax, octal,
declmaQ
TR?
Changes or displays the trsce conditions for both
real-time or slngle-etep emulation
IE78C11 Controller Program
The IE·78C11 can be connected to an IBM PC, PCIXT, PC
AT or compatible by an RS·232C port and operated in
system mode. By using the accompanying control soft·
ware, the debugging capabilities of the IE·78C11 are
greatly increased. Macro command file capability allows
the user to execute a defined set of commands automat·
ically. The on·line help facility, the history command, and
the ability to store the console display on disk ease
debugging tasks. The uploading and downloading capa·
bility can be utilized to upload and download both object
code and symbol information. Other advantages are an
alter symbol command and a terminate command for
exiting to the operating system.
Table 1 lists commands available for both the stand·
alone and IBM PC controlled configurations of the IE·
78C11. Commands listed in table 2 supplement table 1,
but can be used only with the IBM PC based controller
program, IE78C11.
Tabl.,. Stand-Alone and IBII PC Based
Controller Program
Command
Function
ASM
line assemble command
BR?
Changee or displays the breakpoint register used
for stopping real·tlme emulation
ClK
Clock command Onternal or externaQ
DAS
Disassemble command
DIG
Self·dlagnostlc command
----
lOD
loads hex format file Into program memory
MAP
Memory mapping (64K bytee are accessible)
MAT
Calculator function
MDR
Displays or modlflee the mode registers of emulator
CPU
MEM
Memory manipulation command
MOV
Moves memory content to different mapping area
REG
Displays or modlllee the registers of emulator CPU
RES
Resets IE·76C11 and emulator CPU
blna~
Table 2. 1811 PC Ba..d Controller Program
Command
Function
DIR
Displays fllenamee
EXT
Termlnatee IE·78C11 operation
HLP
Displays command format
lCD
Loads hex format and symbol fllee
LST
Storee console display on disk
MOD
Inputs local symbols of specified modulee
PAG
Displays and changes V register value
SAY
Saves object code and symbol table onto disk
STR
Automatically executes macro command file
SYM
Clears, displays, or changes a symbol
Equipment Supplied
The IE·78C11·M package consists of the following:
• IE·78C11 controller module
• IE78C11 controller program QBM PC based)
• IE·78C11 driver module with 64·pin QUIP emulation
probe and eight external sense probes
• Power supply connector
• Serial commUnication cable for RS·232C to RS·232C
• Serial communication cable for TTL to RS·232C
• IE·78C11 user's manual
... ~~~~~~ff~ ~~~ ",~ .. nt:>l ..t ..rI h.",IwAI'A
• warranty policy and registration card
9-25
II
NEe
IE·78C11
Basic Specifications
Documentation
Control module:
For further information on IE-78C11 operation, NEC
Electronics Inc. provides the in-circuit emulator together
with the following manuals:
• Weight: 560 g
• External dimensions: length, 230 mm; width, 305 mm
• Power consumption: 6.5 A ( + 5 V max), 0.5 A
(+ 12 V max), 0.5 A (-12 V max)
Driver module:
• Weight: 2,600 g
• External dimensions: length, 400 mm; width, 230 mm;
height, 48 mm
Environmental Characteristics
• Operating temperature range: 0 to +45°C
• Storage temperature range: -10 to +55°C
• Ambient humidity range: 30 to 85% relative humidity
9-26
• IE-78C11-M In-Circuit Emulator Stand-Alone
Users Manual
• IE78XX Controller Program User's Manual
(IBM PC Based)
• IE-78C11 Sample Session User's Manual
(IBM PC Based)
Additional copies may be obtained from NEC
Electronics Inc.
CC87
Micro-Series TM
C Complier Package
for the pPD7800 Series
t-IEC
NEe Electronics Inc.
Description
[J
The CC87 Micro-Series'" C complier package for the
NEC /LPD7800 series of microcomputers consists of an
ANSI C cross compiler, relocatable macro assembler,
linker, library manager, loader, and converter. Developed
by IAR systems In Sweden for NEC, the Micro-Series C
compiler package Is available for use on an MS-DOSe,
VAXNMse, or VAX/UNIX"'4.2BSD or ULTRlxe system
with a free-standing system as target (embedded system). The target microcomputers supported by this
package are: /LPD7807/09, /LPD7810/10H, /LPD7811/11H,
/LPD78PG11/PG11 H, and the /LPD78C10/C11/C14.
Ordering Information
Part Number
System
Description
CCMSD·15DD·87
MS·DOS
5-1/4" doubl.denalty
floppy diskette
CCVMS·OT16-87
VAXJVMS
9·track 1600 BPI
magnetlo tape
CCUNX·OT16-87
VAXNNIX4.2BSD
orULTRIX
9-track 1600 BPI
magnetic tape
C CROSS COMPILER (ICC7800)
Description
The C cross compiler which is the ICC7800 program,
converts standard C source code Into relocatable object
modules in the IAR systems proprietary universal binary
relocatable object format (UBRO F). This format is used
for all relocatable object files in the micro series development system, whether generated by an assembler or
compiler.
Features
[J
ANSI standard C
- Const, volatile, signed, void, enum keywords
- Function prototyping
- Hex strinaconstants
- Structure and union assignments
Micro-5erles Is a trademark of 1M Systems AB.
MS·DOS Is a registered trademark of Microsoft Corporation.
V/IIX. and VMS are registered trademarks of Digital equipment
Corporation.
UNIX Is a trademark of AT&T.
ULTRIX Is a registered trademark of Digital Equipment Corporation.
150194
[J
[J
[J
[J
[J
UNIX LINT functions Oegal C code verification}
Integrated into the compiler
Interface checking between modules performed by
the linker XLiNK
Ubrary interface checking
Generation of list and full cross reference files
Built In help facility
Simple diagnostics
C LIbrary Functions
The CC87 Micro-Series C compiler package includes
most of the important C library functions that apply to
PROM-based embedded systems. All library functions
reside in the supplied library files. Header files that
declare the set of library functions are also Included.
The following library functions are available:
CHARACTER HANDLING
isalnum isalpha iscntrl Isdigit islower
isprint ispunct
isspace isupper tolower toupper
NON·LOGICAL JUMPS < setjmp.h >
longjmp setjmp
FORMATTED INPUT/OUTPUT < stdio.h >
getchar printf putchar sprintf Jormatted_write
n.
GENERAL UTILITIES
calloc exit free malloc ralloc
_
STRING HANDLING < string.h >
strcat strcmp strcpy strlen strncat strncmp strncpy
MATHEMATICS
atan atan2 cos exp log log10 modf pow sin sqrt tan
Memory Models
:!":::~ !!~~ !'..a-,~ ~~~~~~' mnrtAII!l. RtAti~ And 1'A9ntrant.
which differ only in allocation of auto variables. In the
reentrant mode, all local auto variables are allocated and
deallocated dynamically; the auto variables reside on
the stack, which is necessary If recursive or reentrant
functions are needed. This option sometimes generates
more code and slower code than the static mode. In the
static mode, all function level variables are put Into static
memory, with the exception of function arguments which
are always placed on the stack.
9-27
N'EO
cel7
RELOCATABLE MACRO ASSEMBLER (A7800)
Description
The relocatable rnacro~ssembler(A7800), translates
symbolic source code for the NEC "PD7800ser/es of
microcompute~ l~oreloca~le.obj~ct modules i".the
IAR systems proprietary UBRO F format. .. '
.,
Features
LOADER (RC7800) AND
CONVERTER (CONVERn
Linker output is usually fed to the target system RAMI
PROM or emulator using the RC7800 loader or other user
program. Prevlou$ly written assembler programs, coded
by theNEC "PD1aoo ..famlly assembler, maybe converted to the. A7800 assembler format using the CON~
VERT program. .'
..
The relocatable macro assemblerfeatures anJasfollows:
LIBRARIAN (XLIS)
Absolute or relocatable address object cOde output
Directives
- List formatting
.
- Conditional assembly, separate assembly
- Memory allocatlOf!
....;. Macro definition and value assignments to
symbol directives
o Generation of list files
C Generation of cross reference and symbol tables
C Ability to include files In anOther source .'
The XLIB librarian creates and maintains files containing
relocatable object 'modules. WithXLlB; the user can'
merge. object .' files· from different assemblieS!
compilations in order to create libraries; delete individual
modules, change the order of modules and check the
CRC In a module; and rename modules, segments,
externals or entrieS..In addition, XLIB.· can change the
properties of a module to be conditionally or uncondItionally loaded. Use of XLIB reduces. the number Of files
that need·. to be linked together by allowing several
modules to be kept In a single file,. providing an easy way
to link freql,lently used modules into programs.
C
C
Directives
LICENSE AGREEMENT
Assembler directives give Instructions. to the program
but are not translated into machihe code during assembly. Basic directives Include those fOr storage definition
and memory allocation (DB, DD, ~ OS); symbol control and usability (pUBLIC, EXTERN, LOCSYM); and
value assignments to symbols (SET, EQU, =, DEFINE).
CC87 Micro-Series C Cor;npiler package Is sold .lJnder
terms of a license agreement. which Is Included with the
purchased copies of the complier: The accompanying
card must be completed and sent to NEC Electronics
Inc. to register the license. Software updates are provided free to registered users.
Program control directi~s .Include those for module
definition (NAME, MODULE, ENDMOD); segmemdefinition and control (ASEG, RSEG, STACK, COMMON,
ORG); conditional assemblyQF. 'ELSE, ENDIF); macro
processing (MACRO, ENDMAC); and listings control
(LSTOUT, LSTCND, LSTCOD, LSTEXP, .L.STMAC,
LSlWIO, LSTFOR, LSTPAG, PAGSIZ, PAGE,TITL, STITL,
PTITL, PSTITL, LSTXRF).··
.
.
For further information on source program format, complier operation, assembler operation, linker, librarian, and
converter programs, and actual program examples, NEC
Electronics Inc. provides the following documentation:
LINKER (XLINK)
The universal linker, XLiN K, combines reloc~table object
modules arid absolute load mOdules and produces one
absoluteIOad ..rOOdule. The contro.ls for XLlNK may b8
specified either on the comman!1line or In a ~rameter
file. ,In addition to, being able to generate several types of
absolute lo8d. module formats, ins also possible to
generate cross reference listS with an Index list; define
segment allocation; fOrce load and conditional load "Of
flies; bank segments; and' define a' Symbol on a command line. The absolute load module can contain symbol infOrmation as well as absolute object code.
,
'.
DOCUMENTATION
• Micro-8eries AN SI C Cross Compiler fOr
Microprocessor Development
• ICC7800 Micro-8eries ANSI XCross-Compiler '
Appendix for the 7800 Microprocessor Family
• Micro-8erles Assemblers, '. Linker, and Librarian for
Microprocessor Development
• A7800 Micro-Series 7800 Family Assembler Reference
Manual
• Mlcro-8eries RC7800 and Converter Manual
This documentation is provided with. purchased copies
of theMlcro-8eries C Complier package.
NEe
NEe Electronics Inc.
RA87
Relocatable Assembler Package
for the I'PD7800 Series
Description
Ordering Information
The RA87 relocatable assembler package converts symbolic source code for the "PD7800 series of microcomputers into' executable absolute address object code.
The "PD7800 series relocatable assembler package consists of six separate programs: assembler (RA87), linker
(LK87) , hexadecimal format object converter (OC87) ,
librarian (LB87), list converter (LCNV87), and macroprocessor (MP).
Part Number System
Description
RA87-D52
MS-DOS
5-1/4 Inch double-density floppy diskette
RA87-WT1
VJ(XfVMS 9-track 1600 BPI magnetic tape
RA87 translates a symbolic source module into a relo-,
catable object module. The assembler verifies that each
instruction assembled is valid for the target microcomputer specified at assembly time.
LK87 combines relocatable object modules and absolute
load modules and converts them into an absolute load
module. OC87 converts an absolute object module or an
absolute load module into an ASCII hexadecimal format
object file.
LB87 allows commonly used relocatable object modules
to be stored in one file and linked into multiple programs,
greatly increasing programming effiCiency. When a library file is included in the input to the linker, the linker
extracts only those modules required to resolve external
references from the file and relocates and links them into
the 'absolute load module.
LCNV87 allows relocatable list files to be converted into
absolute list files. MP expands macros contained in a
source program prior to assembling.
Features
o
o
o
o
o
o
Absolute address object code output
Generic jump capability
User-selectable and directable output files
Extensive error reporting
Macro Capabilities
Runs under MS-DOSIB> and VAXIjJ)/VM~1jJ) operatmg
systems
MS-DOS Is a registered trademark of Microsoft Corporation.
VJ(X and VMS are registered trademarks of Digital Equipment
Corporation.
Program Syntax
An RA87 source module consists of a series of code,
byte-oriented data, or bit-oriented data segments. Each
segment consists of statements composed of up to four
fields: symbol, mnemonic, operand, comment.
The symbol field may contain a label whose value is the
instruction or data address or a name which represents
an instruction address, data address or a constant. The
mnemonic field may contain an instruction or an assembler directive. The operand field contains the data or
expression for the specified insti'uctionor directive. The
comment field allows explanatory comments to be
added to a program.
Character constants are translated into seven-bit ASCII
codes. Numeric constants may be specified as binary,
octal, decimal, or hexadecimal. Arithmetic expressions
may include the operators +, -, *,/, NOT, AND, OR, XOR,
EO, NE, GT, GE, LT, LE, SHR, SHL, HIGH byte, LOW byte,
MOD, and the - sign.
Assembler Directives
Assembler directives give instructions to the assembler
but are not translated into machine code during assembly. Basic assembler directives include: storage definition (DB, r::JN, DS, DBIT); symbol definition (EOU, SET,
CODE, DATA, BIT); and program boundary definition
(ORG, END). Program linkage directives are provided to
NAME the module and to declare symbols as PUBLIC or
external (EXTRN).
Segment definition directives define whether a segment
is a code segment (CSEG), allocated to ROM; a data
segment (DSEG) or a bit segment (BSEG), allocated to
RAM; or a working register segment (VREG). The address boundary conditions for each segment directive
are specified in its operand. These include UNIT, PAGE,
INPAGE, FIXEDAREA, BYTE, CALLTABLE, AT, BITADDRESSABLE. The combination types of PUBLIC, COMMON and COMPLETE, specified in the operand, define
how to link segments with the same name and segment
definition.
9-29
..
_
ttlEC
RA87
The ~PD7800 series instruction set contains three jump
instructions with varying legal address ranges. To avoid
calculating which jump instruction to use, the programmer can substitute the generic jump (GJMP) directive for
any relative jump (JR), any extended relative jump (JRE),
or any long jump (JMP) instruction in the source program. During assembly a suitable jump instruction is
chosen for eachGJMP directive.
Assembler Controls
The RA87 assembler (figure 1) has two types of controls.
The primary controls, which are specified in the assembler command line, a parameter file, or at the beginning
of the source module, are as follows:
•
•
•
•
Target microcomputer specification
Output file selection and destination
Listing format controls
Date specification
The general controls, specified in the assembler command line, a parameter file, or at any place in the source
program, are as follows:
• Generation/suppression of listing
• Listing titles
• Inclusion of other source files
(in source program only)
• Page eject (in source program only)
The listing file may contain the complete assembly
listing or only lines with errors, and a symbol table or a
cross reference table. The symbol table shows all defined
symbols in alphabetical order, their types, attributes,
and the values initially assigned to them. The crossreference table. contains all defined symbols and the
numbers of all statements that refer to them.
The object file contains the relocatable object module.
The format of this module is a NEC proprietary relocatable object module format. This object file may also
contain local symbol information for the symbolic debugger.
9-.30
Figure 1. Relocatable Assembler Functional
Diagram
Source
Module
File
Include
File
~
System
Console
~
RA87
7800 Series
Relocatable
Assembler
foE-+
foE-+
~
~
Relocatable
Object
Module
File
Assembler
list File
Temporary
Work Files
49NR-629A
Linker
The LK87 linker (figure 2) combines several relocatable
object modules or absolute load modules, resolving
PUBLIC/EXTRN references between modules, to create
an absolute load module. This load module contains
both absolute object code and symbol information. The
linker will also search library files for required modules to
resolve external references. The linker controls for LK87
can be specified in either the command line or in a
parameter file. The programmer can specify the date,
module name, stack size and starting address, ROM/
RAM segment allocation, starting address and order for
code/data/bit relocatable segments, and the page address for the working register group. The programmer
may also specify that a list file containing a link map, a
local symbol table, or a public symbol table be created.
NEe
RAa7
Librarian
Figure 2. Unker Functiolllll DI.am
Absolute
Load
Module
File 1
...
Absolute
Load
Module
Filen
Relocalable
Object
Module
File 1
...
Relocatable
Object
Module
Fllen
I
I
The LB87 librarian creates and maintains library files
containing relocatable object modules. This reduces the
number of files to be linked together by allowing several
modules to be stored in a single file. This provides an
easy way to link frequently used modules into programs.
Modules can be added to, deleted from, or the contents
of the library file can be listed.
List Converter
System
Console
I--
LK87
7800 Series Linker
Absolute
Load
Module
File
~
Temporary
Work Files
Linkar
List File
.t9NR-63CIA
Hexadecimal Format Object Converter
The OC 87 object converter (figure 3) outputs the object
code file in ASCII hexadecimal format, which can be
downloaded to a prom programmer or hardware debug'ger. The programmer can specify whether or not to
generate a symbol file for a hardware debugger.
Normally, listing files produced by a relocatable assembler do not show the final absolute address for instructions, as their location is not decided until link time. The
address shown in the listing is only the offset from the
start of the code or data segment.
The LCNV87 list converter (figure 4) uses the assembly
list and object module files from the assembler and the
load module file from the linker, to create an absolute
address assembly listing. This absolute listing shows the
addresses of instructions as their final absolute address
in memory, and is useful in debugging or program
documentation. The programmer can specify the load
module (-L), assembly list (-A), and output assembly (-0)
file names.
Figure 4. Ust Converter Functional DIagram
Figure 3. Hexadecimal Format Object Code
Converter Functiolllll DilJfll'am
Relocatable
Object
Module
File"
I
System
Console
--
Absolute
Load
Module
File
or
J
I
OC87
Hexadecimal Format
Object Converter
Hexadecimal
Object
Code File
Symbol
Ale for
Debugger
" Absolute addresses wilh no external references
49NA-631A
9-31
NEe
RA87
Macroprocessor
The MP macroprocessor (figure 5) interprets the macros
described in a source program and expands them to
create another source program, which can then be input
to the assembler. It has the following three main functions:
• Expands macros by defining and referencing them
• Reads and expands include files
• Selects an assembler source based on a conditional
macro instruction
Figure 6. Macroprocessor Functional Diagram
These emulator controller programs provides the following features:
•
•
•
•
•
•
•
Uploading and downloading of object and symbol files
Symbolic debugging
Complete emulator control from host console
On-line help facilities
Macro command file capabilities
Host system directory and file display
Disk storage of debug session
License Agreement
RA87 is sold under terms of a license agreement which is
included with the assembler. The accompanying card
must be completed and returned to NEC Electronics Inc.
to register the license. Software updates are provided
free to registered users.
Documentation
For further information on source program formats,
assembler operation, and actual program examples,
NEC Electronics Inc. provides the following documentation:
• RA87 I4PD?800 Series Relocatable Assembler
Paokage User's Manual
• MP Macroprocessor User's Manual
49NR-633A
This dooumentation is provided with purchased copies
of the package. Additional copies may be obtained from
NEC Electronics Inc.
Operating Environment
The NEC RA87 package can run under a variety of
operating systems. A version is available to run on a
MS-DOS system with one or more disk drives and at
least 128K of system memory. Another version is available to run on a Digital Equipment Corporation VAX
computer under the VMS (Version 4.1 or later) operating
system.
Emulator Controller Program
Absolute object files produced by the RA8? relocatable
assembler package can be debugged using the appropriate NEC stand-alone in-circuit emulator. NEC emulator controller programs allow communication with the
emulator through an RS-232C serial line. An emulator
controller program can run on the IBM PC@, PCIXT@,
and PC/AT@ under MS-DOS and is provided with the
in-circuit emulator at no extra charge.
9-32
IBM PC, PC/XT, and PC/AT are registered trademarks of International
Business Machines Corporation.
t-IEC
NEe Electronics Inc.
DK·78K2
pPD782XX Des Igner Kits
Description
Features
The DK-78K2 designer kits are powerful development
toolboxes for the 78K2 family of eight-bit microcomputers. Each kit Includes all the hardware and software to
design and implement elaborate embedded control applications for the "PD7821 X, "PD7822X, or "PD7823X. To
enhance the development process, each kit includes
NEe's new ST78K2 structured assembler preprocessor,
which provides high-level language constructs without
code inefficiency.
o
o
o
o
o
The DK-78K2 features an EB-782XX emulation board with
either a "PD78213, "PD78220, or "PD78230 microcomputer, probe connector, on-board monitor, and serial
interface for an IBM P~, PC/XT~, PC/AT~, or compatible computer. The EB-782XX emulation board can be
used without a target system or can be directly connected to a user's system with the enclosed emulation
probe.
o
The on-board monitor facilitates access to RAM, ROM,
I/O, and special function registers in a real-time environment. Programs can be downloaded to the on-board 32K
byte memory for evaluation and debugging. A line assembler and disassembler provide easy code debugging
and modification. An NEC emulator controller program
on disk makes it possible to download code from an IBM
PC and provides complete control of the EB-782XX from
the console of the PC.
o
o
o
EB-782XX emulation board
32K bytes of static RAM
Resident monitor
Emulation probe
Power supply
RA78K2 relocatable assembler package
ST78K2 structured assembler preprocessor
Emulator controller program for IBM PC, PC/XT, PC
AT, or compatibles
Full documentation package
Ordering Information
Part Number
Deacrlptlon
DK-78K2-21XCW
"PD7821X designer kit for shrink DIP package
DK-78K2-21XGJ
"PD7821X designer kit for QFP package
DK-78K2-21XGQ
"PD7821X designer kit for QUIP package
DK-78K2-21XL
"PD7821X designer kit for PLCC package
DK-78K2-22XGJ
"PD7822X designer kit for QFP package
DK-78K2-22XL
"PD7822X designer kit for PLCC package
DK-78K2-2SXGC
"PD7823X designer kit for 80-pln QFP package
DK-78K2-23XGJ
"PD7823X designer kit for 94-pln QFP package
DK-78K2-23XL
"PD7823X designer kit for PLC C package
The kit includes both the RA78K2 relocatable assembler
package and the ST78K2 structured assembler preprocessor for software development. Source modules consist of a combination of structured and pure assembly
language which reduces development time and effort. A
complete set of documentation is provided for the EB782XX, its two software packages, the target "PD782XX
microcomputer, and other NEC support products for the
78K2family.
IBM PC, PC/XT, and PC AT are registered trademarks of International
Business Machines Corporation.
9-33
DK·78K2
9-34
NEe
1ttlEC
NEe Electronics Inc.
EK·78K2
pPD782XX Evaluation Kits
Description
Features
The EK-78K2 are powerful evaluation kits for the 78K2
family of eight-bit microcomputers. The EK-78K2 allows
full evaluation of the "PD7821 X, "PD7822X, or "PD7823X
in either a stand-alone or an application environment.
Each kit Includes all of the tools to write and test
application software, and to experiment with the 78K2
hardware. Also included for user evaluation Is a copy of
NEC's new S178K2 structured assembler preprocessor,
which provides high-level language constructs without
code ineffiency.
The EK-78K2 features a DDB-78K2 evaluation board with
either the "PD78213, "PD78220, or "PD78233 microcomputer and a serial Interface that will convert an IBM
P~, PC,ocre, PC AT4D, or compatible into a 78K2 design
center. The on-board monitor facilitates the hex object
code downloading from a PC to the resident RAM on the
DDB board, where It then can be executed In real-time.
An NEC emulator controller program on disk allows c;ode
to be downloaded from an IBM PC and provides complete control of the DDB-78K2 from the PC console.
The kit Includes both the RA78K2 relocatable assembler
package and the S178K2 structured assembler preprocessor for writing evaluation programs. A complete set
of documentation Is provided for the DDB-78K2, Its two
software packages, the target "PD782XX microcomputer, and other NEC support products for the 78K2
family.
...... ........ ....."AI .. __ .................. ______1_&_..._ .................... _ _ .. 1......
~
CJ
CJ
CJ
CJ
CJ
CJ
CJ
CJ
CJ
CJ
DDB-78K2-2XX evaluation board
32K bytes of static RAM
Resident monitor ROM
Expansion ROM socket for extended data memory
Nine square Inches of user prototype area
Power supply
RA78K2 relocatable assembler package
ST78K2 structured assembler preprocessor
Emulator controller program for IBM PC, PC/xT. PC
AT, or compatibles
Full documentation package
Ordering Information
PlII'tNumber
Description
EK-78K2·21X
"PD7821X evaluation kit OBM PC Based)
EK·78K2·22X
"PD7822X evaluation kit OBM PC Based)
EK·78K2-23X
"PD7823X evaluation kit OBM PC Based)
1.......6 ......... : ........... 1
IWI.,. I _, """'''''1 ""•• _ "_ .... _._ ._.'_ .. _. __ •• __ ••• _ •.• __ ....• _ ... __ ._ .. __ _
Business Machines Corporation.
9-35
EK·78K2
9-36
NEe
NEe
IK-78K2
IIPD782XX In-Circuit Emulator Kits
NEe Electronics Inc.
Description
The IK-78K2 in-circuit emulator kits are the ultimate
debugging tools for the 78K2 family of eight-bit microcomputers. Each kit includes all of the hardware and
software to design and implement elaborate embedded
control applications for the I'PD7821X, I'PD7822X, or
I'PD7823X. To enhance the user's.development process,
each kit includes NEC's new ST78K2 structured assembler preprocessor, which provides high-level language
constructs without code inefficiency.
The IK-78K2 features an IE-782XX in-circuit emulator and
emulator probe. The IE-782XX can be used without a
target system or can be connected directly to a user's
system with an enclosed emulator probe. This full feature
emulator for the I'PD7821X, I'PD7822)(. or I'PD7823X
microcomputers provides upload/download capabilities
from an IBM PC\!), PC/XT\!), PC AT\!) or compatible computer using the NEC emulator controller program on
disk. This controller program allows the in-circuit emulator (IE) to be controlled directly from a PC console and
enhances the IE with an added HELP facility, STRING
command file capability, and HISTORY command.
Real-time and single-step emulation capability together
with extremely sophisticated breakpoint and trace capabilities create a powerful, real-time debugging environment. All memory can be written to or read from,
displayed using the disassembler, altered by the line
assembler and traced without restrictions. All special
function registers can also be displayed and altered. Up
to 32K bytes of internal high-speed memory can be
mapped for internal ROM emulation.
Features
Cl
Cl
Cl
Cl
Cl
Cl
IE-782XX in-circuit emulator
Emulation probe
RA78K2 relocatable assembler package
ST78K2 structured assembler preprocessor
Emulator controller program for IBM PC, PC/XT, PC
AT, or compatibles
Full documentation package
Ordering Information
Part Number
Description
IK-78K2-21XCW
"PD7821X In-clrcult emulator kit for shrink DIP
package
IK-78K2-21XGJ
"PD7821X In-clrcult emulator kit for QFP
package
IK-78K2-21XGQ
"PD7821X In-clrcuit emulator kit for QUIP
package
IK-78K2-21XL
"PD7821X In-circult emulator kit for PLCC
package
IK-78K2-22XGJ
"PD7822X In-clrcult emulator kit for QFP
package
IK-78K2-22XL
"PD7822X In-circult emulator kit for PLCC
package
IK-78K2-23XGC
"PD7823X In-circult emulator kit for 80-pin QFP
package
IK-78K2-23XGJ
"PD7823X In-clrcult emulator kit for 94-pln QFP
package
IK-78K2-23XL
"PD7823X In-clrcuit emulator kit for PLCC
package
The kit includes both the RA78K2 relocatable assembler
package and the ST78K2 structured assembler preprocessor for software development. Source modules can
consist of a combination of structured and pure assembly language which greatly reduces development time
and effort. A complete set of documentation is provided
fnr tn .. IF-7A?XX, it!: two !:oftware oackaaes. the taraet
/AoPD782XX microcomputer, and other NEC support products for the 78K2 family.
IBM PC, PCiXT. and PC AT are registered trademarks of International
Business Machines Corporation.
9-37
m
IK·78K2
9-38
NEe
t-IEC
NEG Electronics Inc.
Description
The DDB-78K2 are evaluation boards for the NEC
/-IPD782XX eight-bit, single-chip microcomputers. The
DDB-78K2 provides maximum flexibility when evaluating
and designing with the /-IPD782XX family of microcomputers. Every DDB-78K2 features a /-IPD78213, /-IPD78220
or /-IPD78233 microcomputer, 32K bytes of ROM, 32K
bytes of RAM, /-IPD27C512 footprint for 64K bytes of
optional extended data memory, RS-232C communication port, and a powerful monitor program. A playpen
area is included for evaluating the /-IPD782XX with application specific hardware.
DDB·78K2
Evaluation Boards
for the IlPD782XX Series
o /-IPD27C512 footprint for 64K bytes of extended data
memory
o Powerful on-board debug monitor
- Real-time and single-step operation
- Display/change memory and internal registers
- Multiple software breakpoints
- User program download capability
o RS-232C serial interface for terminal or host
computer
o Playpen area for user circuitry
o Includes AC/DC converter
Features
Ordering Information
o /-IPD78213, /-IPD78220, or /-IPD78233 evaluation
board
- Convertible by changing microcomputer and
firmware
The DDB-78K2 evaluation boards are sold only as part of
the following:
• EK-78K2 evaluation kits
o On-board memory
- ROM: 32K bytes
- RAM: 32K bytes
DDB-7BK2 Evaluation Board
50267
9-39
NEe
DDB·7aK2
.
.
DDB·78K2 Block Diagram
Hqh
ADo-AD7
RS-232C
Connector
I--
RS-232C
Interface
Lr
SIO
Socket to Socket
Connections
J1I'D78213
68-PinPLCC
Socket
I
1
Monitor
EPROM
0-7FFF
Address Latch
AO-A7
A15-A19
27C512
I
A8-A14
H
Control
Logic
I
I
I
I
I-RAM
8000-FFFF
J1I'043256A
I
Header
'----
J1I'078220
J1I'D78233
84-PinPLCC
Socket
WTiW
o
9-40
Extended
Dam Memory
EPROM
Footprint
FOOOO-FFFFF
27C512
I
49NR-68OB
ttlEC
DDB·78K2
Hardware Description
Additional commands are available to:
The DDB-78K2 features 64K bytes of on-board memory.
The first 32K bytes are dedicated to ROM and include a
powerful monitor program. The second 32K bytes are
dedicated to RAM and can include a user area for user
program downloading (28K bytes), interrupt and CALLT
re-vector area (256 bytes), monitor work area (3.8K
bytes), and the internal RAM and register area of the
p.PD78213, p.PD78220, or p.PD78233 (768 bytes). The
DDB-78K2 contains a footprint for a user installed
p.PD27C512 EPROM. This provides access to 64K bytes
of extended data memory space (OFOOOOH to
OFFFFFH).
• Display, fill, change, or move memory
• Display or change the general and· special function
registers
• Disassemble memory
• Display the command list
• Initialize the interrupt and call table re-vector areas
• Set the monitor's environment
The microcomputer UART is connected to a DB25 pin
connector through an RS-232C driver/receiver. If the
capabilities of the UART need to be evaluated, a jumper
selectable option allows the clock-synchronized serial
interface (SIO) to be used in place of the UART for
communicating to a terminal or host computer.
All the microqomputer pins are connected to wirewrap
headers. This provides a convenient place for attaching
oscilloscope probes for performing detailed signal analysis or for connecting application specific hardware.
A reset switch allows the DDB-78K2 to return to the
power-up state without losing the contents of the external RAM. An NMI switch returns control from a user
program to the monitor while saving the user's state. An
AC/DC converter provides power to the DDB-78K2.
Software Description
Every DDB-78K2 has a powerful interactive monitor to
facilitate software design for the p.PD782XX microcomputer. A user program can be downloaded into user RAM
and executed in real-time with or without breakpoints or
executed one instruction at a time. During singlestepping, the registers, program counter, and the next
instruction to be executed are displayed.
The DDB-78K2 has nine address breakpoints. The user
can set up to eight of these prior to program execution.
The ninth breakpoint is reserved for use in the GO
cornrnanu iiut::. lilt=' IIIUllii.UI t;)t:;Li) a ~,-t:;Ci~iJv:i'~::'Y- .;u::;~~:
tuting a software break instruction (opcode 5EH) for an
instruction in the user's program.
Table 1 contains a complete list of the DDB-78K2 monitor
commands and their syntax.
Table 1. Command Ust
Command
Function
Syntax
?/H
Print this summary of
commands
? or H
B
Show or set breakpoints
B{bpH,addr}
C
Change memory bytes
C{{b:}addrH,val}
D
Display memory bytes
D{{b:}addr}{.addr}
E
Show or set environment
variables
E{var,val}
F
Fill memory bytes with
value
F{b:}addr,addr,val
G
Go (execute to
breakpoint)
G{addrH,addr}
Initialize interrupt &
CALLT vectors
K
Kill breakpoint(s)
K{bp}
L
Load HEX file into
memory
L{{b:}addr}
M
Move a block of memory
M{b:}addr,addr,{b:}addr
R
Display/change registers
R{s,}{reg{,val}}
S
Display/change special
function registers
S{sfr{,val}}
T
Trace execution (trace
mode)
T{addr}
U
Unassemble a block of
memory
U{addr}{,addr}
Notes:
PJ aour
=
= four-bit bank number in hexadecimal format (0 - FH).
bp = breakpoint number (0 - 7).
reg = general purpose register mnemonic.
s = register bank selector (0 - 3).
sIr = special function register mnemonic.
val = eight-bit value in hexadecimal notation.
(2) b
(3)
(4)
(5)
(6)
(7)
(8) var = environment variable mnemonic.
(9) {
}
= optional parameter.
9-41
Pel
iii
DDB-78K2
Documentation
For further information on the DDB-78K2 Evaluation
Board, NEC Electronics, Inc. provides the following manual:
• DDB-78K2 ",PD782XX Evaluation Board User's Manual
This manual is provided with the board. Additional copies may be obtained from NEC Electronics Inc.
9-42
NEe
NEe
EB-78210
Evaluation Board
for the IIPD78213
NEe Electronics Inc.
Description
CI
The EB-78210 is an evaluation board for the NEC
p.PD78213 eight-bit, single-chip microcomputer. The EB78210 provides a simple way to evaluate the capabilities
of the p.PD78213 in an application without having to
build a prototype. If it is necessary to connect the
EB-78210 directly to a target system, the IE-7821O emulator probes can be purchased separately.
CI
Display/change speCial function registers
CI
User program upload/download capability
The EB-78210 features 32K bytes of static RAM for
evaluation programs, an RS-232C communication port,
and a powerful on-board monitor. Evaluation programs
can be downloaded from a host computer or created
directly on the board using the line assembler. Programs
can be executed in real-time with or without breakpoints
or one instruction at a time. Commands are available to
display or change memory, general or special function
registers, and to disassemble code.
A controller program cont rols the EB-78210 directly from
the console of an IBM PC@>, PC/XT@>, PC AT@>, or compatible host computer using an RS-232C serial interface.
Features
CI
p.PD78213 evaluation board
CI
32K bytes of static RAM
CI
Real-time and single-step execution
CI
Four parallel or sequential breakpoints
Display/change memory and general registers
CI
Symbolic debugging support
CI
Line assembler and disassembler
CI
RS-232C serial interface for host computer
CI
Host control software for IBM PC, PC/XT, PC AT, or
compatibles
CI
Connection to a target system using in-circuit
emulator probes
IBM PC, PClXT and PC AT are registered trademarks of International
Business Machines Corporation.
Ordering Information
Part Number
Description
EB-78210-PC
,,078213 evaluation board OBM PC Based)
EP-78210CW-R
Emulator probe for 64-pin shrink DIP package
(op1ional)
EP-78210GJ-R
Emulator probe for 74-pin QFP (optionaQ
EP-78210GQ.R
Emulator probe for 64-pin QUIP package
(optional)
EP-78210L-R
Emulator probe for 68-pin PLCC package
(optional)
EB-78210
502111
9-43
ttlEC
EB·78210
Block Diagram
POmD'2,t:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::~
3,6,7r
AS-A15
rt:::::=Jr=:::::::::::::::A:dd:re:.:.:B:US::::::::::::::::::::::~
PPD78213
EmulalQr
Probe
AddressIDala Bus
49NR-6598
9-44
ttlEC
Hardware Description
The EB-78210 features 32K bytes of on-board static
RAM. It can be used without a target system or can be
directly connected to a target system using one of the
IE-7B210 emulation probes. When the EB-78210 is used
without a target system, 28K bytes of RAM are available
for downloading programs; the on-board monitor uses
the remaining 4K bytes as a work area. When the EB78210 is connected to a target system, 52K bytes of the
~PD78213's 64K-byte code space are mapped to the
target system. The extended ~PD78213 data memory
space (10000H to OFFFFFH) is also mapped to the
target system. A memory extension command specifies
the high-order four bits of the address of the external
extended data memory for use in the memory display
commands.
The serial port for the host computer connection consists of a ~PD71051 USART, an RS-232C driver/receiver,
and a DB25 pin connector. A reset switch returns the
EB-78210 to the power-up state. An AC/DC converter is
shipped with each EB-78210 board for convenience. The
EB-78210 can also be powered from batteries using the
enclosed battery holder.
Emulation
EB·78210
sequential breakpoint, each address must be encountered in the specified order before a break in emulation
can occur. These breakpoints are set by substituting a
software break instruction for an instruction In the user's
program.
Software Description
The EB-78210 is controlled from the console of an IBM
PC, PC/XT, PC AT, or compatible computer with an
RS-232C interface using the ehclosed emulator controller program. This program provides commands for
downloading and uploading object· code and symbol
files to and from the EB-78210. A line assembler and
disassembler avoid debugging In machine code. The
symbolic debugging commands allow the use of labels
instead of absolute addresses. Full data manipulation
capability is available with the change register/memory
commands. Initialization commands allow the user to
choose a base number, register mnemonics, and extended data memory segment.
The EB-78210 program also has macro command file
capability, so the user can execute a defined set of
commands automatically. The on-line help facility, history command, and ability to store the console display
on disk or send it to a printer ease debugging tasks.
The EB-78210 allows the following methods of program
emulation: real-time program execution with or without
breakpoints; real-time program execution for a specified
number of instructions; single-step emulation for a specified number of instructions or until a register condition
is satisfied. The registers, stack pointer, program status
word, and program counter are displayed following termination of real-time emulation or during single-step
emulation. The EB-78210 enters the single-step mode
following a real-time emulation break. When the enter
key is pressed during single-step emulation, the next
instruction is executed and the executed address, instruction mnemonic and above data are displayed.
Table 1 lists the available EB-78210 commands. These
are a subset of the IE-7821O commands.
Table 1. CommandUsf
Command Function
ASM
Une assemble command
BRS
Sets Instruction address breakpOints
COM
Creates command file
DAS
Disassemble command
DIR
Displays disk directory
EXP
Changes/displays high-order four bits of an address of
the externally extended data memory
Emulation Accuracy
EXT
Terminates EB-78210 controller program operation
When the emUlation proDa is COlllltlCLtlU LU a La' 1:1'"
system, ports 0, 2, 3, 6, 7, and the A/D converter related
signals are identical to the device. However, all other
signals differ from the actual device because of buffering
and control gating.
!-II!':
Disolava last twenty commands
HLP
Displays format of commands
LOD
Loads object code and symbol files
LST
Sends console display to disk or printer
MAP
Dlslays memory map
Breakpoint Capabilities
MAT
Evaluates arithmetiC expression
The EB-78210 has four parallel instruction address
breakpoints or up to a four-level sequential instruction
address breakpoint. If anyone of the four parallel breakpoints is satisfied, a break in emulation occurs. For a
MDR
Displays/modifies "PD78213 mode registers
MEM
Memory manipulation command
REG
Displays/modifies "PD78213 registers
I]
9-45
E8·78210
Tsbl• .,. CQID",.nd US, (con#)
Command FunctIon
RES
Resets only the "PD78213
RGM
ChangeS/displays the Implied or general register mode
for the display of registers In a disassembler list
RUN
Executes programs In slngle-step mode or In real·tlme
with options for break conditions
SAY
Saves contents of memory onto disk
SPR
DlsplayS/modlfles "PD78213 special function registers
STR
Automatically executes command string file
S UF
Base number specification (hex, octal, binary,
declmaQ
SYM
AddS/deleteS/displayS/changes/loads/saves symbols
VFf( .
Compares contents of an object file with memory
Equipment Supplied
The EB-78210-PC package consists of the following:
•
•
•
•
•
•
EB-78210 evaluation board
EB-78210 user's manual
System disk for IBM PC
AC/DC converter power supply
Battery holder and mounting hardware
Warranty policy and registration card
Documentation
For further information on EB-78210 operation, NEC
Electronics Inc. provides the following manual with the
board:
• EB-78210 "PD78213 Evaluation Board User's Manual
Additional copies may be obtained from NEe
Electronics Inc.
9-46
t¥EC
NEe
EB-78220
Evaluation Board
for the pPD78220
NEG Electronics Inc.
Description
The EB-78220 is an evaluation board for the NEC
,...PD78220 eight-bit single-chip microcomputer. The EB78220 provides a simple way to evaluate the capabilities
of the ,...PD78220 in an application without having to
build a prototype. If it is necessary to connect the
EB-78220 directly to a target system, the IE-78220 emulator probes can be purchased separately.
The EB-78220 features 32K bytes of static RAM for
evaluation programs, an RS-232C communication port,
and a powerful on-board monitor. Evaluation programs
can be downloaded from a host computer or created
directly on the board using the line assembler. Programs
can be executed in real-time with or without breakpoints
or one instruction at a time. Commands are available to
display or change memory, general or special function
registers, and to disassemble your code.
o Four parallel or sequential breakpoints
o Display/change memory and general registers
o Display/change special function registers
o User program upload/download capability
o Symbolic debugging support
o Line assembler and disassembler
o RS-232C serial interface for host computer
o Host control software for IBM PC, PC/XT, PC AT, or
compatibles
o Connection to a target system using in-circuit
emulator probes
IBM PC, PC/XT, and PC AT are registered trademarks of International
Business Machines Corporation.
Ordering Information
A controller program controls the EB-78220 directly from
the console of an IBM PC®, PC/XT®, PC AT® or compatible host computer using an RS-232C serial interface.
Part Number
Description
EB-78220-PC
/lPD78220 evaluation board (IBM PC Based)
EP-78220GJ-R
Emulator probe for 94-pin QFP (optional)
Features
EP-78220L-R
Emulator probe for 84-pin PLCC package
(optional)
o ,...PD78220 evaluation board
o 32K bytes of static RAM
o Real-time and single-step execution
EB-7B220
_eo
9-47
NEe
EB·78220
Block Diagram
r
PortsO'l'2,t:=====================================~
3,6,7, PT
AS-A15
J.tPD78220
r
t:==:;Ir=========A=d:d:re:ss:B:U:S::==========~~
Probe
Emulator
Address/Data Bus
49NR-658B
9-48
t\fEC
Hardware Description
The EB-78220 features 32K bytes of on-board static
RAM. It can be used without a target system or can be
directly connected to a target system using one of the
IE-78220 emulation probes. When the EB-78220 is used
without a target system, 28K bytes of RAM are available
for downloading programs; the on-board monitor uses
the remaining 4K bytes as a work area. When the EB78220 is connected to a target system, 52K bytes of the
~P078220's 64K-byte code space are mapped to the
target system. The extended ~P078220 data memory
space (10000H to OFFFFFH) is also mapped to the
target system. A memory extension command specifies
the high-order four bits of the address of the external
extended data memory for use in the memory display
commands.
The serial port for the host computer connection consists of a ~PD71051 USART, an RS-232C driver/receiver,
and a OB25 pin connector. A reset switch returns the
EB-78220 to the power-up state. An AC/OC converter is
shipped with each EB-78220 board for convenience. The
EB-78220 can also be powered from batteries using the
enclosed battery holder.
Emulation
The EB-78220 allows the following methods of program
emulation: real-time program execution with or without
breakpoints; real-time program execution for a specified
number of instructions; single-step emulation for a specified number of instructions or until a register condition
is satisfied. The registers, stack pointer, program status
word, and program counter are displayed following termination of real-time emulation or during single-step
emulation. The EB-78220 enters the single-step mode
following a real-time emulation break. When the enter
key is pressed during single-step emulation, the next
instruction is executed and the executed address, instruction mnemonic and above data are displayed.
Emulation Accuracy
When the emulation probe is connected to a target
system, ports 0, 1,2,3,6,7 and the analog comparators
are identical to the device. However, all other signals
differ from the actual device because of buffering and
control gating.
Breakpoint Capabilities
The EB-78220 has four parallel instruction address
breakpoints or up to a four-level sequential instruction
address breakpoint. If anyone of the four parallel breakpoints is satisfied, a break in emulation occurs. For a
EB-78220
sequential breakpoint, each address must be encountered in the specified order before a break in emulation
can occur. These breakpoints are set by substituting a
software break instruction for an instruction in the user's
program.
Software Description
The EB-78220 is controlled from the console of an IBM
PC, PC/XT, PC AT, or compatible computer with an
RS-232C interface using the enclosed emulator controller program. This program provides commands for
downloading and uploading object code and symbol
files to and from the EB-78220. A line assembler and
disassembler avoid debuggining in machine code. The
symbolic debugging commands allow the use of labels
instead of absolute addresses. Full data manipulation
capability is available with the change register/memory
commands. Initialization commands allow the user to
choose a base number, register mnemonics, and extended data memory segment.
The EB-78220 program also has macro command file
capability, so the user can execute a defined set of
commands automatically. The on-line help facility, history command, and ability to. store the console display
on disk or send it to a printer ease debugging tasks.
Table 1 lists the available EB-78220 commands. These
are a subset of the IE-78220 commands.
Table 1. CommandUst
Command
Function
ASM
Line assemble command
BRS
Sets instruction address breakpoints
m
COM
Creates command file
DAS
Disassemble command
DIR
Displays disk directory
EXP
Changes/displays high-order four bits of an address of
the externally extended data memory
EXT
Terminates EB-78220 controller program operation
HIS
Displays last twenty commands
HLP
Displays format of commands
LaD
Loads object code and symbol files
LST
Sends console display to disk or printer
MAP
Dislays memory map
MAT
Evaluates arithmetic expression
MDR
Displays/modifies I'PD78220 mode registers
MEM
Memory manipulation command
REG
Displays/modifies I'PD78220 registers
RES
Resets only the I'PD78220
9-49
t-IEC
EB·78220
Table 1. Command List (cont)
Documentation
Command
Function
RGM
Changes/displays the implied or general register mode
for the display of registers in a disassembler list
For further information on EB-78220 operation, NEC
Electronics Inc. provides the following manual with thl3
board:
RUN
Executes programs in single-step mode or in real-time
with options for break conditions
SAY
Saves contents of memory onto disk
SPR
Displays/modifies "PD78220 special function registers
STR
Automatically executes command string file
SUF
Base number specification (hex, 'octal, binary,
decimal)
SYM
Adds/deletes/displays/changes/loads/saves symbols
VRY
Compares contents of an object file with memory
Equipment Supplied
The EB-78220-PC package consists of the following:
•
•
•
•
•
•
EB-78220 evaluation board
EB-78220 user's manual
System disk for IBM PC
AC/DC converter power supply
Battery holder and mounting hardware
Warranty policy and registration card
9-50
• EB-78220 ~PD78220 Evaluation Board User's Manual
Additional copies may be obtained from NEC
Electronics Inc.
NEe
IE-78210
In-Circuit Emulator
NEG Electronics Inc.
Description
The1E-7821O is an in-circuit emulator providing both
hardware emulation and software debugging capabilities for the NEC I'PD78213 and I'PD78214 single-chip
microcomputers. Real-time and single-step emulation,
inconjunction with sophisticated memory mapping features, breakpoints, and trace capabilities, create a
powerful debugging environment. A line assembler/
disassembler, full register and memory control, symbolic
debugging, and complete upload/download capabilities
simplify the task of debugging hardware and software.
Features
o Real-time and single-step emulation capability
o User-specified breakpoints; logical OR of up to four
o Powerful memory mapping feature
- 64K bytes of RAM mappable in 128-byte blocks
- Up to 16K bytes of high-speed internal RAM for
I'PD78214 ROM emulation
o Line assembler/disassembler
o Symbolic debugging
- 2,000 symbols available
-IEEE-796 bus memory expansion slot for 32K
additional symbols
o CMOS latch-up warning and protection
o Eight external sense clips on emulator probe
o Stand-alone mode or system mode with host control
program
IE-78210
sets of break conditions
- Opcode fetch count
- External sense clip condition
- Parallel or sequential fetch address break
- Logical AND of addresses, data values, CPU
controls, and loop count
o Sophisticated trace capabilities
- Traces program-fetch or data access
- 2K x 44-bit trace buffer
- Address, control, data, and external signal trace
features
- Instruction or frame display
- Trace search capability
- Trace display before or after specified break
IBM PC, PC/XT, and PC AT are registered trademarks of International
Business Machines Corporation.
50193
9-51
t¥EC
IE·78210
Block Diagram
IE-78210-R
RS-232C
Controll
Trace
Module
Host
Emulator Probe
IE System Bus
Driver
;1--~_Ta...:rg,,-et,--p-,ro,--be~-:1ILJI
.~
Module
8 External Sense Clips
49NR-60SB
Ordering Information
Part Number
Deacrlptlon
IE-78210-R
In-clrcult emulator for "PD7821X
EP-78210CW-R
Emulator probe for 64-pln shrink DIP (optlonaQ
EP-78210GJ-R
Emulator probe for 74-pln QFP (optlonaQ
EP-78210GC-R
Emulator probe for 64-pln QUIP (optlonaQ
EP-78210L-R
Emulator probe for 68-pln PLCC (optlonaQ
Hardware Description
As the IE-7821O block diagram shows, the IE-7821O
hardware consists of a control/trace module, driver module, target probe, external sensing clips, and interconnecting system bus. The control/trace module includes
the trace control unit, emulation memory unit, break
control unit, and latch-up alarm unit. This module also
houses the emulation CPU, which directly connects to
the target emulation probe. The driver module houses
the serial interface Circuit, control CPU, trace RAM, and
system memory.
Memory Mapping
The IE-7821O has a sophisticated memory mapping
scheme which allows access of up to 64K bytes of
internal memory, mappable in 128-byte units. The map
command allocates the first 64K bytes of memory space
of the emulation CPU either to the user system or to the
IE system. Even if development of the target system is
not complete, software debugging is still possible by
using this internal RAM in place of the target system
RAM. In addition to this emulation memory, the IE-78210
has an alternate high-speed memory for real-time
emulation of the I-4PD78214 internal ROM. 4K, 8K, 12K, or
16K bytes of the high speed memory can be selected as
internal ROM.
9-52
The extended data memory space of the emulation CPU
(10000H to OFFFFFH) is always mapped to the user
system. A memory extension command is available to
specify the high order four bits of the address of the
external extended data memory for use in the memory
display and break setting commands.
Emulation
The IE-7821O allows the following methods of program
emulation: real-time program execution with or without
breakpoints; real-time program execution for a specified
number of instructions; and single-step emulation for a
specified number of instructions or until a register condition is satisfied. Following termination of real-time
emulation or during single-step emulation, the registers,
stack pointer, program status word, and program
counter are displayed. Following a real-time emulation
break, the IE-7821O enters the single-step mode. Each
time the enter key is pressed during single-step emulation, the next smallest group of instructions is executed
and the above data is displayed.
Emulation Accuracy
Once a breakpoint is reached during emulation, the next
few instructions are executed before breaking actually
occurs. This is known as slip. The exact number of
instructions slipped depends on the instructions in the
prefetch queue and whether the emulation chip is accessing internal ROM or external memory. Ports 4
through 6 and the· AID converter related signals are
identical to the devices. However, other Signals differ
from the actual device due to buffering and control
gating.
ttlEC
IE·78210
Breakpoint Capabilities
Utilities
The break function can be divided Into two types: break
register (physical and logical) breaks and fail-safe
breaks. The user sets physical break registers to cause
emulation breaks upon address, data, status or loop
count; Instruction count; parallel or sequential fetch
addresses or matching a condition on an external sense
clip. Combinations of these physical registers can then
be set to the logical break registers and executed when
running a break command. Fail-safe break conditions
occur unconditionally and include manual break (ESC
key or STP command in RUN N mode), non-mapped
memory break, write-protected memory break, and SFR
Illegal access break.
The upload/download commands provide easy loading
and saving of hex files to and from a host computer. The
on-board assembler/disassembler allows the user to
avoid programming In machine code. The symbolic
debugging commands allow the use of labels instead of
absolute addresses. Full data manipulation capability is
available for the user with the change register/memory
commands. Initialization commands allow the user to
choose a clock source and a base number, and to define
the system memory map.
Trace Capabilities
The IE-78210 has a 2K x 44-bit trace RAM for storing
emulation data from each. machine cycle. All fetchrelated or data access-related addresses, data, CPU
status signals and the eight external sense clips can be
traced for up to 2,047 machine cycles. There are two
types of trace displays: frame mode and instruction
mode. In the frame mode display, the frame number and
type, address and data information and external sense
Clip status are displayed for each frame in the order in
which they are traced. In instruction mode, the executed
Instructions are displayed with their frame number, instruction address, mnemonics and operands. A number
of trace display options are available. These Include the
display of all trace data, the display of only the frames
meeting trace data search conditions, the display of five
lines before or after frame meeting trace data search
condition and the display of a specified number of lines
following detection of the specified break register
condition.
During real-time program emulation without breakpoints, the break condition can be used to stop the
tracer a specified number of frames after the break
condition is satisfied. At tracer stop time, the trace
buffer can be viewed, new trace conditions set and the
trace restarted while the program continues to execute
in real-time.
CMOS Protection
The latch-up alarm circuit is activated when any CMOS
IC in the driver module is in danger of being damaged by
improper voltage levels on the pins. A protection circuit
isolates the power supply to CMOS ICs and the message
"emulation CPU latchupl" is displayed.
System Mode
The IE-78210 can be connected to an IBM P~, PC/XT~,
PC AT~, or MD-086FD-10 by an RS232C port and operated in system mode. By using the accompanying control software, the debugging capabilities of the IE-78210
are greatly increased. It has a macro command file
capability, allowing the user to execute a defined set of
commands automatically. The on-line help facility, the
history command, and the ability to store the console
display on disk ease debugging tasks. The uploading!
downloading capability can be utilized to upload and
download both object code and symbol information.
Other advantages are a verify command that compares
memory to hex files, an alter symbol command, and a
termination command for exiting to the operating
system.
Table 1 lists commands available for both the standalone and system modes of the IE-7821O. Commands
listed in table 2 supplement table 1, but can only be used
in the system mode.
Tllble 1. Stllnd-AIone lind System lIIode
Commllnds
Command
Function
ASM
line assemble command
BR?
Changes/di splays breakpoint regl ster used for
stoppln" real-time emulation
ClK
Clock command Onternal or externaO
UA~
UI8aSSemDI8 commanD
DlY
ChangeS/displays trace frame count after trace
trigger has been detected
EXP
Changes/displays high-order 4 bits of an address of
the externally extended data memory
LCD
loads hex format file Into program memory
MAP
Memory mapping (64K bytes are accessible)
MAT
Performs arithmetic operation on an expression
MDR
Displays/modifies mode registers of emulator CPU
MEM
Memory manipulation command
9-53
NEe
IE·78210
Equipment Supplied
DIble 1. SllIIItI-AIone and ~yst.m IIode
CommendII(contJ
The IE-78210-R package consists of the following:
Command
Function
MOD
sets chamel two mod. setting
MOV
MoveS m.mory content to different mapping area
IE-7821O housing
IE-78210-R user's manuals
Systel"fl disk for MD-Dse series
System disk for IBM PC
AC power cable
AC ground adapter
Ground cable
Spare fuse
RS-232C interface cable
Two 16-pin component carriers
Warranty policy and registration card
SAY
Saves contents of h.x m.mory onto. disk
•
•
•
•
•
•
•
•
•
•
•
SPR
Displaye/modifl.. special registers of emulator
CPU
Basic Specifications
STP
Stops emulation CPU during normal emulation
SUF
Baa. number speCification (hex, octal,
SYM
CI.. re, displays, or changes a symbol
TRG
Starts· real-tim. trac.r during normal .mulatlon
TR?
Changes/displays trace conditions for either realtime or slngl_tep .mulatlon
PGM
Performe PG sarles programmer from II:!
REG
Displaya/modifl.. reglst~ of .mulator CPU
RES
Resets 1E-78210 and/or emulator CPU
RGM
Changee/dlsplays th.lmplled or g.neral register
mod. for the display of reglstere In a dl.....mbl.r
list
RUN
Comm.nc.. ex.cutlon of .mulator CPU In realtime with options for break conditione
blna~
d.clmaQ
Compares cont.nts of an object fll' with memory
contents
Dlbl.2. Syst.m IIode Only COIIJIIIIIIIds
Command
Function
COM
Creat.. command fll.
DIR
Displays fllenam..
EXT
Terminates 18078210 operation
HIS
Displays last twenty commands
HLP
Displays command format
LST
Stor.. console display on·dlsk
STR
Automatically ex.cutes macro command fll.
SYM
Loads and saves eymbol file
• Weight: 10.5 kg
• External dimensions: length, 395 mm; width, 291 mm;
height, 217 mm
• Power consumption: 100 V AC, 50/60 Hz, 5 A
environmental Characteristics
• Operating temperature range: 10 to + 40°C
• StoragE! temperature range: -20 to +45°C
• Ambient humidity range: 10 90% relative humidity
to
Documentation
For further Information on IE-78210 operation, NEC
Electronics Inc. provides the following manuals with the
in-circuit emulator:
.
Additional copies may be obtained from NEC
Electronics Inc.
9-54
.
• IE-78210 "PD7821X In-Circuit Emulator HardWare
Manual
.IE-78210 "PD7821X In-Circuit Emulator Software
Manual
• IE78210 Controller Program User's Manual
(IBM PC Based)
NEe
NEG Electronics Inc.
Description
The IE-78220 is an in-circuit emulator providing both
hardware emulation and software debugging capabilities for the NEC p.PD78220 and p.PD78224 single-chip
microcomputers. Real-time and single-step emulation, in
conjunction with sophisticated memory mapping features, breakpoints and trace capabilities, create a
powerful debugging environment. A line assembler/
disassembler, full register and memory control, symbolic
debugging, and complete upload/download capabilities
simplify the task of debugging hardware and software.
Features
o Real-time and single-step emulation capability
o User-specified breakpoints; logical OR of up to four
sets of break conditions
- Opcode fetch count
- External sense clip condition
- Parallel or sequential fetch address break
- Logical AND of addresses, data values, CPU
controls, and loop count
IE·78220
In·Circuit Emulator
o Sophisticated trace capa~ilities
- Traces program fetch or data access
- 2K x 44-bit trace buffer
- Address, control, data, and external signal trace
features
-Instruction or frame display
- Trace search capability
- Trace display before or after specified break
o Powerful memory mapping feature
- 64K bytes of RAM mappable in 128-byte blocks
- Up to 16K bytes of high-speed internal RAM for
p.PD78224 ROM emulation
o Line assembler/disassembler
o Symbolic debugging
- 2,000 symbols available
-IEEE-796 bus memory expansion slot for 32K
additional symbols
o CMOS latch-up warning and protection
o Eight external sense clips on emulator probe
o Stand-alone mode or system mode with host control
program
IBM PC, PCIXT, and PC AT are registered trademarks of International
Business Machines Corporation.
IE-78220
II
50182
9-55
NEe
IE·78220
Block Diagram
IE-78220-R
Host
RS-232C
.......,...,...,.,.,.,.,...,.,.,.,.,.,.,.,.,.,,',',',','"",,"""""""
Controll
Trace
Module
Emulator Probe
Target Probe
IE System Bus
Driver
Module
8 External Sense Clips
49NR-579B
Ordering Information
Part Number
Description
IE-78220-R
In-circuit emulator for "PD78220/78224
EP-78220GJ-R
Emulator probe for 94-pln QFP (optionaQ
EP-78220L-R
Emulator probe for 84-pin PLCC (ojltionaQ
Hardware Description
As the IE-78220 block diagram shows, the IE-78220
hardware consists of a control/trace module, driver module target probe, external sensing clips, and interconne~ting system bus. The control/trace module includes
the trace control unit, emulation memory unit, break
control unit, and latch-up alarm unit. This module also
houses the emulation CPU, which directly connects to
the target emulation probe. The driver module houses
the serial interface circuit, control CPU, trace RAM, and
system memory.
Memory Mapping
The IE-78220 has a sophisticated memory mapping
scheme which allows access to up to 64K bytes of
internal memory, mappable in 128-byte units. The map
command allocates the first 64K bytes of memory space
of the emulation CPU either to the user system or to the
IE system. Even if development of the target system is
not complete, software debugging is still possible by
using this internal RAM in place of the target system
RAM. In addition to this emulation memory, the IE-78220
has an alternate high-speed memory for real-time emulation ofthe ILPD78224 internal ROM. 4K, 8K, 12K, or 16K
bytes of the high speed memory may be selected as
internal ROM.
9-5.6
The extended data memory space of the emulation CPU
(10000H to OFFFFFH) is always mapped to the user
system.. A memory extension command is available to
specify the high order four bits of the address of the
external extended data memory for use in the memory
display and break setting commands.
Emulation
The IE-78220 allows the following methods of program
emulation: real-time program execution with or without
breakpoints; real-time program execution for a specified
number of instructions; and single-step emulation for a
specified number of instructions or until a register condition is satisfied. Following termination of real-time
emulation or during single-step emulation, the registers,
stack pointer, program status word, and program
counter are displayed. Following a real-time emulation
break, the IE-78220 enters the single-step mode. Each
time the enter key is pressed during single-step emulation, the next smallest group of instructions is executed
and the.above data is displayed.
Emulation Accuracy
Once a breakpoint is reached, during emulation, the next
several instructions are executed before breaking actually occurs. This is known as slip. The exact number of
instructions slipped depends on the instructions in the
prefetch queue and whether the emulation chip is accessing internal ROM or external memory. Ports 4, 5., 6,
and the T related signals are identical to the devices.
However, other signals differ from the actual device due
to buffering and control gating.
NEe
IE·78220
Breakpoint Capabilities
Utilities
The break function can be divided into two types; break
register (physical and logical) breaks, and fail-safe
breaks. The user can set physical break registers to
cause emulation breaks upon address, data, status, or
loop count; instruction count; and parallel or sequential
fetch addresses or matching a condition on an external
sense clips. Combinations of these physical registers
can then be set to the logical break registers and
executed when running a break command. Fail-safe
break conditions occur unconditionally and include
manual break (ESC key or STP command in RUN N
mode), non-mapped memory break, write-protected
memory break, and SFR illegal access break.
The upload/download commands provide easy loading
and saving of hex files to and from a host computer. The
on-board assembler/disassembler allows the user to
avoid programming in machine cqde. The symbolic
debugging commands allow the use of labels instead of
absolute addresses. Full data manipulation capability is
available for the user with the change register/memory
commands. Initialization commands allow the user to
choose a clock source and a base number, and to define
the system memory map.
Trace Capabilities
The IE-78220 has a 2K x 44-bit trace RAM for storing
emulation data from each machine cycle. All fetchrelated or data access-related addresses, data, CPU
status signals and the eight external sense clips can be
traced for up to 2,047 machine cycles. There are two
types of trace displays: frame mode and instruction
mode. In the frame mode display, the frame number and
type, address and data information and external sense
clip status are displayed for each frame in the order in
which they are traced. In instruction mode, the executed
instructions are displayed with their frame number, instruction address, mnemonics and operands. A number
of trace display options are available. These include the
displaying of all trace data, the displaying of only frames
meeting trace data search conditions, the displaying of
five lines before or after frame meeting trace data search
condition, and the displaying of a specified number of
lines following detection of the specified break register
condition.
During real-time program emulation without breakpoints, the break condition can be used to stop the
tracer a specified number of frames after the break
condition is satisfied. At tracer stop time, the trace
System Mode
The IE-78220 can be connected to an IBM PC®, PC/XT®,
PC AT®, or MD-086FD-10 via an RS232C port and operated in system mode. By using the accompanying control software, the debugging capabilities ofthe IE-78220R are greatly increased. It has a macro command file
capability, allowing the user to execute a defined set of
commands automatically. The on-line help facility, the
history command, and the ability to store the console
display on disk ease debugging tasks. The uploading/
downloading capability can be utilized to upload and
download both object code and symbol information.
Other advantages are a verify command that compares
memory to hex files, an alter symbol command, and a
termination command for exiting to the operating
system.
Table 1 lists commands available for both the standalone and system modes of the IE-78220. Commands
listed in table 2 supplement table 1, but can be used only
in the system mode.
Table 1. Stand-Alone and System Mode
Commands
Command
Function
ASM
Line assemble command
-S-R?-.---C-h-a-ng-e-s/-d-is-pl-ay-s-b~re-a-kp-o-in-t-re-g-is-te-r-u-se-d-f-or--stopping real-time emulation
ClK
Clock command (internal or externaQ
hllffor ,::,?n ho \/iawon, now tr~~A ~nnrlitinnr;::. ~At_ and thA
----w-.-_-~-~;;--;-,~-,:;.-:~-~-;;-;_.-.:...;_;-•.:;-;_;~----...:------
trace restarted while the program continues to execute
in real-time.
DlY
Changes/displays trace frame count after trace trigger
has been detected
CMOS Protection
EXP
Changes/displays high-order 4 bits of an address of
the externally extended data memory
The latch-up alarm circuit is activated when any CMOS
IC in the driver module is in danger of being damaged by
improper voltage levels on the pins. A protection circuit
isolates the power supply to CMOS ICs and the message
"emulation CPU latchup !" is displayed.
LCD
loads hex format file into program memory
MAP
Memory mapping (64K bytes are accessible)
MAT
Performs arithmetic operation on an expression
MDR
Displays/modifies mode registers of emulator CPU
MEM
Memory manipulation command
9-57
ttiEC
IE-78220
Table 1. Stand-Alone and System Mode
Commands (cont)
Command
Function
MOD
Sets channel two mode setting
MOV
Moves memory content to different mapping area
PGM
Performs PG series programmer from IE
REG
Displays/modifies registers of emulator CPU
RES
Resets IE·78220 and/or emulator CPU
RGM
Changes/displays the implied or general register mode
for the display of registers in a disassembler list
RUN
Commences execution of emulator CPU in real-time
with options for break conditions
SAV
Saves contents of hex memory onto disk
SPR
Displays/modifies special registers of emulator CPU
STP
Stops emulation CPU during normal emulation
SUF
Base number specification (hex, octal, binary,
decimaQ
SYM
Clears, displays, or changes a symbol
TRG
Starts real-time tracer during normal emulation
TR?
Changes/displays trace conditions for either real-time
or single-step emulation
VRY
Compares the contents of an object file with memory
contents
Table 2. System Mode Only Commands
Command Function
COM
Equipment Supplied
The IE-78220-R package consists of the following:·
•
•
•
•
•
•
•
•
•
•
•
IE-78220 housing
IE~78220-R user's manuals
System disk for MD-086 series
System disk for IBM PC
AC power cable
AC ground adapter
Ground cable
Spare fuse
RS-232C interface cable
Two 16-pin component carriers
Warranty policy and registration card
Basic Specifications
• Weight: 10.5 kg
• External dimensions: length, 395 mm; width, 291 mm;
height, 217 mm
• Power consumption: 100 V AC, 50/60 Hz, 5 A
Environmental Characteristics
• Operating temperature range: 10 to +400 C
• Storage temperature range: -20 to + 450 C
• Ambient humidity range: 10 to 90% relative humidity
Documentation
Creates command file
DIR
Displays file names
EXT
Terminates IE-78220 operation
HIS
Displays last twenty commands
HLP
Displays command format
LST
Stores console display on disk
STR
Automatically executes macro command file
SYM
Loads and saves symbol file
For further information on the IE-78220 operation, NEC
Electronics Inc. provides the following manuals with the
in-circuit emulator:
• IE-78220 ItPD7822X In-Circuit Emulator Hardware
Manual
• IE-78220 ItPD7822X In-Circuit Emulator Software
Manual
• IE78220 Controller Program User's Manual
(IBM PC Based)
Additional copies may be obtained from NEC
Electronics Inc.
9-58
t¥EC
NEe Electronics Inc.
CC782XX
C Complier Package
for the pPD782XX Series
Description
Complier Options
The CC782XX C compiler package for the NEC
"PD782XX microcomputers consists of an Kernighan
and Ritchie compatible C cross compiler (CC210), relocatable assembler (RA210), linker (LK210) , librarian
(LB210), locater (LC210), and an emulator controller
program. The CC782XX C compiler package is available
for use on an MS-DOS. system with a free-standing
system as the target (embedded system).
The CC210 C compiler supports the following options
during compilation:
Features
o Kernighan and Ritchie standard·C
- unsigned, enum, typedef, interrupt keywords
- extern, auto, static, register keywords
o Legal C code verification integrated into the
compiler
o User-selectable and directable output files, list and
full cross reference files
o Macro definitions
o Branch optimization
o Conditional assembly
o Simple diagnostics
o Powerful librarian
Ordering Information
Part Number
System
Description
CCMSD-15DD-782XX
MS-DOS
5-1/4 Inch double-density floppy
diskette
C CROSS COMPILER (CC210)
Description
The CC210 C cross compiler converts standard C
source code into relocatable object modules. The same
relocatable object format is used for all relocatable
UUJ~CL III~tj ill Lilt; C t,,;UIII..,iiCliI ..,tu.;~a\:l"'J 1-~wal-~;gOO u: :.uY-i
it is generated (by an assembler or compiler).
•
•
•
•
•
•
•
•
Integer size control
Include file control
Defining/undefining constants
Prologue/epilogue control
Forced stack checking before each C function
Packed data allocation
Special relocatable data segment
Microprocessor type
C Library Functions
The CC210 C Compiler library includes most of the
important C library functions that apply to PROM-based
embedded systems. All library functions reside in the
supplied library files. Header files that declare the set of
library functions are also included.
The following character operation macros are available:
CHARACTER HANDLING < ctype.h >
Classification macros:
isalnum isalpha isascii iscntrl isdigit isgraph
islower isprint ispunct isspace isupper isxdigit
Conversion macros:
toascii to lower toupper
The following library functions are available:
NON-LOGICAL JUMPS < setjmp.h >
longjmp setjmp
FORMATTED INPUT/OUTPUT < stdio.h >
sscanf sprintf
__... _...... __ .1_... __
~I:~II=OA
I
11 ..... 11 ITIr:=Q
crta (startup for C programs)
cipt ~nterrupt system support)
chkstk (check for stack overflow)
MS-DOS Is a registered trademark of Microsoft Corporation.
50247
9-59
NEe
CC782XX
STRING HANDLING < string.h >
strcat strchr strcmp strcpy strcspn strlen strncat
strncmp strncpy strpbrk strrchr strspn strtok
MATHEMATICS
abs atoi atol
Memory Models
CC210 supports only the small memory model, since the
",PD782XX series can only address a maximum of 64K
bytes of program memory.
RELOCATABLE ASSEMBLER (RA210)
Description
RA210 translates a symbolic source module into a relocatable object module. The assembler verifies that each
instruction is valid for the target ",PD782XX microcomputer and produces a listing file and a relocatable object
module.
Character constants are translated into seven-bit ASCII
codes. Numeric constants may be specified as binary,
octal, decimal, or hexadecimal. Arithmetic expressions
may include the operators +, -, *, /, MOD, OR, AND,
NOT, XOR, EO, NE, LT, LE, GT, GE, SHR, SHL, LOv-.:
HIGH, ., (), and character constants.
Macro Capability
RA210 allows the definition of macro code sequences
with up to five parameters, LOCAL symbols, and special
repeated code sequences. The macro code sequence
differs from a subroutine call because the invocation of
a macro in the source code results in the direct replacement of the macro call with the defined code sequence.
Assembler Directives
Assembler directives give instructions to the assembler
but are not translated into machine code during assembly. Basic assembler directives include: storage definition and allocation directives (DB,ovv, DS, DBIT); symbol
directives (EOU, SET); location counter control directive
(ORG). Program control directives include: segment directives (CSEG, CSEG FIXED, CSEG CALLT, DSEG,
BSEG, ENDS); linkage directives (NAME, PUBLIC, EXTRN, EXTBIT); macro directives (MACRO, LOCAL,
REPT, IRp, ENDM, EXITM); automatic BR instruction
selection directive (BR) and assembly termination directive (END).
9-60
Assembler Controls
There are two types of assembler controls available for
RA210. Primary controls specified in the assembler
command line or at the beginning of the source module,
are as follows:
•
•
•
•
•
•
•
•
Processor selection
Output object file selection
Output list file selection
Listing format controls
Date specification
Optimization selection
V\brkfile drive selection
Symbol letter case selection
General controls, specified in the source program, are as
follows:
• Inclusion of other source files
• Page eject
• Generation/suppression of listing
• Listing subtitles
• Conditional assembly controls
LINKER (LK210)
LK210 combines multiple relocatable object modules
and library modules and converts them into a single
relocatable object module. The linker resolves PUBLIC/
EXTRN references between modules, creating a relocatable output module that contains both relocatable object
code and symbol information. The linker will also search
library files for required modules to resolve external
references. The linker controls for LK210 can be specified in either the command line or in a parameter file.
Linker options include specifying the date and the absolute load module name, specifying the creation of a list
file containing a link map, and specifying the letter case
for symbols.
LOCATER (LC210)
LC210 converts a relocatable object module with no
external references into an ASCII hexadecimal format
absolute object code file. The locater outputs two files:
an absolute load file in an expanded seven-bit ASCII
hexadecimal format, which can be downloaded to a
PROM programmer and a symbol file for the symbolic
debugger. Locater options include specifying the starting address and order for code/data/stack segments,
specifying areas of memory to be protected from being
assigned, and specifying the creation of a map file with
symbol tables.
~EC
CC782XX
LIBRARIAN (LB210)
LICENSE AGREEMENT
LB210 allows commonly used relocatable object modules to be stored in one file and linked into multiple
programs, greatly increasing programming efficiency.
When a library file is included in the input of the linker, the
linker extracts from the library file only those modules
required to resolve external references and links them
with the other modules.
CC782XX is $old under terms of a license agreement,
which is included with purchased copies of the assembler. The accompanying card must be completed and
returned to NEC Electronics Inc. to register the license.
Software updates are provided free to registered users
for one year.
The librarian creates and maintains library files containing relocatable object modules. Modules can be added
to or deleted from a library file, or the contents of the
library file can be listed.
DOCUMENTATION
EMULATOR CONTROLLER PROGRAM
Absolute object files produced by the CC782XX C compiler package can be debugged using the appropriate
NEC stand-alone in-circuit emulator. NEC emulator controller programs allow you to communicate with the
emulator through an RS-232C serial line. An emulator
controller program is available to run on the IBM P~,
PCJXT~, or PC A~ under MS-DOS. The emulator controller program provides the following features:
•
•
•
•
•
•
•
•
For further information on source program formats, C
compiler and assembler operation, and actual program
examples, NEC Electronics Inc. provides the following
documentation:
• CC78XXX C Compiler IlPD78XXX C Compiler
User's Manual
• CC78XXX C Compiler IlPD78XXX Relocatable
Assembler User's Manual
This documentation is provided with purchased copies
of the package. Additional copies may be obtained from
NEC Electronics Inc.
Uploading/downloading of object/symbol files
Symbolic debugging capability
Complete emulator control from host console
On-line help facilities
Macro command file capabilities
Host system directory and file display
Disk storage of debug session
Storage of last 20 commands for recall
II
IBM PC, PCJXT, and PC AT are registered trademarks of International
Business Machines Corporation.
9-61
CC782XX
9-62
NEe
NEe
NEe Electronics Inc.
Description
The RA78K2 relocatable assembler package converts
symbolic source code for the p.PD782XX eight-bit singlechip microcomputers into executable absolute address
object code. The RA78K2 relocatable assembler package
consists of four separate programs: assembler
(RA78K2), linker (LK78K2), locater (LC78K2), and librarian (LB78K2).
RA78K2 translates a symbolic source module into a
relocatable object module. The assembler verifies that
each instruction assembled is valid for the target microcomputer specified at assembly time and produces a
listing file and a relocatable object module.
LK78K2 combines multiple relocatable object modules
and library modules and converts them into a single
relocatable object module. LC78K2 converts a relocatable object module with no external references into an
ASCII hexadecimal format absolute object code file.
LB78K2 allows commonly used relocatable object modules to be stored in one file and linked into multiple
programs, greatly increasing programming efficiency.
When a library file is Included In the Input ofthe linker, the
linker extraCts from the library file only those modules
required to resolve external references and links them
with the other modules.
Features
[J
Absolute address object code output
User selectable and directable output files
Macro definitions
Branch optimization
Conditional assembly
Extensive error reporting
Powerful librarian
[J
RlInA IInriAr MS-DOSQl) Anri VAXQl)NMSQl) nnArAtinn
[J
[J
<
[J
[J
[J
[J
systems
Ms.DOS Is a registered trademark.of Microsoft Corporation.
V/JIX and VMS are registered trademarks of Digital Equipment
Corporation.
50191
RA7eK2
Relocatable Assembler PaCkage
for the pPD782XX Series
Ordering Information
Put Number
System
eeacrlptlon
RA78K2'[)52
MS-DOS
5·1/4 Inch doubl.denslty floppy
diskette
RA78K2·WT1
V/llXlVMS
9-treck 1600 BPI magnetic tape
Program Syntax
An RA78K2 source module consists of a series of code,
data, or bit segments. Each segment consists of statements composed of up to four fields: symbol, mnemonic,
operand, and comment.
The symbol field may contain a label whose value Is the
Instruction or data address or a name which represents
an Instruction address, data addresS; or constant. The
mnemonic field may contain an instruction or assembler
directive. The operand field contains the data or expression for the specified instruction or directive. The comment field allows explanatory comments to be added to
a program.
Character constants are translated into seven-bit ASCII
codes. Numeric constants may be specified as binary.
octal, decimal, or hexadecimal. Arithmetic expressions
may Include the operators +, -, *, /, MOD, OR, AND,
NOT, XOR, EO, NE, LT, LE, GT, GE, SHR, SHL, LO'll(
HIGH, ., ( ), and character constants.
Macro Definition
RA78K2 allows the definition of macro code sequences
with up to five parameters, LOCAL symbols, and special
repeated code sequences. The macro code sequence is
different than a subroutine call in that the invocation of a
macro in the source code results in the direct replacement of the macro call with the defined code sequence.
Assembler Directives
RsSerTIOler ciireClives give immuciions to ine assemoler
but are not translated into machine code during assembly. Basic assembler directives include: storage definition and allocation directives (DB, rm. OS, OBIT); symbol directives (EOU, SET); and the location counter
control directive ORG. Program control directives include: segment directives (CSEG, DSEG, BSEG, ENDS);
linkage directives (NAME, PUBLIC, EXTRN, EXTBIT);
macro directives (MACRO, LOCAL, REPT, IRP, EXITM,
ENDM); automatic BR instruction directive (BR); and
assembly termination directive (END).
NEe
RA78K2
Assembler Controls
TheRA78K2 assembler (figure 1) has two types of controis. The primary controls, which are specified in the
assembler command line or at the beginning of the
source module, are as follows:
•
•
•
•
•
•
Processor selection
Output object creation selection
Output list file selection
listing format controls
Optimization selection
V\brk file drive specification
The general controls, specified in the source program,
are as follows:
• Inclusion of other source files
• Page eject
• Generation/suppression of listing
• Listing titles
• Conditional assembly controls
The listing file may contain the complete assembly
listing or only lines with errors, and a symbol or crossreference table. The symbol table shows all defined
symbols in alphabetical order, their types, attributes,
and the values Initially assigned to them.
The cross-reference table contains all defined symbols
and the numbers of all statements that refer to them. The
object file contains the relocatable object module. The
format of this module is an NEC proprietary relocatable
object module format.
If the optimization option is chosen, the assembler will
generate the most efficient code by converting, wherever possible, three-byte absolute branches into twobyte relative branches.
Figure 1. RelOClltable Assembler Functional
Diagram
System
Console
Source
Module
File
Include
File
~
~
RA78K2
Relocatable
Assembler
~
1-
~
~
Relocatable
Object
Module
File
Assembler
List File
Temporary
Work Files
49NA.,5B2A
Linker
The LK78K2 linker (figure 2) combines several relocatable object modules, resolving PUBLIC/EXTRN references between modules, to create a relocatable output
module. This output module contains both relocatable
object code and symbol information. The linker will also
search library files for required modules to resolve external references. The linker controls for LK78K2 can be
specified in either the command line or in a parameter
file. The programmer can specify the date, the absolute
load module name, and control the creation of a list file
containing a link map.
Figure 2. Unker Functional Diagram
Library
File 1
...
Relocalable
Object
Module
File 1
Library
Filen
...
I
System
Console
Relocatable
Object
Module
File n
I
~
LK78K2
Linker
Relocatable
Object
Module
File
I--
Temporary
Work Files
Linker
List File
49NR-5S4A
9-64
NEe
RA78K2
Locater
Emulator Controller Program
The LC78K2 locater (figure 3), outputs two files: an
absolute load file in an expanded hexadecimal format
seven-bit ASCII, which can be downloaded to a PROM
programmer; and a symbol file for the symbolic debugger. The programmer can specify the starting address
and order for code/data/stack segments, and protect
areas of memory from being assigned. The programmer
can specify that a map file with symbol tables be
created.
Absolute object files produced by the RA78K2 relocatable assembler package can be debugged by using the
appropriate NEC stand-alone in-circuit emulator. NEC
emulator controller programs allows communication
with the emulator through an RS-232C serial line. An
emulator controller program can run on the IBM P~,
PC/XTI!!, or PC ATI!! under MS-DOS and is provided with
the in-circuit emulator at no extra charge.
These emulator controller programs provide the following features:
Figure 3. LOCIIfer Functlolllli Dlsgrllm
•
•
•
•
•
•
•
•
Relocatable
Object
Module
File
*
LC78K2
Locater
~
Symbol
File for
Debugger
B
Map File
Uploading and downloading of object and symbol files
Symbolic debugging capability
Complete emulator control from host console
On-line help facilities
Macro command file capabilities
Host system directory and file display
Disk storage of debug session
Storage of last 20 commands for recall
LIcense Agreement
RA78K2 is sold under terms of a license agreement,
which is incl uded with the assembler. The accompanying
card must be completed and returned to NEC Electronics Inc. to register the license. Software updates are
provided free to registered users.
~
Hexadecimal
Object
Code File
Documentation
* With no external references
49NR-5S6A
Librarian
The LB78K2 librarian creates and maintains library files
containing relocatable object modules. This reduces the
number of files to be linked together by storing several
modules in a single file. This provides an easy way to link
frequently used modules into programs. Modules can be
01"41"10.1"1 +n ,",01.0.+.01'1 f ..,,1"'n "',. ...01"'1010,..0.1'4 \A,;+h;n a IIh,.oru fila
-------------. -- --1------- ----- .. -----------"
the contents of the library file can be listed.
I"U'
-------~--.
Operating Environment
The NEC RA78K2 package can run under a variety of
operating systems. A version is available to run on a
MS-DOS system with one or more disk drives and at
least 128K of system memory. Another version is available to run on a Digital Equipment Corporation VAX
computer under the VMS (Version 4.1 or later) operating
system.
For further information on source program formats,
assembler operation, and actual program examples,
NEC Electronics Inc. provides the following documentation:
• RA78K2!,PD782XX Relocatable Assembler Package
Language Manual
• RA78K2!,PD782XX Relocatable Assembler Package
Operation Manual (MS-DOS)
• RA78K2!,PD782XX Relocatable Assembler Package
Ooeration Manual NMS)
This documentation is provided with purchased copies
of the package. Additional copies may be obtained from
NEC Electronics Inc.
IBM PC, PC/XT, and PC AT are registered trademarks of International
Business Machines Corporation.
9-65
III
•
RA78K2
9-66
NEe
ttlEC
NEC Electronics Inc.
Description
The ST78K2 structured assembler preprocessor is a
companion program to the RA78K2 relocatable assembler for the NEC /-IPD782XX series of microcomputers.
ST78K2 converts a source code file containing structured assembly statements into a pure assembly language source file, which can then be assembled with
RA78K2.
ST78K2 converts a structured assembly statement into
one or more /-IPD782XX assembly language instructions
which perform the desired operation. Since ST78K2 only
converts the structured assembly statements and does
not convert /-IPD782XX assembly language instructions,
a structured source program can include a combination
of ILPD782XX structured assembly statements and assembly language.
ST78K2 enables the assembly language programmer to
use some of the structures and syntax of higher-level
languages such as the C language. This improves program readability and reliability, and increases programmer productivity.
Features
o Control structures for conditions, looping, and
switch-case
o Preprocessor directives for conditional code
generation
DC-like representation of comparison operations
DC-like representation of assignment/arithmetic
operations
o Increment and decrement operators
o Allow use of allILPD782XX mnemonics, registers,
and features
o Runs under MS-DOS® and VAX®NMS® operating
c.'.~+ol"\."""~
-J -~- . .. -
Ordering Information
The ST78K2 structured assembler preprocessor is included in the following software package at no cost:
ST78K2
Structured Assembler Preprocessor
for the pPD782XX Series
Structured Assembler Preprocessor Functional
Diagram
RA78K2
I'PD782XX
Relocatable
Assembler
49NR-588A
Summary Of Structured Language
A line of source code for ST78K2 contains either a
structured assembly statement or a /-IPD782XX assembly
language statement. ILPD782XX assembly language
statements (p,PD782XX instructions, RA78K2 directives,
or RA78K2 controls) pass through ST78K2 without
change.
Structured assembly statements consist of preprocessor
directives, assignment statements, and control statements. These statements are entered one per line, and
are terminated by a line feed character. An optional
comment may follow a semicolon at the end of the
statement; all text following a semicolon is ignored by
ST78K2.
Preprocessor directives cause ST78K2 to include or omit
oortions of code. Assianment statements cause ST78K2
to generate one or more /-IPD782XX assembly language
instructions to alter the contents of a register or variable.
Control statements cause ST78K2 to generate the necessary instructions to test conditions and change control flow based on those conditions .
• RA78K2 /-IPD782XX Relocatable Assembler Package
MS-DOS is a registered trademark of Microsoft Corporation.
VIV< and VMS are registered trademarks of Digital Equipment
Corporation.
50253
9-67
NEe
ST78K2,
.
Preprocessor Directives
Examples:
8T78K2 preprocessor directives set and test variables,
allowing conditional processing of code; include external files; and map instructions to ",PD782XX CALT table
reference instructions. Table 1 lists the preprocessor
directives and their functions.
DATA1 = B(A)
Table 1. Preprocessor Directives and Functions
Directive
Function
#define NAME value
Defines the variable NAME, set to the
supplied value.
, #ifdefABC
, < statements>
#else
< statements>
#endif
#include "filename"
#defcallt @LABEL
CALL lIabel
#endcallt
If ABC has been defined as above, or on
the command line with the -0 option, the
first set of statements is processed and
the second set ignored; If ABC has not
been defined, or defined as zero, the first
set of statements Is Ignored and the
second set is processed.
The named file is read from disk and
proC'essed as If Included In the source.
Whenever the Instruction "CALL lIabel" is
encountered In the source program, It Is
replaced by "CALLT [@LABELJ". The
label must be defined In the CALLT table.
Assignment, Increment, And Decrement
Statements
8T78K2 provides the ability to represent an assignment,
or, an Elssignment with an ,arithmetic operation, in C
language syntax:
destination < assign-op > source
The assignment operators allow either simple assignment, or the combination of an assignment with an
arithmetic operation on the source and destination.
Examples:
;Move contents of B register to A
A = B
A + = [HL] ;Add contents of memory at HL to A,
;store in A
,
'
Wl'\erean assignment requires an intermediate register
tO"hold the value being assigned, the register is designated by naming it in parentheses following the assignment, operation. ,
9-68
BC & = HL (XA)
"~
;8tore contents of B into memory at
;DATA 1, using A as temporary
;storage
;and BC with HL, store in BC,
;use XA as teinp
The increment and decrement operators (+
operate on a single operand.
+
and -)
Table 2 lists the assignment operators with examples
and functions.
Table 2. .ignment Operators with ExlImples
and Functions "
Operator
Example
Function
A=B
A-B
<->
A < - >B
Contents of A and B are exchanged
+=
A += B
A-A+B
A-= B
A--A,-B
*=
AX*= B
AX-AX*B
1=
AX/= C
AX-AX/C
&=
A&= B
A- A & B Ooglcal AND)
1=
AI= B
A - A 1BOoglcal OR)
A'= B
A - A ' B Ooglcal XOR)
»=
A»=B
(CY-Ao.An-1-An, ... ,Amax-O) x B times
«=
A«=B
(CY-A max,An +1-An, .. .Ao-O) x B times
++
A++
A-A+1
A-
A-A-1
Control Statements
Control statements ,allow conditions to be tested. Based
on the results of the test, blocks of code are allowed to
be executed or skipped. Reserved words in the control
statement define the start and end of bloCks of code; 'and
expressions to be evaluated.
NEe
ST78K2
Table 5. Expressions and Examples
Example:
if (A = = [HLJ)
PS = B (A)
A = [HL]
;The condition is tested
;If A equals the content of memory
;at HL, this code is executed
else
A + = [HL]
A- = B
PS = A
;Otherwise this code is executed
endif
Table 3 shows the control statements and their functions.
Table 3. Control Statement Directives
Expression
Example
Primary
(A)
Term
(A <= B)
Term && Term
((AC)) (logical AND)
Term II Term
( (A= = C) II (A= = B) ) (logicaIOR)
A primary value for a variable expression is a register
name or defined symbol. A term consists of two primary
values compared with a binary operator. Table 6 lists the
supported binary operators and their meanings.
Table 6. Binary Operators
Binary Operator
Meaning
Control Statement
Function
if - elseif - else - end if
Test variable expressions
1=
Not Equal
iLbit - elseiLbit - else - endif
Test bit expressions
>
Greater Than
switch - case - default - ends
Select based on variable
>
for - next
Loop, test variable
<
while - endw
Equals
<
=
Greater Than or Equal To
Less Than
=
Less Than or Equal To
repeat - until
Loop, test bit
repeat - unti Lbit
Bit expressions test individual bits of registers, ports, or
memory locations. Table 7 shows the acceptable forms
of bit expressions.
break
Exit control block
continue
Skip to top of block
Table 7. Bit Expressions and Examples
goto LABEL
Branch to label
Bit Expression
Variable And Bit Expressions
Variable expressions for tests consist of a single value,
comparison between two variables, or a logical combination of comparisons. Bit expressions test individual
bits. Table 4 shows examples of comparisons.
Table 4. Examples of Variable Expression
Comparisons
Example
BiLprimary
(P2.1 )
IBiLprimary
(ICY)
BiLprimary && BiLprimary
(A.O && CY)
BiLprimary II BiLprimary
(P2.211 CY)
A BiLprimary can be either a reserved word bit identifier, such as a bit of a register or port (P2.1, Cy), or a bit
definition symbol (SBO EQU P2.2).
ST78K2 Operation And Controls
Comparison
Meaning
if ( A \
True if A is non-zero
if (A < B)
True if A is less than B
ST7RK? i~ invoked bv soecifvino the name of the source
file, followed by optional controls.
if ((A < B) && (A > C))
True if A is less than B and greater than C
Example:
iLbit ( P3.2 )
True if bit 2 of P3 is 1
iLbit (IP3.2)
True if bit 2 of P3 is 0
The allowable expressions using variables are shown in
table S.
C>ST78K2 ABC.SRC -DXYZ
=
3
ST78K2 reads the specified source file and produces an
output assembly language file, which can be input to
RA78K2. The output file contains all lines provided in the
input source file, plus those generated by ST78K2. Lines
containing no statements for the structured assembler
are passed through unchanged. Lines with structured
9-69
tVEC
ST78K2
assembly statements are placed in the output preceded
by a semicolon. RA78K2 treats these lines as comments.
These commented lines are then followed by the code
generated by ST78K2.
The controls for ST78K2 are specified in the preprocessor command iine or in a parameter file invoked in the
command line. Table 8 lists the ST78K2 preprocessor
controls and functions.
Table 8. ST78K2 Preprocessor Controls
Control
Function
-OIliename
Specify name of output assembly source file
-Ffllename
Specify name of parameter file to be read
-Efilename
Specify name of error listing file
-Dsymbol[=value]
Define a symbol (like #define hi code)
-I[d:][directory]
Define path for include file
-WTn1,n2,n3
Define TAB settings for generated code
-SCcharacter
Defines word symbol last character
The -0 option allows the name of the output file to be
specified. If not specified, the output file name defaults
to. the name of the input source file with the extension
.ASM.
The -F option allows a parameter file to be specified,
which will be read by ST78K2. This parameter file can
contain a list of controls to be given to ST78K2, instead
of or in addition to those specified on the command line.
The -E option specifies the name of the error listing file.
The error file contains the file name, error number,
description of error and the line containing the error. If
the -E option is not specified, the error file name defaults
to the name of the input source file with the extension
.ESl:
The -0 control .allows a symbol to be defined on the
command line, with an optional value provided. If a
symbol is defined but no value specified, the value
defaults to 1. If the source file contains a. #define
directive which specifies a variable with the same name
as the -0 control, the value on the command line will
override the value in the #define directive.
9-70
The -I control specifies a drive or directory other than the
current drive and directory to search for include files.
The -WT control specifies the number of TAB characters
to insert before labels, instruction mnernonics, and instruction operands generated by ST78K2. This allows
clear separation of assembly language instructions
coded in the source file from those generated by
ST78K2.
The -SCcharacter control specifies the character used
as the last character in a word symbol. The character
must be a letter of the alphabet or the @, _ or ? This
allows ST78K2 to distingush between word and byte
operations. Symbols which end in this character are
treated as word symbols and will generate a word
operation (ie. MOVW). If the -SC option is not specified,
ST78K2 assumes that a symbol ending with the character "P" or "p" is a word symbol.
Documentation
For further information on source program formats,
preprocessor operation, and actual program examples,
NEC Electronics Inc. provides the following documentation.
• St78K2/ST78K3 "PD782xx/"P0783xx Structured Assembler Preprocessor User's Manual.
This documentation is provided with purchased copies
of the RA78K2 !-'P0782xx relocatable assembler package. Additional copies can be obtained from NEC Electronics Inc.
NEe
DDK·78310A
Evaluation Board
for the pPD78310A
NEe Electronics Inc.
Description
The DDK-78310A is an evaluation board for the NEC
I4PD78310A eight/sixteen-bit, single-chip microcomputer. The DDK-78310A provides maximum flexibility
when evaluating and designing with the I4PD78310A. The
DDK-78310A features 32K bytes of ROM, 32K bytes of
RAM, RS-232C communication port, and a powerful
monitor program. The DDK-78310A board is provided on
an IBM PCI!> compatible card and includes a playpen
area for building application specific hardware.
A copy of RA78K3, the I4PD7831X/I4PD7832X relocatable
assembler for use on an IBM PCI!>, PC/XTI!>, PC ATiI>, or
compatible host computer, is shipped with each DDK78310A to allow development of code for evaluation
purposes. Also included with the DDK-7831OA is a emulator controller program for the IBM PC, a small demonstration program in ROM, the source code for the monitor, and a complete set of documentation. This total
package provides a fast, efficient means for evaluating
the capabilities of the I4PD78310A for the user's
application.
IBM PC, PCIXT, and PC AT are registered trademarks of International
Business Machines Corporation.
Features
o I4PD78310A evaluation board with power supply
o On-board memory:
- ROM: 32K-byte
- RAM: 32K-byte
o Powerful on-board debug monitor:
-
Real-time and single-step operation
Display/change memory and internal registers
Disassembler
Multiple software breakpoints
User program download capability
o RS-232C serial interface for terminal or host
computer
o Playpen area for user circuitry
o IBM PC card form factor
o RA78K3I4PD7831X/I4PD7832X relocatable assembler
package
o Host control software for IBM PC, PC/XT, PC/AT, or
compatibles
o Demonstration program in ROM
o Source code for DDK-78310A monitor included
Ordering Information
Part Number
Description
DDK-78310A
IIPD78310A evaluation board
DDK-78310A Evaluation Board
9-71
t-IEC
DDK·78310A
Hardware Description
The DDK-78310A features 64K bytes of on-board memory. The lower 32K bytes are dedicated to ROM and
include a powerful monitor program and user area. The
upper 32K bytes are dedicated to RAM and include a user
area for program downloading (7DFFH bytes), a monitor
work area (7CFH bytes), and the internal RAM area of the
ILPD78310A (1 F FH bytes).
The ILPD78310A serial port is connected by an RS-232C
driver/receiver to a DB25 pin connector. A reset switch
allows the DDK-78310A to return to the power-up state
without losing the contents ofthe external RAM. An NMI
switch returns control from a user program to the monitor while saving the user's state.
An AC/DC converter provides power for the DDK-78310A
in the stand-alone mode. The DDK-78310A can also
receive power directly from the IBM PC bus.
program can be downloaded into user RAM and executed either in real-time with or without breakpoints or
executed one instruction at a time. During singlestepping, the registers, program counter, and the next
instruction to be executed are displayed.
The DDK-7831OA has eight address breakpoints. The
user can set up to seven of these prior to program
execution. The eighth breakpoint is reserved for use in
the GO command line. The monitor sets a breakpoint by
substituting a software break instruction (opcode 5EH)
for an instruction in the user's program.
Additional commands are available to:
•
•
•
•
•
Software Description
The DDK-78310A has a powerful interactive monitor to
facilitate software design using the ILPD7831OA. A user
Display, fill, change, or move memory
Display or change registers
Disassemble memory
Display the command list
Place the interrupt vector and call table areas at OH or
8000H
Table 1 contains a complete list of the DDK-78310A
monitor commands and their syntax.
Block Diagram
A
As-A14
EPROM
OH-7FFFH
Address
Latch
Ao- A 7
ADo-AD7
U
r-
'---
RAM
8000H-FDFFH t---
IlPD78310A
-WR
-
RD
A15
Control
Logic
RFSH
TxD
RxD
R8-232C
Interface
49NR-6528
9-72
NEe
DDK·78310A
Emulator Controller Program
Table 1. Command Ust
Command
Function
Syntax
?/H
Show this menu of commands
?
B
Show or set breakpoints
B[bp,addr)
C
Change memory byte
C[addr)[,val)
D
Display memory
D[addr)[,addr)
F
Fill memory
Faddr,addr,val
G
Go (to breakpoint)
Gladdr)[,addr)
Move interrupt vectors to/from
8000H
Absolute address object files produced by the RA78K3
relocatable assembler package can be downloaded to
the DDK-7831OA using the NEC emulator controller program, supplied with the DDK-78310A. This controller
program allows files to be downloaded from an IBM PC
or compatible to the DDK-7831OA board. In addition to
downloading files, the NEC emulator controller program
provides these additional capabilities:
K
Kill breakpoint(s)
K[bp)
L
Load a HEX file on to the DDK78310A
L[addr)
•
•
•
•
Complete DDK-78310A control from host console
On-line help facilities
Host system directory and file display
Storage of debug session on disk
M
Move a block of memory
Maddr,addr,addr
License Agreement
R
Display/change registers
R[reg)
T
Trace execution
T[addr)
U
Unassemble a block of memory
U[addr)[,addr)
RA78K3 is provided under the terms of a license agreement included with the DDK-78310A board. The accompanying card must be completed and returned to NEC
Electronics Inc. to register the license. Software updates
are provided to registered users.
Notes:
= 16-bit address in hexadecimal format.
= breakpoint number, 1-7.
reg = general purpose or control register mnemonic.
val = eight-bit value in hexadecimal notation.
[) = optional parameter.
(1) addr
(2) bp
Documentation
(3)
For further information on the DDK-7831OA evaluation
board, NEC Electronics Inc. provides the following
manual:
(4)
(5)
RA78K3 Relocatable Assembler Package
The RA78K3 relocatable assembler package converts
symbolic source code for the JLPD7831X and JLPD7832X
eight/sixteen-bit, single-chip microcomputers into executable absolute address object code. A copy of RA 78K3
is included with the DDK-7831OA to use with an IBM PC,
PC/XT, PC AT, or compatible. Evaluation programs for
the JLPD78310A can be written easily with this software.
• DDK-78310A JLPD78310A Evaluation Board User's
Manual
This manual is provided with the board. Additional copies can be obtained from NEC Electronics Inc.
9-73
DDK-78310A
9-74
NEe
!\fEe
NEe Electronics Inc.
EB·78320
Evaluation Board
for the pPD78320
Description
CJ
Four parallel or sequential breakpoints
The EB-7832o. is an evaluation board for the NEC
~PD7832o. eight-bit, single-chip microcomputer. The EB78320. provides a simple way to evaluate the capabilities
of the ~PD7832o. in an application without having to
build a prototype. If it is necessary to connect the
EB-7832o. directly to a target system, the IE-78320 emulator probes can be purchased separately.
CJ
Display/change memory and general registers
The EB-7832o. features 32K bytes of static RAM for
evaluation programs, an RS-232C communication port,
and a powerful on-board monitor. Evaluation programs
can be downloaded from a host computer or created
directly on the board using the line assembler. Programs
can be executed in real-time with or without breakpoints
or one instruction at a time. Commands are available to
display or change memory, general or special function
registers, and to disassemble code.
CJ
Display/change special function registers
CJ
User program upload/download capability
CJ
Symbolic debugging support
CJ
Line assembler and disassembler
CJ
RS-232C serial interface for host computer
CJ
Host control software for IBM PC, PC/XT, PC AT, or
compatibles
CJ
Connection to a target system using in-circuit
emulator probes
IBM PC, PCIXT and PC AT are registered trademarks of International
Business Machines Corporation.
Ordering Information
A controller program controls the EB-7832o. directly from
the console of an IBM PC@, PC/XT@, PC AT@, or compatible host computer using an RS-232C serial interface.
Part Number
Description
EB-78320-PC
I4PD78320 evaluation board OBM PC Based)
EP-78320GJ-R
Emulator probe for 74-pin QFP (optlonaQ
Features
EP-78320l-R
Emulator probe for 5S-pln PLCC package
(optionaQ
CJ ~PD7832o.
evaluation board
CJ
32K bytes of static RAM
CJ
Real-time and single-step execution
EB-78320
9-75
NEe
EB·78320
Block Diagram
portsO'2,t:==============================================================================~~
3, y,8r
Ae-A15 r~======Ir==================A=dd=r=es=s=B=U:S========================~~~:;':-~
Buffer 1-----1'~1
PAO-PAy
",PDY1P301
t---" Manager
Emulator
.---~/1
IlPD78320
Turbo Access
Probe
PBO-PBY~======~~~==================================::"l
Address/Data Bus
Buffer
49NR-6568
9-76
ttlEC
Hardware Description
The EB-78320 features 32K bytes of on-board static
RAM. It can be used without a target system or can be
directly connected to a target system using one of the
IE-78320 emulation probes. When the EB-78320 is used
without a target system, 28K bytes of RAM are available
for downloading programs; the on-board monitor uses
the remaining 4K bytes as a work area. When the EB78320 is connected to a target system, 52K bytes of the
,",PD78320's 64K-byte code space are mapped to the
target system.
The EB-78320 can be used to evaluate the instruction
execution speed of the ,",PD78322's internal ROM by
installing a ,",PD71 P301 turbo access manager in the
footprint on the board. When using the ,",PD71 P301, the
evaluation program is placed in the EPROM of the
,",PD71P301; the emulation function of the EB-78320
board is not available.
The serial port for the host computer connection consists of a ,",PD71051 USART, an RS-232C driver/receiver
and a DB25 pin connector. A reset switch returns the
EB-78320 to the power-up state. An ac/dc converter is
shipped with each EB-78320 board for convenience. The
EB-78320 can also be powered from batteries using the
enclosed battery holder.
Emulation
The EB-78320 allows the following methods of program
emulation: real-time program execution with or without
breakpoints; real-time program execution for a specified
number of instructions; single-step emulation for a specified number of instructions or until a register condition
is satisfied. The registers, stack pointer, program status
word, and program counter are displayed following termination of real-time emulation or during single-step
emulation. The EB-78320 enters the single-step mode
following a real-time emulation break. When the enter
key is pressed during single-step emulation, the next
instruction is executed, and the executed address, instruction mnemonic and above data are displayed.
EB·78320
address breakpoint. If anyone of the four parallel breakpoints is satisfied, a break in emulation occurs. For a
sequential breakpoint, each address must be encountered in the specified order before a break in emulation
can occur. These breakpoints are set by substituting a
software break instruction for an instruction in the user's
program.
Software Description
The EB-78320 is controlled from the console of an IBM
PC, PC/XT, PC AT, or compatible computer with an
RS-232C interface using the enclosed emulator controller program. This program provides commands for
downloading and uploading object code and symbol
files to and from the EB-78320. A line assembler and
disassembler avoid debugging in machine Code. The
symbolic debugging commands allow the use of labels
instead of absolute addresses. Full data manipulation
capability is available with the change register/memory
commands. Initialization commands choose a base
number and register mnemonics.
The EB-78320 program also has macro command file
capability, so the user can execute a defined set of
commands automatically. The on-line help facility, history command, and ability to store the console display
on disk or send ino a printer ease debugging tasks.
Table 1 lists the available EB-78320 commands. These
are a subset of the IE-78320 commands.
Table 1. Command Ust
Command Function
ASM
Une assemble command
BRS
Sets instruction address breakpoints
COM
Creates command file
DAS
Disassemble command
DIR
Displays disk directory
EXT
Terminates EB-78320 controller program operation
HIS
Displays last twenty commands
Emulation Accuracy
When the emulation probe is connected to a target
system, ports 0, 2, 3, 7, and 8, the watchdog timer output
and the A/D converter related signals are identical to the
device. However, all other signals differ from the actual
device because of buffering and control gating.
Breakpoint Capabilities
The EB-78320 has four parallel instruction address
breakpoints or up to a four-level sequential instruction
LOD
Loads object code and symbol files
LST
Sends console display to disk or printer
MAP
Dlslays memory map
MAT
Evaluates arithmetic expression
MDR
Dlsplaystmodlfles "PD78320 mode registers
MEM
Memory manipulation command
REG
Displays/modifies "PD78320 registers
RES
Resets only the "PD78320
9-77
EB·78320
Table 1. Command Usl (conI)
Command Function
RUN
Executes programs In slngle-step mode or In real-time
with options for break conditions
SAY
Saves contents of memory onlo disk
SPR
Displays/modifies IIPD78320 special function registers
STR
Automatically executes command string file
SUF
Base number specification (hex, octal, binary,
declmaQ
SYM
Adds/deleleS/dlsplays/changeS/ioads/saves symbols
VRY
Compares contents of an object file with memory
Equipment Supplied
The EB-78320-PC package consists of the following:
• EB-78320 evaluation board
• EB-78320 user's manual
• .System disk for IBM PC
• AC/DC converter power supply
• Battery holder and mounting hardware
• Warranty policy and registration card
Documentation
For further information on EB-78320 operation, NEC
Electronics Inc. provides the following manual with the
board:
• EB-78320 ~PD78320 Evaluation Board User's Manual
Additional copies may be obtained from NEC
Electronics Inc.
9-78
NEe
NEe
IE-78310A
In-CI reult Emulator
NEe Electronics Inc.
Description
The IE-7831OA is an in-circuit emulator providing both
hardware emulation and software debugging capabilities for the NEC "PD78310A and "PD78312A single-chip
microcomputers. Real-time and single-step emulation, in
conjunction with sophisticated memory mapping features, breakpoints, and trace capabilities, create a powerful debugging environment. A line. assembler/disassembler, full register and memory control, symbolic
debugging, and complete upload/download capabilities
simplify the task of debugging hardware and software.
Features
C
C
C
C
Real-time and single-step emulation capability
User-specified breakpoints
- logical OR of up to four sets of break conditions
Opcode fetch count
.
External sense clips condition
Emulation time
Logical AND of addresses, data values, CPU
controls, and loop count
Sophisticated trace capabilities
- Instruction, frame, or macro service display
- 2K x 44-bit trace buffer
- Address, control, data, and port trace features
Powerful memory mapping feature .
- 64K bytes of RAM mappable in 256-byte blocks
C
C
C
C
C
C
- Up to 16K bytes of high-speed internal RAM for
"PD78312A ROM emulation
Une assembler/disassembler
Symbolic debugging
- 2,000 symbols available
-IEEE-796 bus memory expansion slot for 32K
additional symbols
CMOS latch-up warning and protection
Eight external sense clips
SeH-dlagnostic command
Stand-alone mode or system mode with host control
program
Ordering Information
Part Humber
Delcrlptlon
1E-7831OA-R
In-clrcult emulator for !,PD78310AJ!,PD78312A
EP-78310CW
Emulator probe for 54·pln lihrlnk DIP
package(shlpped wHh 1E-78310A)
EP-78310GQ
Emulator probe for 54·pln QUIP
package(shlpped with 1E-78310A)
EP-78310L
Emulator probe for 58-pin· PLeC package
EP-78310GF
Emulator probe for 54-pin QFP package
(optlona~
(optlona~
IE·7831OA wlth.Emulator Probe
9-79
NEe
IE·78310A
Hardware Description
Emulation
As the IE-7831OA block diagram shows, the IE-78310A
hardware consists of a control/trace module, driver module, target probe, external sense clips, and interconnecting system bus. The control/trace module includes the
trace control unit, emulation memory unit, selfdiagnostic unit, break control unit, and latch-up alarm
unit. This module also houses the emulation CPU, which
is directly connected to the target emulation probe. The
driver module houses the serial interface circuit, control
CPU, trace RAM, and system memory.
Memory Mapping
The IE-78310A allows the following methods of program
emulation: real-time program execution with or without
breakpoints; real-time program execution for a specified
number of instructions; and single-step emulation for a
specified number of instructions or until a register conditionis satisfied. Following termination of real-time
emulation or during single-step emulation, the registers,
stack pointer, program status word, and program
counter are displayed. Following a real-time emulation
break, the IE-78310A enters the single-step mode. Each
time the space bar is pressed during Single-step emulation, the next smallest group of instructions Is executed
and the above data is displayed.
The IE-78310A has a sophisticated memory mapping
scheme which allows access of up t064K bytes of
internal memory, mappable in 256-byte units. The map
command allocates the memory space of the emulation
CPU either to the user system or tothe IE system. Even
if development of the target system is not complete,
software debugging is still possible by using this internal RAM in place of the target system RAM. In addition to
this emulation memory, the IE-78310A has an alternate
high-speed memory for real-time emulation of the
"PD78312A internal ROM. 0, 4K, 8K, or 16K bytes of the
high speed memory can be selected as internal ROM.
Once a breakpoint is reached during emulation, the next
few instructions are executed before breaking actually
occurs. This Is known as Slip. The exact number of
instructions Slipped depends on the instructions in the
prefetch queue and whether the emulation chip is accessing internal ROM or external memory. Ports 0, 2, 3,
the AID, and the refresh signals are identical to the
"PD78310AI"PD78312A. However, other signals differ
from the actual device due to buffering and control
gating.
Emulation Accuracy
Block Diagram
Emulator Probe
IE-78310A
RS-232C
Host
:.:.:.::::::::::~ ::::::::::::::~:::::::.:.:.y.:,:""N···
Control I
Trace
Module
Target Probe
IE System Bus
1........I
Driver
Module
\.
8 External Sense Clips
49NR-581B
9-80
NEe
IE·78310A
Self-Diagnostics
Utilities
A self-diagnostic command monitors the IE-7831OA for
error-free operation. It checks alternate RAM, user RAM,
address/data bus, the 64-pin probe, the emulation chip
(including all port lines), and both the EANpp and reset
lines.
The upload/download commands provide easy loading
and saving of hex files to and from a host computer. The
on-board assembler/disassembler allows the user to
avoid programming in machine code. The symbolic
debugging commands allow the use of labels instead of
absolute addresses. Full data manipulation capability is
available for the user with the change register/memory
commands. Initialization commands allow the user to
choose a clock source and a base number, and to define
the system memory map.
Breakpoint Capabilities
The break function can be divided into three types: break
register (physical and logical) breaks, command breaks,
and fail-safe breaks. The user sets physical break registers to cause emulation breaks upon address, data,
status or loop count; instruction count; timer (1 to
65,535 ms range) or matching a set of conditions on the
eight external sense clips. Combinations of these physical registers can then be set to the logical break registers and executed when running a break command.
Command breaks are set in the emulation command and
can cause emulation breaks after a specified number of
steps are executed or a register condition is satisfied.
Fail-safe break conditions occur unconditionally and
include manual break (ESC key), non-mapped memory
break, write-protected memory break, and reset break.
Trace Capabilities
The IE-78310A has a 2K x 44-blt trace RAM for storing
emulation data from each machine cycle. Given a userspecified range, trace can be performed upon address,
data, frame status Signals (RD, WR, MSRD, MSWR, OP,
M1), ports PO to P5, and the eight external sense clips
for up to 2,047 machine cycles. There are three types of
trace displays: frame mode, macro service mode, and
instruction mode. In frame mode display, the frame
number and type, address and data information and port
and external sense clip status are displayed for each
frame in the order In which they are traced. In instruction
mode, the executed instructions are displayed with their
frame number, instruction address, mnemonics and operands. In macro service mode, reads/writes of the
macro service routines are added into the instruction
mode display.
System Mode
The IE-78310A can be connected to an IBM P~,
PC/XT$, PC ATe, or MD-086FD-10 by an. RS232C part
and operated in system mode. By using the accompanying control software, the debugging capabilities of the
IE-78310A-R are greatly increased. It has a macro command file capability, allowing the user to execute a
defined set of commands automatically. The on-line help
facility, the history command, and the ability to store the
console display on disk ease debugging tasks. The
uploading/downloading capability can be utilized to upload and download both object code and symbol information. Other advantages are a verify command that
compares memory to hex files, an alter symbol command, and a termination command for exiting to the
operating system.
Table 1 lists commands available for both the standalone and system modes of the IE-78310A Commands
listed in table 2 supplement table 1, but can only be used
in the system mode.
IBM PC, PC/XT, and PC AT are registered trademarks of International
Business Machines Corporation.
CMOS Protection
The latch-up alarm circuit is activated when any CMOS
IC in the driver module is in danger of being damaged by
improper voltage levels on the pins. A protection circuit
isolates the power supply to CMOS ICs and the message
"emulation CPU latchup I" is displayed.
9-81
ttlEC
IE·78310A
Table 1. Stand-Alone and System Mode
COtnIIIIInds
Command Function
ASM
Une assemble command
BR?
ChangeS/displays breakpoint register used for
stopping reel-time emulation
ClK
Clock command (Internal or external)
DAS
Disassemble command
DIG
Self-dlagnostlc command
lOD
Loads hex format file Into program memory
MAP
Memory mapping (64K bytes are accessible)
MDR
DisplayS/modifies mode registers of emulator CPU
MEM
Memory manipulation command
MOD
Sets channel two mode setting
MOV
Moves memory content to different mapping area
REG
DisplayS/modifies registers of emulator CPU
RES
Resets IE-78310A and/or emulator CPU
RUN
Commences execution of emulator CPU In real-time
with options for break conditions
• Target probe unit for 64-pin QUIP socket
(EP-78310GQ)
• External sense clips
• IE-78310A-R user's manuals
• System disk for MD-086 series
• System disk for IBM PC
• AC power cable
• AC ground adapter
• Ground cable
• Spare fuse
• RS-232C interface cable
• Two 16-pin component carriers
• Warranty policy and registration card
Basic Specifications
• Weight: 10.5 kg
• External dimensions: length, 395 mm; width, 291 mm;
height, 217 mm
• Power consumption: 100 V AC, 50/60 Hz, 5 A
SAV
Saves contents of hex memory onto disk
Environmental Characteristics
SPR
Displays/modifies special registers of emulator CPU
SUF
Base number specification (hex, octal, binary,
declmaQ
• Operating temperature range: 10 to + 40°C
• Storage temperature range: -20 to + 45°C
• Ambient humidity range: 10 to 90% relative humidity
SYM
Clears, displays, or chimges a symbol
TR?
ChangeS/displays trace conditions for either real-time
or single-step emulation
VFf(
Compares memory and hex files
Table 2. System Mode Only Commands
Command Function
COM
Creates command file
DIR
Displays filenames
EXT
Terminates IE-78310A controller program operation
HIS
Displays last twenty commands
HLP
Displays command format
lST
Stores console display on disk
STR
Automatically executes macro command file
SYM
loads and saves symbol file
Equipment Supplied
The IE-78310A-R package consists of the following:
• IE-78310A housing
• Target probe cable
• Target probe unit for 64-pin shrink DIP socket
(EP-78310CW)
9-82
Documentation
For further information on IE-78310A operation, NEC
Electronics Inc. provides the following manuals with the
in-circuit emulator:
• IE-78310A "PD7831XA In-Circuit Emulator Hardware
User's Manual
• IE-78310A "PD7831XA In-Circuit Emulator Software
User's Manual
• IE78310A Controller Manual (IBM PC Based)
• IE-78310A Sample Session (IBM PC Based)
Additional copies
Electronics Inc.
may
be
obtained
from
NEC
NEe
IE-78320
In-Circuit Emulator
NEC Electronics Inc.
Description
The IE-78320 is an in-circuit emulator providing both
hardware emulation and software debugging capabilities for the NEC I'PD78320 and I'PD78322 single-chip
microcomputers. Real-time and single-step emulation,
combined with sophisticated memory mapping features,
breakpoints and trace capabilities, create a powerful
debugging environment. A line assembler and disassembler, full register and memory control, symbolic debugging, and complete upload/download capabilities simplify the task of debugging hardware and software.
Features
o Sophisticated trace capabilities
- Traces main and internal CPU bus activity or
main bus and external sense clip activity
- 2K x 44-bit trace buffer
- Instruction, instruction with macro service, or
frame display
- Trace search capability
- Trace display before or after specified break
o Powerful memory mapping
- Up to 56K bytes of RAM for internal ROM, turbo
access manager memory, or off-chip memory
emulation
- Mappable in 8K-byte blocks
o Real-time and non-real-time emulation
o Emulation timer and instruction counter
o User-specified breakpoints
o Line assembler/disassembler
-
Logical OR of up to four sets of. break conditions
Executed instruction count
External sense clip number one condition
Parallel or sequential instruction address break
Logical AND of addresses, data values, CPU
status, loop count, and external sense clip data
for either the main or internal CPU bus
MS·DOS is a registered trademark of Microsoft Corporation.
IBM PC, PC/XT, and PC AT are registered trademarks of International
Business Machines Corporation.
o Symbolic debugging
- 7,000 symbols available
o CMOS latch-up warning and protection
o Eight external sense clips on emulator probe
o Stand-alone or system mode with host control
program
o Centronics parallel interface for optional high-speed
download
IE-78320
50281
9-83
NEe
IE·78320
Block Diagram
Emulator Probe
IE-78320-R
RS-232C
Host
"'" """"""""'.
C~:~ I
A
IE System Bus -"
J~~~~[il-.
---CLJI
_-.:.Ta:::.rge!!:::..:tP...:,;ro:,::b::,.e
Module
.J
I
8 Extemal Sense Clips
49NR-661B
Ordering Information
Emulation
Part Number
Description
IE-78320-R
In-circuit emulator for I'PD78320 and "PD78322
EP-78320L-R
Emulator probe for 68-pin PLCC package
(optionaQ
The IE-78320 allows the following methods of program
emulation: real-time program execution with or without
breakpoints; non-real-time program execution for a
specified number of instructions or until a register condition is satisfied. During non-real-time program execution, the display and trace of procedures at a nesting
level deeper than the routine from which execution was
started is optional. During non-real-time emulation, each
executed instruction is displayed with its frame number
and bus cycle status, instruction address, data, label,
mnemonic, and operands. Display of the registers is
optional and can be specified by the user.
Emulator probe for 74-pin QFP (optional)
Hardware Description
. The IE-78320 hardware consists of a control/trace modul,e, driver module, target probe, external sense clips,
and the interconnecting system bus. The control/trace
module includes the trace control unit, emulation memory unit, break control unit, and the latch-up alarm unit.
The control/trace module also houses the emulation
CPU, which is connected directly to the target emulation
probe. The driver module houses the serial and parallel
interface circuits, trace RAM, control CPU, and system
memory.
Memory Mapping
The IE-78320 incorporates a sophisticated memory
mapping scheme which allows the 64K bytes of microcomputer memory space to be mapped to internal or
external memory in 8K-byte units. Even if development of
the target system is not complete, software debugging is
possible by using internal RAM in place of the target
system RAM or ROM.
The first 56K bytes of memory space can be emulated in
the in-circuit emulator as internal on-chip ROM, turbo
access manager (p.PD71 P301) memory, off-chip memory
(RAM) or write-protected off-chip memory (ROM); it can
be mapped to the user system; it can be left unmapped.
The remaining 8K bytes of memory space excluding the
on-chip internal RAM and special function register area
can be mapped to the user system or be left unmapped.
9-84
Following termination of real-time program emulation,
the elapsed emulation time, number of instructions executed, and the registers (general registers, stack pointer,
program counter, and program status word) are displayed and the IE-78320 enters single-step emulation
mode. Following termination of non-real-time program
emulation, the IE-78320 enters the single-step emulation
mode. Each time the enter key is pressed during singlestep emulation, the next instruction is executed and its
frame number and bus cycle status, instruction address,
data, label, mnemonic, operands, and registers are displayed.
Emulation Accuracy
All port-related and A/D converter related signals are
taken directly from the emulation chip. These signals
function identically to the devices. To improve signal
quality a 100 {) resistor is inserted in series on each
port-related line. Other signals differ from the actual
device due to buffering and control gating.
NEe
IE·78320
Breakpoint Capabilities
The IE-78320 has four types of break functions: event
detection breaks, command breaks, fail-safe breaks, and
manual breaks. Event detection breaks can be set to
stop emulation on: address, data, status, external data,
or loop count for main bus activity (addresses OH to
OFDFFH and OFFDOH to OFFDFH); address, status,
external data, or loop count for CPU internal bus activity
(addresses OFEOOH to OFFCFH and OFFEOH to
OFFFFH); matching a condition on external sense clip
number one; executed instruction count; four parallel
instruction address breakpoints or up to a four-level
sequential instruction address breakpoint. Combinations of the above conditions can be specified as a break
event and enabled for real-time emulation.
Once a break event associated with main bus activity or
CPU internal bus activity is reached during emulation,
several instructions are executed before emulation is
stopped. The exact number of instructions slipped (slippage) depends on the instructions in the prefetch queue
and if the emulation CPU is accessing internal ROM or
external memory. Slippage does not occur on parallel or
sequential instruction address break events.
Command breaks can be specified on the command line
of the non-real-time emulation command. Non-real-time
emulation can be ,stopped when an internal register
condition is satisfied or a specified number of instructions have been executed.
Fail-safe break conditions oCcur unconditionally and
include a non-map access break, write protected break
and turbo access break. A non-map access break occurs
when an attempt is made to access a non-mapped
memory area or non-existing special function register
(SFR). A write-protected break occurs when an attempt
is made to write to read-only emulation memory or SFR.
A turbo access break occurs when a continuous fetch
operation is performed on any off-Chip emulation memory.
A manual break occurs when the ESC key is input during
non-real-time execution, or the STP or reset command is
.
.'
IIIJJUL UUIIIIY It::al-Lllllt:: CAt::l..oULIVII.
Trace Capabilities
The IE-78320 has a 2K x 44-bit trace RAM for storing
emulation data from each machine cycle. The addresses,
data, and CPU status of the main bus are always traced
along with either the addresses and status of the CPU
internal bus or the external sense clips as selected by
the user. There are three types of trace displays: frame
mode, instruction mode, and instruction mode with
macro service. In the frame mode display, the frame
number and type, address and data information and
external sense clip status are displayed for each frame in
the order in which they are traced. In instruction mode,
the executed instructions are displayed with their frame
number, bus cycle status, instruction address, data,
external sense clip data, label, mnemonics, and operands. In the instruction mode with macro service, macro
service reads and writes are added to the instruction
mode display.
A number of trace display options are available. These
include the display of all trace data, the display of all
frames related to branch processing and the occurrence
of an interrupt, the display of only the frames meeting the
trace data search conditions, the display of five lines
before or after the frame meeting the trace data search
condition and the display of a specified number of lines
following the detection of the specified break condition.
During real-time program execution without breakpoints, the break condition can be used to stop the
tracer a specified number of frames after the break
condition is satisfied. At tracer stop time, the trace
buffer can be viewed, new trace conditions set, and the
tracer restarted while the program continues to execute
in real-time.
CMOS Protection
The latch-up warning circuit is activated when a CMOS
latch-up condition occurs in the emulation CPU or any of
its peripheral CMOS devices. A protection circuit isolates the power supply to the emulation CPU, its peripheral CMOS devices and all TTL devices driving the
CMOS devices and the message "Emulation CPU
Latchup !" is displayed.
Utilities
The upload/download commands provide easy loading
and saving of hex files to and from a host computer. The
on-board assembler/disassembler allows the user to
avoid debugging in machine code. The symbolic debugaina commands allow the use of labels instead of absoiute addresses. Full data manipulation commands are
available for memory, the general registers, and special
function registers. Initialization commands allow the
userto choose a clock source, a base number, to specify
the serial parameters for channel two and to define the
system memory map. Other commands are available to
evaluate an arithmetic expression,to output an external
trigger signal when an specified event has occurred, and
to control an NEC PG-series PROM programmer.
9-85
NEe
IE"78320
System Mode
The IE-78320 can be connected to an IBM PCCU>, PC/XTCU>,
PC ATCU>, or PC-9OO0 series by an RS232C port and
operated in system mode. By using the accompanying
control software, the debugging capabilities of the IE78320 are greatly increased. The controller program has
a macro .command file-capability, allowing the user to
execute a defined set of commands automatically. The
on-line help facility, the history command display, and
the ability to send the console display to a printer or to
the disk ease debugging tasks. The uploading and downloading capability can be utilized to upload and download both object code and symbol information.
MS-DOSCU> programs can be executed without terminating the controller program. Other advantages are a verify
command that compares memory to hex files, an alter
symbol command, and a termination command for exitingto the operating system.
Table 1 lists commands available for both the standalone and system modes of the IE-78320. Commands.
listed in table 2 supplement table 1, but can only be used
in the system mode.
Table ,_ Stand-Alone and System Mode
Commands
Command
Function
ASM
Assembles source code line by line
BRA
. Specifies break events In program or internal data
memory area
Table 1. Stand-Alone and System Mode
Commands {confJ
Command
Function
MOV
Moves memory content to different mapping area
OUT
Outputs external trigger
PGM
Controls PG series programmer from 1E-78320
REG
Displays/modifies registers of emulator CPU
RES
Resets the IE-78320 and/or emulator CPU
RU N
Executes programs In reahtlme or non-real-time
SAV
Saves contents of memory onto disk
SF R
DisplaYS/modifies special function registers of
emulator CPU
SPR
Displays/modifies special registers of emulator CPU
STP
Stops emulation CPU during
SYM
ACids/deletes/dlsplays/changes/loads/saveS symbols
rea~tlme
emulation
TRD
DisplaYs trace data
TRF
Sets condition for trace buffer search
TRG
Starts reill-time tracer during real-time emulation
TRM
Selects CPU internal bus or external sense clips for
tracing
TRP
Displays/moves trace buffer pointer
VRY
Compares contents of an object file with memory
Table 2. System Mode Only Commands
Command
Function
COM
Creates command file
Displays disk directory
BRD
Selects external signal as break !lvent
DIR
BRE
Sets a number of Instructions executed as break
event
DOS
Aliows execution of MS-DOS programs
EXT
Terminates IE-78320 controlier program operation
BRM
Enables break events
BRS
Sets paraliel or sequential instruction address
breakpoints
HLP
BRn
ORs various break events together (n = 0 to 3)
lOD
loads object code and symbol files
ClK
Selects internal or external clOck
lST
Sends console display to disk or printer
CNT
Displays elapsed emulation time and number of
Instructions executed
SAV
Saves contents of memory and the debug
envirllnment onto disk
DAS
Disassembles program memory
STR
Automatically executes command string file
D lV
lOD
- Changes/displays number of frames to be traced after
trace trigger has been detected
loads hex format file into program memory
MAP
Displays/changes memory map
MAT
.Evaluates arithmetic expression
MDR
Displays/modifies mode registers of emulator CPU
MEM
Dlsplays/ changes/fills/moves/exchange/ searches/
verifies/tests memory
MOD
Sets channel two serial parameters
9-86
HIS
Displays last twenty commands
. Displays format of commands
NEe
IE·78320
Equipment Supplied
Environmental Characteristics
The IE-78320-R package consists of the following:
• Operating temperature range: 10 to + 40°C
• Storage temperature range: 20 to + 45°C
• Ambient humidity range: 10 to 90% relative humidity
•
•
•
•
•
•
•
•
•
•
IE-78320-R housing
IE-78320 user's manuals
PC-9800 series system disk
IBM PC system disk
AC power cable
AC ground adapter
Ground cable
Spare fuse
RS-232C interface cable
Warranty policy and registration card
Basic Specifications
• Weight: 8.5 kg
• External dimensions:
length, 370 mm; width, 160 mm;
height, 283 mm
• Power source: 100 V AC, 50/60 Hz
Documentation
For further information on IE-78320 operation, NEC
Electronics Inc. provides the following manuals with the
in-circuit emulator:
• IE-78320 jJ.PD78320/322 In-Circuit Emulator Hardware
Manual
• IE-78320 jJ.PD78320/322 In-Circuit Emulator Software
Manual
Additional copies may be obtained from NEC
Electronics Inc.
9-87
IE·78320
ttiEC
NEe
NEG Electronics Inc.
CC7831X
C Compiler Package
for the pPD7831X/pPD7831XA Series
Description
Compiler Options
The CC7831X C compiler package for the NEC
~PD7831X1~PD7831XA microcomputers consists of a
Kernighan and Ritchie compatible C cross compiler
(CC310), relocatable assembler (RA310), linker (LK310),
librarian (LB310), locater (LC310), and an emulator controller program. The CC7831X C compiler package is
available for use on an MS-DOS® system with a freestanding system as target (embedded system).
The CC310 C compiler supports the following options
during compilation:
Features
o Kernighan and Ritchie standard C
- unsigned, enum, typedef, interrupt keywords
- extern, auto, static, register keywords
o Legal C code verification integrated into the
compiler
o User-selectable and directable output files, list and
full cross reference files
o Macro definitions
•
•
•
•
•
•
•
•
Integer size control
Include file control
Defining/undefining constants
Local symbol information included in object files
Prologue/epilogue control
Forced stack checking before each C function
Packed data allocation
Special relocatable data segment
C Library Functions
The CC310 C compiler library includes most of the
important C library functions that apply to PROM based
embedded systems. AU Jibrary functions reside in the
supplied library files. Header files that declare the set of
library functions are also included.
o Branch optimization
The following character operation macros are available:
o Conditional assembly
CHARACTER HANDLING < ctype.h >
o Simple diagnostics
Classification Macros:
o Powerful librarian
isalnum isalpha isascii iscntrl isdigit isgraph
islower isprint ispunct isspace isupper isxdigit
Ordering Information
Part Number
System
Descr I ptlon
CCMSD-15DD-7831X
MS-DOS
5-1/4 inch double-density floppy
diskette
C CROSS COMPILER (CC310)
The CC310 C cross compiler converts standard C source
code into relocatable object modules. The same relocatable object format is used for all relocatable object files
.a.1-.~
toascii tolower toupper
The following library functions are available:
NON-LOGICAL JUMPS
longjmp setjmp
Description
!_
Conversion Macros:
FORMATTED INPUT/OUTPUT
sscanf sprintf
.,.,...,...,...". ...... 1"""',,... .... .,: ............. ............ ,.." .. ~+ ...... .....
................ " ..... ::::t ..... W'::::II_._ ..... _ .... _ ......... ::J- •• -.-~--
,... _ _ _ _ :1 ....... ..- ......... 1",..,.."...
II. La ..... _
.............. ,., •• """
(by an assembler or compiler).
MS-DOS is a registered trademark of Microsoft Corporation.
50258
9-89
NEe
CC7831X
GENERAL UTILITIES
crtO (startup for C programs)
cipt (interrupt system support)
chkstk (check for stack overflow)
STRING HANDLING < string.h >
strcat strchr strcmp strcpy strcspn strlen strncat
strncmp strncpy strpbrk strrchr strspn strtok
MATHEMATICS
abs atoi atol
Memory Models
CC310 supports only the small memory model, since the
ILPD7831X/ILPD7831XA can only address a maximum of
64K bytes of program memory.
RELOCATABLE ASSEMBLER (RA310)
Description
RA310 translates a symbolic source module into a relo~
catable object module. The assembler verifies that each
instruction is valid for the target ILPD7831 X, ILPD7831XA,
or ILPD7832X microcomputer and produces a listing file
and a relocatable object module.
Character constants are translated into seven-bit ASCII
codes. Numeric constants may be specified as binary,
octal, decimal, or hexadecimal. Arithmetic expressions
may include the operators +, -, *,.t, MOD, OR, AND,
NOT, XOR, EO, NE, LT, LE, GT, GE, SHR, SHL, LOW,
HIGH, ., 0, and character constants.
Macro Capability
RA310 allows the definition of macro code sequences
with up to five parameters, LOCAL symbols, and special
repeated code sequences. The macro code sequence
differs from a subroutine call because the invocation of
a macro in the source code results in the direct replacement of the macro call with the defined code sequence.
Assembler Directives
Assembler directives give instructions to the assembler
but are not translated into machine code during assembly. Basic assembler directives include: storage definition and allocation directives (DB,DW, DS, OBIT); symbol
directives (EOU, SET); location counter control directive
(ORG). Program control directives include: segment directives (CSEG, CSEG FIXED, CSEG CALLTO; CSEG
CALLT1, DSEG, BSEG, ENDS); linkage directives
(NAME, PUBLIC, EXTRN, EXTBIT); register assignment
directives (RSS); macro directives (MACRO, LOCAL,
9-90
REPT, IRP, ENDM, EXITM); automatic BR instruction
selection directive (BR) and assembly termination directive (END).
Assembler Controls
There are two types of assembler controls available for
RA310. The primary controls specified in the assembler
command line or at the beginning of the source module
are as follows:
•
•
•
•
•
•
•
•
Processor selection
Output object file selection
Output list file selection
Listing format controls
Date specification
Optimization selection
Workfile drive selection
Symbol letter case selection
General controls, specified in the source program, are as
follows:
• Inclusion of other source files
•
•
•
•
Page eject
Generation/suppression of listing
Listing subtitles
Conditional assembly controls
LINKER (LK310)
LK310 combines multiple relocatable object modules
and library modules and converts them into a single
relocatable object module. The linker resolves PUBLICI
EXTRN references between modules, creating a relocatable output module that contains both relocatable object
code and symbol information. The linker wi II also search
library files for required modules to resolve external
references. The linker controls for LK310 may be specified in either the command line or in a parameter file.
Linker options .incl ude specifyingthe date and the absolute load module name, specifying the creation of a list
file containing a link map, and specifying the letter case
for symbols.
LOCATER (LC310)
LC310 converts a relocatable object module with no
external references into an ASCII hexadecimal format
absolute object code file. The locater outputs two files:
an absolute load file in an expanded seven-bit ASCII
hexadecimal format, which can be downloaded to a
PROM programmer and a symbol file for the symbolic
debugger. Locater options include specifying the starting address and order for code/data/stack segments,
NEe
specifying areas of memory to be protected from being
assigned, and specifying the creation of a map file with
symbol tables.
LIBRARIAN (LB310)
LB310 allows commonly used relocatable object modules to be stored in one file and linked into multiple
programs, greatly increasing programming efficiency.
When a library file is included in the input of the linker, the
linker extracts from the library file only those modules
required to resolve external references and links them
with the other modules.
The librarian creates and maintains library files containing relocatable object modules. Modules can be added
to or deleted from a library file, or the contents of the
library file can be listed.
EMULATOR CONTROLLER PROGRAM
Absolute object files produced by the CC7831X C compiler package can be debugged using an NEC standalone in-circuit emulator. An NEC emulator controller
program allows you to communicate with the emulator
through an RS-232C serial line. The emulator controller
program is available to run on the IBM PC®, PCf)
Classification Macros:
lsalnum isalpha isascii iscntrl Isdigit isgraph
islower isprint ispunct isspace isupper isxdigit
Conversion Macros:
toascii tolower toupper
The following library functions are available:
NON-LOGICAL JUMPS < setjmp.h >
longjmp setjmp
FORMATTED INPUT/OUTPUT < stdio,h >
sscanf sprintf
GENERAL UTILITIES
crta (startup for C programs)
cipt (interrupt system support)
chkstk (check for stack overflow)
STRING HANDLING
strcat strchr strcmp strcpy strcspn strlen strncat
strncmp strncpy strpbrk strrchr strspn strtok
MATHEMATICS
abs atoi atol
~7
9-93
t\'EC
CC7832X
Memory Models
CC320 supports only the small memory model since the
"PD7832X can only address a maximum of 64K bytes of
program memory.
RELOCATABLE ASSEMBLER (RA310)
Description
RA310 translates a symbolic source module into a relocatable object module. The assembler verifies that each
Instruction I~ valid for the target "PD7831X, "PD7831XA,
or "PD7832X microcomputer and produces a listing file
and a relocatable object module.
.
Character constants are translated Into seven-bit ASCII
codes. Numeric constants may be specified as binary,
octal, decimal, or hexadecimal. Arithmetic expressions
may Include the operators +, -, *, /, MOD, OA, AND,
NOT, XOR, EQ, NE, LT, LE, GT, GE, SHA, SHL, LOVl(
HIGH, .,0; and charac;ter constants.
Macro Capability
RA310 allows the definition of ,macro code sequences
with up to five parameters, LOCAL symbols, and special
repeated code sequences. The macro code sequence
differs from a subroutine call because the invocation of
a macro In the source code results Ih the direct replacement of the macro call with the defined code sequence.
Assembler Directives
•
•
•
•
•
•
Output list file selection
Wstlng format controls
Date specification
Optimization selection
V\brkfile drive selection
Symbol letter case selection
General controls, specified in the source program, are as
follows:
•. Inclusion of other source files
• Page eject
• Generation/suppression of listing
• Wsting subtitles
• Conditional assembly controls
LINKER (LK310)
LK310 combines multlplereloeatable object modules
and library modules and converts them into a single
relocatable object module. The linker resolves PUBLICI
EXTAN references between modules, creating a'relocatable output module that contains both relocatable object
code and symbol information. The linker will also search
library files for required modules to resolve external
references. The linker controls for LK310 may be specified In either the command line or in a parameter file.
Linker options include specifying the date and the absolute load module name, specifying the creation of a list
file containing a link map, and specifying the letter case
for symbols.
Assembler directives give instructions to the assembler
but are not translated Into machine code during assembly. Basic assembler directives Include: storage definition and allocation directives (DB,DV\( DS, DBIT); symbol
directives (EQU, SET)i location counter control directive
(OAG). Program control directives include: segment directives (CSEG, CSEG FIXED, CSEG CALLTO, CSEG
CALlT1, DSEG, BSEG, ENDS); linkage directives
(NAME, PUBLIC, EXTAN, EXTBIT); register assignment
directives (ASS); macro directives (MACAO" LOCAL,
AEPT, lAp, ENDM, EXITM); automatic BA instruction
selection directive (BA) and assembly termination directive (END).
LC310 converts a relocatable object module with no
external references into an ASCII hexadecimal format
absolute object code file. The locater outputs two flies:
an absolute load file in an expanded .seven-blt ASCII
hexadecimal format, which can be downloaded to a
PAOM programmer and a symbol file for the symboliC
debugger: Locater options include specifying the starting address and order for code/data/stack segments,
specifying areas of memory to be protected from being
assigned, and specifying the creation of a map file with
symbol tables.
Assembler Controls
LIBRARIAN (LB310)
There are two types of assembler controls available for
RA310.. The primary controls, specified in the al!S9mbler
command line or a~ the beginning of the source module
are as follows:
LB310 allows commonly used relocatable object modules to be stored in one file and linked into multiple
programs, greatly increasing programming efficiency.
When a library file is included In the Input of the linker, the
linker extracts from the library file only those modules
required to resolve external references and links them
with the other modules.
• Processor selection
• Output object file selection
9-94
LOCATER (LC310)
~EC
The librarian creates and maintains library files containing relocatable object modules. Modules can be added
to or deleted from a library file, or the contents of the
library file can be listed.
EMULATOR CONTROLLER PROGRAM
Absolute object files produced by the CC7832X C compiler package can be debugged using an NEC standalone in-circuit emulator. An NEC emulator controller
program allows you to communicate with the emulator
through an RS-232C serial line. The emulator controller
program is available to run on the IBM P~, PC/XTI!l, or
PC ATI!l under MS-DOS. It provides the following features:
•
•
•
•
•
•
•
•
Uploading/downloading of object/symbol files
Symbolic debugging capability
Complete emulator control from host console
On-line help facilities
Macro command file capabilities
Host system directory and file display
Storage of debug session on disk
Storage of last 20 commands for recall
CC7832X
LICENSE AGREEMENT
CC7832X is sold under terms of a license agreement,
which is included with purchased copies. The accompanying card must be completed and returned to NEC
Electronics Inc. to register the license. Software updates
are provided free to registered users for one year.
IBM PC, PC/XT, and PC AT are trademarks of International BUSiness
Machines Corporation.
DOCUMENTATION
For further. information on source program formats, C
compiler and assembler operation, and actual program
examples, NEC Electronics Inc. provides the following
documentation:
• CC78XXX C Compiler ~PD78XXX C Compiler User's
Manual
• CC78XXX C Compiler ~PD78XXX Relocatable Assembler User's Manual
This documentation is provided with purchased copies
of the package. Additional copies may be obtained from
NEC Electronics Inc.
9-95
007832)(
9-96
fttlEC
NEe
NEe Electronics Inc.
RA78K3
Relocatable Assembler Package
for the pPD7831X/7832X
Description
Ordering Information
The RA78K3 relocatable assembler package converts
symbolic source code for the "PD7831X and "PD7832X
eight/sixteen-bit, single-chip microcomputers into executable absolute address object code. The RA78K3 reloeatable assembler package consists of four separate
programs: assembler (RA78K3), linker (LK78K3), locater
(LC78K3); and librarian (LB78K3).
Part Number System
RA78K3 translates a symbolic source module into a
relocatable object module. The assembler verifies that
each instruction assembled is valid for the target microcomputer specified at assembly time and produces a
listing file and a relocatable object module.
LK78K3 combines multiple relocatable object and library
modules and converts them to a single relocatable
object module. LC78K3 converts a relocatable object
module with no external references into an ASCII hexadecimal format absolute object code file.
LB 78K3 allows commonly used relocatable object modules to be stored in one file and linked into multiple
programs, greatly increasing programming efficiency.
When a library file is included in the input ofthe linker, the
linker extracts from the library file only those modules
required to resolve external references and links them
with the other modules.
Features
CJ
CJ
CJ
CJ
CJ
CJ
CJ
W
Absolute address object code output
User-selectable and directable output files
Macro definitions
Branch optimization
Conditional assembly
Extensive error reporting
Powerful librarian
Muns unaer ivIi)-uu~~ ana -vM~iviVi~;;' upefi:llill\:j
systems
RA78K3-D52
Description
MS·DOS 5-1/4 Inch double·denslty floppy diskette
RA78K3·WT1 V/lI)(/VMS 9-track 1600 BPI magnetic tape
Program Syntax
An RA78K3 source module consists of a series of code,
data, or bit segments. Each segment consists of statements composed of up to four fields: symbol, mnemonic,
operand, and comment.
The symbol field may contain a label, whose value is the
instruction or data address, or a name which represents
an instruction address, data address, or constant. The
mnemonic field may contain an instruction or assembler
directive. The operand field' contains the data or expression for the specified instruction or directive. The comment field allows explanatory comments to be added to
a program.
Character constants are translated into seven~bit ASCII
codes. Numeric constants may be specified as binary,
octal, decimal, or hexadecimal. Arithmetic expressions
may include the operators +, -, *, /, MOD, OR, AND,
NOT, XOR,EQ, NE, LT, LE, GT, GE, SHR, SHL, LO~
HIGH, ., (), and character constants.
Macro Definition
RA78K3 allows the definition of macro code sequences
with up to five parameters, LOCAL symbols, and special
repeated code sequences. The macro code sequence
differs from a subroutine call: the invocation of a macro
in the source code results in the direct replacement oft he
macro call with the defined code sequence.
MS·DOS Is a registered trademark of Microsoft Corporation.
V/lIX and VMS are registered trademarks of Digital Equipment
Corporation.
50251
9-97
Ir.tI
~
t\'EC
RA78K3
Assembler Directives
Assembler directives give instructions to the assembler.
They are not translated into machine code during assembly. Basic assembler directives include: storage definition and allocation directives (DB, rJN, OS, OBIT); symbol directives (EQU, SET); and location counter control
directive (ORG). Program control directives include:
segment directives (CSEG, OSEG, BSEG, ENDS); linkage directives (NAME, PUBLIC, EXTRN, EXTBIT); macro
directives (MACRO, LOCAL, REPT, IRP, EXITM, ENOM);
automatic BR instruction directive (BR); register assignment directive (RSS); .and assembly termination directive (END).
Figure 1. Relocstsble Assembler Functlonsl
Dillgrsm
System
Console
Assembler Controls
The RA78K3 assembler (figure 1) has two types of
controls. Primary controls are specified in the assembler
command line or at the beginning of the source module
and are as follows:
•
•
•
•
•
•
Processor selection
Output object creation selection
Output list file selection
Listing format controls
Optimization selection
\\brk file drive speCification
General controls are specified in the source program
and are as follows:
•
•
•
•
•
Inclusion of other source files
Page eject
Generation/suppression of listing
Listing titles
Conditional assembly controls
The listing file contains either the complete assembly
listing or only the lines with errors, and a symbol or
cross-reference table. The symbol table shows all defined symbols in alphabetical order, with the types,
attributes, and the values initially assigned to them.
The cross-reference table contains all defined symbols
and the numbers of all statements referring to them. The
object file cpntains the relocatable object module. This is
an NEC proprietary relocatable object module format.
If the optimization option is chosen, the assembler will
generate the most efficient code by converting, wherever possible, three-byte absolute branches into twobyte relative branches.
9-98
Source
Module
File
Include
File
~
~.
RA78K3
Relocatable
Assembler
'-'
~
~
J
Relocatable
Object
Module
File
Assembler
List File
Temporary
Work Files
49NR·5B3A
Linker
The LK78K3 linker (figure 2) combines several relocatable object modules, resolving PUBLIC/EXTRN references between modules, to create a relocatable output
module. This output module contains both relocatable
object code and symbol information. The linker will also
search library files for required modules to resolve external references. The linker controls for LK78K3 can be
specified in either the command line or in a parameter
file. The programmer can specify the date, and absolute
load module name, and control the creation of a list file
containing a link map.
NEe
RA78K3
Figure 2. Unker Functionsl Diagram
library
Module
File 1
...
Relocalable
Object
Module
File 1
Library
Module
File n
...
Relocalable
Object
Module
File
Relocatable
Object
Module
File n
*
1
I
System
Console
Figure 3. LDClller Functional Diagram
~
LK78K3
Linker
Relocalable
Object
Module
File
+---+
Temporary
Work Files
c
System
Console
LC78K3
Locater
rB ~
Symbol
File for
Debugger
Linker
list File
49NR-585A
Locater
The LC78K3 (figure 3) locater outputs two files: an
absolute load file in a seven-bit ASCII expanded hexadecimal format, which can be downloaded to a PROM
programmer; and a symbol file for the symbolic debugger. The programmer can specify the starting address
and order for code/data/stack segments, and can protect
areas of memory from being assigned. The programmer
can specify that a map file with symbol tables be
created.
Map File
Temporary
Work Files
Hexadecimal
Object
Code File
* With no ex~rnal references
49NR-587A
Librarian
The LB78K3librarian creates and maintains library files
containing relocatable object modules. This reduces the
number of files to be linked together by storing several
modules in a single file. This provides an easy way to link
frequently used modules into programs. IVIodules can be
added to, deleted from, or replaced within a library file; or
the contents of the library file can be listed.
9-99
NEe
RA78K3
Operating Environment
The NEC RA78K3 package runs under a variety of operating systems. One version runs on an MS-DOS system
with one or more disk drives and at least 128K of system
memory. Another version runs on a Digital Equipment
Corporation VAX computer under the VMS (Version 4.1 or
later) operating system.
Emulator Controller Program
Absolute object flies produced by the RA78K3 relocatable assembler package can be debugged with the
appropriate NEC stand-alone in-circuit emulator. NEC
emulator controller programs allows communication
with the emulator through an RS-232C serial line. An
emulator controller program can run on the IBM P~,
PC~, OR PC ATe under MS-DOS and is provided with
the in-circuit emulator at no extra charge.
These emulator controller programs provide the followIng featlires:
•
•
•
•
•
•
•
•
Uploading/downloading of object and symbol flies
Symbolic debugging capability
Complete emulator control from host console
On~line help facilities
Macro command file capabilities
Host system directory and file dillplay
Disk storage of debug session
Storage of last 20 commands for recaU
9-100
License Agreement
RA78K3 Is .sold under. terms of a license agreement,
which is included with the assembler. The accompanying
card rnust be completed and returned to NEe Electron. ics Inc. to register the license. Software updates' are
provided ftee to registered users.
Documentation
For further information on source program formats,
operation, and actual program examples,
NEC Electronics Inc. provides the following documentation:
a~embler
• RA78K3 "PD7831X/"PD7832X Relocatable Assembler
Package, Language Manual
• RA78K3 "PD7831X/"PD7832X Relocatable Assembler
Package, Operation Manual (MS-DOS)
• RA78K3 "PD7831)(f"PD7832X Relocatable Assembler
Package, Operation Manual (VMS)
This documentation Is provided with purchased copies
of the package. Additional copies may be obtained from
NEC Electronics Inc.
IBM PC, PClXT, and PC AT are registered trademarks of Internaltlonal
E!UBlness Machines Corporation.•
NEe
NEC Electronics Inc.
Description
The ST78K3 structured assembler preprocessor is a
companion program to the RA78K3 relocatable assembler for the NEC p,PD783XX series of microcomputers.
ST78K3 converts a source code file containing structured assembly statements into a pure assembly language source file, which then can be assembled with
RA78K3.
ST78K3
Structured Assembler Preprocessor
for the pPD783XX Series
Structured Assembler Preprocessor
Functional Diagram
ST78K3 will convert a structured assembly statement
into one or more p,PD783XX assembly language instructions which perform the desired operation. Since
ST78K3 converts only the structured assembly statements and does not convert p,PD783XX assembly language instructions, a structured source program can
include a combination of p,PD783XX structured assembly
statements and assembly language.
ST78K3 enables the assembly language programmer to
use some of the structures and syntax of higher-level
languages such as the C language. This improves program readability and reliability, and increases programmer productivity.
Features
o Control structures for conditions, looping, and
switch-case
o Preprocessor directives for conditional code
generation
DC-like representation of comparison operations
DC-like representation of assignment/arithmetic
operations
o Increment and decrement operators
o Allow use of all p,PD783XX mnemonics, registers,
and features
o Runs under MS-DOS® and VAX®NMS® operating
systems
Ordering Information
The ST78K3 structured assembler preprocessor is included in the following software packages at no cost:
RA78K3
I1PD783XX
Relocatable
Assembler
49NR-S89A
Summary Of Structured Language
A line of source code for ST78K3 contains either a
structured assembly statement or a p,PD783XX assembly
language statement. p,PD783XX assembly language
statements (p,PD783XX instructions, RA78K3 directives,
or RA78K3 controls) pass through ST78K3 without
change.
Structured assembly statements consist of preprocessor
directives, assignment statements, and control statements. These statements are entered one per line, and
are terminated by a line feed character. An optional
comment may follow a semicolon at the end of the
statement; all text following a semicolon is ignored by
ST78K3.
Preprocessor directives cause ST78K3 to include or omit
portions of code. Assignment statements cause ST78K3
•
-
-
LV ~vl 1'01
_0-
cut:;
_
VIII;; VI
..... _ _ ......... "
IIIVI II::
......
p.rlJ (OvA./\.
at:tt:tCIIIUI
Y
IQllyuayc
instructions to alter the contents of a register or variable.
Control statements cause ST78K3 to generate the necessary instructions to test conditions and change control flow based on those conditions.
• RA78K3 p,PD783XX Relocatable Assembler Package
MS·DOS is a registered trademark of Microsoft Corporation.
VAX and VMS are registered trademarks of Digital Equipment
Corporation.
50254
9-101
II
•
NEe
ST78K3
Preprocessor Directives
ST78K3 preprocessor directives set and test variables.
allowing conditional processing of code; include external files; and map instructions to p.PD783XX CALT table
reference instructions. Table 1 lists the preprocessor
directives and their functions.
Table ,_ Preprocessor Directives and Functions
Directive
#ifdef ABC
#else
#endif
If ABC has been defined as above. or on the
command line with the -D option. the first set
of statements is processed and the second
set ignored; if ABC has not been defined. or
defined as zero. the first set of statements is
ignored and the second set is processed.
#include "filename"
The named file is read from disk and
processed as if included in the source.
#defcallt @LABEL
CALL !label
#endcallt
Whenever the instruction "CALL !label" is
encountered in the source program. it is
replaced by "CALLT [@LABEL]". The label
must be defined in the CALLT table.
ASSignment, Increment, and Decrement
Statements
ST78K3 provides the ability to represent an assignment.
or an assignment with an arithmetic operation. in C
language syntax:
destination < assign-op > source
The assignment operators allow either simple assignment. or the combination of an assignment with an
arithmetic operation on the source and destination.
Examples:
Where an assignment requires an intermediate register
to hold the value being aSSigned. the register is designated by naming it in parentheses following the assignment operation.
Operator
=
B (A)
HL (XA)
Example
Function
A=B
A--B
< - >
A< - > B
Contents of A and B are exchanged
+=
A+=B
A--A+B
A-= B
A--A-B
*=
AX *= B
AX--AX*B
/=
AX/= C
AX--AX/C
&=
A&= B
A -- A & B Qogical AND)
1=
AI= B
A -- A I B (logical OR)
A'= B
A -- A ' B (logical XOR)
»=
A»=B
(CY--Ao.An.1--An ..... Amax--O) x B times
«=
A«=B
(CY--Amax.An+1 .....An .... Ao--O) x B times
++
A++
A--A+l
A-
A--A-l
Control Statements
Control statements allow conditions to be tested. Based
on the results of the test. blocks of code are allowed to
be executed or skipped. Reserved words in the control
statement define the start and end of blocks of code. and
expressions to be evaluated.
Example:
==
= B (A)
;The condition is tested.
;If A equals the content of memory
;at HL. this code is executed.
A + = [HL]
;Otherwise. this code is executed.
if (A
[HLJ)
A = [HL]
else
A- = B
P5 = A
endif
Table 3 shows the control statements and their functions.
Examples:
=
Table 2. Assignment Operators with Examples
and Functions
P5
A= B
;Move contents of B register to.A
A + = [HL] ;Add contents of memory at HL to A.
;store in A
BC &
Table 2 lists the assignment operators with examples
and functions.
Function
#define NAME value Defines the variable NAME. set to the
supplied value.
DATA 1
The increment and decrement operators (+ + and --)
operate on a single operand.
;Store contents of B into memory at
;DATA 1. using A as temporary storage
;and BC with HL. store in BC.
;use XA as temp
t-{EC
ST78K3
Table 3. Control Statements and Function
Table 6. Binary Operators
Control Statement
Function
Binary Operator
if - elseif - else - endif
Test variable expressions
Meaning
Equals
iLbit - elseiLbit - else - endif
Test bit expressions
1=
switch - case - default - ends
Select based on variable
>
Not equal
Greater than
for - next
Loop, test variable
>=
Greater than or eq ual
while· endw
Loop, test variable
<
Less than
repeat - unti I
Loop, test variable
<=
Less than or equal
Loop, test bit
Loop, test bit
repeat - untiLbit
break
Exit cont rol block
continue
Skip to top of block
gotoLABEL
Branch to label
Bit expressions test individual bits of registers, ports, or
memory locations. Table 7 shows the acceptable forms
of bit expressions.
Table 7. Bit Expressions and Examples
Bit Express Ion
Variable And Bit Expressions
Variable expressions for tests consist of a single value,
comparison between two variables, or a logical combination of comparisons. Bit expressions test individual
bits. Table 4 shows examples of comparisons:
Table 4. Examples of Variable Expression
Comparisons
Comparison
Meaning
if(A)
Tru e if A is non-zero
if (A < B)
True if A is less than B
if ((A < B) && (A > C))
True if A is less than B and greater than C
iLbit ( P1.2)
True if bit 2 of P1 is 1
iLbit (!P1.2 )
True if bit 2 of P1 is 0
The allowable expressions using variables are shown in
table 5.
Table 5.
Expressions and Examples
Expression
Example
Primary
(A)
Term
(A <= B)
T ....
~~
,_••••
0 0
__
.,.__
~
.'W • • • •
Term II Term
",.
0<)
1 .. _
,....\\ " ___ ' __ '
......... ,
\ \,. - --I ........... \' • ...- ...., J \ ..... ~ •..,""'" , .. " ..... ,
_~n\
((A= =C) II (A= = B) ) (logical OR)
A primary value for a variable expression is a register
name or defined symbol. A term consists of two primary
values compared with a binary operator. Table 6 lists the
supported binary operators and their meanings.
Example
BiLprimary
( PO.1)
!BiLprimary
(ICY)
BiLprimary && BiLprimary
(AO && CY)
BiLprimary II BiLprimary
(PO.211 CY)
A Bit_primary can be either a reserved word bit identifier, such as a bit of a register or port (PO.1, Cy), or a bit
definition symbol (SBO EQU PO.2).
ST7BK3 Operation And Controls
ST78K3 consists of four files: ST78K3.EXE, ST78K3.0MA
(/LPD78310A/312A), ST78K3.0MB (/LPD78320/322/327/
328), and ST78K3.0MC ~PD78330/334). Before invoking
ST78K3, the user must copy the appropriate file to
ST78K3.0M1. For example, ifthe user is developing code
for the /LPD78310A/312A, the user must type:
C>COPY ST78K3.0MA ST78K3.0M1
ST78K3 is invoked by specifying the name of the source
file, followed by optional controls.
Example:
C>ST78K3 ABC.SRC -DXYZ=3
ST78K3 reads the specified source file and produces an
output assembly language file, which can be input to
RA78K3. The output file contains all lines provided in the
input source file, plus those generated by ST78K3. Lines
containing no statements for the structured assembler
are passed through unchanged. Lines with structured
assembly statements are placed in the output preceded
by a semicolon. RA78K3 treats these lines as comments.
These commented lines are then followed by the code
generated by ST78K3.
9-103
II
NEe
ST78K3
The controls for ST78K3 are specified in the preprocessor command line or in a parameter' file invoked in the
command line.· Table 8 lists the ST78K3 preprocessor
controls and functions.
Table 8. S 1711K3 Preprocessor Controls
Control
Function
-Ofilename
Specify name of output assembly source file
-Ffilename
Specify name of parameter file to be read
-Efilename
Specify name of error listing file
-Dsymbol[ =valuel
Define a symbol Oike #define in code)
-I[d:][directoryl
Define path for include file
-WTn1,n2,n3
Define TAB settings for generated code
-SCcharacter
Defines word symbol last character
The -0 option allows the name of the output fUeto be
specified. If not specified, the output file name defaults
to the name of the input source file with the extension
.ASM.
The -F option allows a parameter file to be specified,
which will be read by ST78K3. This parameter file can
contain a list of controls to .be given to ST78K3, instead
of or in addition to those speCified on the command line.
The -E option specifies the name of the error listing file.
The error file contains the file name,· etrornumber,
description of error and the line containing the error. If
the -E option is not specified, the error file name defaults
to the name of the input source file with the extension
.EST. '
The -0 control allows a symbol to be defined on the
command line, with an optional value provided. If a
symbol is defined but no value is specified, the value
defaults to 1. If the source file contains a #define
directive which specifies a variable with the same name
as the -0 control, the value on the command line will
override the value in the #define directive.
9-104
The -I control specifies a drive or directory other than the
current drive and directory to search for include files.
The -WT control specifies the number of TAB characters
to insert before labels, instruction mnemonics, and instruction operands generated by ST78K3. This allows
clear separation of assembly language instructions
coded in the source file from those generated by
ST78K3.
The -SCcharacter control specifies the character used
as the last character in a word symbol. The character
must be a letter of the alphabet or the @, _ or ? This
allows ST78K3 to distinguish between word and byte
operations. Symbols which end in this character are
treated as word symbols and will generate a word
operation (ie. MCNW). If the -SC operation is not specified, ST78K3 assumes that a symbol ending with the
character "P" or "p" is a word symbol.
Documentation
For further information on source program formats,
preprocessor operation, and actual program Eixamples,
NEC Electronics Inc. provides the following documentation:
• ST78K2/ST78K3 ~P0782xx/~P0783xx Structured Assembler Preprocessor User's Manual
This documentation is provided with purchased copies
of the RA78K3 ~P0783xx relocatable assembler package. Additional copies may be obtained from NEC
Electronics Inc.
t-IEC
PG·1500 Series
EPROM Programmer
NEC Electronics Inc.
Description
The PG-1500 series is a stand-alone EPROM programmer
for programming 256-kilobit to 1-megabit EPROMs and
EPROM/OTP devices for NEC's 4/8/16-bit single-chip
microcomputers and digital signal processors. The system consists of the PG-1500 base programmer, interchangeable programmer adapter modules for standard
EPROM devices and the /l-PD75XX/75XXX series 4-bit
microcomputers, and a variety of programmer adapters
to support the individual devices and package types. The
PG-1500 can be controlled from either a remote terminal
or host computer via an RS-232C serial port, or directly
from the on-board keypad in stand-alone mode.
Features
o Interchangeable modules for programming:
- 256-kilobit to 1-megabit EPROMs
- NEC /l-PD75XX and /l-PD75XXX series 4-bit
microcomputers
- NEC /l-PD78XX and /l-PD78XXX series 8-bit
microcomputers
- NEC V-series 16-bit microcomputers
- NEC /l-PD77XXX digital signal processors
o PROM insertion error detection circuitry
o Address splitting for 16/32-bit microprocessors
o Memory edit function to change/confirm PG-1500
buffer
o Address/data/message display LCD
o RS-232C serial interface
o Centronics compatible parallel interface
o Power-on diagnostics
o Supports three data transfer formats
-Intel extended hex (Note 1)
- Extended Tektronix hex (Note 2)
- Motorola S (Note 3)
o Two modes of operation
- Remote controlled
- Stand-alone
o Host Controller Program for IBM PC® Series
IBM PC is a registered trademark of International Business Machines
Corporation
Notes:
(1) Developed by Intel Corporation.
o 512K-bytes data RAM
(2) Developed by' Tektronix Corporation.
o Silicon signature read function
(3) Developed by Motorola Inc.
PG-1500 Series
50117
9-105
NEe
PG·1500 Series
Ordering Information
Part Number
Description
Part Number
Description
PG-1500
PG-1500 Series EPROM Programmer for 27XXX
EPROMS, NEC 4/8116 microcomputers, and
DSP devices Oncludes 027A and 04A
Programming Adapter Modules)
PA-75P516GF
Programmer Adapter for "PD75P516GF
PA-75P516K
Programmer Adapter for "PD75P516K
PA-77P25C
Programmer Adapter for "PD77P25C/D
PA-70P322L
Programmer Adapter for "PD70P322K
PA-77P56C
Programmer Adapter for "PD77P56CRlG
PA-71 PS01 GF
Programmer Adapter for "PD71 PS01 GF
PA-77P2SOR
Programmer Adapter for "PD77P2SOR
PA-71PS01GQ
Programmer Adapter for "PD71 PS01 GQ
PA-78CP14CW
Programmer Adapter for "PD78CP14cw, OW
PA-71P301KA
Programmer Adapter for "PD71 PSOl KA
PA-78CP14GF
Programmer Adapter for "PD78CP14GF
PA-71P301KB
Programmer Adapter for "PD71 PS01 KB
PA-78CP14GQ
Programmer Adapter for "PD78CP14G!R
PA-71PS01L
Programmer Adapter for "PD71 P301 L
PA-78CP14L
Programmer Adapter for "PD78CP14L
PA-75P54CS
Programmer Adapter for "PD75P54/64CS"
"PD75P54/64G
PA-78P214CW
Programmer Adapter for "PD78P214CW
PA-78P214GJ
Programmer Adapter for "PD78P214GJ
PA-78P214GQ
Programmer Adapter for "PD78P214GQ
PA-78P214L
Programmer Adapter for "PD78P214L
PA-78P224GJ
Programmer Adapter for "PD78P224GJ
PA-78P224L
Programmer Adapter for "PD78P224L
PA-7BP238GC
Programmer Adapter for "PD7BP238GC
PA-7BP238GJ
Programmer Adapter for "PD7BP238GJ
PA-7BP238KF
Programmer Adapter for "PD7BP238KF
PA-7BP238LQ
Programmer Adapter for "PD7BP238LQ
PA-7BP312CW
Programmer Adapter for "PD7BP312ACW/DW
PA-7BP312GF
Programmer Adapter for "PD7BP312AGF
PA-7BP312GQ
Programmer Adapter for "PD7BP312AGQfR
PA-7BP312L
Programmer Adapter for "PD7BP312AL
PA-78P322GJ
Programmer Adapter for "PD7BP322GJ
PA-7BP322KC
Programmer Adapter for "PD7BP322KC
PA-7BP322KD
Programmer Adapter for "PD7BP322KD
PA-7BP322L
Programmer Adapter for "PD7BP322L
PA-75P56CS
Programmer Adapter for "PD75P56/66CS,
"PD75P56I66G
PA-75POOSCU
Programmer Adapter for "PD75POOSCU/G B
PA-75P036CW
Programmer Adapter for "PD75P036CW
PA-75P036GC
Programmer Adapter for "PD75P036GC
PA-75P10BCW
Programmer Adapter for
"PD75P1OSCW/DW/BCW, "PD75P116CW
PA-75P1OSG
PA-75P116GF
PA-75P216ACW
PA-75P3OSGF
PA-75PSOBK
Programmer Adapter for "PD75P1OSG/BGF,
"PD75P116GF
Programmer Adapter for "PD75P10BG/BGF,
"PD75P116GF
Programmer Adapter for "PD75P216ACW
Programmer Adapter for ",PD75PS08GF,
"PD75P316GF/AGF
Programmer Adapter for "PD75P308K,
"PD75P316AK
PA-75P32BGC
Programmer Adapter for "PD75P32BGC
PA-75P402CT
Programmer Adapter for "PD75P402CT
PA-75P402GB
Programmer Adapter for "PD75P402G B
9-106
NEe
PG·1500 Series
Figure 1. PG-1500 System Block Dilll/Tam
Programmer Adapters
Programmer Adapter Modules
PG-1500
Base Programmer
1--------83ML.s8368
Architecture
The PG-1500 base unit contains an NEC p.PD70208
(V40 TM) microprocessor with 128K bytes of monitor ROM,
32K bytes of working RAM, 512K bytes of data memory,
an RS-232C serial port, a Centronics compatible parallel
interface, an LCD display, and a 23-key keypad. Figure 1
the PG-1500 Programming Adapters Selection Guide for
a list of all available adapters.
On power-up, the PG-1500 performs a self-diagnostic on
its internal memory, its data bus, its power supply, and
its reference voltages.
shows a block diaQram of the PG-1500.
Operation
The PG-1500 has two interchangeable programmer
adapter modules: one for 27XXX EPROMS, NEC's 4/8/16
bit microcomputers, and DSP devices which use the
p.PD27C256A programming algorithm (027A board), and
another for NEC's p.PD75XX!75XXX 4-bit microcomputers which must be programmed in a serial fashion (04A
board). These adapter modules plug directly into the top
of the PG-1500 and can accept a wide variety of programmer socket adapters to support NEC's devices. Refer to
The PG-1500 operates in stand-alone mode from the
on-board keypad, or in remote control mode from an
external terminal or from a host computer via an RS232C serial port.
Stand-Alone Mode
Table 1 lists the PG-1500 commands available iii standalone mode.
9-107
NEe
PG·1500Series
Table 2. Address Splitting Modes
Table 1. PG-1500 Commands in Stand-Alone
Mode
Mode
Description
Command
Function
Normal
DEVICE SELECT
Selects the EPROM to be used
The data is not split at all. Each byte of data in the
buffer is programmed into the device.
16EVN
Each byte of data on an even address In the buffer is
programmed into the device.
16000
Each byte of data on an odd address in the buffer Is
programmed into the device.
DEVICE BLANK
Checks if the EPROM is blank
DEVICE COPY
Reads data from the EPROM
DEVICE PROG
Writes data into the EPROM
DEVICE VERIFY
Verifies EPROM contents against PG-1500
buffer
32/2E
The first two bytes of every four bytes in the buffer is
programmed into the device.
DEVICECONT
Performs BLANK, PROG, VERIFY
commands in sequence
32/20
The third and fourth byte of every four bytes in the
buffer is programmed into the device.
EDIT CHANGE
Display/change the contents of the PG-1500
buffer
32/4E1
The first byte of every four bytes in the buffer is
programmed into the device.
EDIT INITIAL
Initializes the PG-1500 buffer
32/401
EDIT MOVE
Moves a block of data within PG-1500 buffer
The second byte of every four bytes in the buffer is
programmed into the device.
EDIT SEARCH
Searches PG-1500 buffer for 1-, 2-, or
4-byte patterns
32/4E2
The third byte of every four bytes in the buffer is
programmed into the device.
EDIT C-SUM
Performs checksum on all data in PG-1500
buffer
32/402
The fourth byte of every four bytes in the buffer is
programmed into the device.
FUNCTION S-IN
Inputs data from serial port in three formats
FUNCTION S-OUT
Outputs data from serial port in three
formats
FUNCTION REMOTE
Sets PG-1500 to remote control mode
FUNCTION P-IN
Inputs data from parallel port in three
formats
FUNCTION MODE
Sets up the RS-232C serial port parameters
The stand-alone commands fall into three groups:
• DEVICE commands associated with the device to be
programmed
• EDIT commands for interacting with the PG-1500
memory buffer
• FUNCTION commands for setting up and controlling
the PG-1500
The DEVICE commands are available to check if an
EPROM device is blank, to copy data from the device to
the PG-1500 buffer, to write the buffer data to the device,
and to compare the data in the device with the data in the
buffer. Blank checking, programming, and verification of
the device can be performed sequentially using a single
command.
To support various 16- and 32-bit microprocessors, the
PG-1500 can split the data in its buffer in a variety of
ways. When a data file is loaded into the PG-1500, the
complete file is stored in the buffer and can be dynamIcally split during writing and verification. The PG-1500
supports the address splitting modes described in table
2.
9-108
This method of address splitting also allows the complete original file to be recreated in the buffer when
reading from a set of master EPROMs.
A silicon signature is stored in all NEC devices and
contains information on the device type, start and stop
addresses, and programming voltages. The PG-1500 can
read the silicon signature of the particular device being
programmed either manually or automatically, or the
device code can be entered manually.
The EDIT commands initialize the PG-1500 buffer to a
known value, move a block of data from one location to
another, and change/display data at a particular address. The PG-1500 buffer can also be searched for all
occurrences of any 1-, 2-, or 4-byte pattern. Finally, a
checksum can be calculated for all the data contained in
the buffer.
The FUNCTION commands control the setup of the
RS-232C serial port, whether the PG-1500 checks for a
PROM insertion error, whether the PG-1500 is operated
through the serial port, and how data is input/output·
from the PG-1500. Data can be input to the PG-1500
through either the RS~232C serial port or the Centronics
. compatible parallel port in Intel Extended Hex, Extended
Tektronix Hex, or Motorola S formats. Data can also be
output via the RS-232C port in any of these three
formats.
NEe
Remote Control Mode
Table 3 lists the PG-1500 commands available in Remote
Control Mode.
Table 3. PG-1500 Commands in Remote Control
Mode
Command
Function
RR
Reads data from the EPROM
RS
Selects the EPROM to be used
PG-1S00 Series
ROM device, loads the file, writes the ROM and returns to
the operating system when 1 set of ROM devices is
completed.
In the terminal mode, all of the remote control commands listed in Table 3 are available for entry at the
prompt. An additional operating system shell (OS) command allows execution of MS-DOS® programs without
termination of the controller program. This OS command
is also available in the control mode.
Verifies EPROM contents against PG·1500 buffer
MS-DOS is a registered trademark of Microsoft Corporation
Writes data into EPROM
EquipmenfSupplied
RZ
Checks if EPROM is blank
MC
Change the contents of the PG-1500 buffer
MD
Displays the contents of the PG-I500 buffer
MF
Initializes the PG-1500 buffer
PI
Inputs data from parallel port (Intel Extended HEX)
PM
Inputs data from parallel port (Motorola S)
PT
Inputs data from parallel port (Extended Tektronix
HEX)
LI
Inputs data from serial port (Intel Extended HEX)
LM
Inputs data from serial port (Motorola S)
LT
Inputs data from serial port (Extended Tektronix
HEX)
SI
Outputs data from serial port (Intel Extended HEX)
SM
Outputs data from serial port (Motorola S)
ST
Outputs data from serial port (Extended Tektronix
HEX)
??
Help command
Host Controller Program
The PG-1500 can be controlled from an IBM PC series
host computer using the accompanying PG-1500 controller program. The controller program has three modes
of operation: control mode, auto mode, and terminal
mode.
In the control mode, commands to be executed and
f./C1IC1f11tmm; [0 oe cflangeci are seiecrea Trom a screen
display using the cursor control keys. The PG-1500 can
be automatically configured from information contained
in a optional configuration file. This file specifies the
name of the file to be loaded, the ROM device, the
address splitting mode, the HEX file format and whether
the serial or parallel port is to be used for loading the
data.
The PG-1500 package includes the following:
• PG-1500 EPROM Programmer Base Unit
• 027A Socket Board for 27XXX EPROMS and
~PD27C256A-like devices
• 04A Interface Board for NEC ~PD75XX/~PD75XXX
Microcomputers
• PG-1500 Controller Program Disk for IBM PC
•
•
•
•
•
Power Cord
Power Ground Plug Adapter
Spare Fuses (2)
PG-1500 EPROM Programmer User's Manuals
Warranty Policy and Registration Card
Basic Specifications
• Power requirements:
- 90 to 250 VAC, 50 to 60 Hz
• Environment conditions:
- Operating temperature range: 10 to 35°C
- Operating humidity range: 20 to 80% relative
humidity
• RS-232C serial port:
- Baud rates: 1200,2400,4800,9600, 19200
- Parity: none, even, odd
- X-ON/X-OFF: on, off
- Bit configuration: 7, 8
- Stop bits: 1, 2
Documentation
For further information on the operation of the PG-1500,
NEC provides the following documentation:
• PG-1500 EPROM Programmer User's Manual
• PG-1500 Controller Program User's Manual
(IBM PC Based)
In auto mode, the controller program reads in the configuration file, configures itself accordingly, checks the
9-109
II
PG·1500 Series
9-110
fttlEC
Package Drawings
10-1
lID
NEe
Package Drawings
Section 10
Package Drawings
Package/Device Cross-Reference
10-3
54-Pin Ceramic LCC (w/Window)
10-20
2O-Pin Plastic Shrink DIP
10-5
54-Pin Ceramic Piggyback Shrink DIP
10-21
2O-Pin Plastic SOP
10-5
54-Pin Ceramic Piggyback QUIP
10-22
24-Pin Plastic Shrink DIP
10-6
54-Pin Ceramic Piggyback QFP
10-23
24-Pin Plastic SOP
10-6
54-Pin Plastic QFP (2.55 mm thick)
10-24
4O-Pin Plastic DIP
10-7
54-Pin Plastic QFP (1.5 mm thick)
10-25
40-Pin Plastic Shrink DIP
10-8
54-Pin Plastic QFP (2.7 mm thick)
10-26
10-9
54-Pin Plastic QFP (2.05 mm thick)
10-27
42-Pin Plastic DIP
10-10
54-Pin Ceramic QUIP (w/Window)
10-28
42-Pin Plastic Shrink DIP
10-10
54-Pin Plastic QUIP
10-29
42-Pin Ceramic Piggyback DIP
10-11
58-Pin PLCC
10-30
44-Pin Ceramic LCC (w/Window)
10-12
74-Pin Plastic QFP
10-31
44-Pin Plastic QFP
10-13
SO-Pin Ceramic LCC (w/Window)
10-32
44-Pin PLCC
10-14
80-Pin Plastic QFP (14 by 14 mm)
10-32
52-Pin Plastic QFP (1.8-mm leads)
10-15
SO-Pin Plastic QFP (20 by 14 mm;
1.8-mm leads)
10-33
80-Pin Plastic QFP (20 by 14 mm;
2.35-mm leads)
10-34
84-Pin PLCC
10-35
94-Pin Ceramic LCC (w/Window)
10-36
94-Pin Plastic QFP
10-37
40-Pin Ceramic Piggyback DIP
52-Pin Plastic QFP (3.5-mm leads)
10-16
54-Pin Shrink CERDIP (w/350-mil
window)
10-17
54-Pin Shrink CERDIP (w/300-mil
window)
10-18
54-Pin Plastic Shrink DIP
10-19
10-2
ttiEC
Package Drawings
Package/Device Cross Reference
Package
Device, "PO
Package
Device, "PO
20-Pin Plastic Shrink DIP
7554CS
7554ACS
75P54CS
7564CS
7564ACS
75P64CS
44-Pin PLCC
71 P301 L
52-Pin Plastic QFP
(l.B-mm leads)
7507GC
750BGC
52-Pin Plastic QFP
(3.5-mm leads)
7225G
64-Pin Shrink CERDIP
(w/350-mll window)
75Pl08DW
7BCP14DW
7BP312ADW
64-Pin Shrink CERDIP
(w/300-mll window)
7BP214DW
64-Pin Plastic Shrink DIP
7502BCW
75P036CW
75048CW
75P056CW
751xxCW
75P108CW
75Pl08BCW
75P116CW
75208CW
7520BCW
75212ACW
75216ACW
75P216ACW
75268CW
64-Pin Ceramic LCC
(w/window)
71 P301KB
64-Pin Ceramic
Piggyback Shrink DIP
75CG208E
75CG216AE
64-Pin Ceramic
Piggyback QUIP
78CG14E
64-Pin Ceramic
Piggyback QFP
75CG208EA
75CG216AEA
64-Pin Plastic QFP
(2.55 mm thick)
75028GC
75P036GC
7504BGC
75P056GC
75104AGC
751 OBAG C
78C14AG
2O-Pin Plastic SOP
7554G
7554AG
75P54G
7564G
7564AG
75P64G
24-Pin Plastic Shrink DIP
7556CS
7556ACS
75P56CS
7566CS
7566ACS
75P66CS
24-Pin Plastic SOP (300
miQ
7556G
7556AG
75P56G
7566G
7566AG
75P66G
40-Pin Plastic DIP
7507C
7507HC
7508C
7508HC
40-Pin Plastic Shrink DIP
7507CU
7507HCU
7508CU
7508HCU
40-Pin Ceramic
Piggyback DIP
75CG08E
75CG08HE
42-Pin Plastic DIP
7527AC
7528AC
7533C
7537AC
7538AC
42-Pin Plastic Shrink DIP
7527ACU
7528ACU
7533CU
7537ACU
7538ACU
64-Pin Plastic QFP
(1.5 mm thick)
7510BAG
64-Pin Plastic QFP
71 P301GF
IOUUX\...IU
\.::::.t
Ivv'::::IIr.lr
75POO8CU
42-Pin Ceramic
Piggyback DIP
75CG28E
75CG33E
75CG38E
44-Pin Ceramic LCC
(w/window)
71P301KA
44-Pin Plastic QFP
7507HGB
7508HGB
7500xGB
75P008GB
7533G
mm mICK)
7503GF
751xxGF
75P108BGF
75P116GF
75206GF
7520BGF
75212AGF
75216AGF
75268GF
7BC10CW
78C10ACW
78C11CW
78C11ACW
78Cl2ACW
78C14CW
78CP14CW
78213CW
78214CW
78P214CW
78310ACW
78312ACW
78P312ACW
III
78Cl0GF
---.---78Cl1GF
78Cl1AGF
78Cl2AGF
78C14GF
78CP14GF
78310AGF
78312AGF
78P312AGF
10-3
NEe
Package Drawings
PackagelDevlce Cross Reference (cont)
Package
Devlce,,,PD
Package
Device, "PD
54-Pin Plastic QFP
(2.05 mm thick)
,7227G
75104G
75106G
75108G
75P108G
75206G
75208G
78C1oo-1B
78C11G-1B
78C14G-1B
ao-Pln Ceramic LCC
(w/WlndOw)
75P308K
75P316AK
ao-Pin Plastic QFP
(14 by 14 mm)
75328GC
75P328GC
78233GC
78234GC
78P238GC
80 -Pin Plastic QFP
(20 by 14 mm; 1.8-mm
leads)
753xxGF
75P308GF
75P316GF
75P316AGF
ao-Pin Plastic QFP
(20 by 14 mm; 2.35-mm
leads)
7228G
7228AG
54-Pin Plastic PLCC
78220L
78224L
78P224L
78233LQ
78234LQ
78P238LQ
94-Pin Ceramic LCC
(w/Wlndow)
78P238KF
54-Pin Ceramic QUIP
(w/WlndOw)
54-Pin Plastic QUIP
68-Pln PLCC
74-Pi n Plast Ie QFP
10-4
71 P301 RQ
78CP14R
78P214R
78P312AR
71P301GQ
78C10G-36
78C10AGQ..36
78C11G-36
78C11AGQ-36
78Cl2AG-36
78C14G-36
18CP14G-36
, 78C10L
78C10AL
78C11L
78C11AL
78Cl2AL
78C14L
78CP14L
78213L
78214L
78P214L
78213GJ
78214GJ
78P214GJ
78320GJ
78322GJ
78213GQ
78214GQ
78P214GQ
78310AGQ
78312AGQ
78P312AGQ
78310AL
78312AL
78P312AL
78320L
78322L
94-Pln Plastic QFP
78220GJ
78224GJ
78P224GJ
78233GJ
,78234GJ
78P238GJ
NEe
Package Drawings
20-Pin Plastic Shrink DIP
Item
Millimeters
A
.771 max
B
19.57 max
1.78 max
Inches
C
1.778 (TP)
.070 (TP)
D
O.SO ±0.10
.020
F
0.85 min
.033 min
G
3.2 ±0.3
.126 ±.012
H
0.51 min
.020 min
I
4.31 max
J
5.08 max
.170 max
.200 max
K'
.070 max
~:gg~
7.62 (TP)
.300 (TP)
L
6.5
.256
M
0.25
N
0.17
~g:6~
11
20
.010
~:gg~
.007
• Item K to center of leads
when formed parallel.
sl.....
I-
o
N ...,,®=<.JMI
..."f$J"-L.:..:..
49NR·sg36 (9/89)
P20C-70·300B
20-Pin Plastic SOP
Item
Millimeters
A
.512 max
B
13.00 max
0.78 max
C
1.27 (TP)
.050 (TP)
D
0.40
E
F
0.1 ±0.1
1.8 max
.004 ±.004
.071 max
G
1.55
.061
H
7.7 ±0.3
.303 ±.012
.220
~g:6g
5.6
1.1
Inches
.031 max
.016
~:gg~
K
0.20
.008
~ :gg~
L
0.6 ±0.2
.024
~:gg:
M
0.12
.005
P20GM·50-300B, C
11
E
I;
1~1
A
.043
~g:6~
20
,-rr!;~
o
f$J
M
®I
49NA-594B (Q/S9)
10-5
NEG
Package Dr.wlngs
24-Pin Plllstic Shrink DIP
Ilem
Millimeters
A
C
23.12 max
1.78 max
1.778 (TP)
D
0.50 ±0.10
a
F
G
H
0.85 min
3.2 ±0.3
0.51 min
4.31 maX
5.08 max
. 7.62 (TP)
6.5
J
K·
L
N
0.17
".
Inches
.911 max
.070 max
.070 (TP)
.033
.126
.020
.170
.200
.300
.256
min
±.012
min
max
max
(TP)
24
'"',
13
~ UUUu:-: uuuu:
.1
A
.007
• Item K to cent.... of leads
when formed parallel.
[£] f$l
N
®i
S24C>7o.300S
49NR-596B (9189)
24-Pin Plllstic SOP (300 mil)
Ilem
Millimeters
A
C
15.54 max
0.78 max
1.27 (TP)
D
0.40
E
0.1 ±0.1
F
G
H
I
1.8 max
a
1.55
7.7 ±0.3
5.6
1.1
~g:Jg
.016
~:gg~
.004 ±.004
.071 max
.061
.303 ± .012
.220
.043
K
0.20
.008
~:gg~
L
0.6 ±0.2
.024
~:gg;
M
0.12
.005
P24GM-SO·3008
10-6
~g:rig
Inches
24
13
.612 max
.031 max
.050 (TP)
110 :
: : : :-: : : : :
,:,1
A
.~I~J
[£] f$l
M
@i
49NR·5958 (9189)
NEe
Package Drawings
4D-Pin Plastic DIP
Item
Millimeters
Inches
A
B
C
53.34 max
2.100 max
15.24 [TP]
.600 [TP[
13.2
.520
D
5.72 max
.225 max
E
F
4.31 max
.170 max
3.6±O.3
.142±.012
G
2.54 max
.100 max
H
2.54 [TP]
1.2mln
.100 [TP]
.047 min
J
0.51 min
.020 min
K
0.50 ±O.10
.02O±.004
L
0.25
M
0.25
I
~:6~
.010
~:~~~
40
~;
21
: : : : : : : : :-: : : : : : : : : ; .1
A
.010
ffi,~
'""tl
~L
.-It-'
P4OC·1()o"600A
83vQ.6140B (6189)
10-7
NEe
Package Drawings
4O-Pin Plastic Shrink DIP
Item
Millimeters
A
B
C
39.13 max
2.67 max
.106 max
1.778 (TP)
.070 (TP)
D
0.50 ±0.10
.020
F
0.9 min
.035 min
G
3.2 ±0.3
.126 ±.012
H
0.51 min
.020 min
Inches
1.541 max
~ :gg~
4.31 max
.170 max
5.08 max
.200 max
15.24 (TP)
.600 (TP)
L
13.2
.520
M
0.25
N
0.17
K"
~g:~~
.010
21
40
~:gg~
I.
.007
20
.1
A
" Item K to center of leads
when formed parallel.
0
L
/
_LL
,~!~IH H
H
H
M
P4OC-70..aOOA
10-8
\-
0-15'
......
o
f$J
N
®I
49NR-544B (7189)
NEe
Package Drawings
4O-Pin Ceramic Piggyback DIP
Item
A
C
M
2.54 max
Inches
2.100 max
.800 ± .016
.100
.036 min
.018 ±.002
.010
.100 (TP)
.100 max
N
0.25 ±0.05
.010
Q
15.24
7.28 max
1.0 min
3.5,±0.3
3.0 max
.600
.287
.039
.138
.118
F
G
H
Millimeters
53.34 max
20.32 ± 0.4
2.54
0.92 min
0.46 ±0.05
0.25
2.54 [P)
S
T
U
V
~:~~~
max
min
±.012
max
15
28
,-
00000000000000
~
-
./
c
00000000000000
1
14
'-
A
I
OJ I$l
P40E·100·'
I
@i
49NR·597a
1918911
10-9
NEe
Package .Drawings
42-Pln PI.stlc DIP
22
42
Item
Mllllmet.re
Inch.
A
B
C
SS.88 max
2.54 max
2.54[TP]
2.2 max
.100 max
0
0.50:t0.10
.02O~:~O:
F
G
H
1.2 min
3.6iC.30
0.51 min
4.31 max
5.72 max
15.24 (TP]
13.2
.047 min
.142:t.012
.020 min
.170 max
.226 max
.600 [TP]
.520
J
K
L
.100 [!Pl
M
O.25~~:ri~
.010 ~:gg:
N
0.25
.01
PoI2C-1OD-8OOA, S
42-Pln PI.stlc Shrink DIP
Item
Millimeters
Inches
A
B
C
39.13 max
1.78 max
1.778 (TP)
1.541 max
.070 max
.070 (TP)
0
0.50 :to.10
.020
F
G
H
L
0.9 min
3.2 :to.3
0.51 min
4.31 max
5.08 max
15.24 (TP)
13.2
.035
.126
.020
.170
.200
.600
.520
M
0.25
N
0.17
J
K"
:g:cig
.010
42
22
::gg~
min
:t.012
min
max
max
(TP)
::gg~
.007
" Item K to center of leads
when fonned parallel.
0
L
Iii
Nl!. l!~
..
.H .H .H .H .H
I-
IT]
10-10
.H.H
M1:
TI
g~,g~
~g
F
o
BI-
P42C-70-600A
J-\
1$1
N
®I
49NR-557B (7A19)
NEe
Package Drawings
42-Pin Ceramic Piggyback DIP
Item
A
C
Millimeters
55.88 max
20.32 ±0.4
F
2.54
0.92 min
0.46 ±0.05
0.25
G
H
Inches
2.200 max
.800 ±.016
.100
.036 min
.018 ±.002
.010
M
2.54 (TP)
2.54 max
.100 (TP)
.100 max
N
0.25 ±0.05
.010
Q
.600
.287 max
~:gg~
S
15.24
7.28 max
T
U
1.0 min
.039 min
3.5 ±0.3
.138 ±.012
V
3.0 max
.118 max
-
15
28
00000000000000
~
c
-
1/
00000000000000
1
I.
14
~-
A
·1
V
m
s
u
I
P420·100·A
49NR·.... (9189)
I
10-11
NEe
Package Drawings
44-Pin Ceramic LCC (w/Window)
Ilem
Millimeters
A
8
C
16.51 ± 0.4
15.50
15.50
16.51 ±0.4
1.02
1.52
3.048 max
0.64 ±0.10
0.12
1.27 (TP)
D
E
F
G
H
I
J
K
L
P
Q
R
S
T
y
1.27 ±0.2
2.16 ±0.2
0.2 rad
1.02 cor
1.905
1.905
8.89 dia
0.51 cor
Inches
.650
.610
.610
.650
.040
.060
.120
.025
.005
.050
.050
.085
.008
.040
.075
.075
.350
.020
±.016
A
8
Ii-
±.016
C D
max
±.004
(TP)
±.008
±.008
rad
cor
dia
01$l
X44KW-SOA-1
10-12
I
®I
49NR-69BB (3190)
NEe
Package Drawings
44-Pin Plastic QFP
Item
Millimeter.
A
13.6 ±0.4
.535
~:g~~
B
10.0 ±0.2
.394
~
c
10.0 ±0.2
.394
~
~ :g~~
D
13.6 ±0.4
.535
F
1.0
.039
.039
:ggg
:ggg
G
1.0
H
0.35 ±0.10
.014
0.15
.006
.031 (TP)
0.8 (TP)
K
.071
~:ggg
0.8 ±0.2
.031
~:gg~
.006
~:gg~
~g:6~
0.15
N
P
0.15
2.7
0.1 ±0.1
Q
R
S
0.1 ±0.1
3.0 max
C D
~:gg~
1.8 ±0.2
M
A
Inche.
.006
f$l
I
@10
Enlarged detail of lead end
.106
.004 ±.004
.004 ±.004
.119 max
Q
P44GB-80-3B4·1
R
49NR-556B (1190)
10-13
NEe
Package Drawings
44-PinPLCC
Item
Millimeters
A
B
C
17.5 ±O.2
16.58
16.58
17.5 ±O.2
1.94 ±O.15
0.6
4.4 ±O.2
2.8 ±O.2
0.9 min
3.4
D
E
F
G
H
I
K
T
1.27 lIP)
0.40 ±O.10
0.12
15.50 ±O.2O
0.15
0.8 radius
U
0.20
M
N
P
Q
~:6~
Inches
.689 ±.008
.653
.653
.689 ±.008
.076 ±.006
.024
.173 ±.008
.110 ±.008
.035 min
.134
.050 (TP)
.016 ±.004
.005
.610 ±.008
.006
.031 radius
.008
44
C
D
U
F
~:gg~
G
T
P
P44L·5OA 1·1
10-14
3190 83YL-5804B
NEe
Package Drawings
52-Pin Plastic OFP (1.8-mm leads)
Item
Millimeters
Inches
A
17.6 ±0.4
.693 ±.016
8
14.0 ±0.2
.551
~ :gg~
c
14.0 ±0.2
.551
~ :gg~
D
.693 ± .016
.039
G
17.6 ±0.4
1.0
1.0
H
0.40 ±0.10
.016
0.20
1.0 (TP)
.039 (TP)
1.8 ±0.2
.071
~:gg~
0.8 ±0.2
.031
~ :gg~
.006
~:gg~
F
K
~g:6~
.039
C D
~:gg~
.008
M
0.15
N
0.15
.006
P
R
2.7
0.1 ±0.1
0.1 ±0.1
.106
.004 ± .004
.004 ± .004
S
3.0 max
.119 max
Q
A
f$l
@10
Enlarged detail of lead end
Q
P52GC-100-366
R
49NR-493B (5189)
10-15
NEe
Package Drawings
52-Pin Plastic QFP (3.5-mm leads)
Itam
Millimeters
Inches
A
21.0 ± 0.4
.827 ± .016
B
14.0 ±0.2
.551
~:gg~
C
14.0 ±0.2
.551
~:gg~
0
G
21.0 ± 0.4
1.0
1.0
.827 ±.016
.039
.039
H
0.40 ±0.10
.016
0.20
1.0 (TP)
.008
.039 (TP)
K
3.5 ±0.2
.138
~:gg~
L
2.2 ±0.2
.087
~:gg~
M
0.15
.006
~:gg~
N
0.15
F
~g:6~
~g:~
P
2.6
Q
0.1 ±0.1
A
~:gg~
-E:a:Et---+----jI=a===>_ C 0
F
.006
.102
~:gg~
.004 ±.004
I$l
I
@ID]
K
q::~nnlJ+
~
LW
Q
P52G-1GO-OO
10-16
49NR-5368
(6189)
NEe
Package Drawings
64-Pin Shrink CERDIP (w1350-mil window)
Item
Millimeters
Inches
A
58.68 max
2.310 max
B
1.78 max
.070 max
C
1.778 (TP)
.070 (TP)
D
0.46 ±0.05
.018 ± .002
F
G
H
0.8 min
.031 min
3.5 ±0.3
.138 ±.012
1.0 min
.039 min
3.0
.118
5.08 max
.200 max
K'
19.05 (TP)
.750 (TP)
18.8
.740
M
0.25 ± 0.05
.010
N
0.25
.010
S
8.89 dia
.350 dia
L
~ :~~~
_~_0_15°
... Item K to center of leads
when formed parallel.
64
33
~
t'\
V
I.
1
A
ICl
Iff)1
N (M)
I
I P640W.70.750A--
10-17
NEe
Package Drawings
64-Pin Shrink CERDIP (w1300-mil window)
Item
Millimeters
Inches
A
58.68 max
1.78 max
1.778 (TP)
0.46 ±0.05
0.8 min
3.5 ±0.3
1.0 min
3.0
5.08 max
19.05 (TP)
18.8
2.310 max
.070 max
.070 (TP)
.018 ±.002
.031 min
.138 ± .012
.039 min
.118
.200 max
.750 (TPJ
.740
M
0.25 ±0.05
.010
N
0.25
7.62 dia
.010
.300 dia
B
C
D
F
G
H
K'
S
~ :gg~
~_0_15°
* Item K to center of leads
when formed parallel.
33
64
(vl
1\
\+~ .-J
1"\
V
I.
.1
A
o
P64DW·70·7SOA1
10-18
32
1
f$l
N
@I
49NR-G91 B (2190)
NEe
Package Drawings
64-Pin Plastic Shrink DIP
33
64
~---------------------A----------------~----~
E
:IE
f$-I
nem
A
B
C
0
E
F
G
H
I
M
Millimeters
58.68 max
19.05 (TP)
17.0
5.08 max
4.31 max
3.2:tO.3
1.78 max
1.778 (TP)
0.9 min
0.51 min
0.50 :to.10
Inches
2.310 max
.750 (TP)
.669
.200 max
.170 max
.126 ±.012
.070 max
.070 (TP)
.035 min
.020 min
.02O±.004
L
O.25~:ci~
:010~:gg;
M
0.17
.007
K
@I
~--[[)----+I
o ~ 15°
83VL-5S60B (&89)
10-19
NEe
Package Drawings
64-Pin Ceramic LCC (w/Window)
lIem
A
B
C
D
E
F
G
H
K
Q
R
S
T
U
W
Millimeters
20.0 ±0.4
19.0
13.2
14.0 ±0.4
1.64
2.14
3.556 max
0.70 ± 0.10
0.1
1.0 (TP)
1.0 ±0.2
0.25 cor
1.0
1.0
3.0 rad
12.0
0.8 ±0.2
A
Inches
.787 ±.016
.748
.520
.550 ±.016
.065
.084
.140 max
.028 ±.004
.004
.039 (TP)
.039 ±.008
.010 cor
.039
.039
.118 rad
.472
.031 ±.008
B
i'
U
I'
.,1
·i
n
I
'\
1/
+
~
il
0
w
Q
1
1
It
64
+
1
s
R~ lLl-
-01$j
H-I~
I
K-
1-
@I
49NR·699B (5190)
10-20
NEe
Package Drawings
64-Pin Ceramic Piggyback Shrink DIP
Item
M1111meters
Inches
A
58.68 max
22.86 ±0.4
2.310 max
.900 ±.016
2.54
0.80 min
0.46 ±0.05
.100
.031 min
.018 ±.002
.007
.070 (TP)
M
0.17
1.778 (TP)
1.78 max
N
0.25 ±0.05
.010
Q
5
15.24
8.28 max
.600
.326 max
T
U
1.0 min
3.5 ±0.3
.039 min
V
3.9 max
.154 max
W
19.05
.750
C
F
G
H
I
.070 max
~:gg~
.138 ±.012
,28
15
00000000000000
~
c
-
f'"
00000000000000
1
I.
14
A
.iV
~________~~~~~~w-~~~~~~~~~________~-1
I
P64E·70-A
5
I
MI~I
0f$J
I
@ll
.9N ...71.
",.J
10-21
Package Drawings
64-Pin Ceramic Piggyback QUIP
Item
Millimeters
Inches
A
41.91 max
26.67 ± 0.4
2.54
0.92 min
0.46 ±0.05
0.25
2.54 (TP)
1.27 (TP)
1.27 max
1.650 max
1.050 ±.016
.100
.036 min
.018 ± .002
.010
.100 (TP)
.050 (TP)
.050 max
N
0.25 ±0.05
.010
Q
15.24
8.54 max
1.0 min
3.5 ±0.3
4.41 max
24.13
19.05
.600
.336
.039
.138
.174
.950
.750
C
G
H
K
M
S
T
U
V
W
X
[§]
10-22
~
15
00000000000000
------~--~-----------1rC
~ :gg~
max
min
± .012
00000000000000
14
max
~I'--------------------A--------------------~.I
NEe
Package Drawings
64-Pin Ceramic Piggyback QFP
Itam
Mllllmata..
Inch. .
u
~:g~
A
24.7 ±0.5
.972
B
C
0
E
F
G
20.3
16.3
18.7 ±0.5
1.27 (TP)
2.15
1.15
.799
.642
.736 ±.02O
.050 (TP)
.085
.045
H
.40 ±0.10
.016
J
0.20
1.0 (TP)
.OOB
.039 (TP)
K
1.2 ±0.2
.047
L
2.2 ±0.2
087+ .OOB
•
-.009
M
0.15
.006
N
0.15 ±0.05
.006
S
T
9.5 max
3.0 max
.374 max
.11B max
U
2.2 ±0.2
.OB7
V
3.2 ±0.2
.126 ±.OOB
~:gg~
~:gg:
~:gg~
~:ggg
F
End View
P64EA-100..A,
..NR-612B (2190)
10-23
NEe
Package:Drawlngs
64-Pin Plastic QFP {2.55 mm thiclr}
Hem
A
MIllimeters
17.6 :1:0.4
Inch ..
.693 ':1:.016
B
14.0 :1:0.2
.551
~:gg:
C
14.0 :1:0.2
.551
~:gg:
0
F
G
17.6 :1:0.4
1.0
1.0
.693 :1:.016
.039
.039
H
0.35 :1:0.10
.014
K
0.15
0.8 (TP)
1.8 :1:0.2
.006
.031 (TP)
.071 :1:.008
.031
~:gg:
.006
~:gg;
L
0.8 :1:0.2
M
0.15
N
0.15
2.55
0.1:1:0.1
0.1 :1:0.1
2.85 max
P
Q
R
S
~g:Jg
A
C 0
~:gg~
.006
.100
.004. :1:.004
.004 :1:.004
.112 max
@I
I
®10
Enlarged detail of lead end
4
Q
R
"'R-6698 (1190)
NEe
Package Drawings
64-Pin Plastic QFP (1.5 mm thick)
Item
Millimeters
A
18.4 ±0.4
.724
~:g1~
B
14.0 ±0.2
.551
~:gg~
c
14.0 ±0.2
.551
~:gg~
0
18,4 ±0,4
.724
~:g1~
F
G
1.0
1.0
.039
.039
H
0.35 ±0.10
.014
0.15
0.8 (TP)
.006
.031 (TP)
C 0
2.2 ±0.2
.087
~:gg:
L
1.0 ±0.2
.039
~:gg~
M
0.15
.006
~:gg~
N
P
0.15
1.5 ±0.1
0.0 ±0.1
1.7 max
Q
S
B
~:gg~
K
~g:cig
A
Inches
.006
.059 ±.004
.000 ±.004
.067 max
f$l
I
@10
K
Aoooonoo*onooonoJ:]
~
~ LJD
Enlarged detail of lead end
M
49NR-S70B (1/90)
m
10·25
ttiEC
Package Drawings
64-Pin Plastic QFP (2.7 mm thick)
item
Millimeters
A
23.6 to.4
Inches
.929 t.016
B
20.0 to.2
.795
~ :gg~
c
14.0 to.2
.551
~:gg~
0
17.6 to.4
.693 t .016
F
G
1.0
1.0
.039
.039
H
0.40 to.l0
.016
0.20
.008
.039 (TP)
K
1.8 to.2
.071
~
L
0.8 to.2
.031
~ :gg~
M
0.15
.006
~:ggj
N
P
0.15
.006
2.7
0.1 to.l
.106
Q
R
0.1 ±0.1
S
3.0 max
C 0
~:gg~
1.0 (TP)
~g:6~
A
:ggg
.004 ± .004
.004 ± .004
.119 max
f$J
I
@ID]
Enlarged detail of lead end
Q
PS4GF-100-3B8,3BE-'
10-26
R
49NR-5998 (2t90)
NEe
Package Drawings
64-Pin Plastic QFP (2.05 mm thick)
Item
Millimeters
Inches
A
24.7 ± 0.4
.972
~ :g~~
B
20.0 ± 0.2
.795
~ :gg~
c
t4.0 ±0.2
.55t
~ :gg~
D
t8.7 ± 0.4
.736 ±.016
F
1.0
1.0
.039
G
H
0.40 ±0.10
.016
0.20
1.0 (TP)
.008
K
2.35 ±0.2
.093
~ :gg~
L
1.2 ±0.2
.047
~:gg~
M
0.15
.006
~:gg~
N
0.15
P
2.05
Q
0.1 ±0.1
.004 ± .004
s
2.45 max
.096 max
A
.039
~g:6~
.039 (TP)
.006
~ g:~
C D
~ :gg~
.081
~:gg~
f$J
I
@10
Enlarged detail of lead end
Q
P64G-tOO·12,19-1
49NR-5438 (2190)
m
10-27
NEe
Package Drawings
64-Pin Cerllmic QUIP (w/Window)
Item
MIllimeters
Inches
A
C
41.91 max
26.67 ±0.4
1.650 max
1.050 ± .016
G
0.92 min
.036 min
H
J
0.46 ±0.05
0.25
2.54 (TP)
.018 ±.002
.010
.100 (TP)
K
1.27 (TP)
.050 (TP)
M
1.27 max
.050 max
N
0.25 ±0.05
.010
S
T
4.72 max
1.0 min
.186 max
U
3.5 ±0.3
.138
W
X
Y
24.13
.950
19.05
8.89 dia
.750
.350 dia
I
~------~-------------+-c
=:gg~
.039 min
=:g~~
I.
~ ~
I-l=N
E
P64EW·tOO·A
10-28
A
.1
1
P
:r1
X
-2l
W
49NR..s10B
15.09)
NEe
Package Drawings
64-Pin PI.stic QUIP
Item
Millimeters
~g:~
Inches
~:g6~
A
41.5
c
16.5
.650
H
0.50 ±0.10
.020
J
K
0.25
2.54 (TP)
1.27 (TP)
.010
.100 (TP)
.050 (TP)
M
1.1
N
0.25
P
4.0 ±0.3
s
w
X
1.634
.043
~:g6~
.010
~:gg~
.157
~:gg
3.6 ±0.1
.142
~:gg~
24.13 ± 1.05
19.05 ± 1.05
.950 ±.042
.750 ±.042
~g:~~
~g:6g
1
-----+J
~:gg~
I.
.1
A
w
1$1
P64GQ-100·36
I
®10
49NR·508B
(4/69)
m
10-29
t\fEC
package Drawings
68-PinPLCC
A
lIem
Millimeters
A
B
C
0
25.2±O.2
.992±.00S
24.20
.953
24.20
.953
25.2±O2
.992±.OOS
E
1.94±O.15
.076~:g~
F
0.6
.024
G
4.4±O.2
.173~:gg:
H
2.8±O2
.110~:gg:
0.9 min
.035 min
K
Ii-
Inches
3.4
.134
1.27 lIP)
.050 lIP)
M
0.40 ±O.10
.016 ~:gg~
N
0.12
.005
P
23.12±O.2O
.910 ~:gg:
Q
0.15
.006
T
O.Sradlus
.031 radius
U
O·2Q~:ci~
.006 ~:gg:
CJCJCJCJCJCJCJCJ
66
c
0
F
G
(:?J90)
P68L-5OA1-1
10-30
83YL-5561B
NEe
Package Drawings
74-Pin Plastic QFP
Inches
Item
Millimeters
A
23.2 ± 0.4
.913
~ :g~~
B
20.0 ±0.2
.787
~ :gg~
c
20.0 ±0.2
.787
~ :gg~
D
23.2 ± 0.4
.913
~ :g~~
2.0
1.0
2.0
1.0
.079
.039
.079
.039
H
0.40 ±0.10
.016
K
0.20
1.0 (TP)
1.6 ±0.2
.008
.039 (TP)
.063 ±.O02
L
0.8 ±0.2
.031
~:gg~
M
0.15
.006
~:gg~
N
P
0.15
3.7
0.1 ±0.1
0.1 ±0.1
4.0 max
Fl
F2
Gl
G2
Q
R
S
~g:~~
F2
C D
~:gg~
.006
.146
.004 ± .004
.004 ± .004
.158 max
f$l
®10
Enlarged detail of lead end
4
Q
S74G.1·100·5SJ·1
R
49NR-3478 (2190)
m
10-31
NEe
Package Drawings
SO-Pin Ceramic LeC (w/wlndow)
Item
Millimeters
A
20.0 ±0.4
.787
B
C
0
E
F
19.0
13.2
14.2 ±0.4
1.64
2.14
4.064 max
0.51 ±0.10
0.08
0.8 (TP)
.748
.520
.559
.065
.084
.160
.020
.003
.031
K
1.0 ±0.2
.039
Q
0.5 cor
.020 cor
R
S
T
U
0.8
1.1
3.0 rad
12.0
.031
.043
.118 rad
.472
W
0.75 ±0.2
.030
G
H
Inches
A
~:gl~
±.016
B
I'
u
ill
"
mex
±.004
/
~
(TP)
~:gg~
~:ggg
+
'\
'I
W
Q
v".,..".".".."nnnn"""""'".".".."nnnr"".,....,.J
1
CD
ill
K-I
I:hnnnnnnnnnnnnnnnnnnnnnnffiii.}
I
®I
X80KW-80A
49NR·617B (11/89)
SO-Pin Plastic QFP (14 by 14 mm)
Item
A
Inches
.677 ±.016
B
14.0 ±0.2
.551
~:gg~
C
14.0 ±0.2
.551
~:gg~
0
F
G
17.2 ±0.4
0.8
0.8
.6n
±.016
H
0.30 ±0.10
.012
J
K
0.13
0.65 (TP)
1.6 ±0.2
.005
.026 (TP)
.063 ±.008
L
0.8 ±0.2
.031
~:gg~
M
01"5 + 0.10
. -0.05
0.15
2.7
0.1 ±0.1
0.1 ±0.1
3.0 max
.006
~:gg:
N
P
Q
R
S
S80GC·65-3B9·1
10-32
Millimeters
17.2 ±0.4
.031
.031
~:gg~
.006
.106
.004 ±.004
.004 ±.004
.119 max
---+---
I$l
I
C 0
®10
Enlarged detail of lead end
K
Annnruuuuu~uuuuuuum~--.i
4eill
LJ[l
M
~
Q
R
49NR·591 B (2t'90)
NEe
Package Drawings
SO-Pin Plastic QFP (20 by 14 mm; I.B-mm leads)
Item
Millimeters
Inches
A
23.6±C.4
B
2O.0±C.2
.929±.016
+.009
.71I1 -.008
C
14.0±C.2
.551 +.009
-.008
D
17.6±C.4
1.0
0.8
.693±.016
.039
.031
H
0.35±C.10
.014
J
0.15
0.8 (TP)
K
1.8±C.2
.006
.031 (TP)
+.009
.071 -.008
L
0.8±C.2
.031
F
G
~:~~
M
0.15
N
P
0.15
2.7
0.1 ±C.1
0.1 ±C.1
3.0 max
Q
R
S
..
~:~~
C
D
~:~:
006 +.004
.
-.002
.006
.106
.004±.004
.004±.004
.118 max
G
H
@j1@lw
Pin Detail
,1,1: ~
Q
P8OGF-eo-aB9-1
R
831H·5S43B
(2190)
10-33
NEe
Package Drawings
SO-Pin Plastic QFP (20 by 14 mmj 2.35-mm leads)
Item
A
24.7±O.4
Inches
.972±.016
B
2O.0±O.2
767 +.009
.
-.OOS
C
14.0±O.2
.551 +.009
-.OOS
D
F
G
1S.7±O.4
.736±.016
1.0
.039
O.S
.031
H
0.35±O.10
.014
0.15
.006
O.S (TP)
.031 (TP)
+.009
.093 -.OOS
K
2.35±O.2
L
1.2±O.2
M
0.15
N
0.15
~:6g
~:~
P
2.05
R
0.1 ±O.1
P80G-80-t2
10-34
MillImeters
~:gg~
A
B
•
I
~-+--~
C
D
.047 +.009
-.OOS
006 +.004
•
-.002
.006
.OS1
~::!
.004±.004
G
H
83SL-6222B
(6189)
NEe
Package Drawings
B4-PinPLCC
r ====:====-==::
i
I" i
nnnonnnnnn
lIem
Millimeters
Inche.
Q
0.6
4.4 ±C.2
2.8 ±C.2
0.9 min
3.4
1.27 ITP)
0.40 ±C.10
0.12
28.20 ±C.2O
0.15
1.189 ±.008
1.153
1.153
1.189 ±.008
.076 ±.006
.024
.173 ±.008
.110 ±.008
.035 min
.134
.050 (TP)
.016 ±.004
.005
1.110 ±.OOS
.008
T
O.S radius
.031 radius
A
30.2 ±C.2
B
C
D
29.28
29.28
30.2 ±C.2
. 1.94 ±C.15
E
F
G
H
J
K
M
N
P
u
.008
84
----------'---f3--C
D
:.~~~
F
G
T
~----~----------P----------------~
P84L-50A3-t
(2/!10)
83VL-58068
10-35
tt1EC
Package Drawings
94-Pin Ceramic LeC (w/lllfindow)
Item
Millimeters
Inches
A
B
C
20.0 ±0.4
18.0
18.0
.787 ±.017
.709
.709
0
20.0 ±0.4
1.94
2.14
4.064 max
0.51 ± 0.10
0.08
0.8 (TP)
.787 ± .017
.076
.064
.160 max
.020 ±.004
1.0 ±0.2
0.3 ccr
1.6
1.6
1.75 rad
.039 ±.OO8
.012 cor
.063
.063
.069 rad
11.5
0.75 ±0.2
1.0 ccr
.453
.030 ±.OO8
.039 ccr
E
F
G
H
J
K
Q
R
S
T
U
W
Y
A
\'1'
B
III!
u
. 'I
1---,
T~
.003
.031 (TP)
..:U
C
o
-
1:loooooooonnrmmnmrm~[IE IF IG
w
s
-F*-----
X94KW-80A
10-36
+ ------l=-I-
49NR·704B (3190)
NEe
Package Drawings
94-Pin Plastic aFP
Item
Millimeters
Inches
A
23.2 ±O.4
.913 +.017
-.016
B
20.0 ±O.2
.787 +.009
-.008
C
20.0 ±O.2
.787 +.009
-.008
D
23.2 ±O.4
.913 +.017
-.016
Fl
1.6
.063
F2
G1
G2
0.8
1.6
.031
.063
0.8
.031
H
0.35 ±O.10
+.004
.014 -.005
0.15
.006
J
K
0.8 (TP)
1.6 ±O.2
.031 (TP)
.063 ±.008
L
0.8 ±O.2
.031
M
0.15
N
P
~:ri~
0.15
F2
C D
+.009
-.008
+.004
.006 -.003
.006
.146
Q
3.7
0.1 ±O.l
R
0.1 ±O.l
.004 ±.004
S
4.0 max
.158 max
.004 ±.O04
Detail of lead end
Il
R
P
S
Q
$94GJ-8Q-5BG-1
10-37
Package Drawings
10-38
fttIEC
NEe Electronics Inc.
CORPORATE HEADQUARTERS
401 Ellis Street
PO. Box 7241
Mountain View, CA 94039
TEL 415-960 -6000
TLX 3715792
For literature, call toll-free 8 a.m. 10 4 p.m. Pacific time:
1-800-632-3531
50053
<> '990 NEG Electronics Inc .lPrinled in U.S.A .
Source Exif Data:
File Type : PDF File Type Extension : pdf MIME Type : application/pdf PDF Version : 1.3 Linearized : No XMP Toolkit : Adobe XMP Core 4.2.1-c043 52.372728, 2009/01/18-15:56:37 Create Date : 2012:12:11 12:28:22-08:00 Modify Date : 2012:12:11 21:00:22-08:00 Metadata Date : 2012:12:11 21:00:22-08:00 Producer : Adobe Acrobat 9.52 Paper Capture Plug-in Format : application/pdf Document ID : uuid:817ab98b-4378-45f0-8a35-0aedcf3cd506 Instance ID : uuid:3ac58082-66ee-4c65-910e-8985e9a0ac2d Page Layout : SinglePage Page Mode : UseNone Page Count : 1002EXIF Metadata provided by EXIF.tools