NEC UPD66P04BGS, UPD66P04BGS-GJG Datasheet

DATA SHEET
MOS INTEGRATED CIRCUIT
µ
PD66P04B
4-BIT SINGLE-CHIP MICROCONTROLLER
FOR INFRARED REMOTE CONTROL TRANSMISSION

DESCRIPTION

The µPD66P04B is a microcontroller for infrared remote control transmitters which is provided with a one-time
PROM as the program memory.
Because users can write programs for the µPD66P04B, it is ideal for program evaluation and small-scale
µ
production of the application systems using the
When reading this document, also refer to the µPD6604 Data Sheet (U11281E).

FEATURES

• Program memory (one-time PROM): 1002 × 10 bits
• Data memory (RAM) : 32 × 4 bits
• Built-in carrier generation circuit for infrared remote control
• 9-bit programmable timer : 1 channel
• Command execution time : 16
• Stack level : 1 level (Stack RAM is for data memory RF as well.)
• I/O pins (K
• Input pins (KI) : 4 units
• Sense input pin (S
•S1/LED pin (I/O) : 1 unit (When in output mode, this is the remote control transmission
• Power supply voltage : V
• Operating ambient temperature : TA = –40 to +85 °C
• Oscillator frequency : fOSC = 300 kHz to 1 MHz
• POC circuit
I/O) : 8 units
0) : 1 unit
PD6604.
µ
s (when operating at fOSC = 500 kHz: RC oscillation)
display pin.)
DD = 2.2 to 3.6 V

APPLICATION

Infrared remote control transmitter (for AV and household electric appliances)
µ
Because the the models using ceramic oscillation. In applications where the clock accuracy and stability pose a problem, use the µPD61P34B (ceramic oscillation type).
The information in this document is subject to change without notice. Before using this document, please confirm that this is the latest version. Not all devices/types available in every country. Please check with local NEC representative for availability and additional information.
Document No. U13596EJ2V0DS00 (2nd edition) Date Published June 1999 N CP(K) Printed in Japan
PD66P04B uses an RC oscillation system clock, its accuracy and stability are lower than
The mark
shows major revised points.
©
1998,1999

ORDERING INFORMATION

Part Number Package
µ
PD66P04BGS 20-pin plastic SOP (300 mil)
µ
PD66P04BGS-GJG 20-pin plastic shrink SOP (300 mil)

PIN CONFIGURATION (TOP VIEW)

20-pin Plastic SOP (300 mil)
•µPD66P04BGS
20-pin Plastic Shrink SOP (300 mil)
µ
PD66P04BGS-GJG
(1) Normal operating mode
µ
PD66P04B
K K
S1/LED
REM
V
OSC
OSC
GND
RESET
(2) PROM programming mode
CLK
(L)
V
OSCOUT
OSCIN
GND
V
I/O6
I/O7
S
OUT
D6 D7
1 2
0
3 4 5
DD
6 7
IN
8 9 10
1 2 3 4 5
DD
6 7 8 9
PP
10
20 19 18 17 16 15 14 13 12 11
20 19 18 17 16 15 14 13 12 11
K K K K K K K K K K
D5 D4 D3 D2 D1 D0 MD3 MD2 MD1 MD0
I/O5
I/O4
I/O3
I/O2
I/O1
I/O0
I3
I2
I1
I0
Caution Round brackets ( ) indicate the pins not used in the PROM programming mode.
L : Connect each of these pins to GND via a pull-down resistor.
2
Data Sheet U13596EJ2V0DS00

BLOCK DIAGRAM

µ
PD66P04B
REM
CARRIER GENERATOR
CPU CORE
S
1
/LED
9-bit TIMER
RAM

LIST OF FUNCTIONS

