|
PIC16LF1526 Datasheet, PDF (301/354 Pages) Microchip Technology – 64-Pin Flash Microcontrollers with nanoWatt XLP Technology | |||
|
◁ |
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:
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 pres-
caler are cleared.
The processor is put into Sleep mode
with the oscillator stopped.
PIC16(L)F1526/27
SUBLW
Syntax:
Operands:
Operation:
Status Affected:
Description:
Subtract W from literal
[ label ] SUBLW k
0 ï£ï k ï£ï 255
k - (W) ï®ï ï¨W)
C, DC, Z
The W register is subtracted (2âs com-
plement method) from the eight-bit
literal âkâ. The result is placed in the W
register.
C=0
C=1
DC = 0
DC = 1
Wï¾k
Wï£k
W<3:0> ï¾ k<3:0>
W<3:0> ï£ k<3:0>
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.
C=0
C=1
DC = 0
DC = 1
Wï¾f
Wï£f
W<3:0> ï¾ f<3:0>
W<3:0> ï£ f<3:0>
SUBWFB
Syntax:
Operands:
Operation:
Status Affected:
Description:
Subtract W from f with Borrow
SUBWFB f {,d}
0 ï£ f ï£ 127
d ï [0,1]
(f) â (W) â (B) ï®ï dest
C, DC, Z
Subtract W and the BORROW flag
(CARRY) from register âfâ (2âs comple-
ment method). If âdâ is â0â, the result is
stored in W. If âdâ is â1â, the result is
stored back in register âfâ.
ï£ 2011 Microchip Technology Inc.
Preliminary
DS41458A-page 301
|
▷ |