|
PIC16F707 Datasheet, PDF (194/284 Pages) Microchip Technology – 40/44-Pin, Flash Microcontrollers with nanoWatt XLP and mTouch™ Technology | |||
|
◁ |
PIC16F707/PIC16LF707
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
Words:
Cycles:
Example:
1
1
RLF
REG1,0
Before Instruction
REG1 =
C
=
After Instruction
REG1 =
W
=
C
=
1110 0110
0
1110 0110
1100 1100
1
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
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.
C=0
C=1
DC = 0
DC = 1
Wï¾k
Wï£k
W<3:0> ï¾ k<3:0>
W<3:0> ï£ k<3:0>
DS41418A-page 194
Preliminary
ï£ 2010 Microchip Technology Inc.
|
▷ |