|
PIC16F526 Datasheet, PDF (73/122 Pages) Microchip Technology – 14-Pin, 8-Bit Flash Microcontroller | |||
|
◁ |
PIC16F526
ADDWF
Add W and f
Syntax:
[ label ] ADDWF f,d
Operands:
0 ï£ f ï£ 31
d ïï ï0ï¬1ï
Operation:
(W) + (f) ï® (dest)
Status Affected: C, DC, Z
Description:
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â.
ANDLW
AND literal with W
Syntax:
[ label ] ANDLW k
Operands:
0 ï£ k ï£ 255
Operation:
(W).AND. (k) ï® (W)
Status Affected: Z
Description:
The contents of the W register are
ANDâed with the eight-bit literal âkâ.
The result is placed in the W
register.
BCF
Bit Clear f
Syntax:
[ label ] BCF f,b
Operands:
0 ï£ f ï£ 31
0ï£bï£7
Operation:
0 ï® (f<b>)
Status Affected: None
Description:
Bit âbâ in register âfâ is cleared.
BSF
Bit Set f
Syntax:
[ label ] BSF f,b
Operands:
0 ï£ f ï£ 31
0ï£bï£7
Operation:
1 ï® (f<b>)
Status Affected: None
Description:
Bit âbâ in register âfâ is set.
ANDWF
AND W with f
Syntax:
[ label ] ANDWF f,d
Operands:
0 ï£ f ï£ 31
d ïï [0,1]
Operation:
(W) .AND. (f) ï® (dest)
Status Affected: Z
Description:
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â.
BTFSC
Bit Test f, Skip if Clear
Syntax:
[ label ] BTFSC f,b
Operands:
0 ï£ f ï£ 31
0ï£bï£7
Operation:
skip if (f<b>) = 0
Status Affected: None
Description:
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.
ï£ 2010 Microchip Technology Inc.
DS41326D-page 73
|
▷ |