PIC16F87/88
RETFIE
Return from Interrupt
[ label ] RETFIE
None
RLF
Rotate Left f through Carry
Syntax:
Syntax:
Operands:
[ label ] RLF f,d
Operands:
Operation:
0 ≤ f ≤ 127
d ∈ [0,1]
TOS → PC,
1 → GIE
Operation:
See description below
C
Status Affected: None
Status Affected:
Description:
The contents of register ‘f’ are
rotated one bit to the left through
the Carry Flag. If ‘d’ = 0, the
result is placed in the W register.
If ‘d’ = 1, the result is stored back
in register ‘f’.
C
Register f
RRF
Rotate Right f through Carry
RETLW
Return with Literal in W
Syntax:
Operands:
[ label ] RRF f,d
Syntax:
[ label ] RETLW k
0 ≤ k ≤ 255
0 ≤ f ≤ 127
d ∈ [0,1]
Operands:
Operation:
k → (W);
TOS → PC
Operation:
See description below
C
Status Affected:
Description:
Status Affected: None
The contents of register ‘f’ are
rotated one bit to the right through
the Carry Flag. If ‘d’ = 0, the result
is placed in the W register. If
‘d’ = 1, the result is placed back in
register ‘f’.
Description:
The W register is loaded with the
eight-bit literal ‘k’. The program
counter is loaded from the top of
the stack (the return address).
This is a two-cycle instruction.
C
Register f
SLEEP
RETURN
Syntax:
Return from Subroutine
[ label ] RETURN
None
Syntax:
[ label ] SLEEP
Operands:
Operation:
None
Operands:
Operation:
00h → WDT,
0 → WDT prescaler,
1 → TO,
TOS → PC
Status Affected: None
Description: Return from subroutine. The stack
0 → PD
is POPed and the top of the stack
(TOS) is loaded into the program
counter. This is a two-cycle
instruction.
Status Affected:
Description:
TO, PD
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.
2003 Microchip Technology Inc.
Preliminary
DS30487B-page 155