PIC16C926-I/CL Microchip Technology, PIC16C926-I/CL Datasheet - Page 118

no-image

PIC16C926-I/CL

Manufacturer Part Number
PIC16C926-I/CL
Description
64/68-Pin CMOS Microcontrollers with LCD Driver
Manufacturer
Microchip Technology
Datasheet
PIC16C925/926
ANDLW
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
Example
Before Instruction:
After Instruction:
DS39544A-page 116
W
W
=
=
0xA3
0x03
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
1
1
ANDLW
register.
Decode
Q1
11
k
255
literal ‘k’
1001
Read
0x5F
Q2
(W)
Process
kkkk
k
data
Q3
Write to
kkkk
Q4
W
Preliminary
ANDWF
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
Example
Before Instruction:
After Instruction
W
FSR
W
FSR
=
=
=
=
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 register. If ’d’ is 1, the result is
stored back in register ’f’.
1
1
ANDWF
Decode
Q1
0x17
0xC2
0x17
0x02
00
f
2001 Microchip Technology Inc.
127
register
0101
Read
FSR,
Q2
'f'
(destination)
1
Process
dfff
f [,d]
data
Q3
destination
Write to
ffff
Q4

Related parts for PIC16C926-I/CL