The LC66354C, LC66356C, and LC66358C are 4-bit
CMOS microcontrollers that integrate on a single chip all
the functions required in a system controller, including
ROM, RAM, I/O ports, a serial interface, comparator
inputs, three-value inputs, timers, and interrupt functions.
These three microcontrollers are available in a 42-pin
package.
These products differ from the earlier LC66358A Series
and LC66358B Series in the power-supply voltage range,
the operating speed, and other points.
Features and Functions
• On-chip ROM capacities of 4, 6, and 8 kilobytes, and an
on-chip RAM capacity of 512 × 4 bits.
• Fully supports the LC66000 Series common instruction
set (128 instructions).
• I/O ports: 36 pins
• 8-bit serial interface: two circuits (can be connected in
cascade to form a 16-bit interface)
• Instruction cycle time: 0.92 to 10 µs (at 2.5 to 5.5 V)
— For the earlier LC66358A Series: 1.96 to 10 µs (at
3.0 to 5.5 V) and 3.92 to 10 µs (at 2.2 to 5.5 V)
— For the earlier LC66358B Series: 0.92 to 10 µs (at
3.0 to 5.5 V)
• Powerful timer functions and prescalers
— Time limit timer, event counter, pulse width
measurement, and square wave output using a 12-bit
timer.
— Time limit timer, event counter, PWM output, and
square wave output using an 8-bit timer.
— Time base function using a 12-bit prescaler.
• Powerful interrupt system with 8 interrupt factors and 8
interrupt vector locations.
— External interrupts: 3 factors/3 vector locations
— Internal interrupts: 5 factors/5 vector locations
We recommend the use of reflow-soldering techniques to solder-mount QFP packages.
Please consult with your Sanyo representative for details on process conditions if the package itself is to be directly
immersed in a dip-soldering bath (dip-soldering techniques).
No. 5484-3/21
Page 4
System Block Diagram
LC66354C, 66356C, 66358C
RES
TEST
OSC1
OSC2
HOLD
TRA
TRB
CMP0
CMP1
CMP2
CMP3
SYSTEM
CONTROL
PE
PD
PC
RAM STACK
(512W)
FLAG
D
D
D
E
SPEA
M
R
D
P
P
P
P
L
H
X
Y
PRESCALER
CZ
MPX TIMER0 SERIAL I/O 0
MPX
INTERRUPT
CONTROL
MPX
ALU
TIMER1
SERIAL I/O 1
ROM
(4K/6K/8K)
PC
POUT0
SI0
SO0
SCK0
INT0
INT1. INT2
SI1
SO1
SCK1
PIN1. POUT1
P0P1P2P3P4P5P6
Differences between the LC66354C, LC66356C, and LC66358C and the LC6630X Series
Item
System differences
Hardware wait time (number of cycles)
when hold mode is cleared
Value of timer 0 after a reset
(Including the value after hold mode is Set to FF0.Set to FFC.
cleared)
Difference in major features
Operating power-supply voltage and
operating speed (cycle time)
Note: 1. An RC oscillator cannot be used with the LC66354C, LC66356C, and LC66358C.
2. There are other differences, including differences in output currents and port input voltages.
For details, see the data sheets for the LC66308A, LC66E308, and LC66P308.
3. Pay close attention to the differences listed here when using the LC66E308 and LC66P308 for evaluation.
(Including the LC66599 evaluation chip)
65536 cycles16384 cycles
About 64 ms at 4 MHz (Tcyc = 1 µs)About 16 ms at 4 MHz (Tcyc = 1 µs)
• LC66304A/306A/308A• LC6635XA
4.0 to 6.0 V/0.92 to 10 µs2.2 to 5.5 V/3.92 to 10 µs
• LC66E308/P3083.0 to 5.5 V/1.96 to 10 µs
4.5 to 5.5 V/0.92 to 10 µs• LC6635XB
LC6630X Series
2.5 to 5.5 V/0.92 to 10 µs
3.0 to 5.5 V/0.92 to 10 µs
LC6635XC Series
No. 5484-4/21
Page 5
LC66354C, 66356C, 66358C
Pin Function Overview
PinI/OOverviewOutput driver typeOptionsState after a reset
P00
P01
P02
P03
P10
P11
P12
P13
P20/SI0
P21/SO0
P22/SCK0
P23/INT0
P30/INT1
P31/POUT0
P32/POUT1
I/O ports P00 to P03
• Input or output in 4-bit or 1-bit units
I/O
• P00 to P03 support the halt mode control
function
I/O ports P10 to P13
I/O
Input or output in 4-bit or 1-bit units
I/O ports P20 to P23
• Input or output in 4-bit or 1-bit units
• P20 is also used as the serial input SI0
pin.
• P21 is also used as the serial output
SO0 pin.
I/O
• P22 is also used as the serial clock
SCK0 pin.
• P23 is also used as the INT0 interrupt
request pin, and also as the timer 0
event counting and pulse width
measurement input.
I/O ports P30 to P32
• Input or output in 3-bit or 1-bit units
• P30 is also used as the INT1 interrupt
request.
I/O
• P31 is also used for the square wave
output from timer 0.
• P32 is also used for the square wave
output from timer 1.
• Pch: Pull-up MOS type
• Nch: Intermediate sink current
type
• Pch: Pull-up MOS type
• Nch: Intermediate sink current
type
• Pch: CMOS type
• Nch: Intermediate sink current
type
• Nch: +15-V handling when OD
option selected
• Pch: CMOS type
• Nch: Intermediate sink current
type
• Nch: +15-V handling when OD
option selected
• Pull-up MOS or Nch
OD output
• Output level on reset
• Pull-up MOS or Nch
OD output
• Output level on reset
CMOS or Nch OD
output
CMOS or Nch OD
output
High or low
(option)
High or low
(option)
H
H
P33/HOLD
P40
P41
P42
P43
P50
P51
P52
P53/INT2
Hold mode control input
• Hold mode is set up by the HOLD
instruction when HOLD is low.
• In hold mode, the CPU is restarted by
setting HOLD to the high level.
• This pin can be used as input port P33
I
along with P30 to P32.
• When the P33/HOLD pin is at the low
level, the CPU will not be reset by a low
level on the RES pin. Therefore,
applications must not set P33/HOLD low
when power is first applied.
I/O ports P40 to P43
• Input or output in 4-bit or 1-bit units
• Input or output in 8-bit units when used
in conjunction with P50 to P53.
I/O
• Can be used for output of 8-bit ROM
data when used in conjunction with P50
to P53.
I/O ports P50 to P53
• Input or output in 4-bit or 1-bit units
• Input or output in 8-bit units when used
in conjunction with P40 to P43.
• Can be used for output of 8-bit ROM
I/O
data when used in conjunction with P40
to P43.
• P53 is also used as the INT2 interrupt
request.
• Pch: Pull-up MOS type
• Nch: Intermediate sink current
type
• Nch: +15-V handling when OD
option selected
• Pch: Pull-up MOS type
• Nch: Intermediate sink current
type
• Nch: +15-V handling when OD
option selected
Pull-up MOS or Nch OD
output
Pull-up MOS or Nch OD
output
H
H
Continued on next page.
No. 5484-5/21
Page 6
LC66354C, 66356C, 66358C
Continued from preceding page.
PinI/OOverviewOutput driver typeOptionsState after a reset
I/O ports P60 to P63
• Input or output in 4-bit or 1-bit units
P60/SI0
P61/SO1
P62/SCK1
P63/PIN1
PC2/VREF0
PC3/VREF1
PD0/CMP0
PD1/CMP1
PD2/CMP2
PD3/CMP3
• P60 is also used as the serial input SI1
pin.
• P61 is also used as the serial output
I/O
SO1 pin.
• P62 is also used as the serial clock
SCK1 pin.
• P63 is also used for the event count
input to timer 1.
I/O ports PC2 and PC3
• Input or output in 2-bit or 1-bit units
• PC2 is also used as the VREF0
I/O
comparator comparison voltage pin.
• PC3 is also used as the VREF1
comparator comparison voltage pin.
Dedicated input ports PD0 to PD3
• These pins can be switched in software
to function as comparator inputs.
• The comparison voltage for PD0 is
provided by VREF0.
I
• The comparison voltage for PD1 to PD3
is provided by VREF1.
• Pins PD0 and PD1 can be set to the
comparator function individually, but pins
PD2 and PD3 are set together.
• Pch: CMOS type
• Nch: Intermediate sink current
type
• Nch: +15-V handling when OD
option selected
• Pch: CMOS type
• Nch: Intermediate sink current
type
CMOS or Nch OD
output
CMOS or Nch OD
output
Normal input
H
H
PE0/TRA
PE1/TRB
OSC1
OSC2
Dedicated input ports
I
These pins can be switched in software to
function as three-value inputs.
System clock oscillator connections
I
When an external clock is used, leave
OSC2 open and connect the clock signal
O
to OSC1.
System reset input
When the P33/HOLD pin is at the high
RES
I
level, a low level input to the RES pin will
initialize the CPU.
CPU test pin
TEST
V
DD
V
SS
I
This pin must be connected to V
normal operation.
Power supply pins
SS
during
Note: Pull-up MOS type: The output circuit includes a MOS transistor that pulls the pin up to V
CMOS output: Complementary output.
OD output: Open-drain output.
DD
Normal input
Use of either a ceramic
oscillator or an external
clock can be selected.
.
No. 5484-6/21
Page 7
LC66354C, 66356C, 66358C
User Options
1. Port 0 and 1 output level at reset option
The output levels at reset for I/O ports 0 and 1, in independent 4-bit groups, can be selected from the following two
options.
OptionConditions and notes
1. Output high at resetThe four bits of ports 0 or 1 are set in a group
2. Output low at resetThe four bits of ports 0 or 1 are set in a group
2. Oscillator circuit options
OptionCircuitConditions and notes
1. External clock
2. Ceramic oscillator
Note: There is no RC oscillator option.
OSC1
C1
Ceramic oscillator
C2
The input has Schmitt characteristics
OSC1
OSC2
3. Watchdog timer option
A runaway detection function (watchdog timer) can be selected as an option.
4. Port output type options
• The output type of each bit (pin) in ports P0, P1, P2, P3 (except for the P33/HOLD pin), P4, P5, P6, and PC can be
selected individually from the following two options.
OptionCircuitConditions and notes
1. Open-drain output
2. Output with built-in pull-up
resistor
Output data
Input data
DSB
Output data
Input data
DSB
The port P2, P3, P5, and P6 inputs have Schmitt
characteristics.
The port P2, P3, P5, and P6 inputs have Schmitt
characteristics.
The CMOS outputs (ports P2, P3, P6, and PC)
and the pull-up MOS outputs (P0, P1, P4, and
P5) are distinguished by the drive capacity of the
p-channel transistor.
• The port PD comparator input and the port PE three-value input are selected in software.
No. 5484-7/21
Page 8
LC66354C, 66356C, 66358C
Specifications
Absolute Maximum Ratings at Ta = 25°C, VSS= 0 V
ParameterSymbolConditionsRatingsUnitNote
Maximum supply voltageV
Input voltage
Output voltage
Output current per pin
Total pin current
Allowable power dissipationPd maxTa = –30 to +70°C
Operating temperatureTopr–30 to +70°C
Storage temperatureTstg–55 to +125°C
Note: 1. Applies to pins with open-drain output specifications. For pins with other than open-drain output specifications, the ratings in the pin column for that
pin apply.
2. For the oscillator input and output pins, levels up to the free-running oscillation level are allowed.
3. Sink current
4. Source current (Applies to pins with pull-up output and CMOS output specifications.)
5. We recommend the use of reflow soldering techniques to solder mount QFP packages.
Please consult with your Sanyo representative for details on process conditions if the package itself is to be directly immersed in a dip-soldering
bath (dip-soldering techniques).
maxV
DD
V
IN
V
IN
V
OUT
V
OUT
I
ON
–I
OP
–I
OP
Σ I
ON
Σ I
ON
Σ I
OP
Σ I
OP
DD
P2, P3 (except for the P33/HOLD pin), P4, P5,
1
and P6
2All other inputs–0.3 to VDD+ 0.3V2
P2, P3 (except for the P33/HOLD pin), P4, P5,
1
and P6
2All other inputs–0.3 to VDD+ 0.3V2
P0, P1, P2, P3 (except for the P33/HOLD pin),
P4, P5, P6, and PC
1P0, P1, P4, P52mA4
2P2, P3 (except for the P33/HOLD pin), P6, and PC4mA4
P0, P1, P2, P3 (except for the P33/HOLD pin),
1
P40, and P41
2P5, P6, P42, P43, PC75mA3
P0, P1, P2, P3 (except for the P33/HOLD pin),
1
P40, and P41
2P5, P6, P42, P43, PC25mA4
–0.3 to +7.0V
–0.3 to +15.0V1
–0.3 to +15.0V1
20mA3
75mA3
25mA4
DIP42S600mW
QFP48E430mW5
No. 5484-8/21
Page 9
LC66354C, 66356C, 66358C
Allowable Operating Ranges at Ta = –30 to +70°C, VSS= 0 V, VDD= 2.5 to 5.5 V, unless otherwise specified.
Stipulated with respect to the rising edge (↑) of
SCK0 or SCK1.
CKI
0.3µs
0.3µs
SO0, SO1: With the timing of Figure 4 and
the test load of Figure 5. Stipulated with respect 0.3
CKO
to the falling edge (↓) of SCK0 or SCK1.
Continued on next page.
No. 5484-10/21
Page 11
LC66354C, 66356C, 66358C
Continued from preceding page.
ParameterSymbolConditionsmintypmaxUnitNote
[Pulse conditions]
INT0: Figure 6, conditions under which the INT0
INT0 high and low-level t
High and low-level pulse widths
for interrupt inputs other than INT0the corresponding interrupt can be accepted
PIN1 high and low-level
pulse widthstimer 1 event counter input can be accepted
RES high and low-level
pulse widthscan be applied.
t
PINH
t
RSH
IOH
t
IIH
interrupt can be accepted, conditions under
, t
IOL
which the timer 0 event counter or pulse width
measurement input can be accepted
INT1, INT2: Figure 6, conditions under which
, t
IIL
PIN1: Figure 6, conditions under which the
, t
PINL
RES: Figure 6, conditions under which reset
, t
RSL
2Tcyc
2Tcyc
2Tcyc
3Tcyc
Comparator response speedT
Operating current drainI
Halt mode current drainI
Hold mode current drainI
Note: 1. With the output Nch transistor off in shared I/O ports with the open-drain output specifications. These pins cannot be used as input pins if the
CMOS output specifications are selected.
2. With the output Nch transistor off in shared I/O ports with the open-drain output specifications. The rating for the pull-up output specification pins is
stipulated in terms of the output pull-up current IPO. These pins cannot be used as input pins if the CMOS output specifications are selected.
3. With the output Nch transistor off for CMOS output specification pins.
4. With the output Nch transistor off for pull-up output specification pins.
5. With the output Nch transistor off for open-drain output specification pins.
6. Reset state
DD OP
DDHALT
DDHOLDVDD
External clock
PD: Figure 7, VDD= 3.0 to 5.5 V20ms
RS
VDD: 4-MHz ceramic oscillator3.05.0mA
V
: 4-MHz external clock3.05.0mA
DD
VDD: 4-MHz ceramic oscillator1.02.0mA
V
: 4-MHz external clock1.02.0mA
DD
: VDD= 1.8 to 5.5 V0.0110µA
(OSC2)OSC1
OPEN
t
extF
t
extL
t
extR
t
extH
V
DD
0.8V
0.2V
V
SS
DD
DD
1/fext
6
Figure 1 External Clock Input Waveform
V
DD
OSC1
OSC2
OSC
Rd
Ceramic
C1C2
oscillator
Oscillator
unstable period
t
CFS
Figure 2 Ceramic Oscillator CircuitFigure 3 Oscillator Stabilization Period
Figure 6 Input Timing for the INT0, INT1, INT2, PIN1, and RES pins
V
IN
V
REF
V
IN
Comparator output data
Figure 7 Comparator Response Speed Trs Timing
Trs
V
OFF
V
OFF
No. 5484-12/21
Page 13
LC66354C, 66356C, 66358C
LC66XXX Series Instruction Table (by function)
Abbreviations:
AC:Accumulator
E:E register
CF:Carry flag
ZF:Zero flag
HL:Data pointer DPH, DPL
XY:Data pointer DPX, DPY
M:Data memory
M (HL):Data memory pointed to by the DPH, DPL data pointer
M (XY):Data memory pointed to by the DPX, DPY auxiliary data pointer
M2 (HL): Two words of data memory (starting on an even address) pointed to by the DPH, DPL data pointer
SP:Stack pointer
M2 (SP): Two words of data memory pointed to by the stack pointer
M4 (SP): Four words of data memory pointed to by the stack pointer
in:n bits of immediate data
t2:Bit specification
t211100100
3
2
1
Bit2
2
2
0
2
PCh:Bits 8 to 11 in the PC
PCm:Bits 4 to 7 in the PC
PCl:Bits 0 to 3 in the PC
Fn:User flag, n = 0 to 15
TIMER0: Timer 0
TIMER1: Timer 1
SIO:Serial register
P:Port
P (i4):Port indicated by 4 bits of immediate data
INT:Interrupt enable flag
( ), [ ]: Indicates the contents of a location
←:Transfer direction, result
:Exclusive or
:Logical and
:Logical or
+:Addition
–:Subtraction
—:Taking the one's complement
CF, ZF ← [M4 (SP)] and CF are restored.
[Branch instructions]
PC7 to 0 ←Branch to the location in the
BAt2
addrP
Branch on AC bit
1101 00t
7P6P5P4P3P2P1P0
1t0
22
P
7P6P5P4
P3P2P1P
if (AC, t2) = 1the immediate data t
PC7 to 0 ←Branch to the location in the
BNAt2
addrP
Branch on no AC bit
1001 00t1t
7P6P5P4P3P2P1P0
0
22
P
7P6P5P4
P3P2P1P
if (AC, t2) = 0the immediate data t
PC7 to 0 ←Branch to the location in the
BMt21101 01t
addr
Branch on M bit
P7P6P5P4P3P2P1P
1t0
22P3P2P1P0P0if the bit in M (HL) specified
0
P7P6P5P4same page specified by P7to
if [M (HL),t2] by the immediate data t
= 1is one.
PC7 to 0 ←Branch to the location in the
BNMt21001 01t
addr
Branch on no M bit
P7P6P5P4P3P2P1P
1t0
22P3P2P1P0P0if the bit in M (HL) specified
0
P7P6P5P4same page specified by P7to
if [M (HL),t2] by the immediate data t
= 0is zero.
PC7 to 0 ←Branch to the location in the
P
BPt2
addrP
Branch on Port bit
1101 10t
7P6P5P4P3P2P1P0
1t0
22P3P2P1P0P0if the bit in port (DPL)
7P6P5P4
if [P (DPL), t2]specified by the immediate
= 1data t
PC7 to 0 ←Branch to the location in the
P
BNPt2
addrP
Branch on no Port bit
1001 10t
7P6P5P4P3P2P1P0
1t0
22P3P2P1P0P0if the bit in port (DPL)
7P6P5P4
if [P (DPL), t2]specified by the immediate
= 0data t
Store the contents of reg in
M2 (SP). Subtract 2 from SP
after the store.
regi1i
HL00
XY0 1
AE1 0
Illegal value11
Add 2 to SP and then load the
contents of M2(SP) into reg.
The relation between i1i0 and
reg is the same as that for the
PUSH reg instruction.
Return from a subroutine or
interrupt handling routine. ZF
and CF are not restored.
same page specified by P7to
P0if the bit in AC specified by
0
same page specified by P7to
P0if the bit in AC specified by
0
same page specified by P7to
is one.
1t0
same page specified by P7to
is zero.
1t0
1t0
1t0
bits
0
is one.
is zero.
1t0
1t0
Internal control
registers can also
be tested by
executing this
instruction
immediately after
a BANK
instruction.
However, this is
limited to
registers that can
be read out.
Internal control
registers can also
be tested by
executing this
instruction
immediately after
a BANK
instruction.
However, this is
limited to
registers that can
be read out.
Continued on next page.
No. 5484-18/21
Page 19
Continued from preceding page.
LC66354C, 66356C, 66358C
MnemonicOperationDescriptionstatus Note
Instruction codeAffected
D
7D6D5D4D3D2D1D0
Number of
cycles
Number of
bytes
[Branch instructions]
BC addr Branch on CF
BNC
addrP
Branch on no CF
BZ addr Branch on ZF
BNZ
addrP
BFn4 1111n
addr
BNFn4 1011n
addr
Branch on no ZF
Branch on flag bit
Branch on no flag bit
1101 1100
P
7P6P5P4P3P2P1P0
1001 1100
7P6P5P4P3P2P1P0
1101 1101
P
7P6P5P4P3P2P1P0
1001 1101
7P6P5P4P3P2P1P0
P7P6P5P4P3P2P1P
P7P6P5P4P3P2P1P
3n2n1n0
3n2n1n0
0
0
22
22
22
22
22
22
PC7 to 0 ←
P
7P6P5P4
P3P2P1P
if (CF) = 1
PC7 to 0 ←
P
7P6P5P4
P3P2P1P
if (CF) = 0
PC7 to 0 ←
P
7P6P5P4
P3P2P1P
if (ZF) = 1
PC7 to 0 ←
P
7P6P5P4
P3P2P1P
if (ZF) = 0
PC7 to 0 ←
P7P6P5P
P
3P2P1P0
if (Fn) = 1
PC7 to 0 ←
P7P6P5P
P
3P2P1P0
if (Fn) = 0
Branch to the location in the
same page specified by P7to
0
P0if CF is one.
Branch to the location in the
same page specified by P7to
0
P0if CF is zero.
Branch to the location in the
same page specified by P7to
0
P0if ZF is one.
Branch to the location in the
same page specified by P7to
0
P0if ZF is zero.
Branch to the location in the
same page specified by P0to
4
P7if the flag (of the 16 user
flags) specified by n
is one.
Branch to the location in the
same page specified by P0to
4
P7if the flag (of the 16 user
flags) specified by n
is zero.
3n2n1n0
3n2n1n0
[I/O instructions]
IP0Input port 0 to AC0010 0000 1 1 AC ←(P0)
IPInput port to AC0010 0110 1 1 AC ←[P (DP
L
IPMInput port to M0001 1001 1 1 M (HL) ← [P (DP
IPDR i4
IP45
OPOutput AC to port0010 0101 1 1 P (DP
OPMOutput M to port0001 1010 1 1 P (DP
OPDR i4
OP45
Input port to 1100 1111
AC direct0110 I3I2I1I
Input port 4, 5 to1100 1111E ←[P (4)]
E, AC respectively1101 0100
Output AC to 1100 1111
port direct0111 I
3I2I1I0
Output E, AC to port 1100 1111P (4) ← (E)
4, 5 respectively1101 0101
22AC ← [P (i4)]
0
22
AC ← [P (5)]
22P (i4) ← (AC)
22
P (5) ← (AC)
) ← (AC)
L
) ← [M (HL)]
L
Input the contents of port
0 to AC.
Input the contents of port
)]
P (DP
) to AC.
L
Input the contents of port
)]
L
P (DP
) to M (HL).
L
Input the contents of
P (i4) to AC.
Input the contents of ports
P (4) and P (5) to E and AC
respectively.
Output the contents of AC to
port P (DP
Output the contents of M (HL)
to port P (DP
Output the contents of AC
to P (i4).
Output the contents of E and
AC to ports P (4) and P (5)
respectively.
ZF
ZF
ZF
).
L
).
L
Set to one the bit in port
SPB t2Set port bit0000 10t
11[P (DPL), t2] ← 1P (DPL) specified by the
1t0
immediate data t
1t0
.
Clear to zero the bit in port
RPB t2Reset port bit0010 10t1t011[P (DPL), t2] ← 0P (DPL) specified by the ZF
1t0
.
3
ZF
3
ANDPDR
i4, p4
ORPDR
i4, p4
And port with P (P
immediate data then
output
Or port with P (P
immediate data then
output
1100 0101
I
3I2I1I0P3P2P1P0
1100 0100
I
3I2I1I0P3P2P1P0
22[P (P
I3to I
22[P (P
I3to I
to P0) ←
3
to P0)]
3
0
to P0) ←
3
to P0)]
3
0
immediate data t
Take the logical AND of P (P
) and the immediate data
to P
0
I3I2I1I0and output the result
to P0).
to P (P
3
Take the logical OR of P (P
) and the immediate data ZF
to P
0
I3I2I1I0and output the result
to P0).
to P (P
3
bits
Continued on next page.
No. 5484-19/21
Page 20
Continued from preceding page.
LC66354C, 66356C, 66358C
MnemonicOperationDescriptionstatus Note
Instruction codeAffected
D
7D6D5D4D3D2D1D0
Number of
cycles
Number of
bytes
[Timer control instructions]
WTTM0 Write timer 01100 1010 1 2
WTTM1 Write timer 1
1100 1111
1111 0100
22TIMER1 ← (E), (AC) into the timer 1 reload
RTIM0Read timer 01100 1011 1 2
RTIM1Read timer 1
START0 Start timer 0
START1 Start timer 1
STOP0Stop timer 0
STOP1Stop timer 1
1100 1111
1111 0101timer 1 counter into E, AC.
1100 1111
1110 0110
1100 1111
1110 0111
1100 1111
1111 0110
1100 1111
1111 0111
22E, AC ← (TIMER1)
22Start timer 0 counter Start the timer 0 counter.
22Start timer 1 counter Start the timer 1 counter.
22Stop timer 0 counter Stop the timer 0 counter.
22Stop timer 1 counter Stop the timer 1 counter.
TIMER0 ← [M2 (HL)],
(AC)
M2 (HL),
AC ← (TIMER0)
Write the contents of M2 (HL),
AC into the timer 0 reload
register.
Write the contents of E, AC
register A.
Read out the contents of the
timer 0 counter into M2 (HL),
AC.
Read out the contents of the
[Interrupt control instructions]
MSET
MRESET
Set interrupt master1100 1101
enable flag0101 0000enable flag to one.
Reset interrupt 1100 1101
master enable flag1001 0000enable flag to zero.
EIH i4Enable interrupt high
EIL i4Enable interrupt low
DIH i4Disable interrupt high
DIL i4Disable interrupt low
WTSPWrite SP
RSPRead SP
22MSE ← 1
22MSE ← 0
1100 1101
0101 I
3I2I1I0
1100 1101
0100 I
3I2I1I0
1100 1101
1001 I3I2I1I
1100 1101
1000 I3I2I1I
1100 1111
1101 1010AC to SP.
1100 1111
1101 1011to E, AC.
22EDIH ← (EDIH) i4
22EDIL ← (EDIL) i4
22EDIH ← (EDIH) i4
0
22EDIL ← (EDIL) i4
0
22SP ← (E), (AC)
22E, AC ← (SP)
Set the interrupt master
Clear the interrupt master
Set the interrupt enable flag
to one.
Set the interrupt enable flag
to one.
Clear the interrupt enable
flag to zero.
Clear the interrupt enable
flag to zero.
Transfer the contents of E,
Transfer the contents of SP
[Standby control instructions]
HALTHALT
HOLDHOLD
1100 1111
1101 1110
1100 1111
1101 1111
22HALTEnter halt mode.
22HOLDEnter hold mode.
[Serial I/O control instructions]
STARTS Start serial I O
WTSIOWrite serial I O
RSIORead serial I O
1100 1111
1110 1110
1100 1111
1110 1111AC to SIO.
1100 1111
1111 1111into E, AC.
22START SI OStart SIO operation.
22SIO ← (E), (AC)
22E, AC ← (SIO)
Write the contents of E,
Read out the contents of SIO
[Other instructions]
Consume one machine cycle
NOPNo operation0000 0000 1 1 No operationwithout performing any
operation.
SB i2Select bank
1100 1111
1100 00I
1I0
22PC12 ← I
1I0
Specify the memory bank.
bits
ZF
ZF
Note: The range of for i2 in SB instruction varies according to device. Refer to User’s Manual for that.
No. 5484-20/21
Page 21
LC66354C, 66356C, 66358C
■ 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.
■ 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.
■ 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.
This catalog provides information as of February, 1997. Specifications and information herein are subject to
change without notice.
No. 5484-21/21
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.