參數(shù)資料
型號: PIC12C67X
廠商: Microchip Technology Inc.
英文描述: 8-Pin, 8-Bit CMOS Microcontroller with A/D Converter and EEPROM Data Memory
中文描述: 8引腳,8位CMOS微控制器與A / D轉換器和EEPROM數(shù)據(jù)存儲器
文件頁數(shù): 75/129頁
文件大小: 931K
代理商: PIC12C67X
1999 Microchip Technology Inc.
DS30561B-page 75
PIC12C67X
CLRWDT
Syntax:
Operands:
Operation:
Clear Watchdog Timer
[ label CLRWDT
None
00h
WDT
0
WDT prescaler,
1
TO
1
PD
TO, PD
Status Affected:
Encoding:
Description:
00
0000
0110
0100
CLRWDT
instruction resets the
Watchdog Timer. It also resets the
prescaler of the WDT. Status bits
TO and PD are set.
1
1
Words:
Cycles:
Example
CLRWDT
Before Instruction
WDT counter =
After Instruction
WDT counter =
WDT prescaler=
TO
PD
0x00
0
1
1
=
=
COMF
Syntax:
Operands:
Complement f
[ label COMF f,d
0
f
127
d
[0,1]
(f)
(dest)
Z
Operation:
Status Affected:
Encoding:
Description:
00
1001
dfff
ffff
The contents of register ’f’ are
complemented. If ’d’ is 0, the
result is stored in W. If ’d’ is 1, the
result is stored back in register ’f’.
1
1
Words:
Cycles:
Example
COMF
REG1,0
Before Instruction
REG1
=
0x13
After Instruction
REG1
W
=
=
0x13
0xEC
DECF
Syntax:
Operands:
Decrement f
[ label DECF f,d
0
f
127
d
[0,1]
(f) - 1
(dest)
Z
Operation:
Status Affected:
Encoding:
Description:
00
0011
dfff
ffff
Decrement register ’f’. If ’d’ is 0,
the result is stored in the W regis-
ter. If ’d’ is 1, the result is stored
back in register ’f’.
1
1
Words:
Cycles:
Example
DECF CNT,
1
Before Instruction
CNT
Z
After Instruction
CNT
Z
=
=
0x01
0
=
=
0x00
1
DECFSZ
Syntax:
Operands:
Decrement f, Skip if 0
[ label DECFSZ f,d
0
f
127
d
[0,1]
(f) - 1
(dest); skip if result = 0
None
Operation:
Status Affected:
Encoding:
Description:
00
1011
dfff
ffff
The contents of register ’f’ are
decremented. If ’d’ is 0, the result
is placed in the W register. If ’d’ is
1, the result is placed back in reg-
ister ’f’.
If the result is 0, the next instruc-
tion, which is already fetched, is
discarded. A
NOP
is executed
instead making it a two cycle
instruction.
1
1(2)
Words:
Cycles:
Example
HERE DECFSZ 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
相關PDF資料
PDF描述
pic12ce674 8-Pin, 8-Bit CMOS Microcontroller with A/D Converter(具A/D轉換器和EEPROM數(shù)據(jù)存儲器的8位微控制器)
PIC12CR509A 8-Pin, 8-Bit CMOS Microcontrollers
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
相關代理商/技術參數(shù)
參數(shù)描述
PIC12C67X_13 制造商:MICROCHIP 制造商全稱:Microchip Technology 功能描述:8-Pin, 8-Bit CMOS Microcontroller with A/D Converter and EEPROM Data Memory
PIC12CE-04/EJW 制造商:MICROCHIP 制造商全稱:Microchip Technology 功能描述:8-Pin, 8-Bit CMOS Microcontrollers
PIC12CE-04/EP 制造商:MICROCHIP 制造商全稱:Microchip Technology 功能描述:8-Pin, 8-Bit CMOS Microcontrollers
PIC12CE-04/ESM 制造商:MICROCHIP 制造商全稱:Microchip Technology 功能描述:8-Pin, 8-Bit CMOS Microcontrollers
PIC12CE-04/ESN 制造商:MICROCHIP 制造商全稱:Microchip Technology 功能描述:8-Pin, 8-Bit CMOS Microcontrollers