Microchip Technology IC MCU FLASH PIC16F874-20I/P DIP-40 MCP PIC16F874-20I/P Datenbogen

Produktcode
PIC16F874-20I/P
Seite von 218
 1998-2013 Microchip Technology Inc.
DS30292D-page 137
PIC16F87X
13.1
Instruction Descriptions 
ADDLW
Add Literal and W
Syntax:
[label]  ADDLW     k
Operands:
 k  255
Operation:
(W) + k 
 (W)
Status Affected:
C, DC, Z
Description:
The contents of the W register 
are added to the eight bit literal 'k' 
and the result is placed in the W 
register.
ADDWF
Add W and f
Syntax:
[label]  ADDWF     f,d
Operands:
 f  127

Operation:
(W) + (f) 
 (destination)
Status Affected:
C, DC, Z
Description:
Add the contents of the W register 
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'.
ANDLW
AND Literal with W
Syntax:
[label]  ANDLW     k
Operands:
 k  255
Operation:
(W) .AND. (k) 
 (W)
Status Affected:
Z
Description:
The contents of W register are 
AND’ed with the eight bit literal 
'k'. The result is placed in the W 
register.
ANDWF
AND W with f
Syntax:
[label]  ANDWF     f,d
Operands:
 f  127

Operation:
(W) .AND. (f) 
 (destination)
Status Affected:
Z
Description:
AND the W register 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'.
BCF
Bit Clear f
Syntax:
[label] BCF     f,b
Operands:
 f  127
 b  7
Operation:
 (f<b>)
Status Affected:
None
Description:
Bit 'b' in register 'f' is cleared.
BSF
Bit Set f
Syntax:
[label] BSF    f,b
Operands:
 f  127
 b  7
Operation:
 (f<b>)
Status Affected:
None
Description:
Bit 'b' in register 'f' is set.
BTFSS
Bit Test f, Skip if Set
Syntax:
[label] BTFSS   f,b
Operands:
 f  127
 b < 7
Operation:
skip if (f<b>) = 1
Status Affected:
None
Description:
If bit 'b' in register 'f' is '0', the next 
instruction is executed.
If bit 'b' is '1', then the next instruc-
tion is discarded and a NOP is 
executed instead, making this a 
2T
CY
 instruction.
BTFSC
Bit Test, Skip if Clear
Syntax:
[label] BTFSC   f,b
Operands:
 f  127
 b  7
Operation:
skip if (f<b>) = 0
Status Affected:
None
Description:
If bit 'b' in register 'f' is '1', the next 
instruction is executed.
If bit 'b', in register 'f', is '0', the 
next instruction is discarded, and 
a NOP is executed instead, making 
this a 2T
CY
 instruction.