PIC16C62X
RLF
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Rotate Left f through Carry
[ label ] RLF f,d
0 ≤ f ≤ 127
d ∈ [0,1]
See description below
C
00
1101 dfff ffff
The contents of register 'f' are
rotated one bit to the left through
the Carry Flag. If 'd' is 0, the result
is placed in the W register. If 'd' is
1, the result is stored back in
register 'f'.
C
Register f
Words:
Cycles:
Example
1
1
RLF
REG1,0
Before Instruction
REG1 =
C
=
After Instruction
REG1 =
W
=
C
=
1110 0110
0
1110 0110
1100 1100
1
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:
Example
1
1
RRF
REG1,
0
Before Instruction
REG1 =
C
=
After Instruction
REG1 =
W
=
C
=
1110 0110
0
1110 0110
0111 0011
0
SLEEP
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Example:
[ 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. Watch-
dog Timer and its prescaler are
cleared.
The processor is put into SLEEP
mode with the oscillator
stopped. See Section 9.8 for
more details.
1
1
SLEEP
2003 Microchip Technology Inc.
DS30235J-page 71