PIC16C925/926
RRF
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Rotate Right f through Carry
[ label ] RRF f [,d]
0 ≤ f ≤ 127
d ∈ [0,1]
See description below
C
00 1100 dfff ffff
The contents of register ’f’ are rotated
one bit to the right through the Carry
Flag. If ’d’ is 0, the result is placed in
the W register. If ’d’ is 1, the result is
placed back in register ’f’.
C
Register f
Words:
Cycles:
Q Cycle Activity:
1
1
Q1 Q2 Q3
Q4
Decode
Read
register
’f’
Process Write to
data destination
Example
RRF
REG1,0
Before Instruction:
REG1 = 1110 0110
C
=0
After Instruction:
REG1 = 1110 0110
W
= 0111 0011
C
=0
SLEEP
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
[ label ] SLEEP
None
00h → WDT,
0 → WDT prescaler,
1 → TO,
0 → PD
TO, PD
00 0000 0110
0011
The power-down status bit, PD is
cleared. Time-out status bit, TO is
set. Watchdog Timer and its
prescaler are cleared.
The processor is put into SLEEP
mode with the oscillator stopped.
See Section 12.8 for more details.
1
1
Q1 Q2
Q3 Q4
Decode
No
No
Operation Operation
Go to
Sleep
Example:
SLEEP
DS39544A-page 128
Preliminary
2001 Microchip Technology Inc.