PIC16F684-ISL Microchip Technology Inc., PIC16F684-ISL Datasheet - Page 120

no-image

PIC16F684-ISL

Manufacturer Part Number
PIC16F684-ISL
Description
Manufacturer
Microchip Technology Inc.
Datasheets

Specifications of PIC16F684-ISL

Case
N/A
Notes
NEW
Date_code
11+
PIC16F684
RRF
Rotate Right f through Carry
Syntax:
[ label ]
RRF f,d
Operands:
0
f
127
d
[0,1]
Operation:
See description below
Status Affected:
C
Description:
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
Enter Sleep mode
Syntax:
[ label ] SLEEP
Operands:
None
Operation:
00h
WDT,
0
WDT prescaler,
1
TO,
0
PD
Status Affected:
TO, PD
Description:
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.
DS41202C-page 118
SUBWF
Subtract W from f
Syntax:
[ label ] SUBWF f,d
Operands:
0
f
127
d
[0,1]
Operation:
(f) - (W)
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
register. If ‘d’ is ‘1’, the result is
stored back in register ‘f’.
SWAPF
Swap Nibbles in f
Syntax:
[ label ] SWAPF f,d
Operands:
0
f
d
[0,1]
Operation:
(f<3:0>)
(f<7:4>)
Status Affected:
None
Description:
The upper and lower nibbles of
register ‘f’ are exchanged. If ‘d’ is
‘0’, the result is placed in the W
register. If ‘d’ is ‘1’, the result is
placed in register ‘f’.
XORLW
Exclusive OR literal with W
Syntax:
[ label ] XORLW k
Operands:
0
k
Operation:
(W) .XOR. k
Status Affected:
Z
Description:
The contents of the W register
are XOR’ed with the eight-bit
literal ‘k’. The result is placed in
the W register.
Preliminary
 2004 Microchip Technology Inc.
destination)
127
(destination<7:4>),
(destination<3:0>)
255
W)

Related parts for PIC16F684-ISL