Item
ROM capacity 1002 × 10 bits
One-time PROM RAM capacity 32 × 4 bits Stack 1 level (shared with RF of RAM)
ONE­TIME PROM
4
8
2
µ
PD66P04B
PORT K
PORT K
I/O
PORT S
SYSTEM CONTROL
4
KI0-K
I
8
2
I3
K
I/O0-KI/O7
S0, S1/LED
RESET
IN
OSC OSC
OUT
V
DD
GND
I/O pin Key input (KI) : 4 pins
Key I/O (KI/O) : 8 pins
Key expansion input (S0, S1) : 2 pins
Remote control transmitter display output (LED): 1 pin (shared with S1 pin) Number of keys 32 keys
48 keys (when expanded by key expansion input)
96 keys (when expanded by key expansion input and diode) Clock frequency RC oscillation
fOSC = 300 to 500 kHz
fOSC = 500 kHz to 1 MHz
Note
Instruction execution time 16 µs (at fOSC = 500 kHz) Carrier frequency fOSC, fOSC/2, fOSC/8, fOSC/12, fOSC/16, fOSC/24, no carrier (high level) Timer 9-bit programmable timer : 1 channel POC circuit Internal Supply voltage VDD = 2.2 to 3.6 V Operating ambient • TA = –40 to +85 °C
temperature • TA = –20 to +70 °C (when POC circuit used) Package • 20-pin plastic SOP (300 mil)
• 20-pin plastic shrink SOP (300 mil)
Note It is necessary to design the application circuit so that the RESET pin goes low at a supply voltage of less
than 2.2 V.
Data Sheet U13596EJ2V0DS00
3
µ
PD66P04B
TABLE OF CONTENTS
1. PIN FUNCTIONS......................................................................................................................... 5
1.1 Normal Operating Mode.................................................................................................................... 5
1.2 PROM Programming Mode............................................................................................................... 6
1.3 INPUT/OUTPUT Circuits of Pins ...................................................................................................... 7
1.4 Dealing with Unused Pins ................................................................................................................ 8
1.5 Notes on Using K
I Pin at Reset ........................................................................................................ 8
2. DIFFERENCES BETWEEN µPD6604 AND µPD66P04B .......................................................... 9
3. WRITING AND VERIFYING ONE-TIME PROM (PROGRAM MEMORY) .................................. 10
3.1 Operating Mode When Writing/Verifying Program Memory.......................................................... 10
3.2 Program Memory Writing Procedure .............................................................................................. 11
3.3 Program Memory Reading Procedure.............................................................................................12
4. ELECTRICAL SPECIFICATIONS............................................................................................... 13
5. CHARACTERISTIC CURVE (REFERENCE VALUES) .............................................................. 19
6. APPLIED CIRCUIT EXAMPLE ................................................................................................... 21
7. PACKAGE DRAWINGS..............................................................................................................22
8. RECOMMENDED SOLDERING CONDITIONS.......................................................................... 24
APPENDIX A. DEVELOPMENT TOOLS ........................................................................................ 25
APPENDIX B. EXAMPLE OF REMOTE-CONTROL TRANSMISSION FORMAT .......................... 26
4
Data Sheet U13596EJ2V0DS00
µ
PD66P04B

1. PIN FUNCTIONS

1.1 Normal Operating Mode

