PIC16C782 Microchip Technology Inc., PIC16C782 Datasheet - Page 141

no-image

PIC16C782

Manufacturer Part Number
PIC16C782
Description
8-bit Cmos Microcontrollers With A/d, D/a, Opamp, Comparators And Psmc
Manufacturer
Microchip Technology Inc.
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC16C782/JW
Manufacturer:
AD
Quantity:
580
RRF
Syntax:
Operands:
Operation:
Status Affected:
Description:
SLEEP
Syntax:
Operands:
Operation:
Status Affected:
Description:
SUBLW
Syntax:
Operands:
Operation:
Status Affected: C, DC, Z
Description:
2001 Microchip Technology Inc.
Subtract W from Literal
[ label ]
0
k - (W)
The W register is subtracted (2’s
complement method) from the
eight-bit literal 'k'. The result is
placed in the W register.
Rotate Right f through Carry
[ label ]
0
d
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 reg-
ister ’f’.
[ label ]
None
00h
0
1
0
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.
k
f
[0,1]
WDT prescaler,
TO,
PD
255
127
C
WDT,
RRF f,d
W)
SLEEP
Register f
SUBLW k
Preliminary
SUBWF
Syntax:
Operands:
Operation:
Status Affected: C, DC, Z
Description:
SWAPF
Syntax:
Operands:
Operation:
Status Affected:
Description:
XORLW
Syntax:
Operands:
Operation:
Status Affected:
Description:
PIC16C781/782
Subtract W from f
[ label ]
0
d
(f) - (W)
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'.
Swap Nibbles in f
[ label ] SWAPF f,d
0
d
(f<3:0>)
(f<7:4>)
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'.
Exclusive OR Literal with W
[label]
0
(W) .XOR. k
Z
The contents of the W register
are XOR’ed with the eight-bit lit-
eral 'k'. The result is placed in
the W register.
f
[0,1]
f
[0,1]
k
127
127
255
SUBWF f,d
destination)
(destination<7:4>),
(destination<3:0>)
DS41171A-page 139
W)

Related parts for PIC16C782