DATA SHEET MOS INTEGRATED CIRCUIT µPD6124A, 6600A 4-BIT SINGLE-CHIP MICROCONTROLLER FOR REMOTE CONTROL TRANSMISSION DESCRIPTION The µPD6124A and 6600A are 4-bit single-chip microcontrollers for infrared remote controllers for TVs, VCRs, stereos, cassette decks, air conditions, etc. These microcontrollers consist of ROM, RAM, a 4-bit parallel-processing ALU, a programmable timer, key input/ output ports, and transmit output ports. Functioning is controlled by a program. A one-time PROM, model µPD61P24, to which a program can be written only once is also available. This one-time PROM is ideal for evaluation of programs running in a µPD6124A or 6600A, and for small-scale production of such systems. FEATURES • Transmitter for programmable infrared remote control- • pin ler • • • 19 types of instructions Instruction execution time: 17.6 µs (with 455-kHz ceProgram memory (ROM) capacity • µPD6124A: 1002 × 10 bits • µPD6600A: 512 × 10 bits • • • • • Transmit carrier frequency (REM) fOSC/12, fOSC/8 • • • • ramic resonator) • Transmission-in-progress indication pin (S-OUT): 1 Standby operation (HALT/STOP mode) Low power consumption Current consumption in STOP mode (TA = 25°C) Low-voltage operation Data memory (RAM) capacity: 32 × 5 bits µPD6124A: VDD = 2.2 to 5.5 V 9-bit programmable timer: 1 channel µPD6600A: VDD = 2.2 to 3.6 V I/O pins (KI/O): 8 pins Input pins (KI): 4 pins Serial input pins (S-IN): 1 pin Caution To use the NEC transmission format, ask NEC to supply the custom code. Do not use R0 when using a register as an operand of the branch instruction. The information in this document is subject to change without notice. Document No. U12391EJ5V0DS00 (5th edition) (Previous No. IC-1927) Date Published June 1997 N Printed in Japan The mark shows major revised points. © 1989 µPD6124A, 6600A ORDERING INFORMATION Part Number Package µPD6124ACS-XXX 20-pin plastic shrink DIP (300 mil) µPD6124AGS-XXX 20-pin plastic SOP (300 mil) µPD6600ACS-XXX 20-pin plastic shrink DIP (300 mil) µPD6600AGS-XXX 20-pin plastic SOP (300 mil) Remark XXX indicates ROM code suffix. PIN CONFIGURATION (TOP VIEW) 2 K I/O1 1 20 K I/O2 K I/O0 2 19 K I/O3 S-IN 3 18 K I/O4 S-OUT 4 17 K I/O5 REM 5 16 K I/O6 V DD 6 15 K I/O7 OSC-OUT 7 14 K I0 OSC-IN 8 13 K I1 VSS 9 12 K I2 AC 10 11 K I3 µPD6124A, 6600A BLOCK DIAGRAM ROM D.P. ROM D.P. CNTL CNTL (L) (H) Note L H M P X PC(L) 32 × 5 bits ROM (L) SP ROM (H) PC(H) M P X ADD DEC RAM RAM To S-OUT ALU TIMER TIMER (L) (H) ACC KEY KEY OUT(L) OUT(H) KEY IN Watchdog Lowvoltage timer detector function circuit 10 bits OSC MOD OSC-IN S-OUT REM OSC-OUT S-IN KI/O0-KI/O7 AC K I0 -KI3 Note ROM capacity depends on the products. DIFFERENCES AMONG PRODUCTS Item Product Name µPD6124A ROM Capacity 1002 × 10 bits (Mark ROM) RAM Capacity 32 × 5 bits I/O Pins 8 (KI/O0-KI/O7) S-IN Pins Provided Current Consumption 2 µA µPD6600A 512 × 10 bits (Mask ROM) (fOSC = STOP) (MAX.) S-IN High Level Input 30 µA Current (MAX.) Transmit Carrier Frequency fOSC/12, fOSC/8 Low-voltage Detector Provided (Reset) Circuit Supply Current VDD = 2.2 to 5.5 V Package • 20-pin plastic SOP (300 mil) VDD = 2.2 to 3.6 V • 20-pin plastic shrink DIP (300 mil) 3 µPD6124A, 6600A 1. PROGRAM COUNTER (PC) ……… 9 BITS 10 BITS : µPD6600A : µPD6124A The program counter (PC) is a binary counter, which holds the address information for the program memory. Figure 1-1. Program Counter Organization (a) PC 8 PC 7 PC 6 PC 5 (b) PC 9 PC 8 PC 7 PC 6 PC 5 µ PD6600A PC 4 PC 3 PC 2 PC 1 PC 0 PC PC 2 PC 1 PC 0 PC µ PD6124A PC 4 PC 3 Normally, the program counter contents are automatically incremented each time an instruction is executed, according to the number of instruction bytes. When executing a jump instruction (JMP0, JC, JF), the program counter indicates the jump destination. Immediate data or the data memory contents are loaded to all or some bits of the PC. When executing the call instruction (CALL0), the PC contents are incremented (+1) and saved into the stack memory. Then, a value needed for each jump instruction will be loaded. When executing the return instruction (RET), the stack memory contents are double incremented (+2) and loaded into the PC. When “all clear” is input or on reset, the PC contents are cleared to “000H”. 2. STACK POINTER (SP) ……… 2 BITS This 2-bit register holds the start address information for the stack area. The stack area is shared with the data memory. The SP contents are incremented, when the call instruction (CALL0) is executed. They are decremented, when the return instruction (RET) is executed. The stack pointer is cleared to “00B” after reset or “all clear” is input, and indicates the highest address FH for the data memory as the stack area. The figure below shows the relationship for the stack pointer and the data memory area. Data memory RC RD RE RF (SP) 11B 10B 01B 00B If the stack pointer overflows or underflows, it is determined that the CPU overflows, and the PC internal reset signal will be generated. 4 µPD6124A, 6600A 3. PROGRAM MEMORY (ROM) ……… 512 STEPS × 10 BITS : µPD6600A 1002 STEPS × 10 BITS : µPD6124A The program memory (ROM) is configured in 10 bits steps. It is addressed by the program counter. Program and table data are stored in the program memory. Figure 3-1. Program Memory Map (a) µ PD6600A (b) 000H 000H 0FFH 100H 0FFH 100H 1FFH 1FFH 200H 0 0 1 µPD6124A 1 2FFH 300H 3E9H 3EAH 3FFH 4. Test program area DATA MEMORY (RAM) ……… 32 WORDS × 5 BITS The data memory is a RAM of 32 words × 5 bits. The data memory stores processing data. In some cases, the 0 data memory is processed in 8-bit units. R0 may be used as the data pointer for the ROM. 0 1 After power application, the RAM will be undefined. The RAM retains the previous data on reset. 1 Figure 4-1. Data Memory Organization 1 0 R0 .. . RB RC .. . SP–3 SP–2 SP–1 SP–0 RF Caution Avoid using the RAM areas RD, RE, and RF in a CALL routine as much as possible because these areas are also used as stack memory areas (to prevent program hang-up in case the value of the SP is destroyed due to some reason such as noise). When using these RAM areas as general-purpose RAM areas, be sure to include stack pointer checking in the main routine. 5 µPD6124A, 6600A 5. DATA POINTER (R0) R0 (R10, R00) for the data memory can serve as the data pointer for the ROM. R0 specifies the low-order 8 bits in the ROM address. The high-order 2 bits in the ROM address are specified by the control register. Table referencing for ROM data can be easily executed by calling the ROM contents by setting the ROM address to the data pointer. On reset or “all clear” is input, it becomes undefined. Figure 5-1. Data Pointer Organization Control registers (P1 ) AD9Note Note 6. AD 8 R10 AD 7 AD 6 R00 AD 5 AD 4 AD 3 AD 2 AD 1 AD 0 R0 µPD6600A: AD9 = 0 ACCUMULATOR (A) ……… 4 BITS The accumulator (A) is a 4-bit register. The accumulator plays a major role in each operation. On reset or “all clear” is input, it becomes undefined. Figure 6-1. Accumulator Organization A3 7. A2 A1 A0 A ARITHMETIC LOGIC UNIT (ALU) ……… 4 BITS The arithmetic logic unit (ALU) is a 4-bit operation circuit, and executes simple operations, such as arithmetic operations. 8. FLAGS (1) Status flag When the status for each pin is checked by the STTS instruction, if the condition coincides with the condition specified by the STTS instruction, the status flag (F) is set (to 1). On reset or “all clear” is input, it becomes undefined. (2) Carry flag When the INC (increment) instruction or the RL (rotate left) instruction is executed, if a carry is generated from the MSB for the accumulator, the carry flag (C) is set (to 1). The carry flag (C) is also set (to 1), if the contents for the accumulator are “FH”, when the SCAF instruction is executed. On reset or “all clear” is input, it becomes undefined. 6 µPD6124A, 6600A 9. SYSTEM CLOCK GENERATOR The system clock generator consists of a resonator, which uses a ceramic resonator (400kHz to 500kHz). Figure 9-1. System Clock Generator OSC-IN OSC-OUT STOP mode ø System clock In the STOP mode (oscillation stop HALT instruction), the oscillator in the system clock generator stops its operation, and the system clock ø is stopped. 7 µPD6124A, 6600A 10. TIMER The timer block determines the transmission output pattern. The timer consists of 10 bits, of which 9 bits serve as the 9-bit down counter and the remaining 1 bit serves as the 1-bit latch, which determines the carrier output validity. The 9-bit down counter is decremented (–1) every 8/fOSC(s) in synchronization with the machine cycle, after starting down count operation. Down counting stops after all of the 9 bits become 0. When down counting is stopped, the signal indicating that the timer operation has stopped, is output. If the CPU is at standby (HALT TIMER) for the timer operation completion, the standby (HALT) condition is released and the next instruction will be executed. If the next instruction again sets the value of the down counter, down counting continues without any error (the carrier output of the REM pin is not affected). Set the down count time according to the following calculation; (set value (HEX) + 1) × 8/fOSC. Setting the value to the timer is done by the timer manipulation instruction. When the down counter is operating, the remote control transmission carrier can be output to the REM pin. Whether or not to output the carrier can be selected by the MSB for the timer register block. Set “1”, when outputting the carrier, or “0”, when not outputting the carrier. If all the down counter bits become “0”, when outputting the carrier, the carrier output will be stopped. When not outputting the carrier, the REM pin output will become low level. A signal in synchronization with the REM output is output to the S-OUT pin. However, the waveform for the S-OUT pin is low, when the carrier is being output to the REM pin, or it is high, when the carrier is not being output to the REM pin. If the HALT instruction, which initiates the oscillation stop mode, is executed when the down counter is operating, the oscillation stop mode is initiated after down counting is stopped (after 0). Timer operation STOP/RUN is controlled by the control register (P1). (Refer to 13. CONTROL REGISTER (P1).) At reset (all clear) time, the REM pin goes low and S-OUT pin goes high. All 10 bits of the timer are cleared to 000H. Cautions 1. Because the timer clock is not synchronized with the carrier output, the pulse width may be shortened at the beginning and end of the carrier output. 2. Reset caused by the low-voltage detector circuit causes the S-OUT pin to output low level. Figure 10-1. Timer Block Organization Set by timer mainpulation instruction MSB 1/0 From low-voltage detector (reset) circuit fosc/8 9-bit down counter Clear Zero detection circuit S-OUT REM Carrier (fosc/12, fosc/8) Selected by control register 8 D 2 of control register P 1 (Timer RUN/STOP) µPD6124A, 6600A 11. PIN FUNCTIONS 11.1 KI/O PIN (P0) This is the 8-bit I/O pin for key-scan output. When the control register (P1) is set for the input port, the port can be used as an 8-bit input pin. When the port is set for the input mode, all of these pins are pulled down to the VSS level inside the LSI. At reset (all cleared), the value of I/O mode and output latch becomes undefined. Figure 11-1. KI/O Pin Organization P10 P0 11.2 KI/O7 KI/O6 P00 KI/O5 KI/O4 KI/O3 KI/O2 (P 1 ) Control register KI/O1 KI/O0 KI/O PULL-DOWN RESISTOR CONFIGURATION V DD Input/output selection P-ch Pin N-ch Output signal V SS Input signal CMOS R Pull-down resistor N-ch When KI/O is set to the input mode, pull-down resistor R is turned on. 9 µPD6124A, 6600A 11.3 KI PIN (P12) This is the 4-bit pin for key input. All of these pins can be pulled down to the VSS level by mask option. Figure 11-2. KI Pin Organization P12 P2 KI3 KI2 KI1 KI0 Mask option 11.4 KI PULL-DOWN RESISTOR CONFIGURATION V DD P-ch Pin Input signal KI pull-down resistor switch (Mask option) N-ch Pull-down resistor V SS V SS When the pull-down resistor switch is turned on (set 1) by the mask option, pull-down resistor R is turned on. Caution 10 When using the pin as the key switch, turn on the pull-down resistor switch by the mask option. µPD6124A, 6600A 11.5 S-OUT PIN By going low whenever the carrier frequency is output from the REM pin, the S-OUT pin indicates that communication is in progress. The S-OUT pin is CMOS output. The S-OUT pin goes high on reset. 11.6 S-IN PIN (D0 BIT OF P1) To input serial data, use the S-IN pin. When control register (P1) is set to serial input mode, the S-IN pin is connected as an input to the LSB of the accumulator; the S-IN pin can be pulled down to the VSS level by a mask option from within the LSI. In this state, if the rotate-left accumulator instruction (RL A) is executed, the data on the S-IN pin is copied to the LSB of the accumulator. If the control register is released from serial input mode, the S-IN pin goes into a high-impedance state, but no through current flows internally. When the RL A instruction is executed, the MSB is copied to the LSB. At reset (all cleared), the S-IN pin goes into a high-impedance state. The µPD6123 is not provided with an S-IN pin. Figure 11-3. Configuration of the S-IN Pin CY A3 A2 A1 S-IN A0 Mask option Caution Control register 11 µPD6124A, 6600A 12. PORT REGISTER (P×) KI/O, KI, and the control register are handled as port registers. The table below shows the relations between the port registers and pins. Table 12-1. Relations between Port Registers and Pins Input Mode Output Mode Pin Name Read Write Read Write KI/O Pin status Output latch Pin status Output latch KI Pin status – – – S-IN Pin status is read by RL A instruction when D0 of P1 register = 1. P1× (H) Control register (H) K I/O3-0 P0 Control register (L) P1 P 01 P2 K I3-0 12 High impedance (D0 of P1 register = 0) P 00 P 11 P 12 Undefined [input mode, output latch] Input mode P0× (L) K I/O7-4 P 10 On Reset P 02 µPD6124A, 6600A 13. CONTROL REGISTER (P1) The control register contains of 10 bits. The controllable items are shown in Table 13-1. Table 13-1. Control Register (P1) (1/2) (a) Bit D9 Name D8 Test mode D7 D6 D5 D4 D3 D2 D1 D0 – HALT D.P. AD 9 D.P. AD 8 MOD Timer K I/O RL A CC A0 ← NOP AD 9 =0 AD 8 =0 f OSC/8 STOP IN A3 OSC STOP AD 9 =1 AD 8 =1 f OSC/12 RUN OUT S-IN 0 Set Value µPD6124A Be sure to set 0. 1 D0 .......................... Specifies data to be input to A0 when the accumulator is shifted to the left. 0: A3, 1:S-IN D1 .......................... Specifies the status of KI/O, as follows: 0: input mode, 1: output mode D2 .......................... Specifies the status of the timer, as follows: 0: Count stop, 1: Count execution D3 .......................... Specifies the carrier frequency output from the REM pin. 0: fOSC/8, 1: fOSC/12 D4, D5 ................. Specify the high-order 2 bits of the ROM data pointer. D6 .......................... Determines what happen to the oscillation circuit when the HALT instruction is executed. 0: Oscillation does not stop 1: Oscillation stops (STOP mode) D7 .......................... Be sure to set this bit to 0. D8, D9 ................. These bits specify test modes. Be sure to set them to 0. Remark D0 = D8 = D9 = 0 on reset, and the other bits are undefined. 13 µPD6124A, 6600A Table 13-1. Control Register (P1) (2/2) (b) Bit D9 Name D8 Test mode D7 D6 D5 D4 D3 D2 D1 D0 – HALT D.P. AD 9 D.P. AD 8 MOD Timer K I/O RL A CC A0 ← AD 8 =0 f OSC/8 STOP IN A3 AD 8 =1 f OSC/12 RUN OUT S-IN 0 Set Value µPD6600A NOP Be sure to set 0. OSC STOP 1 Be sure to set 0. D0 .......................... Specifies data to be input to A0 when the accumulator is shifted to the left. 0: A3, 1:S-IN D1 .......................... Specifies the status of KI/O, as follows: 0: input mode, 1: output mode D2 .......................... Specifies the status of the timer, as follows: 0: Count stop, 1: Count execution D3 .......................... Specifies the carrier frequency output from the REM pin. 0: fOSC/8, 1: fOSC/12 D4 .......................... Specify the MSB of the ROM data pointer. D5 .......................... Be sure to reset them to 0. D6 .......................... Determines what happen to the oscillation circuit when the HALT instruction is executed. 0: Oscillation does not stop 1: Oscillation stops (STOP mode) D7 .......................... Be sure to set this bit to 0. D8, D9 ................. These bits specify test modes. Be sure to set them to 0. Remark 14 D0 = D8 = D9 = 0 on reset, and the other bits are undefined. µPD6124A, 6600A 14. STANDBY FUNCTION (HALT INSTRUCTION) The µPD6600A is provided with the standby mode (HALT instruction), in order to reduce the power consumption, when not executing the program. Clock oscillation can be stopped in the standby mode (STOP mode). In the standby mode, the program execution stops. However, the contents of the internal registers and the data memory are all retained. 14.1 STOP MODE (OSCILLATION STOP HALT INSTRUCTION) In the STOP mode, the operation of the system clock generator (ceramic resonator oscillation circuit) stops. Therefore, operations requiring the system clock will stop. If the HALT instruction is executed during timer operation, the program counter stops. The oscillation stop mode will be initiated, after the timer count down operation is completed. 14.2 HALT MODE (OSCILLATION CONTINUE HALT INSTRUCTION) The CPU stops its operation, until the HALT release condition is satisfied. The system clock operation continues in this mode. 14.3 STANDBY RELEASE CONDITIONS (1) S-IN input (2) KI/O input (3) KI input (4) Timer count down operation completion Remark Either high level or low level can be specified for setting a release condition by input. Table 14-1. Standby Mode Releasing Condition D3 0/1 0 D2 D1 D0 Releasing Condition 0 0 0 S-IN When RL ←A 3 is selected, the standby mode is always released. 0 0 1 K I/O Valid only in the IN mode. 0 1 0 KI 0 1 1 Timer Releasing condition: Remarks Released when 0. “0”···Low level detection “1”···High level detection 15 µPD6124A, 6600A 15. AC PIN (ALL CLEAR PIN) Internal part of the CPU including the program counter can be reset by setting the AC pin to the low level. WATCHDOG TIMER FUNCTION A power-on reset function and a CR watchdog timer function, that can be controlled by program, can be realized by connecting a 0.1 µF capacitor across the AC pin and the VSS. V DD Charge mode Charge start instruction 0.1 µF Execute HALT instruction immediately before NOP. (Charge for 0.4 ms or more) Discharge mode Discharge start instruction 0.1 µF Charge-discharge pattern Discharge starts after the NOP instruction execution. (Discharge time is about 5 ms from VDD to VthL) V V DD The pattern must be controlled by the program, in such a manner that the C charge level will not go below VthL. V thL t Caution When the watchdog timer function is not used, switch to charging mode by executing a NOP instruction immediately before a HALT instruction at the beginning of the program. (Be sure to connect the capacitor.) 16 µPD6124A, 6600A 16. LOW-VOLTAGE DETECTOR (RESET) CIRCUIT The µPD6124A and 6600A are internally provided with the low-voltage detector (reset) circuit, in order to prevent program hang-up. When VDD goes down to 1 V or below, an internal reset signal is generated. In the reset condition, a low level is output to the S-OUT pin. AC pin Internal reset signal To S-OUT pin Reset circuit Caution The low-voltage detector circuit starts operating at a voltage ranging from 1 to 2.2 V. Hence, if the supply voltage is 2 V or lower, the program counter may hang up before the low-voltage detector circuit operates. 17. MASK OPTIONS (PLA DATA) The following items can be selected by mask option selection: • Provide/not provide KI, S-IN pin pull-down resistor • Carrier duty selection (1/2, 1/3) at fOSC/12 • Hang-up detection specification Mask option data should be registered at the object code end. BIT ASSIGNMENT BY SWITCH SELECTION Address Corresponding Portion 0 KI pull-down resistor Note 1 Duty S-IN 2 Hang-up detection Note LSB MSB 7 6 5 4 KI3 K I2 K I1 K I0 0 0 0 Duty selection KI/O ALL HALT S-IN HALT KI/O HALT KI 3 1 0 S-IN pull-down resistor 0 2 0 0 0 0 The setting (bit) positions differ from the µPD6125A and 6126A. 17 µPD6124A, 6600A SWITCH FOR DATA (1) Pull-down resistor When 0 ... Not provided (OFF) When 1 ... Provided (ON) (2) Modulation duty (at fOSC/12) When 0 ... 1/2 duty When 1 ... 1/3 duty (3) Hang-up detection <1> KI/O ALL If the switch for hang-up detection KI/O ALL is set to ON (1) by mask option, the system is reset if, in oscillation HALT (STOP) mode, the KI/O pin is in input mode, or if at least one of the KI/O pins is low (AC pin discharge mode). When 0 ... No reset function (OFF) When 1 ... Reset function (ON) Caution To use a pin as a key source of a key matrix, be sure to set the switch to ON by mask option. Figure 17-1. Hang-up Detection KI/O ALL Configuration Diagram K I/O0 output signal K I/O1 output signal K I/O2 output signal VDD K I/O3 output signal K I/O4 output signal To RESET circuit K I/O5 output signal K I/O6 output signal K I/O7 output signal Hang-up detection KI/O ALL switch (Mask option) KI/O input/output selection <2> HALT releasing condition specification (S-IN, KI/O, KI) If the condition specified by mask option to be unused is satisfied in the HALT mode, the system is reset. When 0 ... Used When 1 ... Unused Caution 18 Be sure to specify the HALT mode of the unused releasing condition to be unused (set). µPD6124A, 6600A 18. PROGRAM DEVELOPMENT TOOLS To develop programs for the µPD6124A and 6600A, an assembler and an emulator for the µPD612X series are available from I.C. Corp. For details, contact IC Corp. IC Corporation 6th Barnet Gotanda Bldg. 1-9-5 Higashi-Gotanda, Shinagawa-ku Tel. 03-3447-3793 Fax. 03-3440-5606 Caution To develop the programs for the µPD6124A and 6600A, use the µPD6124 because the µPD6124A and 6600A are not available as the target devices for assembly and emulation. The upper limit of ROM addresses is different in the µPD6124A/6600A and µPD6124. Make sure that the program does not exceed 512 steps by checking the end address of the assembly listing after assembling the program. The mask option of the µPD6124A/6600A is the same as that of the µPD6124. 19. ORDERING ROM CODE <1> To generate the data required for ordering a mask ROM, after assembling the program, convert the HEX file to a ROM file by using the PROM utility program "UPDPROM". Caution When using "UPDPROM" select "27256" for PROM TYPE. <2> Confirm that the instruction ROM code data is stored in addresses 0 through 7D3H (3FFH in µPD6600A) of the PROM. Also confirm that the mask option ROM code data are stored in addresses 7FF0H through 7FF2H. 19 µPD6124A, 6600A 20. INSTRUCTION SET ACCUMULATOR MANIPULATION INSTRUCTIONS Rr ANL ANL ANL ANL ORL ORL ORL ORL XRL XRL XRL XRL INC RL – A, Rr R10 R11 R12 R1F R 00 R 01 R 0F D00 D01 D02 D0F D20 D21 D2F E00 E01 E02 E0F E20 E21 E2F A00 A01 A02 A0F A20 A21 A2F D10 D30 D31 A, @R0H A, @R0L A, #data A, Rr E10 E30 E31 A, @R0H A, @R0L A, #data A, Rr A10 A30 A31 A13 F13 A, @R0H A, @R0L A, #data A A INPUT/OUTPUT INSTRUCTIONS PP IN OUT ANL ORL XRL A, PP , A, A, A, PP A PP PP PP PP OUT PP #data P10 P11 P12 P00 P01 P02 F18 218 D18 E18 A18 F19 219 D19 E19 A19 F1A 21A D1A E1A A1Z F38 238 D38 E38 A38 F39 239 D39 E39 A39 F3A 23A D3A E3A A3A P0 P1 P2 318 319 31A P1P and P0P operate in pair format DATA TRANSFER INSTRUCTIONS Rr MOV MOV MOV MOV A, R r A, @R 0 H A, @R 0 H A, #data MOV Rr , A Rr MOV MOV Rr , #data Rr , @R 0 R10 R11 R12 R1F R 00 R 01 R 0F F00 F01 F02 F0F F20 F21 F2F 200 201 202 20F 220 221 22F R0 R1 R2 RF 300 320 301 321 302 322 30F 32F F10 F30 F31 R1r and R0r operate in pair format 20 µPD6124A, 6600A BRANCH INSTRUCTIONS Rr JMP0 – addr R1 R2 RF – 401 402 40F – 601 602 60F – 621 – 701 702 70F – 721 722 72F ← Pair register 411 Note JMP0 Rr JC addr 611 JC RrNote – JNC addr 631 JNC RrNote – JF addr 711 JF RrNote – JNF addr 731 JNF RrNote – Note R0 – 622 62F r = 1 through F r = 0 canot be used. SUBROUTINE INSTRUCTIONS PP CALL0 RET addr P0 P1 312 412 411 TIMER/COUNTER MANIPULATION INSTRUCTIONS Tt MOV MOV MOV MOV A, Tt , T, T, Tt A #data @R 0 T0-1 T1 T0 – F1F 21F F3F 23F 31F 33F OTHER INSTRUCTIONS HALT #data 111 STTS R 0r STTS #data 131 SCAF D13 NOP 000 R 00 R 01 R 02 R 0F 120 121 122 12F 21 µPD6124A, 6600A 21. APPLICATION CIRCUIT EXAMPLE Key matrix 1 V DD V DD 2 3 Infrared LED SE303 series SE313 SE307-C SE1003-C K I/O2 K I/O0 K I/O3 S-IN K I/O4 K I/O5 Transmission indication 4 S-OUT K I/O6 K I/O7 2SC3616, 3618 2SD1615, 1616 2SC2001 5 6 100 pF 3.0 V 7 8 47 µF + 100 pF 9 10 0.1 µF Caution K I/O1 20 19 18 17 16 15 Mode select switch REM V DD K I0 OSC-OUT K I1 OSC-IN K I2 V SS K I3 14 13 12 11 AC µ PD6124A µ PD6600A The ceramic resonator start up capacitor value must be determined, by taking the voltage level and the oscillation start up characteristics for the ceramic resonator into consideration. 22 µPD6124A, 6600A 22. ELECTRICAL SPECIFICATIONS (1) µPD6124A Electrical Specifications ABSOLUTE MAXIMUM RATINGS (T A = 25 °C) Parameter Symbol Ratings Unit Supply Voltage VDD –0.3 to +7.0 V Input Voltage VIN –0.3 to VDD + 0.3 V Operating Ambient Temperature TA –20 to +75 °C Storage Temperature Tstg –40 to +125 °C Caution Even if one of the parameters exceeds its absolute maximum rating even momentarily, the quality of the product may be degraded. The absolute maximum rating therefore specifies the upper or lower limit of the value at which the product can be used without physical damages. Be sure to use the product(s) within the ratings. RECOMMENDED OPERATING RANGE (T A = –20 to +75 °C) Parameter Symbol MIN. Supply Voltage VDD Oscillation Frequency fOSC TYP. MAX. Unit 2.2 5.5 V 400 500 kHz 23 µPD6124A, 6600A DC CHARACTERISTICS (VDD = 3.0 V, fOSC = 455 kHz, TA = 25 °C) Parameter 24 Symbol Conditions MIN. TYP. 2.2 MAX. Unit Supply Voltage VDD Current Consumption 1 IDD1 fOSC = 455 kHz Current Consumption 2 IDD2 fOSC = STOP REM High Level Output Current IOH1 VO = 1.0 V REM Low Level Output Current IOL1 VO = 0.3 V 0.5 1.5 2.5 mA S-OUT High Level Output Current IOH2 VO = 2.7 V –0.3 –1.0 –2.0 mA S-OUT Low Level Output Current IOL2 VO = 0.3 V 1 1.5 KI High Level Input Current IIH1 VI = 3.0 V 10 KI High Level Input Current IIH1' VI = 3.0 V, without pull-down resistor KI Low Level Input Current IIL1 VI = 0 V KI/O High Level Input Current IIH2 VI = 3.0 V KI/O High Level Input Current IIH2' KI/O Low Level Input Current IIL2 KI/O High Level Output Current IOH3 V0 = 2.5 V –1.5 KI/O Low Level Output Current IOL3 V0 = 2.1 V 25 S-IN High Level Input Current IIH3 VI = 3.0 V 6 S-IN High Level Input Current IIH3' S-IN Low Level Input Current IIL3 KI High Level Input Voltage VIH1 KI Low Level Input Voltage VIL1 KI/O High Level Input Voltage KI/O Low Level Input Voltage 0.3 5.5 V 1.0 mA 2.0 –5 –8 µA mA mA 30 µA 0.2 µA –0.2 µA 30 µA VI = 3.0 V, without pull-down resistor 0.2 µA VI = 0 V –0.2 µA –2.0 –4.0 mA 50 100 µA 30 µA VI = 3.0 V, without pull-down resistor 0.2 µA VI = 0 V –0.2 µA 2.1 3.0 V 0 0.9 V VIH2 1.3 3.0 V VIL2 0 0.4 V S-IN High Level Input Voltage IIH3 1.1 3.0 V S-IN Low Level Input Voltage IIL3 0 0.4 V AC Pull-Up Resistor R1 VI = 0 V 0.3 3.0 kΩ AC Pull-Down Resistor R2 VI = 2.7 V 150 1500 kΩ VI = 3.0 V 10 AC High Level Input Voltage VIH4 1.8 3.0 V AC Low Level Input Voltage VIL4 0 1.2 V µPD6124A, 6600A (2) µPD6600A Electrical Specifications ABSOLUTE MAXIMUM RATINGS (T A = 25 °C) Parameter Symbol Ratings Unit Supply Voltage VDD –0.3 to +7.0 V Input Voltage VIN –0.3 to VDD + 0.3 V Operating Ambient Temperature TA –20 to +75 °C Storage Temperature Tstg –40 to +125 °C Caution Even if one of the parameters exceeds its absolute maximum rating even momentarily, the quality of the product may be degraded. The absolute maximum rating therefore specifies the upper or lower limit of the value at which the product can be used without physical damages. Be sure to use the product(s) within the ratings. RECOMMENDED OPERATING RANGE (T A = –20 to +75 °C) Parameter Symbol MIN. Supply Voltage VDD Oscillation Frequency fOSC TYP. MAX. Unit 2.2 3.6 V 400 500 kHz 25 µPD6124A, 6600A DC CHARACTERISTICS (VDD = 3.0 V, fOSC = 455 kHz, TA = 25 °C) Parameter Symbol Conditions MIN. TYP. 2.2 MAX. Unit Supply Voltage VDD Current Consumption 1 IDD1 fOSC = 455 kHz Current Consumption 2 IDD2 fOSC = STOP REM High Level Output Current IOH1 VO = 1.0 V REM Low Level Output Current IOL1 VO = 0.3 V 0.5 1.5 2.5 mA S-OUT High Level Output Current IOH2 VO = 2.7 V –0.3 –1.0 –2.0 mA S-OUT Low Level Output Current IOL2 VO = 0.3 V 1 1.5 KI High Level Input Current IIH1 VI = 3.0 V 10 KI High Level Input Current IIH1' VI = 3.0 V, without pull-down resistor KI Low Level Input Current IIL1 VI = 0 V KI/O High Level Input Current IIH2 VI = 3.0 V KI/O High Level Input Current IIH2' KI/O Low Level Input Current IIL2 KI/O High Level Output Current IOH3 VO = 2.5 V –1.5 KI/O Low Level Output Current IOL3 VO = 2.1 V 25 S-IN High Level Input Current IIH3 VI = 3.0 V 6 S-IN High Level Input Current IIH3' S-IN Low Level Input Current IIL3 KI High Level Input Voltage VIH1 KI Low Level Input Voltage VIL1 KI/O High Level Input Voltage KI/O Low Level Input Voltage 0.3 3.6 V 1.0 mA 2.0 –5 –8 mA 30 µA 0.2 µA –0.2 µA 30 µA VI = 3.0 V, without pull-down resistor 0.2 µA VI = 0 V –0.2 µA –2.0 –4.0 mA 50 100 µA 30 µA VI = 3.0 V, without pull-down resistor 0.2 µA VI = 0 V –0.2 µA 2.1 3.0 V 0 0.9 V VIH2 1.3 3.0 V VIL2 0 0.4 V S-IN High Level Input Voltage IIH3 1.1 3.0 V S-IN Low Level Input Voltage IIL3 0 0.4 V AC Pull-Up Resistor R1 VI = 0 V 0.3 AC Pull-Down Resistor R2 VI = 2.7 V 150 10 VI = 3.0 V 400 3.0 kΩ 1500 kΩ AC High Level Input Voltage VIH4 1.8 3.0 V AC Low Level Input Voltage VIL4 0 1.2 V RECOMMENDED CERAMIC RESONATOR (Common in µPD6124A and 6600A) External Capacitance (pF) Manufacturer Murata Mfg. Co., Ltd. Toko Ceramic Co., Ltd. 26 µA mA Product Oscillation Voltage Range (V) C1 C2 MIN. MAX. CSB375P 220 220 2.0 3.3 CSB400P 220 220 2.0 5.0 CSB455E 100 100 2.0 5.0 CSB480E 100 100 2.0 5.0 CSB500E 100 100 2.0 3.3 CRK400 100 100 2.0 6.0 CRK455 100 100 2.0 6.0 CRK500 100 100 2.0 6.0 Remarks µPD6124A, 6600A 23. CHARACTERISTICS CURVE (REFERENCE VALUE) (Common in µPD6124A and 6600A) OL vs V OL characteristic examples (REM) (T A = 25 ± 3˚C) 5.0 V DD = 3 V 4.0 3.0 2.0 1.0 0 0.4 0.2 0.6 0.8 I OH vs V OH characteristic examples (REM) (T A = 25 ± 3˚C) High-level output current I OH [mA] Low-level output current I OL [mA] I –10.0 V DD = 3 V –5.0 0 1.0 0.5 Low-level output voltage VOL [V] I OL vs V OL characteristic examples (S-OUT) (T A = 25 ± 3˚C) V DD = 3 V 4.0 3.0 2.0 1.0 0 0.2 0.4 0.6 0.8 I High-level output current I OH [mA] Low-level output current I OL [mA] 5.0 OH vs V OL V DD = 3 V 0 2.0 2.2 2.4 2.6 I OL 2.0 Low-level output voltage VOL [V] 3.0 vs V OL characteristic examples (KI/O0 -K I/O7 ) (T A = 25 ± 3˚C) V DD = 3 V OL Low-level output current I V DD = 3 V 1.0 2.8 High-level output voltage V OH [V] [ µ A] 0 3.0 –1.0 characteristic examples (KI/O0 -K I/O3 ) (T A = 25 ± 3˚C) 50 2.5 –2.0 1.0 OL Low-level output current I 2.0 [ µ A] OL 1.5 vs V OH characteristic examples (S-OUT) (T A = 25 ± 3˚C) –3.0 low-level output voltage VOL [V] I 1.0 High-level output voltage VOH [V] 3.0 50 0 1.0 2.0 3.0 Low-level output voltage VOL [V] 27 µPD6124A, 6600A I OH vs V OH characteristic examples (K I/O0 -K I/O7 ) High-level output current I OH [mA] (T A = 25 ± 3˚C) V DD = 3 V –4.0 –3.0 –2.0 –1.0 0 2.2 2.4 2.6 2.8 3.0 High-level output voltage V OH [V] 28 µPD6124A, 6600A 24. PACKAGE DRAWINGS 20-Pin Plastic SOP (300 mil) (units in mm) 20 PIN PLASTIC SOP (300 mil) 20 11 P detail of lead end 1 10 A H J E K F G I C N D M L B M NOTE Each lead centerline is located within 0.12 mm (0.005 inch) of its true position (T.P.) at maximum material condition. ITEM MILLIMETERS INCHES A 13.00 MAX. 0.512 MAX. B 0.78 MAX. 0.031 MAX. C 1.27 (T.P.) 0.050 (T.P.) D 0.40 +0.10 –0.05 0.016 +0.004 –0.003 E 0.1±0.1 0.004±0.004 F 1.8 MAX. 0.071 MAX. G 1.55 0.061 H 7.7±0.3 0.303±0.012 I 5.6 0.220 J 1.1 0.043 K 0.20 +0.10 –0.05 0.008 +0.004 –0.002 L 0.6±0.2 0.024 +0.008 –0.009 M 0.12 0.005 N 0.10 0.004 P 3° +7° –3° 3° +7° –3° P20GM-50-300B, C-4 29 µPD6124A, 6600A 20PIN PLASTIC SHRINK DIP (300 mil) 20 11 1 10 A K L I J C H B G M R F D N M NOTES 1) Each lead centerline is located within 0.17 mm (0.007 inch) of its true position (T.P.) at maximum material condition. 2) ltem "K" to center of leads when formed parallel. ITEM MILLIMETERS INCHES A B 19.57 MAX. 1.78 MAX. 0.771 MAX. 0.070 MAX. C 1.778 (T.P.) 0.070 (T.P.) D 0.50±0.10 0.020 +0.004 –0.005 F 0.85 MIN. 0.033 MIN. G H 3.2±0.3 0.51 MIN. 0.126±0.012 0.020 MIN. I J 4.31 MAX. 5.08 MAX. 0.170 MAX. 0.200 MAX. K 7.62 (T.P.) 0.300 (T.P.) L 6.5 0.256 M 0.25 +0.10 –0.05 0.010 +0.004 –0.003 N 0.17 0.007 R 0~15° 0~15° P20C-70-300B-1 30 µPD6124A, 6600A 20-PIN SHRINK DIP FOR ES (REFERENCE) (UNITS IN mm) fig. 20 1 22.8 0.2 4.8 1.06 1.2 11.0 φ 0.46 φ 1.0 1.778 3.4 7.8 31 µPD6124A, 6600A 25. RECOMMENDED SOLDERING CONDITIONS It is recommended that µPD6124A and 6600A be soldered under the following conditions. For details on the recommended soldering conditions, refer to Information Document “Semiconductor Device Mounting Technology Manual” (C10535E). For other soldering methods and conditions, consult NEC. Table 25-1. Soldering Conditions of Surface-Mount Type µPD6124AGS-XXX: 20-pin plastic SOP (300 mil) µPD6600AGS-XXX: 20-pin plastic SOP (300 mil) Soldering Method Soldering Conditions Symbol for Recommended Condition Infrared Reflow Package peak temperature: 230°C, time: 30 seconds max. (210°C min.), number of times: 1 IR30-00-1 VPS Package peak temperature: 215°C, time: 40 seconds max. (200°C min.), number of times: 1 VP15-00-1 Wave Soldering Soldering bath temperature: 260°C max., time: 10 seconds max., number of times: 1 Pre-heating temperature: 120°C max. (package surface temperature) Partial Heating Caution Pin temperature: 300°C max., time: 3 seconds max. (per side) WS60-00-1 – Do not use two or more soldering methods in combination (except the partial heating method). Table 25-2. Soldering Conditions of Through-Hole Type µPD6124ACS-XXX: 20-pin plastic shrink DIP (300 mil) µPD6600ACS-XXX: 20-pin plastic shrink DIP (300 mil) Soldering Method Soldering Conditions Wave Soldering (Only for pin part) Soldering bath temperature: 260°C max., time: 10 seconds max. Partial Heating Pin temperature: 300°C max., time: 30 seconds max. Caution The wave soldering must be performed at the pin part only. Note that the solder must not be directly contacted to the package body. 32 µPD6124A, 6600A APPENDIX µPD612× SERIES PRODUCT LIST Part Number Item µPD6124A µPD6600A 512 × 10 bits (mask ROM) µPD61P24 µPD6125A ROM capacity 1002 × 10 bits (mask ROM) RAM capacity 32 × 5 bits I/O pin 8 pins (KI/O0-7) S-IN pin Provided Current consumption (fOSC = STOP) (MAX.) 2 µA 1 µA S-IN high-level input current (MAX.) 30 µA 15 µA Transmission carrier frequency fOSC/12, fOSC/8 Low-voltage detection (reset) function Provided None Mask option Provided None (fixed) Supply voltage VDD = 2.0 to 5.5 V VDD = 2.2 to 3.6 V VDD = 2.2 to 5.5 V VDD = 2.0 to 6.0 V Package • 20-pin plastic SOP (300 mil) • 20-pin plastic shrink DIP (300 mil) µPD6126A 1002 × 10 bits 1002 × 10 bits (one-time PROM) (mask ROM) 12 pins (KI/O0-7, I/O00-03) 16 pins (KI/O0-7, I/O00-03, I/O10-13) Provided • 24-pin plastic SOP (300 mil) • 28-pin plastic SOP (375 mil) • 24-pin plastic shrink DIP (300 mil) 33 µPD6124A, 6600A NOTES FOR CMOS DEVICES 1 PRECAUTION AGAINST ESD FOR SEMICONDUCTORS Note: Strong electric field, when exposed to a MOS device, can cause destruction of the gate oxide and ultimately degrade the device operation. Steps must be taken to stop generation of static electricity as much as possible, and quickly dissipate it once, when it has occurred. Environmental control must be adequate. When it is dry, humidifier should be used. It is recommended to avoid using insulators that easily build static electricity. Semiconductor devices must be stored and transported in an anti-static container, static shielding bag or conductive material. All test and measurement tools including work bench and floor should be grounded. The operator should be grounded using wrist strap. Semiconductor devices must not be touched with bare hands. Similar precautions need to be taken for PW boards with semiconductor devices on it. 2 HANDLING OF UNUSED INPUT PINS FOR CMOS Note: No connection for CMOS device inputs can be cause of malfunction. If no connection is provided to the input pins, it is possible that an internal input level may be generated due to noise, etc., hence causing malfunction. CMOS device behave differently than Bipolar or NMOS devices. Input levels of CMOS devices must be fixed high or low by using a pull-up or pull-down circuitry. Each unused pin should be connected to VDD or GND with a resistor, if it is considered to have a possibility of being an output pin. All handling related to the unused pins must be judged device by device and related specifications governing the devices. 3 STATUS BEFORE INITIALIZATION OF MOS DEVICES Note: Power-on does not necessarily define initial status of MOS device. Production process of MOS does not define the initial operation status of the device. Immediately after the power source is turned ON, the devices with reset function have not yet been initialized. Hence, power-on does not guarantee out-pin levels, I/O settings or contents of registers. Device is not initialized until the reset signal is received. Reset operation must be executed immediately after power-on for devices having reset function. 34 µPD6124A, 6600A Regional Information Some information contained in this document may vary from country to country. Before using any NEC product in your application, please contact the NEC office in your country to obtain a list of authorized representatives and distributors. They will verify: • Device availability • Ordering information • Product release schedule • Availability of related technical literature • Development environment specifications (for example, specifications for third-party tools and components, host computers, power plugs, AC supply voltages, and so forth) • Network requirements In addition, trademarks, registered trademarks, export restrictions, and other legal issues may also vary from country to country. NEC Electronics Inc. (U.S.) NEC Electronics (Germany) GmbH NEC Electronics Hong Kong Ltd. Santa Clara, California Tel: 800-366-9782 Fax: 800-729-9288 Benelux Office Eindhoven, The Netherlands Tel: 040-2445845 Fax: 040-2444580 Hong Kong Tel: 2886-9318 Fax: 2886-9022/9044 NEC Electronics (Germany) GmbH Duesseldorf, Germany Tel: 0211-65 03 02 Fax: 0211-65 03 490 NEC Electronics Hong Kong Ltd. Velizy-Villacoublay, France Tel: 01-30-67 58 00 Fax: 01-30-67 58 99 Seoul Branch Seoul, Korea Tel: 02-528-0303 Fax: 02-528-4411 NEC Electronics (France) S.A. NEC Electronics Singapore Pte. Ltd. Spain Office Madrid, Spain Tel: 01-504-2787 Fax: 01-504-2860 United Square, Singapore 1130 Tel: 253-8311 Fax: 250-3583 NEC Electronics (France) S.A. NEC Electronics (UK) Ltd. Milton Keynes, UK Tel: 01908-691-133 Fax: 01908-670-290 NEC Electronics Italiana s.r.1. Milano, Italy Tel: 02-66 75 41 Fax: 02-66 75 42 99 NEC Electronics Taiwan Ltd. NEC Electronics (Germany) GmbH Scandinavia Office Taeby, Sweden Tel: 08-63 80 820 Fax: 08-63 80 388 Taipei, Taiwan Tel: 02-719-2377 Fax: 02-719-5951 NEC do Brasil S.A. Sao Paulo-SP, Brasil Tel: 011-889-1680 Fax: 011-889-1689 J96. 8 35 µPD6124A, 6600A [MEMO] The export of this product from Japan is regulated by the Japanese government. To export this product may be prohibited without governmental license, the need for which must be judged by the customer. The export or re-export of this product from a country other than Japan may also be prohibited without a license from that country. Please call an NEC sales representative. The application circuits and their parameters are for reference only and are not intended for use in actual design-ins. No part of this document may be copied or reproduced in any form or by any means without the prior written consent of NEC Corporation. NEC Corporation assumes no responsibility for any errors which may appear in this document. NEC Corporation does not assume any liability for infringement of patents, copyrights or other intellectual property rights of third parties by or arising from use of a device described herein or any other liability arising from use of such device. No license, either express, implied or otherwise, is granted under any patents, copyrights or other intellectual property rights of NEC Corporation or others. While NEC Corporation has been making continuous effort to enhance the reliability of its semiconductor devices, the possibility of defects cannot be eliminated entirely. To minimize risks of damage or injury to persons or property arising from a defect in an NEC semiconductor device, customers must incorporate sufficient safety measures in its design, such as redundancy, fire-containment, and anti-failure features. NEC devices are classified into the following three quality grades: "Standard", "Special", and "Specific". The Specific quality grade applies only to devices developed based on a customer designated "quality assurance program" for a specific application. The recommended applications of a device depend on its quality grade, as indicated below. Customers must check the quality grade of each device before using it in a particular application. Standard: Computers, office equipment, communications equipment, test and measurement equipment, audio and visual equipment, home electronic appliances, machine tools, personal electronic equipment and industrial robots Special: Transportation equipment (automobiles, trains, ships, etc.), traffic control systems, anti-disaster systems, anti-crime systems, safety equipment and medical equipment (not specifically designed for life support) Specific: Aircrafts, aerospace equipment, submersible repeaters, nuclear reactor control systems, life support systems or medical equipment for life support, etc. The quality grade of NEC devices is "Standard" unless otherwise specified in NEC's Data Sheets or Data Books. If customers intend to use NEC devices for applications other than those specified for Standard quality grade, they should contact an NEC sales representative in advance. Anti-radioactive design is not implemented in this product. M4 96.5