PIC12C508A Microchip Technology, PIC12C508A Datasheet - Page 49

no-image

PIC12C508A

Manufacturer Part Number
PIC12C508A
Description
8-Pin/ 8-Bit CMOS Microcontrollers
Manufacturer
Microchip Technology
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC12C508A
Manufacturer:
MIROCHIP
Quantity:
5 159
Part Number:
PIC12C508A
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC12C508A-04/P
Manufacturer:
MICROCHIPS
Quantity:
482
Part Number:
PIC12C508A-04/P
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC12C508A-04/SM
Manufacturer:
MICROCHI
Quantity:
42
Part Number:
PIC12C508A-04/SM
Manufacturer:
MICROCIHIP
Quantity:
20 000
Company:
Part Number:
PIC12C508A-04/SM
Quantity:
30 000
Part Number:
PIC12C508A-04/SN
Manufacturer:
ROHM
Quantity:
7 948
Part Number:
PIC12C508A-04/SN
Manufacturer:
MIC
Quantity:
1 000
Part Number:
PIC12C508A-04/SN
Manufacturer:
MIC
Quantity:
20 000
Part Number:
PIC12C508A-04E/SN
Manufacturer:
MICROCHIP
Quantity:
1 040
Part Number:
PIC12C508A-04I/P
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC12C508A-04I/P
0
Part Number:
PIC12C508A-04I/SN
Quantity:
100
ADDWF
Syntax:
Operands:
Operation:
Status Affected: C, DC, Z
Encoding:
Description:
Words:
Cycles:
Example:
ANDLW
Syntax:
Operands:
Operation:
Status Affected: Z
Encoding:
Description:
Words:
Cycles:
Example:
1999 Microchip Technology Inc.
Before Instruction
After Instruction
Before Instruction
After Instruction
W
FSR =
W
FSR =
W
W
=
=
=
=
Add W and f
[ label ] ADDWF
0
d
(W) + (f)
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’
1
1
ADDWF
0x17
0xC2
0xD9
0xC2
And literal with W
[ label ] ANDLW
0
(W).AND. (k)
The contents of the W register are
AND’ed with the eight-bit literal 'k'. The
result is placed in the W register
1
1
ANDLW
0xA3
0x03
0001
1110
f
k
31
255
FSR, 0
0x5F
11df
kkkk
(dest)
(W)
f,d
ffff
kkkk
k
.
.
ANDWF
Syntax:
Operands:
Operation:
Status Affected: Z
Encoding:
Description:
Words:
Cycles:
Example:
BCF
Syntax:
Operands:
Operation:
Status Affected: None
Encoding:
Description:
Words:
Cycles:
Example:
Before Instruction
After Instruction
Before Instruction
After Instruction
FSR =
W
FSR =
FLAG_REG = 0xC7
FLAG_REG = 0x47
W
=
=
AND W with f
[ label ] ANDWF
0
d
(W) .AND. (f)
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'
1
1
ANDWF
0x17
0xC2
0x17
0x02
Bit Clear f
[ label ] BCF
0
0
0
Bit 'b' in register 'f' is cleared.
1
1
BCF
0001
0100
f
f
b
(f<b>)
PIC12C5XX
31
31
7
FSR,
FLAG_REG,
01df
bbbf
f,b
(dest)
1
DS40139E-page 49
ffff
ffff
f,d
7
.

Related parts for PIC12C508A