PIC17C42 Microchip Technology, PIC17C42 Datasheet - Page 115

no-image

PIC17C42

Manufacturer Part Number
PIC17C42
Description
High-Performance 8-Bit CMOS EPROM/ROM Microcontroller
Manufacturer
Microchip Technology
Datasheets

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC17C42-16/JW
Manufacturer:
AD
Quantity:
12
Part Number:
PIC17C42A-16/L
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC17C42A-16/PQ
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC17C42A-16/PQ
Manufacturer:
MICROCH
Quantity:
20 000
Part Number:
PIC17C42A-16/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC17C42A-16E/L
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC17C42A-16E/PQ
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC17C42A-25/P
Manufacturer:
MICROCLOCK
Quantity:
20 000
BSF
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
Example:
1996 Microchip Technology Inc.
Before Instruction
After Instruction
Decode
FLAG_REG= 0x0A
FLAG_REG= 0x8A
Q1
register 'f'
Bit Set f
[ label ] BSF
0
0
1
Bit 'b' in register 'f' is set.
1
1
BSF
None
Read
1000
Q2
f
b
(f<b>)
255
7
FLAG_REG, 7
0bbb
Execute
Q3
f,b
ffff
register 'f'
Write
Q4
ffff
BTFSC
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
If skip:
Example:
Before Instruction
After Instruction
Forced NOP
Decode
PC
If FLAG<1>
If FLAG<1>
Q1
Q1
PC
PC
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 exe-
cution is discarded, and a NOP is exe-
cuted instead, making this a two-cycle
instruction.
1
1(2)
HERE
FALSE
TRUE
register 'f'
1001
Read
NOP
=
=
=
Q2
Q2
=
=
f
b
255
7
address (HERE)
0;
address (TRUE)
1;
address (FALSE)
PIC17C4X
BTFSC
:
:
1bbb
Execute
Execute
DS30412C-page 115
Q3
Q3
FLAG,1
ffff
NOP
NOP
Q4
Q4
ffff

Related parts for PIC17C42