|
RFPIC12F675K Datasheet, PDF (81/136 Pages) Microchip Technology – 20-Pin FLASH-Based 8-Bit CMOS Microcontroller with UHF ASK/FSK Transmitter | |||
|
◁ |
rfPIC12F675
RLF
Rotate Left f through Carry
Syntax:
Operands:
Operation:
Status Affected:
Description:
[ 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' 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
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.
RRF
Rotate Right f through Carry
Syntax:
Operands:
Operation:
Status Affected:
Description:
[ 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' 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
SLEEP
Syntax:
Operands:
Operation:
Status Affected:
Description:
[ 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.
SUBLW
Subtract W from Literal
Syntax:
[ label ] SUBLW k
Operands:
0 ⤠k ⤠255
Operation:
k - (W) â (W)
Status Affected: C, DC, Z
Description:
The W register is subtracted (2âs
complement method) from the
eight-bit literal 'k'. The result is
placed in the W register.
SUBWF
Syntax:
Operands:
Operation:
Status
Affected:
Description:
Subtract W from f
[ label ] SUBWF f,d
0 ⤠f ⤠127
d â [0,1]
(f) - (W) â (destination)
C, DC, Z
Subtract (2âs complement method)
W register from register 'f'. If 'd' is 0,
the result is stored in the W
register. If 'd' is 1, the result is
stored back in register 'f'.
 2003 Microchip Technology Inc.
Preliminary
DS70091A-page 79
|
▷ |