Pin No. Symbol Function Output Format When Reset
1KI/O0-KI/O7 CMOS High-level output 2 push-pull 15-20
3S0 High-impedance
4S1/LED CMOS push-pull High-level output
5 REM CMOS push-pull Low-level output
6VDD —— 7 OSCOUT High-impedance
8 OSCIN
9 GND —— 10 RESET ——
11-14 KI0-KI3
These pins refer to the 8-bit I/O ports. I/O switching can be made in 8-bit units. In INPUT mode, a pull-down resistor is added. In OUTPUT mode, they can be used as the key scan output of the key matrix.
Refers to the input port. Can also be used as the key return input of the key matrix. In INPUT mode, the availability of the pull-down resistor of the S0 and S1 ports can be specified by software in terms in 2-bit units. If INPUT mode is canceled by software, this pin is placed in OFF mode and enters the high-impedance state.
Refers to the I/O port. In INPUT mode (S1), this pin can also be used as the key return input of the key matrix. The availability of the pull-down resistor of the S0 and S1 ports can be specified by software in 2-bit units. In OUTPUT mode (LED), it becomes the remote control transmission display output (active low). When the remote control carrier is output from the REM output, this pin outputs the low level from the LED output synchronously with the REM signal.
Refers to the infrared remote control transmission output. The output is active high. Carrier frequency: fOSC, fOSC/8, fOSC/12, high-level,
fOSC/2, fOSC/16, fOSC/24
(usable on software) Refers to the power supply. These pins are used for RC oscillation.
Refers to the ground. Normally, this pin is a system reset input. By inputting
a low level, the CPU can be reset. When resetting with the POC circuit a low level is output. A pull-up resistor is incorporated.
Note 2
These pins refer to the 4-bit input ports. They can be used as the key return input of the key matrix. The use of the pull-down resistor can be specified by software in 4-bit units.
Note 1
(OFF mode)
(LED)
(oscillation stopped) Low level
(oscillation stopped)
Input (low-level)
Notes 1. Be careful about this because the drive capability of the low-level output side is held low.
2. In order to prevent malfunction, be sure to input a low level to more than one of pins KI0 to KI3 when
reset is released (when RESET pin changes from low level to high level, or POC is released due to supply voltage startup).
Data Sheet U13596EJ2V0DS00
5

1.2 PROM Programming Mode

Pin No. Symbol Function I/O
1, 2 D0-D7 8-bit data input/output when writing/verifying program memory I/O 15-20
3 CLK Clock input for updating address when writing/verifying program Input
memory
6VDD Power Supply.
Supply +6 V to this pin when writing/verifying program memory. 7 OSCOUT Clock necessary for writing program memory. Connect a resistor – 8 OSCIN (R = 47 k) and a capacitor (C = 27 pF) to these pins. Input 9 GND GND – 10 VPP Supplies voltage for writing/verifying program memory.
Apply +12.5 V to this pin. 11-14 MD0-MD3
Input for selecting operation mode when writing/verifying program memory.
Input
µ
PD66P04B
6
Data Sheet U13596EJ2V0DS00

1.3 INPUT/OUTPUT Circuits of Pins

The input/output circuits of the µPD66P04B pins are shown in partially simplified forms below.
I/O0-KI/O7 (4) S0
(1) K
V
DD
data
Output latch
P-ch
Input buffer
µ
PD66P04B
output
disable
Selector
Input buffer
Note The drive capability is held low.
I0-KI3
(2) K
standby
release
Input buffer
pull-down flag
N-ch
N-ch
Note
N-ch
standby
release
REM output latch
pull-down flag
(5) S1/LED
output
disable
standby
release
pull-down flag
OFF mode
Input buffer
V
N-ch
DD
P-ch
N-ch
N-ch
(3) REM (6) RESET
V
DD
P-ch
data
Output latch
N-ch
Carrier generator
Internal reset signal
other than POC
Data Sheet U13596EJ2V0DS00
Input buffer
POC circuit
V
DD
P-ch
N-ch
7

1.4 Dealing with Unused Pins

The following connections are recommended for unused pins in the normal operation mode.
Table 1-1. Connections for Unused Pins
µ
PD66P04B
Pin
KI/O INPUT mode Open
OUTPUT mode High-level output REM — S1/LED OUTPUT mode (LED) setting S0 OFF mode setting Directly connected to GND KI
Note
RESET
Inside the microcontroller Outside the microcontroller
Built-in POC circuit Open
Connection
Note If the circuit is an applied one requiring high reliability, be sure to design it in such a manner that the RESET
signal is entered externally.
Caution The I/O mode and the terminal output level are recommended to be fixed by setting them
repeatedly in each loop of the program.

1.5 Notes on Using KI Pin at Reset

