
Chapter 5. Application instructions
5-35
-
Execution conditions
2) Program example
-
Whenever a rising edge is detected at P030, 16-bits of D0000 word and carry flag will be rotated
with right direction.
16 bits
0
1
1
1
1
0
0
0
1
1
0
1
0
0
1
0
0
0
1
1
1
1
0
0
0
1
1
0
1
0
0
1
Rotate right
0
0
Carry flag
Carry flag
MSB
MSB
LSB
LSB
0
0
0
1
1
1
1
0
0
0
1
1
0
1
0
0
Rotate right
1
Carry flag
MSB
LSB
Input condition
RCR, DRCR
RCRP, DRCRP
Executed only once
Executed only once
Executed per scan
Executed per scan
RCRP D0000
P030
D0000 = h78D2