English
Language : 

PIC17C7XX_13 Datasheet, PDF (204/306 Pages) Microchip Technology – High-Performance 8-bit CMOS EPROM Microcontrollers with 10-bit A/D
PIC17C7XX
ANDWF
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
Q1
Decode
AND WREG with f
[ label ] ANDWF f,d
0  f  255
d [0,1]
(WREG) .AND. (f)  (dest)
Z
0000 101d ffff ffff
The contents of WREG are AND’ed with
register 'f'. If 'd' is 0 the result is stored
in WREG. If 'd' is 1 the result is stored
back in register 'f'.
1
1
Q2
Read
register 'f'
Q3
Process
Data
Q4
Write to
destination
Example:
ANDWF REG, 1
Before Instruction
WREG = 0x17
REG = 0xC2
After Instruction
WREG = 0x17
REG = 0x02
BCF
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
Q1
Decode
Bit Clear f
[ label ] BCF f,b
0  f  255
0b7
0  (f<b>)
None
1000 1bbb ffff ffff
Bit 'b' in register 'f' is cleared.
1
1
Q2
Read
register 'f'
Q3
Process
Data
Q4
Write
register 'f'
Example:
BCF
Before Instruction
FLAG_REG = 0xC7
After Instruction
FLAG_REG = 0x47
FLAG_REG, 7
DS30289C-page 204
 1998-2013 Microchip Technology Inc.