PIC14000-04 Microchip Technology, PIC14000-04 Datasheet - Page 94
PIC14000-04
Manufacturer Part Number
PIC14000-04
Description
28-Pin Programmable Mixed Signal Controller
Manufacturer
Microchip Technology
Datasheet
1.PIC14000-04.pdf
(152 pages)
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
PIC14000-04/SO
Manufacturer:
Microchip Technology
Quantity:
135
Company:
Part Number:
PIC14000-04/SO
Manufacturer:
Maxim
Quantity:
103
Company:
Part Number:
PIC14000-04/SP
Manufacturer:
Microchip
Quantity:
482
Part Number:
PIC14000-04/SP
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Company:
Part Number:
PIC14000-04/SS
Manufacturer:
Microchip Technology
Quantity:
135
Part Number:
PIC14000-04/SS
Manufacturer:
MICROCHI
Quantity:
20 000
PIC14000
BCF
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Example
BSF
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Example
DS40122B-page 94
Bit Clear f
[ label ] BCF
0
0
0
None
Bit 'b' in register 'f' is cleared
1
1
Before Instruction
After Instruction
Bit Set f
[ label ] BSF
0
0
1
None
Bit 'b' in register 'f' is set.
1
1
Before Instruction
After Instruction
BCF
BSF
01
01
f
b
f
b
(f<b>)
(f<b>)
127
127
7
7
FLAG_REG = 0xC7
FLAG_REG = 0x47
FLAG_REG = 0x0A
FLAG_REG = 0x8A
00bb
01bb
FLAG_REG,
FLAG_REG, 7
f,b
f,b
bfff
bfff
7
.
ffff
ffff
Preliminary
BTFSC
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Example
Bit Test, Skip if Clear
[ label ] BTFSC f,b
0
0
skip if (f<b>) = 0
None
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 a NOP is
executed instead, making this a 2 cycle
instruction
1
1(2)
Before Instruction
After Instruction
HERE
FALSE
TRUE
01
f
b
1996 Microchip Technology Inc.
127
7
.
PC =
if FLAG<1> = 0,
PC =
if FLAG<1>=1,
PC =
10bb
BTFSC
GOTO
•
•
•
address HERE
address TRUE
address FALSE
FLAG,1
PROCESS_CODE
bfff
ffff