SC73C1402
INSTRUCTION SETS
1.Transmit instruction˖
Instruction
LD A, L
Operation
CF
•••
•••
•••
•••
•••
•••
•••
•••
•••
•••
•••
•••
•••
•••
•••
•••
SF
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
Cycle
A ¬ LR
A ¬ DC
A ¬ HR
1
1
1
1
1
2
2
1
1
1
1
1
1
1
1
1
LD A, D
LD A, H
LD A, @LR
LD A, #K
A ¬ RAM (LR)
A ¬ K
LDL A, @HD
LDH A, @HD
LD L, A
A ¬ ROM (HD) L
A ¬ ROM (HD) H
LR ¬ A
LD L, #K
LR ¬ K
LD @LR, A
LD @LR, #K
LD DC, A
LD P, A
RAM (LR) ¬ A
RAM (LR) ¬ K
DC ¬ A
PR ¬ A
LD T, A
TR ¬ A
LD B, A
BR ¬ A
LD H, A
HR ¬ A
a.
b.
c.
d.
e.
f.
LD A, L
LD A, D
Load values in the LR register to the accumulator.
Load values in the DC register to the accumulator.
LD A, H
Load the values in the HR register to the accumulator.
LD A, @LR
LD A, #K
LDL A, @HD
Load the contents of RAM pointed at by the LR register to the accumulator.
Load the 4•bit immediate K to accumulator.
Load the lower 4•bit of ROM data pointed at by the HD to the accumulator.
g.
h.
i.
LDH A, @HD Load the higher 4•bit of ROM data pointed at by the HD to the accumulator.
LD L, A
LD L, #K
Load the contents of the accumulator to the LR register.
Load immediate K to the LR register.
j.
LD @LR, A
LD @LR, #K
LD DC, A
LD P, A
LD T, A
LD B, A
Load the content of the accumulator to RAM pointed at by the LR register.
Load the immediate K to RAM pointed at by the LR register.
Load the content of the accumulator to the DC register.
Load the content of the accumulator to the port register (PR).
Load the content of the accumulator to the timer register.
Load the content of the accumulator to the BR register.
Load the content of the accumulator to the HR register.
k.
l.
m.
n.
o
p
LD H, A
Executing the above 15 transmit•instructions will not affect the carry flag and the status flag remains 1.
2. Input/output instruction
Instruction
Operation
A ¬ PORT (P)
CF
•••
•••
•••
•••
SF
/Z
/Z
1
Cycle
IN A, %P
2
2
2
2
IN @LR, %P
OUT %P, A
@LR ¬ PORT (P)
PORT (P) ¬ A
OUT %P, @LR
PORT (P) ¬ @LR
1
HANGZHOU SILAN MICROELECTRONICS CO.,LTD
REV:1.1
2005.12.19
Http: www.silan.com.cn
Page 9 of 20