參數(shù)資料
型號: PIC12CR509A
廠商: Microchip Technology Inc.
英文描述: 8-Pin, 8-Bit CMOS Microcontrollers
中文描述: 8引腳,8位CMOS微控制器
文件頁數(shù): 52/113頁
文件大小: 1604K
代理商: PIC12CR509A
PIC12C5XX
DS40139E-page 52
1999 Microchip Technology Inc.
COMF
Syntax:
Complement f
[ label COMF f,d
0
f
31
d
[0,1]
(f)
(dest)
Z
Operands:
Operation:
Status Affected:
Encoding:
0010
01df
ffff
Description:
The contents of register ’f’ are comple-
mented. 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
Words:
Cycles:
Example:
1
COMF
REG1,0
Before Instruction
REG1
After Instruction
REG1
W
=
0x13
=
=
0x13
0xEC
DECF
Syntax:
Decrement f
[ label DECF f,d
0
f
31
d
[0,1]
(f)
– 1
(dest)
Z
Operands:
Operation:
Status Affected:
Encoding:
0000
11df
ffff
Description:
Decrement 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
Words:
Cycles:
Example:
1
DECF CNT,
1
Before Instruction
CNT
Z
After Instruction
CNT
Z
=
=
0x01
0
=
=
0x00
1
DECFSZ
Syntax:
Decrement f, Skip if 0
[
label
] DECFSZ f,d
0
f
31
d
[0,1]
(f) – 1
d; skip if result = 0
None
Operands:
Operation:
Status Affected:
Encoding:
0010
11df
ffff
Description:
The contents of register ’f’ are decre-
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, the next instruction,
which is already fetched, is discarded
and an NOP is executed instead mak-
ing it a two cycle instruction.
1
Words:
Cycles:
Example:
1(2)
HERE DECFSZ CNT, 1
GOTO LOOP
CONTINUE
Before Instruction
PC
=
address
After Instruction
CNT
=
CNT - 1;
if CNT
=
0,
PC
=
address
(CONTINUE)
;
if CNT
0,
PC
=
address
(HERE+1)
(HERE)
GOTO
Unconditional Branch
Syntax:
Operands:
[ label GOTO k
0
k
511
k
PC<8:0>;
STATUS<6:5>
PC<10:9>
None
Operation:
Status Affected:
Encoding:
Description:
101k
kkkk
kkkk
GOTO
is an unconditional branch. The
9-bit immediate value is loaded into PC
bits <8:0>. The upper bits of PC are
loaded from STATUS<6:5>.
GOTO
is a
two cycle instruction.
1
Words:
Cycles:
Example:
2
GOTO THERE
After Instruction
PC =
address
(THERE)
相關(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