|
PIC16F84A-04-P Datasheet, PDF (41/90 Pages) Microchip Technology – 18-pin Enhanced FLASH/EEPROM 8-Bit Microcontroller | |||
|
◁ |
PIC16F84A
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' 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
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' 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:
Operands:
Operation:
[ label ] SUBLW k
0 ï£ï k ï£ï 255
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
Subtract W from f
Syntax:
[ label ] SUBWF f,d
Operands:
0 ï£ï f ï£ï 127
d ï [0,1]
Operation:
(f) - (W) ï®ï ï¨destination)
Status Affected: C, DC, Z
Description:
Subtract (2âs complement method)
W register from register 'f'. If 'd' is 0,
the result is stored in the W regis-
ter. If 'd' is 1, the result is stored
back in register 'f'.
SWAPF
Swap Nibbles in f
Syntax:
Operands:
Operation:
Status Affected:
Description:
[ label ] SWAPF f,d
0 ï£ f ï£ 127
d ï [0,1]
(f<3:0>) ï® (destination<7:4>),
(f<7:4>) ï® (destination<3:0>)
None
The upper and lower nibbles of
register 'f' are exchanged. If 'd' is
0, the result is placed in W regis-
ter. If 'd' is 1, the result is placed in
register 'f'.
ï£ 2001-2013 Microchip Technology Inc.
DS35007C-page 41
|
▷ |