In order to prevent malfunction, be sure to input a low level to more than one of pins KI0 to KI3 when reset is
released (when RESET pin changes from low level to high level, or POC is released due to supply voltage startup).
8
Data Sheet U13596EJ2V0DS00
µ
PD66P04B
2. DIFFERENCES BETWEEN µPD6604 AND µPD66P04B
Table 2-1 shows the differences between the µPD6604 and µPD66P04B.
The only differences among these models are the program memory, supply voltage, system clock frequency, oscillation stabilization wait time, and POC circuit (mask option), and the CPU function and internal peripheral hardware are the same.
The electrical characteristics also differ slightly. For the electrical characteristics, refer to the Data Sheet of each model.
µ
Table 2-1. Differences between
(1) When POC circuit (mask option) is provided to
PD6604 and µPD66P04B
µ
PD6604
Item ROM One-time PROM Mask ROM Oscillation stabilization wait time
• On releasing STOP mode by release 260/fOSC 36/fOSC
condition
• On releasing STOP or HALT mode by 284/fOSC to 340/fOSC 60/fOSC to 116/fOSC
RESET input and at reset VPP pin and operating mode select pin Provided Not provided Electrical specifications Some electrical specifications, such as data retention voltage and current
consumption, differ. For details, refer to Data Sheet of each model.
µ
PD66P04B
µ
PD6604
(2) When POC circuit (mask option) is not provided to µPD6604
Item ROM One-time PROM Mask ROM Oscillation stabilization wait time
• On releasing STOP mode by release 260/fOSC 36/fOSC
condition
• On releasing STOP or HALT mode by 284/fOSC to 340/fOSC 60/fOSC to 116/fOSC
RESET input and at reset VPP pin and operating mode select pin Provided Not provided POC circuit Incorporated Not provided Supply voltage VDD = 2.2 to 3.6 V VDD = 1.8 to 3.6 V
(TA = –40 to +85 °C) (TA = –40 to +85 °C)
System clock frequency
Electrical specifications Some electrical specifications, such as data retention voltage and current
•fOSC = 300 to 500 kHz
•fOSC = 500 kHz to 1MHz
consumption, differ. For details, refer to Data Sheet of each model.
µ
PD66P04B
Note
µ
PD6604
•fOSC = 300 to 500 kHz
fOSC = 300 kHz to 1 MHz (VDD = 2.2 to 3.6 V)
Note It is necessary to design the application circuit so that the RESET pin goes low when the supply voltage
is less than 2.2 V.
Data Sheet U13596EJ2V0DS00
9
µ
PD66P04B

3. WRITING AND VERIFYING ONE-TIME PROM (PROGRAM MEMORY)

The program memory of the µPD66P04B is a one-time PROM of 1002 × 10 bits. To write or verify this one-time PROM, the pins shown in Table 3-1 are used. Note that no address input pin
is used. Instead, the address is updated by using the clock input from the CLK pin.
Table 3-1. Pins Used to Write/Verify Program Memory
Pin Name Function
VPP Supplies voltage when writing/verifying program memory.
Apply +12.5 V to this pin.
VDD Power supply.
Supply +6 V to this pin when writing/verifying program memory.
CLK Inputs clock to update address when writing/verifying program memory.
By inputting pulse four times to CLK pin, address of program memory is updated. MD0-MD3 Input to select operation mode when writing/verifying program memory. D0-D7 Inputs/outputs 8-bit data when writing/verifying program memory. OSCIN, OSCOUT Clock necessary for writing program memory. Connect a resistor (R = 47 k) and a capacitor
(C = 27 pF) to these pins.

3.1 Operating Mode When Writing/Verifying Program Memory

The µPD66P04B is set in the program memory write/verify mode when +6 V is applied to the VDD pin and +12.5 V is applied to the VPP pin after the µPD66P04B has been in the reset status (VDD = 5 V, VPP = 0 V) for a specific time. In this mode, the operating modes shown in Table 3-2 can be set by setting the MD all the pins other than those shown in Table 3-1 to GND via pull-down resistor.
Table 3-2. Setting Operation Mode
Setting of Operating Mode Operation Mode
VPP VDD MD0 MD1 MD2 MD3
+12.5 V +6 V H L H L Clear program address to 0
L H H H Write mode L L H H Verify mode
H × H H Program inhibit mode
×: don’t care (L or H)
0 through MD3 pins. Connect
10
Data Sheet U13596EJ2V0DS00
Loading...
+ 22 hidden pages