PIC12C508A-04/EJW MICROCHIP [Microchip Technology], PIC12C508A-04/EJW Datasheet - Page 53
![no-image](/images/no-image-200.jpg)
PIC12C508A-04/EJW
Manufacturer Part Number
PIC12C508A-04/EJW
Description
8-Pin, 8-Bit CMOS Microcontrollers
Manufacturer
MICROCHIP [Microchip Technology]
Datasheet
1.PIC12C508A-04EJW.pdf
(113 pages)
- Current page: 53 of 113
- Download datasheet (2Mb)
INCF
Syntax:
Operands:
Operation:
Status Affected: Z
Encoding:
Description:
Words:
Cycles:
Example:
INCFSZ
Syntax:
Operands:
Operation:
Status Affected: None
Encoding:
Description:
Words:
Cycles:
Example:
1999 Microchip Technology Inc.
Before Instruction
After Instruction
Before Instruction
After Instruction
CNT
Z
CNT
Z
PC
CNT
if CNT
PC
if CNT
PC
Increment f
[ label ]
0
d
(f) + 1
The contents of register ’f’ are incre-
mented. If ’d’ is 0 the result is placed in
the W register. If ’d’ is 1 the result is
placed back in register ’f’.
1
1
INCF
=
=
=
=
Increment f, Skip if 0
[ label ]
0
d
(f) + 1
The contents of register ’f’ are incre-
mented. If ’d’ is 0 the result is placed in
the W register. If ’d’ is 1 the result is
placed back in register ’f’.
If the result is 0, then the next instruc-
tion, which is already fetched, is dis-
carded and an NOP is executed
instead making it a two cycle instruc-
tion.
1
1(2)
HERE
CONTINUE •
=
=
=
=
=
0010
0011
f
f
[0,1]
[0,1]
0xFF
0
0x00
1
address (HERE)
CNT + 1;
0,
address (CONTINUE);
0,
address (HERE +1)
31
31
CNT,
(dest)
(dest), skip if result = 0
INCF f,d
INCFSZ f,d
10df
11df
INCFSZ
GOTO
•
•
1
ffff
ffff
LOOP
CNT,
1
IORLW
Syntax:
Operands:
Operation:
Status Affected: Z
Encoding:
Description:
Words:
Cycles:
Example:
IORWF
Syntax:
Operands:
Operation:
Status Affected: Z
Encoding:
Description:
Words:
Cycles:
Example:
Before Instruction
After Instruction
Before Instruction
After Instruction
W
W
Z
RESULT =
W
RESULT =
W
Z
=
=
=
Inclusive OR literal with W
[ label ]
0
(W) .OR. (k)
The contents of the W register are
OR’ed with the eight bit literal 'k'. The
result is placed in the W register.
1
1
IORLW
0x9A
0xBF
0
Inclusive OR W with f
[ label ]
0
d
(W).OR. (f)
Inclusive OR the W register with regis-
ter 'f'. If 'd' is 0 the result is placed in
the W register. If 'd' is 1 the result is
placed back in register 'f'.
1
1
IORWF
=
=
=
1101
0001
k
f
[0,1]
0x13
0x91
0x13
0x93
0
PIC12C5XX
31
255
0x35
IORLW k
IORWF
kkkk
00df
(dest)
(W)
RESULT, 0
DS40139E-page 53
kkkk
ffff
f,d
Related parts for PIC12C508A-04/EJW
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![PIC12C508A-04/SM](/images/manufacturer_photos/0/4/439/microchip_technology_tmb.jpg)
Part Number:
Description:
IC MCU OTP 512X12 8-SOIJ
Manufacturer:
Microchip Technology
Datasheet:
![PIC12C508A-04/P](/images/manufacturer_photos/0/4/439/microchip_technology_tmb.jpg)
Part Number:
Description:
IC MCU OTP 512X12 8DIP
Manufacturer:
Microchip Technology
Datasheet:
![PIC12C508A-04I/SM](/images/manufacturer_photos/0/4/439/microchip_technology_tmb.jpg)
Part Number:
Description:
IC MCU OTP 512X12 8-SOIJ
Manufacturer:
Microchip Technology
Datasheet:
![PIC12C508A-04I/P](/images/manufacturer_photos/0/4/439/microchip_technology_tmb.jpg)
Part Number:
Description:
IC MCU OTP 512X12 8DIP
Manufacturer:
Microchip Technology
Datasheet:
![PIC12C508A-04/SN](/images/manufacturer_photos/0/4/439/microchip_technology_tmb.jpg)
Part Number:
Description:
IC MCU OTP 512X12 8SOIC
Manufacturer:
Microchip Technology
Datasheet:
![PIC12C508A-04I/SN](/images/manufacturer_photos/0/4/439/microchip_technology_tmb.jpg)
Part Number:
Description:
IC MCU OTP 512X12 8SOIC
Manufacturer:
Microchip Technology
Datasheet:
![PIC12C508A](/images/manufacturer_photos/0/4/439/microchip_technology_tmb.jpg)
Part Number:
Description:
8-Pin/ 8-Bit CMOS Microcontrollers
Manufacturer:
Microchip Technology
Datasheet:
![PIC12C508A-04E/P](/images/manufacturer_photos/0/4/439/microchip_technology_tmb.jpg)
Part Number:
Description:
IC MCU OTP 512X12 8DIP
Manufacturer:
Microchip Technology
Datasheet:
![PIC12C508A-04E/SM](/images/manufacturer_photos/0/4/439/microchip_technology_tmb.jpg)
Part Number:
Description:
IC MCU OTP 512X12 8-SOIJ
Manufacturer:
Microchip Technology
Datasheet:
![PIC12C508A-04I/MF](/images/manufacturer_photos/0/4/439/microchip_technology_tmb.jpg)
Part Number:
Description:
IC MCU OTP 512X12 8DFN
Manufacturer:
Microchip Technology
Datasheet:
![PIC12C508A/JW](/photos/12/32/123242/pic12c508a_jw_tmb.jpg)
Part Number:
Description:
IC MCU EPROM 512X12 8CDIP
Manufacturer:
Microchip Technology
Datasheet:
![PIC12C508A-04E/SN](/images/manufacturer_photos/0/4/439/microchip_technology_tmb.jpg)
Part Number:
Description:
IC,MICROCONTROLLER,8-BIT,PIC CPU,CMOS,SOP,8PIN,PLASTIC
Manufacturer:
Microchip Technology
Datasheet:
![PIC12C508](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
![PIC12C508-04/P](/images/manufacturer_photos/0/4/439/microchip_technology_tmb.jpg)
Part Number:
Description:
IC MCU OTP 512X12 8DIP
Manufacturer:
Microchip Technology
Datasheet:
![PIC12C508-04/SM](/images/manufacturer_photos/0/4/439/microchip_technology_tmb.jpg)
Part Number:
Description:
IC MCU OTP 512X12 8-SOIJ
Manufacturer:
Microchip Technology
Datasheet: