參數(shù)資料
型號: PIC12CR509A
廠商: Microchip Technology Inc.
英文描述: 8-Pin, 8-Bit CMOS Microcontrollers
中文描述: 8引腳,8位CMOS微控制器
文件頁數(shù): 53/113頁
文件大?。?/td> 1604K
代理商: PIC12CR509A
1999 Microchip Technology Inc.
DS40139E-page 53
PIC12C5XX
INCF
Syntax:
Increment f
[ label INCF f,d
0
f
31
d
[0,1]
(f) + 1
(dest)
Z
Operands:
Operation:
Status Affected:
Encoding:
0010
10df
ffff
Description:
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
Words:
Cycles:
Example:
1
INCF
CNT,
1
Before Instruction
CNT
Z
After Instruction
CNT
Z
=
=
0xFF
0
=
=
0x00
1
INCFSZ
Syntax:
Increment f, Skip if 0
[ label INCFSZ f,d
0
f
31
d
[0,1]
(f) + 1
(dest), skip if result = 0
None
Operands:
Operation:
Status Affected:
Encoding:
Description:
0011
11df
ffff
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
Words:
Cycles:
Example:
1(2)
HERE INCFSZ CNT, 1
GOTO LOOP
CONTINUE
Before Instruction
PC
=
address
(HERE)
After Instruction
CNT
=
CNT + 1;
if CNT
=
0,
PC
=
address
(CONTINUE)
;
if CNT
0,
PC
=
address
(HERE +1)
IORLW
Syntax:
Inclusive OR literal with W
[ label IORLW k
0
k
255
(W) .OR. (k)
(W)
Z
Operands:
Operation:
Status Affected:
Encoding:
1101
kkkk
kkkk
Description:
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
Words:
Cycles:
Example:
Before Instruction
W
After Instruction
W
Z
IORLW
0x35
=
0x9A
=
=
0xBF
0
IORWF
Inclusive OR W with f
Syntax:
Operands:
[ label IORWF f,d
0
f
31
d
[0,1]
(W).OR. (f)
(dest)
Z
Operation:
Status Affected:
Encoding:
Description:
0001
00df
ffff
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
Words:
Cycles:
Example:
1
IORWF
RESULT, 0
Before Instruction
RESULT =
W
0x13
0x91
=
After Instruction
RESULT =
W
Z
0x13
0x93
0
=
=
相關(guān)PDF資料
PDF描述
PIC12F505 8/14-Pin, 8-Bit Flash Microcontrollers
PIC12F506 8/14-Pin, 8-Bit Flash Microcontroller
PIC12F510_07 8/14-Pin, 8-Bit Flash Microcontroller
PIC12F510 8/14-Pin, 8-Bit Flash Microcontroller
PIC12F519 8-Pin, 8-Bit Flash Microcontroller
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
PIC12CR509A-04/EJW 制造商:MICROCHIP 制造商全稱:Microchip Technology 功能描述:8-Pin, 8-Bit CMOS Microcontrollers
PIC12CR509A-04/EP 制造商:MICROCHIP 制造商全稱:Microchip Technology 功能描述:8-Pin, 8-Bit CMOS Microcontrollers
PIC12CR509A-04/ESM 制造商:MICROCHIP 制造商全稱:Microchip Technology 功能描述:8-Pin, 8-Bit CMOS Microcontrollers
PIC12CR509A-04/ESN 制造商:MICROCHIP 制造商全稱:Microchip Technology 功能描述:8-Pin, 8-Bit CMOS Microcontrollers
PIC12CR509A-04/IJW 制造商:MICROCHIP 制造商全稱:Microchip Technology 功能描述:8-Pin, 8-Bit CMOS Microcontrollers