The µPD178004A, 178006A, 178016A and 178018A are 8-bit single-chip CMOS microcontrollers that incorporate
hardware for digital tuning systems.
The CPU uses the 78K/0 architecture, which makes it easy to implement high-speed access to internal memory
and control of peripheral hardware. Also, the instructions used are the high-speed 78K/0 instructions, suitable for
system control.
The rich assortment of peripheral hardware includes an input/output port, 8-bit timer, A/D converter, serial interface,
power-ON clear circuits, as well as a pre-scaler for digital tuning, a PLL frequency synthesizer and a frequency counter.
The µPD178P018A, one-time PROM or EPROM versions which can be operated in the same supply voltage range
as for the mask ROM versions, and various development tools, are also available.
For more information on functions, refer to the following User’s Manuals. Be sure to read them when
designing.
• Supply Voltage: VDD = 4.5 to 5.5 V (during PLL operation)
VDD = 3.5 to 5.5 V (during CPU operation, when the system clock is fX/2 or lower)
VDD = 4.5 to 5.5 V (during CPU operation, when the system clock is fX)
The information in this document is subject to change without notice.
Document No. U12641EJ1V0DS00 (1st Edition)
Date Published July 1997 N
Printed in Japan
NoteWhen using the I2C bus mode (including when this mode is implemented by program without using the
peripheral hardware), consult your local NEC sales representative when you place an order for mask.
3
µ
PD178004A, 178006A, 178016A, 178018A
(2/2)
Product name
Item
PLL frequencyDivision modeTwo types
synthesizer• Direct division mode (VCOL pin)
Reference frequency7 types selectable by program (1, 3, 5, 9, 10, 25, 50 kHz)
Charge pumpError out output: 2 (EO0 and EO1 pins
Phase comparatorUnlock detectable by program
Frequency counter• Frequency measurement
D/A converter (PWM output)8-/9-bit resolution × 3 channels (shared by 8-bit timer)
Standby function• HALT mode
Reset• Reset by RESET pin
Power supply voltage• VDD = 4.5 to 5.5 V (with PLL operating)
Package• 80-pin plastic QFP (14 × 14 mm, 0.65-mm pitch)
µ
PD178004A
• Pulse swallow mode (VCOH and VCOL pins)
• AMIFC pin: for 450-kHz count
• FMIFC pin: for 450-kHz/10.7-MHz count
• STOP mode
• Internal reset by watchdog timer
• Reset by power-ON clear circuit (3-value detection)
• Detection of less than 4.5 V
• Detection of less than 3.5 V
• Detection of less than 2.5 V
•VDD = 3.5 to 5.5 V (with CPU operating, CPU clock: fX/2 or less)
•VDD = 4.5 to 5.5 V (with CPU operating, CPU clock: fX)
µ
PD178006A
Note 2
µ
PD178016A
Note 1
)
Note 2
(CPU clock: fX)
(CPU clock: fX/2 or less and on power application)
Note 2
(in STOP mode)
µ
PD178018A
Notes 1. The EO1 pin can be set to high impedance for the µPD178016A and 178018A.
The following shows an application example.
µ
PD178016A
µ
PD178018A
EO0
EO1
VCOH
VCOL
LPFVCO
To Mixer
LPF : Low path filter
VCO : Voltage controlled oscillator
• To lock to a target frequency at high speed
Setting the EO0 and EO1 pins to error out output improves the output current potential and LPF
voltage control potential.
• Normal state
Setting only the EO0 pin to error out output maintains the LPF stable.
2. These voltage values are maximum values. Reset is actually executed at a voltage lower than these
values.
Cautions 1. Connect the Internally Connected (IC) pin to GND directly.
2. Connect VDDPORT and VDDPLL pins to VDD.
3. Connect the GNDPORT and GNDPLL pins to GND.
4. Connect each of the REGOSC and REGCPU pins to GND via a 0.1-µF capacitor.
6
µ
PD178004A, 178006A, 178016A, 178018A
AMIFC: AM Intermediate Frequency Counter Input
AN10 to AN15 : A/D Converter Input
BEEP: Buzzer Output
BUSY: Busy Output
EO0, EO1: Error Out Output
FMIFC: FM Intermediate Frequency Counter Input
GND: Ground
GNDPLL: PLL Ground
GNDPORT: Port Ground
IC: Internally Connected
INTP0 to INTP6
P00 to P06: Port 0
P10 to P15: Port 1
P20 to P27: Port 2
P30 to P37: Port 3
P40 to P47: Port 4
P50 to P57: Port 5
P60 to P67: Port 6
P120 to P125 : Port 12
: Interrupt Inputs
P132 to P134 : Port 13
PWM0 to PWM2
REGCPU: Regulator for CPU Power Supply
REGOSC: Regulator for Oscillator Circuit
RESET: Reset Input
SB0, SB1: Serial Data Bus Input/Output
SCK0, SCK1 : Serial Clock Input/Output
SCL: Serial Clock Input/Output
SDA0, SDA1 : Serial Data Input/Output
SI0, SI1: Serial Data Input
SO0, SO1: Serial Data Output
STB: Strobe Output
TI1, TI2: Timer Clock Input
VCOL, VCOH : Local Oscillator Input
VDD: Power Supply
VDDPLL: PLL Power Supply
VDDPORT: Port Power Supply
X1, X2: Crystal Oscillator Connection
: PWM Output
7
2. BLOCK DIAGRAM
µ
PD178004A, 178006A, 178016A, 178018A
TI1/P33
TI2/P34
SI0/SB0/SDA0/P25
SO0/SB1/SDA1/P26
SCK0/SCL/P27
SI1/P20
SO1/P21
SCK1/P22
STB/P23
BUSY/P24
ANI0/P10 to
ANI5/P15
INTP0/P00 to
INTP6/P06
BEEP/P36
8-bit TIMER/
EVENT COUNTER 1
8-bit TIMER/
EVENT COUNTER 2
8-bit TIMER 3
WATCHDOG TIMER
BASIC TIMER
SERIAL
INTERFACE 0
SERIAL
INTERFACE 1
A/D CONVERTER
6
INTERRUPT
7
CONTROL
BUZZER OUTPUT
78K/0
CPU
CORE
RAM
ROM
PORT 0
PORT 1
PORT 2
PORT 3
PORT 4
PORT 5
PORT 6
PORT 12
PORT 13
D/A CONVERTER
(PWM)
FREQUENCY
COUNTER
P00
6
P01 to P06
6
P10 to P15
P20 to P27
8
8
P30 to P37
8
P40 to P47
8
P50 to P57
8
P60 to P67
6
P120 to P125
3
P132 to P134
PWM0/P132 to
3
PWM2/P134
AMIFC
FMIFC
RESET
X1
X2
V
DDPORT
GNDPORT
V
REGOSC
REGCPU
GND
SYSTEM
CONTROL
DD
VOLTAGE
REGULATOR
RESET
CPU
PERIPHERAL
V
OSC
VCPU
Remark The internal ROM and RAM capacities depend on the version.
8
PLL
PLL
VOLTAGE
REGULATOR
EO0
EO1
VCOL
VCOH
V
DDPLL
GNDPLL
IC
3. PIN FUNCTION LIST
3.1 PORT PINS
µ
PD178004A, 178006A, 178016A, 178018A
Pin NameI/OFunctionAfter Reset
P00InputPort 0.Input onlyInputINTP0
P01 to P06 I/O
P10 to P15 I/OPort 1.InputANI0 to ANI5
P132 toOutputPort 13. —PWM0 to
P1343-bit output port.PWM2
7-bit input/output port.
6-bit input/output port.
Input/output mode can be specified bit-wise.
8-bit input/output port.
Input/output mode can be specified bit-wise.
8-bit input/output port.
Input/output mode can be specified bit-wise.
8-bit input/output port.
Input/output mode can be specified in 8-bit units.
Test input flag (KRIF) is set to 1 by falling edge detection.
8-bit input/output port.
Input/output mode can be specified bit-wise.
8-bit input/output port.input/output port.
specified bit-wise.
Input/output mode can be specified bit-wise.
N-ch open-drain output port.
Input/output mode can be specified bit-wise.
Input
Alternate Function
INTP1 to INTP6
SO1
SCK1
SO0/SB1/SDA1
TI1
TI2
9
3.2 PINS OTHER THAN PORT PINS
µ
PD178004A, 178006A, 178016A, 178018A
Pin NameI/OFunctionAfter Reset
INTP0 toInputExternal maskable interrupt inputs with specifiable valid edges (risingInputP00 to P06
INTP6edge, falling edge, both rising and falling edges).
SI0InputSerial interface serial data inputInput
SI1P20
SO0OutputSerial interface serial data outputInput
SO1P21
SB0I/OSerial interface serial data input/outputInputP25/SI0/SDA0
SB1
SDA0P25/SI0/SB0
SDA1P26/SO0/SB1
SCK0I/OSerial interface serial clock input/outputInputP27/SCL
SCK1P22
SCLP27/SCK0
STBOutputSerial interface automatic transmit/receive strobe outputInputP23
BUSYInputSerial interface automatic transmit/receive busy inputInputP24
TI1InputExternal count clock input to 8-bit timer (TM1)InputP33
TI2External count clock input to 8-bit timer (TM2)P34
BEEPOutputBuzzer outputInputP36
ANI0 to ANI5
PWM0 to PWM2
EO0, EO1OutputError out output from charge pump of the PLL frequency synthesizer——
VCOLInputInputs PLL local band frequency (In HF, MF mode)——
VCOHInputInputs PLL local band frequency (In VHF mode)——
AMIFCInputInputs AM intermediate frequency counter——
FMIFCInputInputs FM intermediate frequency counter——
RESETInputSystem reset input——
X1InputSystem clock oscillation resonator connection——
X2 ———
REGOSC —Oscillation regulator. Connected to GND via a 0.1-µF capacitor.——
REGCPU —CPU power supply regulator. Connected to GND via a 0.1-µF capacitor.——
VDD —Positive power supply——
GND —Ground——
VDDPORT —Positive power supply for port block——
GNDPORT —Ground for port block——
VDDPLL
GNDPLL
IC —Internally connected. Connected to GND or GNDPORT.——
InputA/D converter analog inputInputP10 to P15
OutputPWM output—P132 to P134
Note
—Positive power supply for PLL——
Note
—Ground for PLL——
Alternate Function
P25/SB0/SDA0
P26/SB1/SDA1
P26/SO0/SDA1
Note Connect a capacitor of approximately 1 000 pF between the VDDPLL pin and GNDPLL pin.
10
µ
PD178004A, 178006A, 178016A, 178018A
3.3 INPUT/OUTPUT CIRCUITS AND RECOMMENDED CONNECTION OF UNUSED PINS
Table 3-1 shows the input/output circuit types of pins and the recommended conditions for unused pins.
Refer to Figure 3-1 for the configuration of the input/output circuit of each type.
Table 3-1. I/O Circuit Type of Each Circuit
Pin NameI/O Circuit TypeI/ORecommended Connections of Unused Pins
P00/INTP02InputConnected to GND or GNDPORT
P01/INTP1 to P06/INTP68I/OSet in general-purpose input port mode by software and
P10/ANI0 to P15/ANI511-A
P20/SI18
P21/SO15
P22/SCK18
P23/STB5
P24/BUSY8
P25/SI0/SB0/SDA010
P26/SO0/SB1/SDA1
P27/SCK0/SCL
P30 to P325
P33/TI1, P34/TI28
P355
P36/BEEP
P37
P40 to P475-G
P50 to P575
P60 to P6313-D
P64 to P675
P120 to P125
P132/PWM0 to P134/PWM219OutputSet to low-level output by software and open
EO0DTS-EO1Open
EO1DTS-EO3
VCOL, VCOHDTS-AMPInputSet to disabled status by software and open
AMIFC, FMIFC
IC — —Connected to GND or GNDPORT directly
Note
individually connected to VDD, VDDPORT, GND, or GNDPORT
via resistor.
Note For the µPD178004A and 178006A, the I/O circuit type is DTS-EO1.
11
µ
PD178004A, 178006A, 178016A, 178018A
Figure 3-1. Pin Input/Output Circuit of List (1/2)
Type 2
Type 5
data
output
disable
Type 8
VDD
IN
Schmitt-Triggered Input with
Hysteresis Characteristics
VDD
P-ch
IN/OUT
N-ch
data
output
disable
Type 10
data
open-drain
output disable
P-ch
IN/OUT
N-ch
VDD
P-ch
IN/OUT
N-ch
input
enable
Type 5-GType 11-A
VDD
P-ch
IN/OUT
N-ch
data
output
disable
VDD
P-ch
N-ch
IN/OUT
data
output
disable
comparator
input
enable
P-ch
+
_
V
N-ch
REF (Threshold voltage)
Remark All VDD and GND in the above figures are the positive power supply and ground potential of the ports,
and should be read as VDDPORT and GNDPORT, respectively.
12
µ
PD178004A, 178006A, 178016A, 178018A
Figure 3-1. Pin Input/Output Circuit of List (2/2)
Type 13-DType DTS-EO3
output disable
data
Type 19
N-ch
VDD
RD
Middle-Voltage Input Buffer
N-ch
P-ch
OUT
IN/OUT
Type DTS-AMP
IN
DW
UP
DDPLL
V
P-ch
N-ch
GNDPLL
DDPLL
V
OUT
Type DTS-EO1
DDPLL
V
DW
UP
P-ch
OUT
N-ch
GNDPLL
Remark All VDD and GND in the above figures are the positive power supply and ground potential of the ports,
and should be read as VDDPORT and GNDPORT, respectively.
13
µ
PD178004A, 178006A, 178016A, 178018A
4. MEMORY SPACE
Figure 4-1 shows the µPD178004A, 178006A, 178016A, and 178018A memory map.
Figure 4-1. Memory Map
FFFFH
Special Function Registers
(SFR) 256 × 8 bits
FF00H
Data Memory
Space
Program Memory
Space
FEFFH
FEE0H
FEDFH
FB00H
FAFFH
FAE0H
FADFH
FAC0H
FABFH
nnnnH + 1
nnnnH
0000H
General-Purpose
Registers
32 × 8 bits
Internal High-Speed
RAM
1 024 × 8 bits
Use Prohibited
Buffer RAM 32 × 8 bits
Use Prohibited
Internal ROM
Note 3
FABFH
F800H
F7FFH
F000H
EFFFH
nnnnH + 1
nnnnH
1000H
0FFFH
0800H
07FFH
0080H
007FH
0040H
003FH
0000H
Use Prohibited
Internal Expanded RAM
2 048 × 8 bits
Use Prohibited
Program Area
CALLF Entry Area
Program Area
CALLT Table Area
Vectored Table Area
Note 2
Note 1
Notes 1. Available only for µPD178016A and 178018A
2. The µPD178018A does not contain this use prohibited area.
3. The internal ROM capacity depends on the version (see the table below).
Corresponding ProductInternal ROM Last Address
NamennnnH
µ
PD178004A7FFFH
µ
PD178006A, 178016ABFFFH
µ
PD178018AEFFFH
14
µ
PD178004A, 178006A, 178016A, 178018A
5. PERIPHERAL HARDWARE FUNCTION FEATURES
5.1 PORTS
The following 3 types of I/O ports are available.
• CMOS input (P00):1
• CMOS input/output (P01 to P06, port 1 to port 5, P64 to P67, port 12) : 54
• N-channel open-drain input/output (P60 to P63):4
• N-ch open drain output (Port 13):3
Total: 62
Table 5-1. Port Functions
Name
Port 0P00
Port 1
Port 3P30 to P37
Port 4P40 to P47Input/output port pins. Input/output specifiable in 8-bit units.
Port 5P50 to P57
Port 6P60 to P63
Port 12
Port 13P132 to P134
Pin NameFunction
Dedicated input port pins
P01 to P06
P10 to P15
P20 to P27
P64 to P67
P120 to P125Input/output port pins. Input/output specifiable bit-wise.
Input/output port pins. Input/output specifiable bit-wise.
Input/output port pins. Input/output specifiable bit-wise.
Input/output port pins. Input/output specifiable bit-wise.Port 2
Input/output port pins. Input/output specifiable bit-wise.
Test flag (KRIF) is set to 1 by falling edge detection.
Input/output port pins. Input/output specifiable bit-wise.
N-channel open-drain input/output port pins. Input/output specifiable bit-wise.
LED direct drive capability.
Input/output port pins. Input/output specifiable bit-wise.
N-ch open drain output port.
15
µ
PD178004A, 178006A, 178016A, 178018A
5.2 CLOCK GENERATOR
The instruction execution time can be changed as follows.
0.44 µs/0.88 µs/1.78 µs/3.56 µs/7.11 µs/14.22 µs (@ 4.5-MHz crystal oscillator with system clock.)
Figure 5-1. Clock Generator Block Diagram
Prescaler
Clock to the PLL
frequency synthesizer,
basic timer and buzzer
output control circuit.
X1
X2
System
Clock
Oscillator
STOP
fX
Scaler
fX
2
Selector
f
XX
f
XX
2
Prescaler
fXX
fXX
2
3
2
2
fXX
4
2
Selector
Standby
Control
Circuit
To INTP0
Sampling Clock
5.3 TIMER
The µPD178004A, 178006A, 178016A, and 178018A incorporate 5 channels of the timer.
• Basic timer: 1 channel
• 8-bit timer/event counter: 2 channels
• 8-bit timer (D/A converter)
• Watchdog timer: 1 channel
Note Used is shared with the 8/9-bit resolution × 3-channel D/A converter (PWM output).
Note
: 1 channel
Figure 5-2. Basic Timer Block Diagram
Clock to peripheral
hardware other than
the above.