DATA SHEET
MOS INTEGRATED CIRCUIT
µ
PD17215, 17216, 17217, 17218
4-BIT SINGLE-CHIP MICROCONTROLLER
FOR SMALL GENERAL-PURPOSE INFRARED REMOTE CONTROL TRANSMITTER
DESCRIPTION
µ
PD17215, 17216, 17217, 17218 (hereafter called
µ
PD17215 subseries) are 4-bit single-chip microcontrollers for
small general-purpose infrared remote control transmitters.
It employs a 17K architecture of general-purpose register type devices for the CPU, and can directly execute
operations between memories instead of the conventional method of executing operations through the accumulator.
Moreover, all the instructions are 16-bit 1-word instructions which can be programmed efficiently.
In addition, a one-time PROM model,
µ
PD17P218, to which data can be written only once, is also available. It is
convenient either for evaluating the
µ
PD17215 subseries programs or small-scale production of application systems.
Detailed functions are described in the follwing manual. Be sure to read this manual when designing your
system.
µ
PD172×× Subseries User's Manual: IEU-1317
FEATURES
• Infrared remote controller carrier generator circuit (REM output)
• 17K architecture: General-purpose register system
• Program memory (ROM), Data memory (RAM)
µ
PD17215
Program memory (ROM)
4 K bytes
(2048
×
16)
Data memory (RAM)
µ
PD17216
8 K bytes
(4096
×
16)
µ
PD17217
12 K bytes
(6144
×
16)
µ
PD17218
16 K bytes
(8192
×
16)
111
×
4 bits
223
×
4 bits
• 8-bit timer
:
1 channel
• Basic internal timer / Watchdog timer: 1 channel (WDOUT output)
• Instruction execution time (can be changed in two steps)
at f
X
4 MHz
at f
X
8 MHz
• External interrupt pin (INT)
• I/O pins
• Supply voltage
:
:
:
:
:
4
µ
s (high-speed mode)/8
µ
s (ordinary mode)
2
µ
s (high-speed mode)/4
µ
s (ordinary mode)
1
20
V
DD
= 2.2 to 5.5 V (at f
X
= 4 MHz (high-speed mode))
V
DD
= 2.0 to 5.5 V (at f
X
= 4 MHz (ordinary mode))
• Low-voltage detector circuit (mask opation)
Unless otherwise specified, the
µ
PD17215 is treated as the representative model throughout this document.
The information in this document is subject to change without notice.
Document No. U12042EJ3V0DS00 (3rd edition)
(Previous No. IC–3249)
Date Published January 1997 N
Printed in Japan
The mark
shows major revised points.
©
1993
µ
PD17215, 17216, 17217, 17218
APPLICATION
Preset remote controllers, toys, portable systems, etc.
ORDERING INFORMATION
Part Number
Package
28-pin plastic shrink DIP (400 mil)
28-pin plastic SOP (375 mil)
28-pin plastic shrink DIP (400 mil)
28-pin plastic SOP (375 mil)
28-pin plastic shrink DIP (400 mil)
28-pin plastic SOP (375 mil)
28-pin plastic shrink DIP (400 mil)
28-pin plastic SOP (375 mil)
µ
PD17215CT-xxx
µ
PD17215GT-xxx
µ
PD17216CT-xxx
µ
PD17216GT-xxx
µ
PD17217CT-xxx
µ
PD17217GT-xxx
µ
PD17218CT-xxx
µ
PD17218GT-xxx
Remark:
xxx is ROM code number.
2
µ
PD17215, 17216, 17217, 17218
PIN CONFIGURATION (TOP VIEW)
• 28-pin plastic SOP (375 mil)
µ
PD17215GT-xxx, 17216GT-xxx, 17217GT-xxx, 17218GT-xxx
• 28-pin plastic shrink DIP (400 mil)
µ
PD17215CT-xxx, 17216CT-xxx, 17217CT-xxx, 17218CT-xxx
P0D
2
P0D
3
INT
P0E
0
P0E
1
P0E
2
P0E
3
REM
V
DD
X
OUT
X
IN
GND
RESET
WDOUT
1
2
3
4
5
6
7
8
9
10
11
12
13
14
28
27
26
25
24
23
22
21
20
19
18
17
16
15
P0D
1
P0D
0
P0C
3
P0C
2
P0C
1
P0C
0
P0B
3
P0B
2
P0B
1
P0B
0
P0A
3
P0A
2
P0A
1
P0A
0
GND
INT
: Ground
: External interrupt request signal input
P0A
0
-P0A
3
: Input port (CMOS input)
P0B
0
-P0B
3
: Input port (CMOS input)
P0C
0
-P0C
3
: Output port (N-ch open-drain output)
P0D
0
-P0D
3
: Output port (N-ch open-drain output)
P0E
0
-P0E
3
: I/O port (CMOS push-pull output)
REM
RESET
V
DD
WDOUT
X
IN
, X
OUT
: Remote controller output (CMOS push-pull output)
: Reset input
: Power supply
: Hang-up/low voltage detection output (N-ch open-drain output)
: Oscillator connection
3
µ
PD17215, 17216, 17217, 17218
BLOCK DIAGRAM
P0A
0
P0A
1
P0A
2
P0A
3
P0A
RF
ROM
µ
PD17215, 17216 : 111
×
4 bits
µ
PD17217, 17218 : 223
×
4 bits
Remote
Control
Divider
REM
8-bit Timer
P0B
0
P0B
1
P0B
2
P0B
3
P0B
SYSTEM REG.
Interrupt
Controller
ALU
INT
P0C
0
P0C
1
P0C
2
P0C
3
P0C
ROM
µ
PD17215 : 2048
µ
PD17216 : 4096
µ
PD17217 : 6144
µ
PD17218 : 8192
×
×
×
×
16 bits
16 bits
16 bits
16 bits
Instruction
Decoder
P0D
0
P0D
1
P0D
2
P0D
3
P0D
RESET
WDOUT
Program Counter
P0E
0
P0E
1
P0E
2
P0E
3
P0E
Stack (5 levels)
Power
Supply
Circuit
CPU Clock
V
DD
GND
X
IN
Basic Interval/
Watchdog Timer
OSC
X
OUT
4
µ
PD17215, 17216, 17217, 17218
CONTENTS
1.
PIN FUNCTIONS ..............................................................................................................................
1.1
1.2
1.3
1.4
Pin Function List .....................................................................................................................................
Input/Output Circuits ...............................................................................................................................
Processing of Unused Pins .....................................................................................................................
Notes on Using INT and RESET Pins .....................................................................................................
7
7
8
9
9
2.
MEMORY SPACE .............................................................................................................................
2.1
2.2
2.3
2.4
2.5
Program Counter (PC) ............................................................................................................................
Program Memory (ROM) ........................................................................................................................
Stack .......................................................................................................................................................
Data Memory (RAM) ...............................................................................................................................
Register File (RF) ...................................................................................................................................
10
10
10
12
14
21
3.
PORTS ..............................................................................................................................................
3.1
3.2
3.3
3.4
3.5
3.6
3.7
3.8
Port 0A (P0A
0
-P0A
3
) ...............................................................................................................................
Port 0B (P0B
0
-P0B
3
) ...............................................................................................................................
Port 0C (P0C
0
-P0C
3
) ..............................................................................................................................
Port 0D (P0D
0
-P0D
3
) ..............................................................................................................................
Port 0E (P0E
0
-P0E
3
) ...............................................................................................................................
INT Pin ....................................................................................................................................................
Switching Bit I/O .....................................................................................................................................
Specifying Pull-up Sesistor Connection ...................................................................................................
24
24
24
24
24
24
25
26
27
4.
CLOCK GENERATOR CIRCUIT ......................................................................................................
4.1
Instruction Execution Time (CPU Clock) Selection .................................................................................
28
28
5.
8-BIT TIMER AND REMOTE CONTROLLER CARRIER GENERATOR CIRCUIT ........................
5.1
5.2
5.3
Configuration of 8-bit Timer (with modulo function) .................................................................................
Function of 8-bit Timer (with modulo function) ........................................................................................
Carrier Generator Circuit for Remote Controller ......................................................................................
29
29
31
32
6.
BASIC INTERVAL TIMER/WATCHDOG TIMER .............................................................................
6.1
6.2
6.3
Source Clock for Basic Interval Timer .....................................................................................................
Controlling Basic Interval Timer ..............................................................................................................
Operation Timing for Watchdog Timer ....................................................................................................
36
36
36
38
7.
INTERRUPT FUNCTIONS ................................................................................................................
7.1
7.2
7.3
Interrupt Sources ....................................................................................................................................
Hardware of Interrupt Control Circuit ......................................................................................................
Interrupt Sequence .................................................................................................................................
39
39
40
44
5