|
PIC16LF876A-I Datasheet, PDF (164/234 Pages) Microchip Technology – 28/40/44-Pin Enhanced Flash Microcontrollers | |||
|
◁ |
PIC16F87XA
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
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:
[ 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â.
DS39582C-page 164
ï£ 2001-2013 Microchip Technology Inc.
|
▷ |