PIC16CE625-20/JW Microchip Technology, PIC16CE625-20/JW Datasheet - Page 122

no-image

PIC16CE625-20/JW

Manufacturer Part Number
PIC16CE625-20/JW
Description
OTP 8-Bit CMOS MCU with EEPROM Data Memory
Manufacturer
Microchip Technology
Datasheet
PIC16C9XX
ANDLW
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
Example
DS30444E - page 122
AND Literal with W
[ label ] ANDLW
0
(W) .AND. (k)
Z
The contents of W register are
AND’ed with the eight bit literal 'k'. The
result is placed in the W register
1
1
Before Instruction
After Instruction
Decode
ANDLW
Q1
11
k
255
W
W
literal "k"
1001
0x5F
Read
Q2
=
=
(W)
0xA3
0x03
k
Process
kkkk
data
Q3
Write to
kkkk
.
Q4
W
ANDWF
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
Example
BCF
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
Example
AND W with f
[ label ] ANDWF
0
d
(W) .AND. (f)
Z
AND the W register with register 'f'. If 'd'
is 0 the result is stored in the W regis-
ter. If 'd' is 1 the result is stored back in
register 'f'
1
1
Before Instruction
After Instruction
Bit Clear f
[ label ] BCF
0
0
0
None
Bit 'b' in register 'f' is cleared
1
1
Before Instruction
After Instruction
ANDWF
BCF
Decode
Decode
Q1
Q1
00
01
f
f
b
(f<b>)
1997 Microchip Technology Inc.
127
127
7
.
FSR =
W
FSR =
FLAG_REG = 0xC7
FLAG_REG = 0x47
W
register
register
0101
00bb
FSR, 1
Read
Read
FLAG_REG, 7
Q2
Q2
'f'
'f'
=
=
f,b
(destination)
0x17
0xC2
0x17
0x02
f,d
dfff
Process
bfff
Process
data
data
Q3
Q3
.
register 'f'
destination
ffff
ffff
Write to
Write
Q4
Q4

Related parts for PIC16CE625-20/JW