參數(shù)資料
型號(hào): PIC12CR509A
廠商: Microchip Technology Inc.
英文描述: 8-Pin, 8-Bit CMOS Microcontrollers
中文描述: 8引腳,8位CMOS微控制器
文件頁數(shù): 50/113頁
文件大小: 1604K
代理商: PIC12CR509A
PIC12C5XX
DS40139E-page 50
1999 Microchip Technology Inc.
BSF
Syntax:
Bit Set f
[ label BSF f,b
0
f
31
0
b
7
1
(f<b>)
None
Operands:
Operation:
Status Affected:
Encoding:
0101
bbbf
ffff
Description:
Words:
Bit ’b’ in register ’f’ is set.
1
Cycles:
Example:
1
BSF
FLAG_REG, 7
Before Instruction
FLAG_REG = 0x0A
After Instruction
FLAG_REG = 0x8A
BTFSC
Bit Test f, Skip if Clear
Syntax:
Operands:
[ label BTFSC f,b
0
f
31
0
b
7
skip if (f<b>) = 0
None
Operation:
Status Affected:
Encoding:
Description:
0110
bbbf
ffff
If bit ’b’ in register ’f’ is 0 then the next
instruction is skipped.
If bit ’b’ is 0 then the next instruction
fetched during the current instruction
execution is discarded, and an NOP is
executed instead, making this a 2 cycle
instruction.
Words:
1
1(2)
Example:
HERE
FALSE
TRUE
BTFSC
GOTO
FLAG,1
PROCESS_CODE
Before Instruction
PC
After Instruction
if FLAG<1>
PC
if FLAG<1>
PC
=
address
(HERE)
=
=
=
=
0,
address
(TRUE)
;
1,
address
(FALSE)
BTFSS
Syntax:
Bit Test f, Skip if Set
[ label BTFSS f,b
0
f
31
0
b < 7
skip if (f<b>) = 1
Operands:
Operation:
Status Affected:
Encoding:
None
0111
bbbf
ffff
Description:
If bit ’b’ in register ’f’ is ’1’ then the next
instruction is skipped.
If bit ’b’ is ’1’, then the next instruction
fetched during the current instruction
execution, is discarded and an NOP is
executed instead, making this a 2 cycle
instruction.
1
Words:
Cycles:
Example:
1(2)
HERE BTFSS FLAG,1
FALSE GOTO PROCESS_CODE
TRUE
Before Instruction
PC
=
After Instruction
If FLAG<1>
=
PC
=
if FLAG<1>
=
PC
=
address
(HERE)
0,
address
(FALSE)
;
1,
address
(TRUE)
相關(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