English
Language : 

LC66354C Datasheet, PDF (20/21 Pages) Sanyo Semicon Device – Four-Bit Single-Chip Microcontrollers with 4, 6, and 8 KB of On-Chip ROM
LC66354C, 66356C, 66358C
Continued from preceding page.
Mnemonic
[Timer control instructions]
WTTM0 Write timer 0
Instruction code
D7 D6 D5 D4 D3 D2 D1 D0
1100 1010 1
WTTM1 Write timer 1
1100 1111 2
1111 0100
RTIM0 Read timer 0
1100 1011 1
RTIM1 Read timer 1
1100 1111
1111 0101 2
START0 Start timer 0
1100 1111
1110 0110 2
START1 Start timer 1
1100 1111
1110 0111 2
STOP0 Stop timer 0
1100 1111
1111 0110 2
STOP1 Stop timer 1
1100 1111
1111 0111 2
[Interrupt control instructions]
MSET
Set interrupt master 1 1 0 0 1 1 0 1
enable flag
0101 0000 2
Reset interrupt
MRESET master enable flag
1100 1101
1001 0000 2
EIH i4
EIL i4
DIH i4
DIL i4
WTSP
1100 1101
Enable interrupt high 0 1 0 1 I3 I2 I1 I0 2
1100 1101
Enable interrupt low 0 1 0 0 I3 I2 I1 I0 2
1100 1101
Disable interrupt high 1 0 0 1 I3 I2 I1 I0 2
1100 1101
Disable interrupt low 1 0 0 0 I3 I2 I1 I0 2
Write SP
1100 1111
1101 1010 2
RSP
Read SP
1100 1111
1101 1011 2
[Standby control instructions]
HALT HALT
1100 1111
1101 1110 2
HOLD HOLD
1100 1111
1101 1111 2
[Serial I/O control instructions]
STARTS Start serial I O
1100 1111
1110 1110 2
WTSIO Write serial I O
1100 1111
1110 1111 2
RSIO Read serial I O
1100 1111
1111 1111 2
[Other instructions]
NOP No operation
0000 0000 1
SB i2 Select bank
1100 1111
1 1 0 0 0 0 I1 I0 2
Operation
Description
Affected
status
bits
Write the contents of M2 (HL),
2 TIMER0 ← [M2 (HL)], AC into the timer 0 reload
(AC)
register.
Write the contents of E, AC
2 TIMER1 ← (E), (AC) into the timer 1 reload
register A.
2 M2 (HL),
AC ← (TIMER0)
Read out the contents of the
timer 0 counter into M2 (HL),
AC.
Read out the contents of the
2 E, AC ← (TIMER1) timer 1 counter into E, AC.
2 Start timer 0 counter Start the timer 0 counter.
2 Start timer 1 counter Start the timer 1 counter.
2 Stop timer 0 counter Stop the timer 0 counter.
2 Stop timer 1 counter Stop the timer 1 counter.
2 MSE ← 1
Set the interrupt master
enable flag to one.
2 MSE ← 0
Clear the interrupt master
enable flag to zero.
2
EDIH ← (EDIH) i4
Set the interrupt enable flag
to one.
2
EDIL ← (EDIL) i4
Set the interrupt enable flag
to one.
2
EDIH ← (EDIH) i4
Clear the interrupt enable
flag to zero.
ZF
2
EDIL ← (EDIL) i4
Clear the interrupt enable
flag to zero.
ZF
2 SP ← (E), (AC)
Transfer the contents of E,
AC to SP.
2 E, AC ← (SP)
Transfer the contents of SP
to E, AC.
2 HALT
2 HOLD
Enter halt mode.
Enter hold mode.
2 START SI O
2 SIO ← (E), (AC)
2 E, AC ← (SIO)
1 No operation
2 PC12 ← I1 I0
Start SIO operation.
Write the contents of E,
AC to SIO.
Read out the contents of SIO
into E, AC.
Consume one machine cycle
without performing any
operation.
Specify the memory bank.
Note: The range of for i2 in SB instruction varies according to device. Refer to User’s Manual for that.
Note
No. 5484-20/21