|
PIC16LF819-I Datasheet, PDF (111/176 Pages) Microchip Technology – Enhanced Flash Microcontrollers with nanoWatt Technology | |||
|
◁ |
RETFIE
Syntax:
Operands:
Operation:
Status Affected:
Return from Interrupt
[ label ] RETFIE
None
TOS â PC,
1 â GIE
None
PIC16F818/819
RLF
Syntax:
Operands:
Operation:
Status Affected:
Description:
Rotate Left f through Carry
[ label ] RLF f,d
0 ⤠f ⤠127
d â [0,1]
See description below
C
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
RETLW
Syntax:
Operands:
Operation:
Status Affected:
Description:
Return with Literal in W
[ label ] RETLW k
0 ⤠k ⤠255
k â (W);
TOS â PC
None
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.
RRF
Syntax:
Operands:
Operation:
Status Affected:
Description:
Rotate Right f through Carry
[ label ] RRF f,d
0 ⤠f ⤠127
d â [0,1]
See description below
C
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â.
C
Register f
RETURN
Syntax:
Operands:
Operation:
Status Affected:
Description:
Return from Subroutine
[ label ] RETURN
None
TOS â PC
None
Return from subroutine. The stack
is POPed and the top of the stack
(TOS) is loaded into the program
counter. This is a two-cycle
instruction.
SLEEP
Syntax:
Operands:
Operation:
Status Affected:
Description:
Enter Sleep mode
[ label ] SLEEP
None
00h â WDT,
0 â WDT prescaler,
1 â TO,
0 â PD
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.
 2004 Microchip Technology Inc.
DS39598E-page 109
|
▷ |