LC651204N SANYO | Alldatasheet
Document overview
- Manufacturer or author: Provided By ALLDATASHEET.COM(FREE DATASHEET DOWNLOAD SITE)
- PDF pages: 35
Technical content
Features
- Fabricated in a CMOS process for low power (An instruction-controlled standby function is provided.)
- ROM/RAM LC651204N/F/L - ROM: 4K · 8 bits, RAM: 256 · 4 bits LC651202N/F/L - ROM: 2K · 8 bits, RAM: 256 · 4 bits
- Instruction set: The 80-instruction set provided by all members of the LC6500 series.
- Wide operating power-supply voltage range of 2.5 to 5.5 volts (L version)
- Instruction cycle time: 0.92 µs (F version)
- On-chip serial I/O circuit
- Highly flexible I/O ports — Number of ports: 6 ports with a total of 22 pins — All ports: Can be used for both input and output I/O voltage: 15 V maximum (Only for C, D, E, and F ports with open- drain output specifications) Output current:20 mA maximum sink current (Capable of directly driving LEDs.) — Options that allow specifications to be customized to match those of the application system. Specification of open-drain output or built-in pull- up resistor: can be specified for all ports in bit units. Specification of the output level at reset: Can be specified to be high or low for ports C and D in port units.
- Interrupt functions — Timer overflow vector interrupt (The interrupt state can be tested by the CPU.) — Vector interrupts initiated by the INT pin or full/empty states of the serial I/O circuit. (The interrupt state can be tested by the CPU.)
- Stack levels: 8 levels (shared with interrupts)
- Timers: 4-bit prescaler plus 8-bit programmable timers
- Clock oscillator options to match application system specifications. — Oscillator circuit options: 2-pin ceramic oscillator (N, F, and L versions) — Divider circuit option: No divider, built-in divide-by- three circuit, built-in divide-by-four circuit (N and L versions)
- Supports continuous output of a square wave signal (with a period 64 times the cycle time)
- Watchdog timer — RC time constant scheme — A watchdog timer function can be allocated to one of the external pins as an option.
- EP version: LC65E1104, OTP version: LC65P1104
Note:Sanyo will announce details on oscillator elements and oscillator circuit constants as recommended application circuits are developed. Customers should check with Sanyo for the latest information as the development process progresses. No. 5190-2/35 LC651204N/F/L, LC651202N/F/L Item LC651204N/1202N LC651204F/1202F LC651204L/1202L ROM 4096 · 8 bits (1204N) 4096 · 8 bits (1204F) 4096 · 8 bits (1204L) Memory 2048 · 8 bits (1202N) 2048 · 8 bits (1202F) 2048 · 8 bits (1202L) RAM 256 · 4 bits (1204/1202N) 256 · 4 bits (1204/1202F) 256 · 4 bits (1204/1202L) Instruction Instruction set 80 80 80 Table reference Supported Supported Supported Interrupts 1 external, 1 internal 1 external, 1 internal 1 external, 1 internal Timers 4-bit prescaler + 8-bit timer4-bit prescaler + 8-bit timer4-bit prescaler + 8-bit timer Built-in functionsStack levels 8 8 8 Standby function Supports standby mode entered Supports standby mode entered Supports standby mode entered by the HALT instruction by the HALT instruction by the HALT instruction Number of ports 22 I/O pins 22 I/O pins 22 I/O pins Serial ports 4-bit or 8-bit I/O 4-bit or 8-bit I/O 4-bit or 8-bit I/O I/O voltage 15 V max. 15 V max. 15 V max. I/O circuit types Open drain (n-channel) or built-in pull-up resistor output selectable on a per-bit basis. Output levels at resetHigh or low can be selected in port units. (ports C and D only) Square wave output Supported Supported Supported Minimum cycle time 2.77 µs (VDD ‡ 3 V) 0.92 µs (VDD ‡ 3 V) 3.84 µs (VDD ‡ 2.5 V) Characteristics Power-supply voltage 3 to 5.5 V 3 to 5.5 V 2.5 to 5.5 V Oscillator Oscillator Ceramic (800 kHz, 1 MHz, 4 MHz) Ceramic (4 MHz) Ceramic (800 kHz, 1 MHz, 4 MHz) Divider circuit option 1/1, 1/3, 1/4 1/1 1/1, 1/3, 1/4 Other functions Package DIP30S-D MFP30S DIP30S-D MFP30S DIP30S-D MFP30S SANYO: DIP30SD [LC651204N/F/L, 651202N/F/L] Note:The package drawings shown above are provided without error tolerances and are for reference purposes only. Contact Sanyo for official package drawings. SANYO: MFP30S [LC651204N/F/L, 651202N/F/L] Package Dimensions unit : mm 3196-DIP30SD unit : mm 3073A-MFP30S
Common assignments for the DIP and MFP packages Note: NC pins must be connected to VSS . Top view Pin Functions Note: The SI, SO, SCK, and INT pins are shared function pins that are also used as PF0 to PF3. Pin Function OSC1, OSC2 Connections for a ceramic oscillator element RES Reset PA0 to 3 I/O dual-function port A0 to A3 PC0 to 3 I/O dual-function port C0 to C3 PD0 to 3 I/O dual-function port D0 to D3 PE0 to 1 I/O dual-function port E0 to E1 PF0 to 3 I/O dual-function port F0 to F3 PG0 to 3 I/O dual-function port G0 to G3 TEST Test INT Interrupt request SI Serial input SO Serial output SCK Serial clock input and output NC No connection WDR Watchdog reset No. 5190-3/35 LC651204N/F/L, LC651202N/F/L
RAM: Data memory ROM: Program memory F: Flag PC: Program counter WR: Working register INT: Interrupt control AC: Accumulator IR: Instruction register ALU: Arithmetic and logic unit I.DEC: Instruction decoder DP: Data pointer CF, CSF: Carry flag, carry save flag E: E register ZF, ZSF: Zero flag, zero save flag CTL: Control register EXTF: External interrupt request flag OSC: Oscillator circuit TMF: Internal interrupt request flag TM: Timer STS: Status register No. 5190-4/35 LC651204N/F/L, LC651202N/F/L
Sanyo provides the following items to support application development using the LC651204 and LC651202. 1. User’s manual The “LC651104/1102 User’s Manual” is used with these microcontrollers. 2. Development tool manual See the “EVA800 - LC651104/1102 Development Tool Manual” for details on use of the EVA-800 system. 3. Development tool
- Program development (using the EVA-800 system) — MS-DOS host computer system *1 — Cross assembler ... MS-DOS-based cross assembler: LC65S.EXE — Evaluation chip: LC6595 — Emulator: The EVA-800 main unit plus the evaluation chip
- Program development (using the EVA-86000 system): Use the EVA86K-ECB651100.
- Program evaluation The <LC65E1104> on-chip EPROM microcontroller Development Support System EVA-800 System Note: 1. MS-DOS is a registered trademark of Microsoft Corporation 2. Here, “EVA-800” is a generic term for several emulators. Suffixes (A, B, etc.) will be attached to the name as new versions are developed. Note that the EVA-800 emulator (i.e., the model with no suffix) is an old version and cannot be used. No. 5190-5/35 LC651204N/F/L, LC651202N/F/L
No. 5190-6/35 Pin VDD VSS OSC1 OSC2 PA0 to PA3 PC0 to PC3 PD0 to PD3 Pin no. I/O Input Output I/O I/O I/O Function Power supply
- System clock oscillator Connect an external ceramic oscillator element to these pins
- Leave OSC2 open if an external clock is supplied.
- I/O port A0 to A3 Input in 4-bit units using the IP instruction Output in 4-bit units using the OP instruction Port bits can be tested in bit units using the BP and BNP instructions. Port bits can be set or cleared in bit units using the SPB and RPB instructions.
- PA3 is used for standby control.
- Applications must be designed so that no chattering (e.g. switch bounce) occurs on the PA3 pin during a HALT instruction execution cycle.
- I/O port C0 to C3 The PC0 to PC3 pin functions are identical to those of the PA0 to 3 pins.*
- High or low can be specified as the output at reset as an option. Note: These pins do not have a standby control function.
- I/O port D0 to D3 The PD0 to PD3 pin functions and options are identical to those of the PC0 to PC3 pins. Options (1)External clock (2)Two-pin ceramic oscillator (3)Divider circuit option 1. No divider circuit 2. Divide-by-three circuit 3. Divide-by-four circuit (1)Output open drain (2)Built-in pull-up resistor
- Options (1) and (2) can be specified in bit units. (1)Output open drain (2)Built-in pull-up resistor (3)High-level output at reset (4)Low-level output at reset
- Options (1) and (2) can be specified in bit units.
- Option (3) and (4) are specified in 4-bit units. The same as PC0 to PC3. State at reset High-level output (i.e., the output n-channel transistor will be off.)
- High-level output
- Low-level output (Depending on the option specified.) The same as PC0 to PC3. Handling when unused Open drain output select the options, connect to V SS . The same as PA0 to PA3. The same as PA0 to PA3. LC651204N/F/L, LC651202N/F/L Continued on next page.
No. 5190-7/35 LC651204N/F/L, LC651202N/F/L Pin PE0 to PE1 /WDR PF0/SI PF1/SO PF2/SCK PF3/INT PG0 to PG3 NC RES TEST Pin no. I/O I/O I/O I/O Input Input Function
- I/O port E0 to E1 Input in 4-bit units using the IP instruction Output in 4-bit units using the OP instruction Port bits can be set or cleared in bit units using the SPB and RPB instructions. Port bits can be tested in bit units using the BP and BNP instructions.
- The PE0 pin also has a continuous pulse (64·Tcyc) output function.
- The PE1 pin can be set to function as the WDR watchdog timer reset pin as an option.
- I/O port F0 to F3 This port has the same functions and options as PE0 to PE1. *
- The pins PF0 to PF3 are also used as the serial interface and the INT pin. The function used can be selected under program control. SO ·····Serial output port SCK ··Serial clock input or output INT····Interrupt request input Serial I/O can be switched between 4- bit and 8-bit operation under program control. Note: This port does not provide a continuous pulse output function.
- I/O port G0 to G3 This port has the same functions and options as PE0 to PE1. * Note: This port does not provide a continuous pulse output function.
- NC pin. This pin must be connected to V SS in the EP and OTP versions.
- System reset input
- Connect an external capacitor for the power up reset.
- A low level must be applied for at least four clock cycles for the reset startup sequence to operate correctly.
- LSI test pin Must be connected to V SS . Options (1)Output open drain (2)Built-in pull-up resistor
- Options (1) and (2) can be specified in bit units. (3)Normal port PE1 (4)Watchdog timer reset WDR (5)(3) or (4) can be specified. The same as PA0 to PA3. The same as PA0 to PA3. State at reset High-level output (i.e., the output n-channel transistor will be off.) The same as PA0 to PA3. The serial port function is disabled. The interrupt source is INT. The same as PA0 to PA3. Handling when unused The same as PA0 to PA3. The same as PA0 to PA3. The same as PA0 to PA3. Connect to V SS . Must be connected to VSS . Continued from preceding page.
Oscillator Circuit Options Divider Options Caution: The oscillator and divider options are summarized in the following tables. The information presented in those tables is crucial when using these products. No. 5190-8/35 LC651204N/F/L, LC651202N/F/L Option Circuit Conditions and notes The OSC2 pin must be left open. External clock Ceramic oscillator Option Circuit Conditions and notes
- Supports both oscillator options.
- The oscillator frequency or the external clock frequency must not exceed 1444 kHz (LC651204N and LC651202N) No divider (1/1) • The oscillator frequency or the external clock frequency must not exceed 4330 kHz (LC651204F and LC651202F)
- The oscillator frequency or the external clock frequency must not exceed 1040 kHz (LC651204L and LC651202L)
- Supports both oscillator options.
- The oscillator frequency or the external clock frequency must not exceed 4330 kHz Built-in divide-by-three circuit
- Supports both oscillator options.
- The oscillator frequency or the external clock frequency must not exceed 4330 kHz Built-in divide-by-four circuit
Divider Options for the LC651204N/1202N, LC651204F/1202F, and LC651204L/1202L LC651204N, LC651202N No. 5190-9/35 LC651204N/F/L, LC651202N/F/L Circuit type Frequency Divider option (cycle time)VDD range Notes 800 kHz 1/1 (5 µs) 3 to 5.5 V Ceramic oscillator 1 MHz 1/1 (4µs) 3 to 5.5 V 4 MHz 1/3 (3µs) 3 to 5.5 V This frequency cannot be used with the 1/1 1/4 (4µs) 3 to 5.5 V divider (i.e., no divider circuit) option. External clock generated by a 670 k to 1444 kHz 1/1 (6 to 2.77 µs) 3 to 5.5 V two-terminal RC oscillator circuit2000 k to 4330 kHz 1/3 (6 to 2.77 µs) 3 to 5.5 V 2600 k to 4330 kHz 1/4 (6 to 3.70 µs) 3 to 5.5 V Use of an external clock with the Driving the circuit with an external clock is not possible. To use external clock drive, specify the two-terminal RC ceramic oscillator option selectedoscillator option. LC651204L LC651202L Circuit type Frequency Divider option (cycle time)VDD range Notes 800 kHz 1/1 (5 µs) 2.5 to 5.5 V Ceramic oscillator 1 MHz 1/1 (4µs) 2.5 to 5.5 V 4 MHz 1/4 (4µs) 2.5 to 5.5 VThis frequency cannot be used with the 1/1, 1/3 divider (i.e., no divider circuit) option. External clock generated by a 670 k to 1040 kHz 1/1 (6 to 3.84 µs) 2.5 to 5.5 V two-terminal RC oscillator circuit2000 k to 3120 kHz 1/3 (6 to 3.84 µs) 2.5 to 5.5 V 2600 k to 4160 kHz 1/4 (6 to 3.84 µs) 2.5 to 5.5 V Use of an external clock with the Driving the circuit with an external clock is not possible. To use external clock drive, specify the two-terminal RC ceramic oscillator option selectedoscillator option. LC651204F, LC651202F Circuit type Frequency Divider option (cycle time)VDD range Notes Ceramic oscillator 4 MHz 1/1 (1 µs) 3 to 5.5 V External clock generated by a 670 k to 4330 kHz 1/1 (6 to 0.92 µs) 3 to 5.5 Vtwo-terminal RC oscillator circuit Use of an external clock with the Driving the circuit with an external clock is not possible. To use external clock drive, specify the two-terminal RC ceramic oscillator circuit oscillator option.
Port C and D Output State at Reset Options The output levels at reset of the I/O ports C and D can be selected from the following two options, which are specified in 4-bit units. Port Output Circuit Type Option The output circuit types of the I/O ports can be selected from the following two options in bit units. Watchdog Timer Reset Option Whether the PE1/WDR pin functions as the normal port PE1 or as the WDR watchdog timer reset pin can be selected as an option. No. 5190-10/35 LC651204N/F/L, LC651202N/F/L Option Conditions and notes High-level output at resetPorts C and D in 4-bit units Low-level output at reset Ports C and D in 4-bit units Option Circuit Conditions and notes Ports A, C, D, E, F, and G Open drain output Pull-up resistor output
LC651204N, 651202N Absolute Maximum Ratings at Ta = 25°C, VSS = 0 V No. 5190-11/35 LC651204N/F/L, LC651202N/F/L Parameter Symbol Conditions Applicable pins/notes Ratings Unit Maximum supply voltageVDD max VDD –0.3 to +7.0 V Voltages up to any Output voltage VO OSC2 generated voltage are V allowed. Input voltage VI(1) OSC1 *1 –0.3 to VDD +0.3 V VI(2) TEST, RES –0.3 to VDD +0.3 V VIO (1) PC0 to 3, PD0 to 3, PE0, 1, PF0 to 3 OD specification ports –0.3 to + 15 V I/O voltage VIO (2) PC0 to 3, PD0 to 3, PE0, 1, PF0 to 3 PU specification ports –0.3 to VDD +0.3 V VIO (3) PA0 to 3, PG0 to 3 –0.3 to VDD +0.3 V Peak output current IOP I/O ports –2 to +20 mA IOA Average value per pin over a 100-ms periodI/O ports –2 to +20 mA S IOA (1) Total current for pins PC0 to 3, PD0 to 3, and PC0 to PC3 PE0 to 1*2 PD0 to PD3 –15 to +100 mA Average output current PE0 to PE1 S IOA (2) Total current for pins PF0 to 3, PG0 to 3, and PF0 to PF3 PA0 to 3*2 PG0 to PG3 –15 to +100 mA PA0 to PA3 Allowable power Pd max (1)Ta = –40 to +85°C (DIP package) 250 mW dissipation Pd max (2)Ta = –40 to +85°C (MFP package) 150 mW Operating temperatureTopr –40 to +85 °C Storage temperature Tstg –55 to +125 °C Allowable Operating Ranges at Ta = –40 to 85°C, VSS = 0 V, VDD = 3.0 to 5.5 V (unless otherwise specified) Parameter Symbol Conditions Applicable pins/notes Ratings min typ max Unit Operating power-supply VDD VDD 3.0 5.5 Vvoltage Standby power-supply VST RAM and register values retained *3 VDD 1.8 5.5 Vvoltage VIH (1) Output n-channel transistors off OD specification ports C, D, E, 0.7 VDD 13.5 Vand F VIH (2) Output n-channel transistors off PU specification ports C, D, E, 0.7 VDD VDD Vand F VIH (3) Output n-channel transistors off Port A, G 0.7 VDD VDD V Input high-level voltageVIH (4) Output n-channel transistors off The INT, SCK, and SI pins with 0.8 VDD 13.5 VOD specifications VIH (5) Output n-channel transistors off The INT, SCK, and SI pins with 0.8 VDD VDD VPU specifications VIH (6) VDD = 1.8 to 5.5 V RES 0.8 VDD VDD V VIH (7) External clock specifications OSC1 0.8 VDD VDD V Continued on next page.
Figure 1. The divide-by-three Continued from preceding page.
Electrical Characteristics at Ta = –40 to +85°C, VSS = 0 V, VDD = 3.0 to 5.5 V (unless otherwise specified) No. 5190-13/35 LC651204N/F/L, LC651202N/F/L Parameter Symbol Conditions Applicable pins/notes Ratings min typ max Unit Output n-channel transistor off Ports C, D, E, and F IIH (1) (Includes the n-channel transistor off leakage current.) with open-drain 5.0 µA VIN = 13.5 V specifications Input high-level current Output n-channel transistor off Ports A and G with IIH (2) (Includes the n-channel transistor off leakage current.)open-drain 1.0 µA VIN = VDD specifications IIH (3) External clock mode, VIN = VDD OSC1 1.0 µA IIL(1) Output n-channel transistor off Ports with open-drain –1.0 µAVIN = VSS specifications Input low-level currentIIL(2) Output n-channel transistor off Ports with pull-up –1.3 –0.35 mAVIN = VSS resistor specifications IIL(3) VIN = VSS RES –45 –10 µA IIL(4) External clock mode, VIN = VSS OSC1 –1.0 µA VOH (1) IOH = –50 µA Ports with pull-up VDD –1.2 V Output high-level voltage VDD = 4.0 to 5.5 V resistor specifications VOH (2) IOH = –10 µA Ports with pull-up VDD –0.5 VVDD = 3.0 to 5.5 V resistor specifications VOL (1) IOL = 10 mA, VDD = 4.0 to 5.5 V Port 1.5 V Output low-level voltageVOL (2) IOL = 1 mA, with the IOL for all ports no more than Port 0.5 V1 mA. VDD = 3.0 to 5.5 V Hysteresis voltageVHIS RES, INT, SCK,
0.1 VDD V
High-level threshold VtH and SI OSC1 with 0.4 VDD 0.8 VDD Vvoltage Schmitt specifications Low-level threshold VtL *4 0.2 VDD 0.6 VDD Vvoltage Operating, output n-channel transistors off, Current drain IDDOP (1) Ports = VDD VDD 1.5 5 mA Figure 2, 4 MHz, divide-by-three circuit Ceramic oscillator IDDOP (2) Figure 2, 4 MHz, divide-by-four circuit VDD 1.5 4 mA IDDOP (3) Figure 2, 800 kHz VDD 1.5 4 mA 670 to 1444 kHz, no divider circuit External clock IDDOP (4) 2000 to 4330 kHz, divide-by-three circuit VDD 1.5 5 mA 2600 to 4330 kHz, divide-by-four circuit Standby mode IDDst Output n-channel transistor off, VDD = 5.5 V VDD 0.05 10 µA Ports = VDD , VDD = 3 V VDD 0.025 5 µA Schmitt characteristics Continued on next page.
No. 5190-15/35 LC651204N/F/L, LC651202N/F/L Parameter Symbol Conditions Applicable pins/notes Ratings VDD (v) min typ max Unit Serial input Data setup time t ICK Stipulated with respect to the rising edge SI 0.4 µs of SCK. Data hold time tCKI Figure 5 SI 0.4 µs Serial output Stipulated with respect to the falling edge of SCK. Output delay time tCKO For n-channel open-drain outputs only:SO 0.6 µsExternal resistance: 1 kΩ , external capacitance: 50 pF Figure 5 Pulse output Period t PCY Figure 6 PE0 64 · TCYC µs High-level pulse widthtPH Tcyc = 4 x the system clock period PE0 32 · TCYC µsFor n-channel open-drain outputs only: ±10% Low-level pulse widthtPL External resistance: 1 kΩ , external PE0 32 · TCYC µscapacitance: 50 pF ±10% C W When PE1 has open-drain output WDR 0.1±5% µFspecifications Guaranteed R W When PE1 has open-drain output WDR 680±1% kΩconstants *7 specifications 3 to 5.5 R l When PE1 has open-drain output WDR 100±1% Ωspecifications Clear time (discharge)tWCT See Figure 7. WDR 100 µs Clear period (charge)tWCCY See Figure 7. WDR 29 ms C W When PE1 has open-drain output WDR 0.047±5% µFspecifications Guaranteed R W When PE1 has open-drain output WDR 680±1% kΩconstants *7 specifications 4 to 5.5 R l When PE1 has open-drain output WDR 100±1% Ωspecifications Clear time (discharge)tWCT See Figure 7. WDR 40 µs Clear period (charge)tWCCY See Figure 7. WDR 15 ms Watchdog timer Note:1.When driven internally using the oscillator circuit shown in Figure 3 with guaranteed constants, values up to the amplitude of the generated oscillation are allowed. 2.The average over a 100-ms period 3.The operating power-supply voltage VDD must be maintained from the point where a HALT instruction is executed until the point where the device has fully entered the standby state. Also, applications must be designed so that no chattering (e.g. switch bounce) occurs on the PA3 pin during a HALT instruction execution cycle. 4.When external clock is selected as the oscillator option, the OSC1 pin has Schmitt characteristics. 5.The values shown for fCFOSC are the frequencies for which oscillation is possible. The center frequency when a ceramic oscillator is used may differ by about 1% from the nominal value listed by the manufacturer of the ceramic oscillator element. See the specifications of the ceramic oscillator element for details. 6.Tcyc = 4 · the system clock period 7.If this device is used in an environment subject to condensation, extra care is required concerning leakage between PE1 and adjacent pins and leakage associated with external capacitors. Continued from preceding page.
Figure 3 Oscillator Stabilization Period Figure 4 Reset Circuit Note:When the power supply rise time is zero, the reset time with CRES = 0.1 µF will be between 5 and 50 ms. If the power supply rise time is comparatively long, increase the value of CRES so that the reset time is over 5 ms. Table 1: Guaranteed Ceramic Oscillator Constants No. 5190-17/35 LC651204N/F/L, LC651202N/F/L 4 MHz (Murata Mfg. Co., Ltd.) C1 33 pF ± 10% CSA4.00MG C2 33 pF ± 10% CST4.00MGW (built-in capacitor version)R 0 Ω
4 MHz (Kyocera Corporation) C1 33 pF ± 10%
KBR4.0MSA C2 33 pF ± 10% KBR4.0MKS (built-in capacitor version)R 0 Ω 1 MHz (Murata Mfg. Co., Ltd.) C1 100 pF ± 10% CSB1000J C2 100 pF ± 10% R 2.2 kΩ
1 MHz (Kyocera Corporation)
C1 100 pF ± 10% KBR1000F C2 100 pF ± 10% R 0 Ω 800 kHz (Murata Mfg. Co., Ltd.) C1 100 pF ± 10% CSB800J C2 100 pF ± 10% R 2.2 kΩ 800 kHz (Kyocera Corporation) C1 220 pF ± 10% KBR800F C2 220 pF ± 10% R 0 Ω
No. 5190-19/35 LC651204N/F/L, LC651202N/F/L LC651204F, 651202F Absolute Maximum Ratings at Ta = 25°C, VSS = 0 V Parameter Symbol Conditions Applicable pins/notes Ratings Unit Maximum supply voltageVDD max VDD –0.3 to +7.0 V Voltages up to any Output voltage VO OSC2 generated voltage are V allowed. Input voltage VI(1) OSC1 *1 –0.3 to VDD +0.3 V VI(2) TEST, RES –0.3 to VDD +0.3 V VIO (1) PC0 to 3, PD0 to 3, PE0, 1, PF0 to 3 OD specification ports –0.3 to + 15 V I/O voltage VIO (2) PC0 to 3, PD0 to 3, PE0, 1, PF0 to 3 PU specification ports –0.3 to VDD +0.3 V VIO (3) PA0 to 3, PG0 to 3 –0.3 to VDD +0.3 V Peak output current IOP I/O ports –2 to +20 mA IOA Average value per pin over a 100-ms periodI/O ports –2 to +20 mA Total current for pins PC0 to 3, PD0 to 3, and PC0 to 3 S IOA (1) PE0 to 1 *2 PD0 to 3 –15 to +100 mA Average output current PE0 to 1 Total current for pins PF0 to 3, PG0 to 3, and PF0 to 3 S IOA (2) PA0 to 3*2 PG0 to 3 –15 to +100 mA PA0 to 3 Allowable power Pd max (1)Ta = –40 to +85°C (DIP package) 250 mW dissipation Pd max (2)Ta = –40 to +85°C (MFP package) 150 mW Operating temperatureTopr –40 to +85 °C Storage temperature Tstg –55 to +125 °C Allowable Operating Ranges at Ta = –40 to +85°C, VSS = 0 V, VDD = 3.0 to 5.5 V (unless otherwise specified) Parameter Symbol Conditions Applicable pins/notes Ratings min typ max Unit Operating power-supply VDD VDD 3.0 5.5 Vvoltage Standby power-supply VST RAM and register values retained *3 VDD 1.8 5.5 Vvoltage VIH (1) Output n-channel transistors off OD specification ports C, D, E, 0.7 VDD 13.5 Vand F VIH (2) Output n-channel transistors off PU specification ports C, D, E, 0.7 VDD VDD Vand F VIH (3) Output n-channel transistors off Port A, G 0.7 VDD VDD V Input high-level voltageVIH (4) Output n-channel transistors off The INT, SCK, and SI pins with 0.8 VDD 13.5 VOD specifications VIH (5) Output n-channel transistors off The INT, SCK, and SI pins with 0.8 VDD VDD VPU specifications VIH (6) VDD = 1.8 to 5.5 V RES 0.8 VDD VDD V VIH (7) External clock specifications OSC1 0.8 VDD VDD V VIL(1) Output n-channel transistors off Port VSS 0.2 VDD V VIL(2) Output n-channel transistors off INT, SCK, SI VSS 0.2 VDD V Input low-level voltageVIL(3) External clock specifications OSC1 VSS 0.2 VDD V VIL(4) TEST VSS 0.2 VDD V VIL(5) RES VSS 0.2 VDD V Continued on next page.
No. 5190-20/35 LC651204N/F/L, LC651202N/F/L Parameter Symbol Conditions Applicable pins/notes Ratings min typ max Unit Operating frequency fop 670 4330 kHz (cycle time) (T cyc) (6) (0.97) (µs) External clock conditions Frequency text OSC1 670 4330 kHz Pulse width textH, textLFigure 1 OSC1 69 ns Rise and fall times textR, textF OSC1 50 ns Guaranteed oscillator constants Figure 2 See table 1. Ceramic oscillator Electrical Characteristics at Ta = –40 to +85°C, VSS = 0 V, VDD = 3.0 to 5.5 V (unless otherwise specified) Parameter Symbol Conditions Applicable pins/notes Ratings min typ max Unit Output n-channel transistor off Ports C, D, E, and F IIH (1) (Includes the n-channel transistor off leakage current.) with open-drain 5.0 µA VIN = 13.5 V specifications Input high-level current Output n-channel transistor off Ports A and G with IIH (2) (Includes the n-channel transistor off leakage current.)open-drain 1.0 µA VIN = VDD specifications IIH (3) External clock mode, VIN = VDD OSC1 1.0 µA IIL(1) Output n-channel transistor off Ports with open-drain –1.0 µAVIN = VSS specifications Input low-level currentIIL(2) Output n-channel transistor off Ports with pull-up –1.3 –0.35 mAVIN = VSS resistor specifications IIL(3) VIN = VSS RES –45 –10 µA IIL(4) External clock mode, VIN = VSS OSC1 –1.0 µA VOH (1) IOH = –50 µA Ports with pull-up VDD –1.2 V Output high-level voltage resistor specifications VOH (2) IOH = –10 µA Ports with pull-up VDD –0.5 Vresistor specifications VOL (1) IOL = 10 mA Port 1.5 V Output low-level voltageVOL (2) IOL = 1 mA, with the IOL for all ports no more than Port 0.5 V 1 mA. Hysteresis voltageVHIS RES, INT, SCK, High-level threshold VtH and SI OSC1 with 0.4 VDD 0.8 VDD Vvoltage Schmitt specifications Low-level threshold VtL *4 0.25VDD 0.6 VDD Vvoltage Current drain Ceramic oscillator IDDOP (1) Figure 2, 4 MHz VDD 2 6 mA 670 to 1444 kHz External clock IDDOP (2) *1 Operating, output n-channel transistors off,VDD 2 6 mA Ports = VDD Standby mode IDDst Output n-channel transistor off,VDD = 5.5 V VDD 0.05 10 µA Ports = VDD VDD = 3 V VDD 0.025 5 µA Schmitt characteristics Continued from preceding page. Continued on next page.
No. 5190-21/35 LC651204N/F/L, LC651202N/F/L Parameter Symbol Conditions Applicable pins/notes Ratings min typ max Unit Oscillator characteristics Ceramic oscillator Oscillator frequency f CFOSC Figure 2, fo = 4 MHz *5 OSC1, OSC2 3840 4000 4160 kHz Oscillator stabilization tCFS Figure 3, fo = 4 MHz 5 mstime Pull-up resistors Output n-channel transistor off I/O ports R PP Vin= VSS , VDD = 5 V Ports with pull-up 8 14 30 kΩ resistor specifications RES Ru Vin= VSS , VDD = 5 V RES 100 250 400 kΩ External reset characteristics Reset time tRST See Figure 4. f = 1 MHz Pin capacitance Cp With all pins other than the pin being measured at 10 pF VIN = VSS Serial clock Input clock cycle timet CKCY (1) Figure 5 SCK 2.0 µs Output clock cycle timetCKCY (2) Figure 5 SCK 64 · TCYC µs*6 Input clock low-level tCKL (1) Figure 5 SCK 0.6 µspulse width Output clock low-level tCKL (2) Figure 5 SCK 32 · TCYC µspulse width Input clock high-level tCKH (1) Figure 5 SCK 0.6 µspulse width Output clock high-level tCKH (2) Figure 5 SCK 32 · TCYC µspulse width Serial input Data setup time tICK Stipulated with respect to the rising edge of SCK.SI 0.2 µs Data hold time tCKI Figure 5 SI 0.2 µs Serial output Stipulated with respect to the falling edge of SCK. Output delay time tCKO For n-channel open-drain outputs only. External SO 0.4 µs resistance: 1 kΩ , external capacitance: 50 pF. Figure 5 Pulse output Period tPCY Figure 6 PE0 64 · TCYC µs Tcyc = 4 · the system clock period PE0 32 · TCYC µsHigh-level pulse widthtPH For n-channel open-drain outputs only: ±10%External resistance: 1 kΩ , external capacitance: 50 pF Low-level pulse widthtPL PE0 32 · TCYC µs±10% Continued from preceding page. Continued on next page.
No. 5190-22/35 LC651204N/F/L, LC651202N/F/L Parameter Symbol Conditions Applicable pins/notes Ratings VDD (v) min typ max Unit C W When PE1 has open-drain output WDR 0.01±5% µFspecifications Guaranteed R W When PE1 has open-drain output WDR 680±1% kΩconstants *7 specifications 3 to 5.5 R l When PE1 has open-drain output WDR 100±1% Ωspecifications Clear time (discharge)tWCT See Figure 7. WDR 10 µs Clear period (charge)tWCCY See Figure 7. WDR 3.0 ms C W When PE1 has open-drain output WDR 0.01±5% µFspecifications Guaranteed R W When PE1 has open-drain output WDR 680±1% kΩconstants *7 specifications R l When PE1 has open-drain output 4.5 to 5.5WDR 100±1% Ωspecifications Clear time (discharge)tWCT See Figure 7. WDR 10 µs Clear period (charge)tWCCY See Figure 7. WDR 3.3 ms Watchdog timer Note:1.When driven internally using the oscillator circuit shown in Figure 2 with guaranteed constants, values up to the amplitude of the generated oscillation are allowed. 2.The average over a 100-ms period 3.The operating power-supply voltage VDD must be maintained from the point where a HALT instruction is executed until the point where the device has fully entered the standby state. Also, applications must be designed so that no chattering (e.g. switch bounce) occurs on the PA3 pin during a HALT instruction execution cycle. 4.When external clock is selected as the oscillator option, the OSC1 pin has Schmitt characteristics. 5.The values shown for fCFOSC are the frequencies for which oscillation is possible. 6.Tcyc = 4 · the system clock period 7.If this device is used in an environment subject to condensation, extra care is required concerning leakage between PE1 and adjacent pins and leakage associated with external capacitors. Continued from preceding page.
No. 5190-23/35 LC651204N/F/L, LC651202N/F/L Figure 1 External Clock Input Waveform Figure 2 Ceramic Oscillator Circuit Figure 3 Oscillator Stabilization Period Figure 4 Reset Circuit Note:When the power supply rise time is zero, the reset time with CRES = 0.1 µF will be between 5 and 50 ms. If the power supply rise time is comparatively long, increase the value of CRES so that the reset time is over 5 ms. Table 1: Guaranteed Ceramic Oscillator Constants 4 MHz (Murata Mfg. Co., Ltd.) C1 33 pF ± 10% CSA4.00MG C2 33 pF ± 10% CST4.00MGW (built-in capacitor version)R 0 Ω KBR4.0MSA C2 33 pF ± 10% KBR4.0MKS (built-in capacitor version)R 0 Ω
No. 5190-25/35 LC651204N/F/L, LC651202N/F/L LC651204L, 651202L Absolute Maximum Ratings at Ta = 25°C, VSS = 0 V Parameter Symbol Conditions Applicable pins/notes Ratings Unit Maximum supply voltageVDD max VDD –0.3 to +7.0 V Voltages up to any Output voltage VO OSC2 generated voltage are V allowed. Input voltage VI(1) OSC1 *1 –0.3 to VDD +0.3 V VI(2) TEST, RES –0.3 to VDD +0.3 V VIO (1) PC0 to 3, PD0 to 3, PE0, 1, PF0 to 3 OD specification ports –0.3 to + 15 V I/O voltage VIO (2) PC0 to 3, PD0 to 3, PE0, 1, PF0 to 3 PU specification ports –0.3 to VDD +0.3 V VIO (3) PA0 to 3, PG0 to 3 –0.3 to VDD +0.3 V Peak output current IOP I/O ports –2 to +20 mA IOA Average value per pin over a 100-ms periodI/O ports –2 to +20 mA Total current for pins PC0 to 3, PD0 to 3, and PC0 to 3 S IOA (1) PE0 to 1 *2 PD0 to 3 –15 to +100 mA Average output current PE0 to 1 Total current for pins PF0 to 3, PG0 to 3, and PF0 to 3 S IOA (2) PA0 to 3 *2 PG0 to 3 –15 to +100 mA PA0 to 3 Allowable power Pd max (1)Ta = –40 to +85°C (DIP package) 250 mW dissipation Pd max (2)Ta = –40 to +85°C (MFP package) 150 mW Operating temperatureTopr –40 to +85 °C Storage temperature Tstg –55 to +125 °C Allowable Operating Rangesat Ta = –40 to +85°C, VSS = 0 V, VDD = 2.5 to 5.5 V (unless otherwise specified) Parameter Symbol Conditions Applicable pins/notes Ratings min typ max Unit Operating power-supply VDD VDD 2.5 5.5 Vvoltage Standby power-supply VST RAM and register values retained *3 VDD 1.8 5.5 Vvoltage VIH (1) Output n-channel transistors off OD specification ports C, D, E, 0.7 VDD 13.5 Vand F VIH (2) Output n-channel transistors off PU specification ports C, D, E, 0.7 VDD VDD Vand F VIH (3) Output n-channel transistors off Port A, G 0.7 VDD VDD V Input high-level voltageVIH (4) Output n-channel transistors off The INT, SCK, and SI pins with 0.8 VDD 13.5 VOD specifications VIH (5) Output n-channel transistors off The INT, SCK, and SI pins with 0.8 VDD VDD VPU specifications VIH (6) VDD = 1.8 to 5.5 V RES 0.8 VDD VDD V VIH (7) External clock specifications OSC1 0.8 VDD VDD V VIL(1) Output n-channel transistors off Port VSS 0.2 VDD V VIL(2) Output n-channel transistors off INT, SCK, SI VSS 0.15 VDD V Input low-level voltageVIL(3) External clock specifications OSC1 VSS 0.15 VDD V VIL(4) TEST VSS 0.2 VDD V VIL(5) RES VSS 0.15 VDD V
No. 5190-26/35 LC651204N/F/L, LC651202N/F/L Parameter Symbol Conditions Applicable pins/notes Ratings min typ max Unit Operating frequency fop Frequencies up to 4.16 MHz are supported if the 670 1040 kHz (cycle time) (Tcyc) divide-by-four divider circuit option is used. (6) (3.84) (µs) External clock conditions Figure 1. The divide-by- three or divide-by-four Frequency text divider circuit option must be used if the clockOSC1 670 4160 kHz Pulse width textH, textLfrequency exceeds 1.040 MHz. OSC1 150 ns Rise and fall times textR, textF OSC1 100 ns Guaranteed oscillator constants Figure 2 See table 1. Ceramic oscillator Electrical Characteristics at Ta = –40 to +85°C, VSS = 0 V, VDD = 2.5 to 5.5 V (unless otherwise specified) Parameter Symbol Conditions Applicable pins/notes Ratings min typ max Unit Output n-channel transistor off Ports C, D, E, and F IIH (1) (Includes the n-channel transistor off leakage current.) with open drain 5.0 µA VIN = 13.5 V specifications Input high-level current Output n-channel transistor off Ports A and G with IIH (2) (Includes the n-channel transistor off leakage current.)open drain 1.0 µA VIN = VDD specifications IIH (3) External clock mode, VIN = VDD OSC1 1.0 µA IIL(1) Output n-channel transistor off Ports with open drain –1.0 µAVIN = VSS specifications Input low-level currentIIL(2) Output n-channel transistor off Ports with pull-up –1.3 –0.35 mAVIN = VSS resistor specifications IIL(3) VIN = VSS RES –45 –10 µA IIL(4) External clock mode, VIN = VSS OSC1 –1.0 µA Output high-level voltageVOH (1) IOH = –10 µA Ports with pull-up VDD –0.5 Vresistor specifications VOL (1) IOL = 3 mA Port 1.5 V Output low-level voltageVOL (2) IOL = 1 mA, with the IOL for all ports no more than Port 0.4 V1 mA. Hysteresis voltageVHIS RES, INT, SCK, High-level threshold VtH and SI OSC1 with 0.4 VDD 0.8 VDD Vvoltage Schmitt specifications Low-level threshold VtL *4 0.2 VDD 0.6 VDD Vvoltage Schmitt characteristics Continued from preceding page. Continued on next page.
No. 5190-28/35 LC651204N/F/L, LC651202N/F/L Parameter Symbol Conditions Applicable pins/notes Ratings min typ max Unit Serial clock Input clock cycle timet CKCY (1) Figure 5 SCK 6.0 µs Output clock cycle timetCKCY (2) Figure 5 SCK 64 · TCYC µs*6 Input clock low-level tCKL (1) Figure 5 SCK 2.0 µspulse width Output clock low-level tCKL (2) Figure 5 SCK 32 · TCYC µspulse width Input clock high-level tCKH (1) Figure 5 SCK 2.0 µspulse width Output clock high-level tCKH (2) Figure 5 SCK 32 · TCYC µspulse width Serial input Data setup time t ICK Stipulated with respect to the rising edge of SCK.SI 0.5 µs Data hold time tCKI Figure 5 SI 0.5 µs Serial output Stipulated with respect to the falling edge of SCK. Output delay time tCKO For n-channel open-drain outputs only: ExternalSO 1.0 µs resistance: 1 kΩ , external capacitance: 50 pF. Figure 5 Pulse output period tPCY Figure 6 PE0 64 · TCYC µs Tcyc = 4 · the system clock period PE0 32 · TCYC µsHigh-level pulse widthtPH For n-channel open-drain outputs only: ±10%External resistance: 1 kΩ , external capacitance: 50 pF Low-level pulse widthtPL PE0 32 · TCYC µs±10% Continued from preceding page. Continued on next page.
No. 5190-29/35 LC651204N/F/L, LC651202N/F/L Parameter Symbol Conditions Applicable pins/notes Ratings VDD (v) min typ max Unit C W When PE1 has open-drain output WDR 0.1±5% µFspecifications Guaranteed R W When PE1 has open-drain output WDR 680±1% kΩconstants *7 specifications 2.5 to 5.5 R l When PE1 has open-drain output WDR 100±1% Ωspecifications Clear time (discharge)tWCT See Figure 7. WDR 100 µs Clear period (charge)tWCCY See Figure 7. WDR 26 ms C W When PE1 has open-drain output WDR 0.047±5% µFspecifications Guaranteed R W When PE1 has open-drain output WDR 680±1% kΩconstants *7 specifications R l When PE1 has open-drain output 2.5 to 5.5WDR 100±1% Ωspecifications Clear time (discharge)tWCT See Figure 7. WDR 40 µs Clear period (charge)tWCCY See Figure 7. WDR 12 ms Watchdog timer Note:1.When driven internally using the oscillator circuit shown in Figure 2 with guaranteed constants, values up to the amplitude of the generated oscillation are allowed. 2.The average over a 100-ms period 3.The operating power-supply voltage VDD must be maintained from the point where a HALT instruction is executed until the point where the device has fully entered the standby state. Also, applications must be designed so that no chattering (e.g. switch bounce) occurs on the PA3 pin during a HALT instruction execution cycle. 4.When external clock is selected as the oscillator option, the OSC1 pin has Schmitt characteristics. 5.The values shown for fCFOSC are the frequencies for which oscillation is possible. 6.Tcyc = 4 · the system clock period 7.If this device is used in an environment subject to condensation, extra care is required concerning leakage between PE1 and adjacent pins and leakage associated with external capacitors. Continued from preceding page.
No. 5190-31/35 LC651204N/F/L, LC651202N/F/L Figure 5 Serial I/O Timing Figure 4 Reset Circuit Note:When the power supply rise time is zero, the reset time with CRES = 0.1 µF will be between 5 and 50 ms. If the power supply rise time is comparatively long, increase the value of CRES so that the reset time is over 5 ms. Table 1: Guaranteed Ceramic Oscillator Constants 4 MHz (Murata Mfg. Co., Ltd.) C1 33 pF ± 10% CSA4.00MGU C2 33 pF ± 10% CST4.0MGWU (built-in capacitor version)R 0 Ω 1 MHz (Murata Mfg. Co., Ltd.) C1 100 pF ± 10% CSB1000J C2 100 pF ± 10% R 2.2 kΩ C1 100 pF ± 10% KBR1000F C2 100 pF ± 10% R 0 Ω 800 kHz (Murata Mfg. Co., Ltd.) C1 100 pF ± 10% CSB800J C2 100 pF ± 10% R 2.2 kΩ 800 kHz (Kyocera Corporation) C1 220 pF ± 10% KBR800F C2 220 pF ± 10% R 0 Ω Figure 6 Port PE0 Pulse Output Timing With load conditions identical to those shown in Figure 5
No. 5190-32/35 LC651204N/F/L, LC651202N/F/L Figure 7 Watchdog Timer Waveform tWCCY : Charge time due to the external components CW , RW , and Rl tWCT : Discharge time due to program processing
LC651204/1202 Instruction Set (by function) Abbreviations AC: Accumulator M: Memory ZF : Zero flag ACt: Accumulator bit t M(DP): Memory addressed by DP ( )[ ]: Indicates the contents of the item enclosed. CF: Carry flag P(DPL): I/O port specified by DPL ‹ : Transfer and direction CTL: Control register PC: Program counter + : Addition DP: Data pointer STACK: Stack pointer – : Subtraction E: E register TM: Timer ^ : Logical AND EXTF: External interrupt request flagTMF: Timer (internal) interrupt request flagÚ : Logical OR Fn: Flag bit n At, Ha, La:Working registers Ú : Logical exclusive OR No. 5190-33/35 LC651204N/F/L, LC651202N/F/L Instruction code Modified Mnemonic Operation Description status Notes D 7 D 6 D 5 D 4 D 3 D 2 D 1 D 0 flags CLA Clear AC 1 1 0 0 0 0 0 0 1 1 AC ‹ 0 Clears AC. ZF *1 ClC Clear CF 1 1 1 0 0 0 0 1 1 1 CF ‹ 0 Clears CF. CF STC Set CF 1 1 1 1 0 0 0 1 1 1 CF ‹ 1 Sets CF. CF CMA Complement AC 1 1 1 0 1 0 1 1 1 1 AC ‹ (AC) Sets AC to the one's ZF INC Increment AC 0 0 0 0 1 1 1 0 1 1 AC ‹ (AC) + 1 Increments AC. ZF CF DEC Decrement AC 0 0 0 0 1 1 1 1 1 1 AC ‹ (AC) – 1 Decrements AC. ZF CF RAL Rotate AC left through CF 0 0 0 0 0 0 0 1 1 1 AC 0 ‹ (CF), ACn+1 Shifts AC together with CF left.ZF CF‹ (ACn), CF ‹ (AC3) TAE Transfer AC to E 0 0 0 0 0 0 1 1 1 1 E ‹ (AC) Moves the contents of AC to E. XAE Exchange AC with E 0 0 0 0 1 1 0 1 1 1 (AC) « (E) Exchanges the contents of AC and E. INM Increment M 0 0 1 0 1 1 1 0 1 1 M(DP) ‹ [M(DP)] + 1Increments M(DP). ZF CF DEm Decrement M 0 0 1 0 1 1 1 1 1 1 M(DP) ‹ [M(DP)] – 1Decrements M(DP). ZF CF SmB bit Set M data bit 0 0 0 0 1 0 B1 B0 1 1 M(DP, B1 B0) ‹ 1 Sets the bit in M(DP) specified by B1B0 to 1. RMB bit Reset M data bit 0 0 1 0 1 0 B1 B0 1 1 M(DP, B1 B0) ‹ 0 Clears the bit in M(DP) specified by B1B0 to 0. AD Add M to AC 0 1 1 0 0 0 0 0 1 1 AC ‹ (AC) + [M(DP)] Adds the contents of AC and M(DP) as two's complement ZF CFquantities and stores the result in AC. ADC Add M to AC with CF 0 0 1 0 0 0 0 0 1 1 AC ‹ (AC) + [M(DP)] Adds the contents of AC, CF, + (CF) and M(DP) as two's complement ZF CFquantities and stores the result in AC. DAA Decimal adjust AC in addition1 1 1 0 0 1 1 0 1 1 AC ‹ (AC) + 3 Adds 6 to AC. ZF DAS Decimal adjust AC in subtraction1 1 1 0 1 0 1 0 1 1 AC ‹ (AC) + 10 Adds 10 to AC. ZF Takes the logical exclusive OR ZF EXL Exclusive or M to AC 1 1 1 1 0 1 0 1 1 1 AC ‹ (AC) Ú [M(DP)] of AC and M(DP) and stores the result in AC. Takes the logical AND of AC AND And M to AC 1 1 1 0 0 1 1 1 1 1 AC ‹ (AC) ^ [M(DP)]and M(DP) and stores the ZF result in AC. OR Or M to AC 1 1 1 0 0 1 0 1 1 1 AC ‹ (AC) Ú [M(DP)] Takes the logical OR of AC andZFM(DP) and stores the result in AC. Compares the contents of AC CM Compare AC with M 1 1 1 1 1 0 1 1 1 1 [M(DP)] + (AC) + 1 and M(DP) and sets or clears CF and ZF accordingly. ZF CF Compares the contents of AC and the immediate data I3 I2 I1 I0 and sets or clears CF and ZF accordingly. Cl data Compare AC with 0 0 1 0 1 1 0 0 2 2 I
3 I2 I1 I0 + (AC) + 1 ZF CF
immediate data 0 1 0 0 I3 I2 I1 I0 CLI data Compare DP L with immediate 0 0 1 0 1 1 0 0 2 2 (DPL) Ú I3 I2 I1 I0 Compares the contents of DPL ZFdata 0 1 0 1 I3 I2 I1 I0 and the immediate data. LI data Load AC with immediate data1 1 0 0 I3 I2 I1 I0 1 1 AC ‹ I3 I2 I1 I0 Loads AC with the immediate ZF *1 data I3 I2 I1 I0. S Store AC to M 0 0 0 0 0 0 1 0 1 1 M(DP) ‹ (AC) Stores the contents of AC at M(DP). L Load AC from M 0 0 1 0 0 0 0 1 1 1 AC ‹ [M(DP)] Loads the contents of M(DP) into AC.ZF Exchange AC with M then 1 0 1 0 0 M 2 M 1 M 0 1 2 (AC) « [M(DP)] Exchanges the contents of AC XM data modify DPH with immediate DP H ‹ (DPH ) Ú and M(DP). Then, replaces the ZF data 0 M2 M 1 M 0 contents of DPH with (DPH ) Ú 0 M 2 M 1 M 0. Exchanges the contents of AC X Exchange AC with M 1 0 1 0 0 0 0 0 1 2 (AC) « [M(DP)] and M(DP). ZF Exchange AC with M then 1 1 1 1 1 1 1 0 1 2 (AC) « [M(DP)] Exchanges the contents of AC XI increment DPL DP L ‹ (DPL) + 1 and M(DP). Then, increments ZF the contents of DPL. XD Exchange AC with M then 1 1 1 1 1 1 1 1 1 2 (AC) « [M(DP)] Exchanges the contents of AC Decrement DPL DP L ‹ (DPL) – 1 and M(DP). Then, DecrementsZF the contents of DPL. Loads into AC and E the ROM RTBl Read table data from 0 1 1 0 0 0 1 1 1 2 AC, E « ROM data stored at the location given program ROM (PCh, E, AC) by the lower 8 bits of the PC, E and AC. Instruction groupAccumulator manipulation instructionsArithmetic and comparison instructionsLoad and store instructions Memory manipulation instructions Number of bytes ZF is set to indicate the result of the (DPH) Ú 0 M
2 M 1 M 0
operation. ZF is set according to the contents of DPH at the point the instruction was executed. ZF is set to indicate the result of the DP L +1 operation. ZF is set to indicate the result of the DPL –1 operation. Number of cycles Magnitude relationshipCF ZF [M(DP)] > (AC) 0 0 [M(DP)] = (AC) 1 1 [M(DP)] < (AC) 1 0 Magnitude relationshipCF ZF I3 I2 I1 I0 > (AC) 0 0 I3 I2 I1 I0 = (AC) 1 1 I3 I2 I1 I0 < (AC) 1 0 Continued on next page.
No. 5190-34/35 LC651204N/F/L, LC651202N/F/L Instruction code Modified Mnemonic Operation Description status Notes D 7 D 6 D 5 D 4 D 3 D 2 D 1 D 0 flags Load DPH with Zero and DP H ‹ 0 Loads 0 into DPH and the LDZ data DP L with immediate data 1 0 0 0 I3 I2 I1 I0 1 1 DP L ‹ I3 I2 I1 I0 immediate data I3I2I1I0 into DPL.respectively LHI data Load DPH with immediate 0 1 0 0 I3 I2 I1 I0 1 1 DP H ‹ I3 I2 I1 I0 Loads the immediate data I3 I2 I1 I0 data into DPH . IND Increment DPL 1 1 1 0 1 1 1 0 1 1 DP L ‹ (DPL) + 1 Increments the contents of DPL. ZF DED Decrement DPL 1 1 1 0 1 1 1 1 1 1 DP L ‹ (DPL) – 1 Decrements the contents of DPL.ZF TAL Transfer AC to DPL 1 1 1 1 0 1 1 1 1 1 DP L ‹ (AC) Moves the contents of AC to DPL. TLA Transfer DPL to AC 1 1 1 0 1 0 0 1 1 1 AC ‹ (DPL) Moves the contents of DPL to AC.ZF XAH Exchange AC with DPH 0 0 1 0 0 0 1 1 1 1 (AC) « (DPH ) Exchanges the contents of AC and DPH . XAt t1 t0 Exchanges the contents of AC XA0 Exchange AC with working 1 1 1 0 0 0 0 0 1 1 (AC) « (A0) and the working register A0, A1, XA1 register At 1 1 1 0 0 1 0 0 1 1 (AC) « (A1) A2, or A3 specified by t1t0. XA2 1 1 1 0 1 0 0 0 1 1 (AC) « (A2) XA3 1 1 1 0 1 1 0 0 1 1 (AC) « (A3) XHa Exchange DPH with working a Exchanges the contents of DPH XH0 register Ha 1 1 1 1 1 0 0 0 1 1 (DPH ) « (H0) and the working register H0 or H1 XH1 1 1 1 1 1 1 0 0 1 1 (DPH ) « (H1) specified by a. XLa Exchange DPH with working a Exchanges the contents of DPL XL0 register Ha 1 1 1 1 1 0 0 0 1 1 (DPL) « (L0) and the working register L0 or L1 XL1 1 1 1 1 1 1 0 0 1 1 (DPL) « (L1) specified by a. SFB flag Set flag bit 0 1 0 1 B3 B2 B1 B0 1 1 Fn ‹ 1 Sets the flag specified by B3 B2 B1 B0 to 1. Clears the flag specified by B3 B2 B1 B0 to 0. RFB flag Reset flag bit 0 0 0 1 B3 B2 B1 B0 1 1 Fn ‹ 0 ZF 0 1 1 0 1 P10 P9 P8 PC ‹ P10 P9 P8 P7 P6 Jumps to the location specified JMP addr Jumping in the current bank P7 P6 P5 P4 P3 P2 P1 P0 2 2 P5 P4 P3 P2 P1 P0 by the immediate data P10 P9 P8 P7 P6 P5 P4 P3 P2 P1 P0. JPEA Jumping current page 1 1 1 1 1 0 1 0 1 1 PC 0 to 7 ‹ (E, AC) Jumps to the location given by modified by E and AC replacing the lower 8 bits of the PC with E and AC. CZP addr Call subroutine in the zero 1 0 1 1 P3 P2 P1 P0 1 1 STACK ‹ (PC) + 1 page PC 10 to 6 , PC1 to 0 ‹ 0 Calls a subroutine on page 0. PC 5 to 2 ‹ P3 P2 P1 P0 CAL addr Call subroutine 1 0 1 0 1 P10 P9 P8 2 2 STACK ‹ (PC) + 2 Calls a subroutine. RT Return from subroutine 0 1 1 0 0 0 1 0 1 1 PC ‹ (STACK) Returns from a subroutine. RTI Return from interrupt routine0 0 1 0 0 0 1 0 1 1 PC ‹ (STACK) Returns from an interrupt ZF CFCF, ZF ‹ CSF, ZSF handling routine. Specifies a pseudo I/O port BANK Change bank 1 1 1 1 1 1 0 1 1 1 and changes the bank. BAt addr Change bank 0 1 1 1 0 0 t1 t0 2 2 PC 7 to 0 ‹ P7 P6 P5 P4 Branches to the location on the P7 P6 P5 P4 P3 P2 P1 P0 P3 P2 P1 P0 same page specified by P7 to P0 if ACt = 1 if the bit in AC specified by the immediate data t1t0 is 1. BNAt addr Branch on no AC bit 0 0 1 1 0 0 t1 t0 2 2 PC 7 to 0 ‹ P7 P6 P5 P4 Branches to the location on the P7 P6 P5 P4 P3 P2 P1 P0 P3 P2 P1 P0 same page specified by P7 to P0 if ACt = 0 if the bit in AC specified by the immediate data t1t0 is 0. BMt addr Branch on M bit 0 1 1 1 0 1 t1 t0 2 2 PC 7 to 0 ‹ P7 P6 P5 P4 Branches to the location on the P7 P6 P5 P4 P3 P2 P1 P0 P3 P2 P1 P0 same page specified by P7 to P0 if [M(DP, t1 t0)] = 1 if the bit in M(DP) specified by the immediate data t1 t0 is 1. BNMt addr Branch on no M bit 0 0 1 1 0 1 t1 t0 2 2 PC 7 to 0 ‹ P7 P6 P5 P4 Branches to the location on the P7 P6 P5 P4 P3 P2 P1 P0 P3 P2 P1 P0 same page specified by P7 to P0 if [M(DP, t1 t0)] = 0 if the bit in M(DP) specified by the immediate data t1 t0 is 0. BPt addr Branch on Port bit 0 1 1 1 1 0 t1 t0 2 2 PC 7 to 0 ‹ P7 P6 P5 P4 Branches to the location on the P7 P6 P5 P4 P3 P2 P1 P0 P3 P2 P1 P0 same page specified by P7 to P0 if [P(DPL, t1 t0)] = 1 if the bit in port P(DPL) specified by the immediate data t1 t0 is 1. BNPt addr Branch on no Port bit 0 0 1 1 1 0 t1 t0 2 2 PC 7 to 0 ‹ P7 P6 P5 P4 Branches to the location on the P7 P6 P5 P4 P3 P2 P1 P0 P3 P2 P1 P0 same page specified by P7 to P0 if [P(DPL, t1 t0)] = 0 if the bit in port P(DPL) specified by the immediate data t1 t0 is 0. 0 1 1 1 1 0 0 0 PC 7 to 0 ‹ P7 P6 P5 P4 Branches to the location on the BTM addr Branch on timer P7 P6 P5 P4 P3 P2 P1 P0 P3 P2 P1 P0 same page specified by P7 to P0 TMF2 2 if TMF = 0 if TMF is 1. Also clears TMF. then TMF ‹ 0 Instruction groupData pointer manipulation instructionsWorking register manipulation instructionsMemory manipulation instructionsJump and subroutine instructionsBranch instructions Number of bytes The flags are divided into four groups, F0 to F3, F4 to F7, F8 to F11, and F12 to F15. ZF is set or cleared according to the 4 bits included in the specified flags. Only valid for the immediately following JMP, I/O, or branch instruction. The mnemonics are BA0 to BA3, reflecting the value of t. The mnemonics are BNA0 to BNA3, reflecting the value of t. The mnemonics are BM0 to BM3, reflecting the value of t. The mnemonics are BNM0 to BNM3, reflecting the value of t. The mnemonics are BP0 to BP3, reflecting the value of t. The mnemonics are BNP0 to BNP3, reflecting the value of t. Number of cycles Continued from preceding page. Continued on next page.
This catalog provides information as of November, 1997. Specifications and information herein are subject to change without notice. n No products described or contained herein are intended for use in surgical implants, life-support systems, aerospace equipment, nuclear power control systems, vehicles, disaster/crime-prevention equipment and the like, the failure of which may directly or indirectly cause injury, death or property loss. n Anyone purchasing any products described or contained herein for an above-mentioned use shall: À Accept full responsibility and indemnify and defend SANYO ELECTRIC CO., LTD., its affiliates, subsidiaries and distributors and all their officers and employees, jointly and severally, against any and all claims and litigation and all damages, cost and expenses associated with such use: \` Not impose any responsibility for any fault or negligence which may be cited in any such claim or litigation on SANYO ELECTRIC CO., LTD., its affiliates, subsidiaries and distributors or any of their officers and employees jointly or severally. n Information (including circuit diagrams and circuit parameters) herein is for example only; it is not guaranteed for volume production. SANYO believes information herein is accurate and reliable, but no guarantees are made or implied regarding its use or any infringements of intellectual property rights or other rights of third parties. No. 5190-35/35 LC651204N/F/L, LC651202N/F/L Instruction code Modified Mnemonic Operation Description status Notes D 7 D 6 D 5 D 4 D 3 D 2 D 1 D 0 flags BNTM addr Branch on no timer 0 0 1 1 1 1 0 0 2 2 PC 7 to 0 ‹ P7 P6 P5 P4 Branches to the location on the P7 P6 P5 P4 P3 P2 P1 P0 P7 P6 P5 P4 same page specified by P7 to P0 TMFif TMF = 0 if TMF is 0. Also clears TMF. then TMF ‹ 0 BI addr Branch on interrupt 0 1 1 1 1 1 0 1 2 2 PC 7 to 0 ‹ P7 P6 P5 P4 Branches to the location on the P7 P6 P5 P4 P3 P2 P1 P0 P7 P6 P5 P4 same page specified by P7 to P0 EXTF if EXTF = 1 if EXTF is 1. Also clears EXTF. then EXTF ‹ 0 BNI addr Branch on no interrupt 0 0 1 1 1 1 0 1 2 2 PC 7 to 0 ‹ P7 P6 P5 P4 Branches to the location on the P7 P6 P5 P4 P3 P2 P1 P0 P7 P6 P5 P4 same page specified by P7 to P0 EXTF if EXTF = 0 if EXTF is 0. Also clears EXTF. then EXTF ‹ 0 BC addr Branch on CF 0 1 1 1 1 1 1 1 2 2 PC 7 to 0 ‹ P7 P6 P5 P4 Branches to the location on the P7 P6 P5 P4 P3 P2 P1 P0 P7 P6 P5 P4 same page specified by P7 to P0 if EXTF = 0 if CF is 1. BNC addr Branch on no CF 0 0 1 1 1 1 1 1 2 2 PC 7 to 0 ‹ P7 P6 P5 P4 Branches to the location on the P7 P6 P5 P4 P3 P2 P1 P0 P7 P6 P5 P4 same page specified by P7 to P0 if CF = 0 if CF is 0. BZ addr Branch on ZF 0 1 1 1 1 1 1 0 2 2 PC 7 to 0 ‹ P7 P6 P5 P4 Branches to the location on the P7 P6 P5 P4 P3 P2 P1 P0 P7 P6 P5 P4 same page specified by P7 to P0 if ZF = 1 if ZF is 1. BNZ addr Branch on no ZF 0 0 1 1 1 1 1 0 2 2 PC 7 to 0 ‹ P7 P6 P5 P4 Branches to the location on the P7 P6 P5 P4 P3 P2 P1 P0 P7 P6 P5 P4 same page specified by P7 to P0 if ZF = 0 if ZF is 0. BFn addr Branch on flag bit 1 1 0 1 n3 n2 n1 n0 2 2 PC 7 to 0 ‹ P7 P6 P5 P4 Branches to the location on the P7 P6 P5 P4 P3 P2 P1 P0 P7 P6 P5 P4 same page specified by P7 to P0 if Fn = 1 if the bit in the 16 flags specified by n3 n2 n1 n0 is 1. BNFn addr Branch on no flag bit 1 0 0 1 n3 n2 n1 n0 2 2 PC 7 to 0 ‹ P7 P6 P5 P4 Branches to the location on the P7 P6 P5 P4 P3 P2 P1 P0 P7 P6 P5 P4 same page specified by P7 to P0 if Fn = 0 if the bit in the 16 flags specified by n3 n2 n1 n0 iis 0. IP Input port to AC 0 0 0 0 1 1 0 0 1 1 AC ‹ [P(DPL)] Inputs the contents of port ZFP(DP L) to AC. OP Output port to AC 0 1 1 0 0 0 0 1 1 1 P(DP L, B1 B0) ‹ (AC) Outputs the contents of AC to port P(DPL). SPB bit Set port bit 0 0 0 0 0 1 B1 B0 1 2 P(DP L, B1 B0) ‹ 1 Sets to 1 the bit in port P(DPL) specified by the immediate data B 1 B0. RPB bit Reset port bit 0 0 1 0 0 1 B1 B0 1 2 P(DP L, B1 B0) ‹ 1 Clears to 0 the bit in port P(DP L) specified by the ZFimmediate data B1 B0. SCTL bit Set control register bit 0 0 1 0 1 1 0 0 2 2 CTL ‹ (CTL) Ú Sets the bit (or bits) in the (S) B3 B2 B1 B0 control register specified by B3 B2 B1 B0. RCTL bit Reset control register bit0 0 1 0 1 1 0 0 2 2 CTL ‹ (CTL) Ú Clears the bit (or bits) in the (S) 1 0 0 1 B3 B2 B1 B0 B3 B2 B1 B0 control register specified by B3 ZF B2 B1 B0. WTTM Write timer 1 1 1 1 1 0 1 1 1 1 TM ‹ (E), (AC) Loads the contents of E and AC TMFTMF ‹ 0 into the timer. Also clears TMF. HALT Halt 1 1 1 1 0 1 1 0 1 1 Halt Stops all operations. NOP No operation 0 0 0 0 0 0 0 0 1 1 No operation Consumes one machine cycle while performing no operation. Instruction groupBranch instructionsI/O instructionsOther instructions Number of bytes The mnemonics are BF0 to BF15, reflecting the value of n. The mnemonics are BFN0 to BFN15, reflecting the value of n. Executing this instruction destroys the contents of the E register. Executing this instruction destroys the contents of the E register. This instruction is disabled only when all bits in port PA are Number of cycles Continued from preceding page.