Applied Instructions
113
《16 bits switch mode》
HEX D200 D100 K4
S· D·
n
X0
The convert of the upward program is the following:
时
n=k4
0 1 0 0 0 0 0 1 0 0 1 1 0 0 0 0
D200
41H→[A] 30H→[0]
0 1 0 0 0 0 1 1 0 1 0 1 0 0 1 0
D201
43H→[C] 42H→[B]
0 0 0 0 1 0 1 0 1 0 1 1 1 1 0 0
D202
0AB
C
Function & Action
(S·)
ASCII
Code
HEX
Convert
D200 down 30H 0
D200 up 41H A
D201 down 42H B
D201 up 43H C
D202 down 31H 1
D202 up 32H 2
D203 down 33H 3
D203 up 34H 4
D204 down 35H 5
(D·)
D102 D101 D100
1
···0H
2
··0AH
3
·0ABH
4
Not change to be 0
0ABCH
5
···0H
ABC1H
6
··0AH
BC12H
7
·0ABH
C123H
8
0ABCH 1234H
9
···0H
ABC1H 2345H
Convert the gh and low 8 bits in source to HEX data. Move 4 bits every time to
destination. The convert alphanumeric number is assigned by n.
[HEX]
16 bits instruction:HEX 32 bits instruction:-
Suitable Models:
XC3、XC5
Word
Device
Bit
Device
X Y M S T C Dn.m
D
FD
DM
DX
DY
DS
TD
CD
K/H
D·
S·
hi