12F508 Microchip Technology, 12F508 Datasheet - Page 59

no-image

12F508

Manufacturer Part Number
12F508
Description
Search -----> PIC12F508
Manufacturer
Microchip Technology
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
12F508I/SN
Manufacturer:
SILICON
Quantity:
2 400
www.DataSheet.in
ADDWF
Syntax:
Operands:
Operation:
Status Affected: C, DC, Z
Description:
ANDLW
Description:
ANDWF
Syntax:
Operands:
Operation:
Status Affected: Z
Description:
© 2005 Microchip Technology Inc.
Status Affected: Z
Operands:
Operation:
Syntax:
(W) + (f)
Add the contents of the W register
Add W and f
[ label ] ADDWF
0
d
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’.
[ 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’.
AND W with f
AND literal with W
[ label ] ANDLW
0
(W).AND. (k)
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 two-cycle instruction.
f
b
f
b
f
b
(f<b>)
(f<b>)
31
31
31
7
7
7
f,b
f,b
DS41236B-page 57

Related parts for 12F508