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
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.SymbolFunctionI/O
1, 2D0-D78-bit data input/output when writing/verifying program memoryI/O
15-20
3CLKClock input for updating address when writing/verifying programInput
memory
6VDDPower Supply.–
Supply +6 V to this pin when writing/verifying program memory.
7OSCOUTClock necessary for writing program memory. Connect a resistor–
8OSCIN(R = 47 kΩ) and a capacitor (C = 27 pF) to these pins.Input
9GNDGND–
10VPPSupplies voltage for writing/verifying program memory.–
Apply +12.5 V to this pin.
11-14MD0-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.
Inside the microcontrollerOutside the microcontroller
Built-in POC circuitOpen
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
ROMOne-time PROMMask ROM
Oscillation stabilization wait time
• On releasing STOP mode by release260/fOSC36/fOSC
condition
• On releasing STOP or HALT mode by284/fOSC to 340/fOSC60/fOSC to 116/fOSC
RESET input and at reset
VPP pin and operating mode select pinProvidedNot provided
Electrical specificationsSome 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
ROMOne-time PROMMask ROM
Oscillation stabilization wait time
• On releasing STOP mode by release260/fOSC36/fOSC
condition
• On releasing STOP or HALT mode by284/fOSC to 340/fOSC60/fOSC to 116/fOSC
RESET input and at reset
VPP pin and operating mode select pinProvidedNot provided
POC circuitIncorporatedNot provided
Supply voltageVDD = 2.2 to 3.6 VVDD = 1.8 to 3.6 V
(TA = –40 to +85 °C)(TA = –40 to +85 °C)
System clock frequency
Electrical specificationsSome 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 NameFunction
VPPSupplies voltage when writing/verifying program memory.
Apply +12.5 V to this pin.
VDDPower supply.
Supply +6 V to this pin when writing/verifying program memory.
CLKInputs clock to update address when writing/verifying program memory.
By inputting pulse four times to CLK pin, address of program memory is updated.
MD0-MD3Input to select operation mode when writing/verifying program memory.
D0-D7Inputs/outputs 8-bit data when writing/verifying program memory.
OSCIN, OSCOUTClock 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 ModeOperation Mode
VPPVDDMD0MD1MD2MD3
+12.5 V+6 VHLHLClear program address to 0
LHHHWrite mode
LLHHVerify mode
H×HHProgram inhibit mode
×: don’t care (L or H)
0 through MD3 pins. Connect
10
Data Sheet U13596EJ2V0DS00
Loading...
+ 22 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.