DATA SHEET
MOS INTEGRATED CIRCUIT
µ
PD78C17, 78C18
8-BIT SINGLE-CHIP MICROCONTROLLER (WITH A/D CONVERTER)
The
µ
PD78C18 is an 8-bit CMOS microcontroller which integrates 16-bit ALU, ROM, RAM, an A/D converter, a
multi-function timer/event counter, and a general-purpose serial interface onto a single chip, and whose memory
(ROM/RAM) is externally expandable up to 31 Kbytes. The
µ
PD78C18 can operate at low power consumption
because of its CMOS architecure and is provided with a standby function that enables data retention with an even
lower power consumption.
The
µ
PD78C17 is the ROM-less version of the
µ
PD78C18. Its memory (ROM/RAM) is expandable externally up
to 63 Kbytes.
A detailed explanation of the functions is provided in the user's manual listed below. It should be read before
starting design work.
87AD Series
µ
PD78C18 User's Manual: IEU-1314
FEATURES
•
•
•
•
•
•
•
•
159 types of instructions: 87AD series instruction set plus multiply/divide and 16-bit operation instructions
Instruction cycle: 0.8
µ
s (at 15-MHz operation)
Internal ROM: 32768 x 8 bits (
µ
PD78C18 only)
Internal RAM: 1024 x 8 bits
Up to 64 Kbytes of memory (ROM/RAM) can be directly addressed.
High-resolution 8-bit A/D converter: 8 analog inputs
General-purpose serial interface: Asynchronous, synchronous, I/O interface modes
Multi-function 16-bit timer/event counter
• Two 8-bit timers
• I/O lines
Input/output ports
: 28 (
µ
PD78C17), 40 (
µ
PD78C18)
Edge detection inputs : 4
• 11 interrupt functions
External : 3, Internal: 8 (Non-maskable: 1, Maskable: 10)
• Zero-cross detection function: (2 inputs)
• Standby function: HALT mode, hardware/software STOP mode
• Mask option pull-up resistors can be incorporated into Ports A, B, and C. (
µ
PD78C18 only)
ORDERING INFORMATION
Part Number
Package
64-pin
64-pin
64-pin
64-pin
64-pin
64-pin
plastic
plastic
plastic
plastic
plastic
plastic
shrink DIP (750 mils)
QFP (14 x 20 mm)
QUIP
shrink DIP (750 mils)
QFP (14 x 20 mm)
QUIP
µ
PD78C17CW
µ
PD78C17GF-3BE
µ
PD78C17GQ-36
µ
PD78C18CW-xxx
µ
PD78C18GF-xxx-3BE
µ
PD78C18GQ-xxx-36
The information in this document is subject to change without notice.
Document No. IC-2789B
(O.D.No.
IC-8048B)
Date Published June 1995 P
Printed in Japan
The mark
5
shows revised points.
©
1995
1990
µ
PD78C17,78C18
CONTENTS
1.
PIN FUNCTIONS ..........................................................................................................................................
7
1.1
1.2
1.3
1.4
LIST OF PIN FUNCTION ......................................................................................................................................7
PIN INPUT/OUTPUT CIRCUITS ..........................................................................................................................9
PIN MASK OPTIONS .........................................................................................................................................15
UNUSED PIN CONNECTIONS ..........................................................................................................................15
2.
INTERNAL BLOCK FUNCTIONS ..............................................................................................................16
2.1
2.2
2.3
2.4
2.5
2.6
2.7
2.8
REGISTERS .........................................................................................................................................................16
ARITHMETIC LOGIC UNIT (ALU) .....................................................................................................................17
PROGRAM STATUS WORD (PSW) ..................................................................................................................17
MEMORY ............................................................................................................................................................19
PORT FUNCTIONS .............................................................................................................................................22
TIMER ..................................................................................................................................................................31
TIMER/EVENT COUNTER .................................................................................................................................34
SERIAL INTERFACE ...........................................................................................................................................41
2.9 ANALOG/DIGITAL CONVERTER ......................................................................................................................52
2.10 ZERO-CROSS DETECTOR .................................................................................................................................55
3.
INTERRUPT FUNCTIONS .........................................................................................................................57
3.1
3.2
3.3
3.4
INTERRUPT CONTROL CIRCUIT CONFIGURATION ......................................................................................58
NON-MASKABLE INTERRUPT OPERATION ...................................................................................................61
MASKABLE INTERRUPT OPERATION ............................................................................................................63
INTERRUPT OPERATION BY SOFTI INSTRUCTION ......................................................................................64
4.
STANDBY FUNCTIONS ............................................................................................................................65
4.1
4.2
4.3
4.4
4.5
4.6
4.7
HALT MODE .......................................................................................................................................................65
HALT MODE RELEASE ......................................................................................................................................66
SOFTWARE STOP MODE .................................................................................................................................68
SOFTWARE STOP MODE RELEASE ................................................................................................................68
HARDWARE STOP MODE .................................................................................................................................69
HARDWARE STOP MODE RELEASE ...............................................................................................................70
LOW SUPPLY VOLTAGE DATA RETENTION MODE ..................................................................................... 71
5.
6.
RESET OPERATIONS ................................................................................................................................72
INSTRUCTION SET ...................................................................................................................................73
6.1
6.2
6.3
IDENTIFIER/DESCRIPTION OF OPERAND ......................................................................................................73
SYMBOL DESCRIPTION OF INSTRUCTION CODE ........................................................................................74
INSTRUCTION EXECUTION TIME ...................................................................................................................75
7.
8.
9.
LIST OF MODE REGISTERS .....................................................................................................................87
ELECTRICAL SPECIFICATIONS ................................................................................................................88
CHARACTERISTIC CURVES .....................................................................................................................99
10. PACKAGE DRAWINGS ...........................................................................................................................102
5