PIC16F505 Microchip Technology, PIC16F505 Datasheet - Page 59

no-image

PIC16F505

Manufacturer Part Number
PIC16F505
Description
(PIC1xF50x) 8-Bit Flash Microcontrollers
Manufacturer
Microchip Technology
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC16F505-E/SL
0
Part Number:
PIC16F505-I/SL
Manufacturer:
Microchip Technology
Quantity:
28 714
Part Number:
PIC16F505-I/SL
0
ADDWF
Syntax:
Operands:
Operation:
Status Affected: C, DC, Z
Description:
ANDLW
Description:
ANDWF
Syntax:
Operands:
Operation:
Status Affected: Z
Description:
 2004 Microchip Technology Inc.
Status Affected: Z
Operands:
Operation:
Syntax:
[ label ] ADDWF
0
d
(W) + (f)
Add the contents of the W register
and 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’.
Add W and f
AND W with f
[ label ] ANDWF
0
d
(W) .AND. (f)
The contents of the W register are
AND’ed with 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’.
(W).AND. (k)
AND literal with W
[ label ] ANDLW
0
The contents of the W register are
AND’ed with the eight-bit literal ‘k’.
The result is placed in the W
register.
f
f
[0,1]
k
0 1
31
31
255
(dest)
(dest)
(W)
f,d
f,d
k
Preliminary
PIC12F508/509/16F505
BCF
Syntax:
Operands:
Operation:
Status Affected: None
Description:
BSF
Syntax:
Operands:
Operation:
Status Affected: None
BTFSC
Syntax:
Operands:
Operation:
Status Affected: None
Description:
Description: Bit ‘b’ in register ‘f’ is set.
Bit Clear f
[ label ] BCF
0
0
0
Bit ‘b’ in register ‘f’ is cleared.
Bit Set f
[ label ] BSF
0
0
1
Bit Test f, Skip if Clear
[ label ] BTFSC f,b
0
0
skip if (f<b>) = 0
If bit ‘b’ in register ‘f’ is ‘0’, then the
next instruction is skipped.
If bit ‘b’ is ‘0’, then the next instruc-
tion fetched during the current
instruction execution is discarded,
and a NOP is executed instead,
making this a 2-cycle instruction.
f
b
f
b
f
b
(f<b>)
(f<b>)
31
31
31
7
7
7
f,b
f,b
DS41236A-page 57

Related parts for PIC16F505