English
Language : 

PIC17C75X Datasheet, PDF (191/320 Pages) Microchip Technology – High-Performance 8-Bit CMOS EPROM Microcontrollers
BSF
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
Q1
Decode
Bit Set f
[ label ] BSF f,b
0 ≤ f ≤ 255
0≤b≤7
1 → (f<b>)
None
1000 0bbb ffff
Bit 'b' in register 'f' is set.
1
1
ffff
Q2
Read
register 'f'
Q3
Process
Data
Q4
Write
register 'f'
Example:
BSF
FLAG_REG, 7
Before Instruction
FLAG_REG= 0x0A
After Instruction
FLAG_REG= 0x8A
PIC17C75X
BTFSC
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
Q1
Decode
If skip:
Q1
No
operation
Bit Test, skip if Clear
[ label ] BTFSC f,b
0 ≤ f ≤ 255
0≤b≤7
skip if (f<b>) = 0
None
1001 1bbb ffff 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 exe-
cution is discarded, and a NOP is exe-
cuted instead, making this a two-cycle
instruction.
1
1(2)
Q2
Read
register 'f'
Q3
Process
Data
Q4
No
operation
Q2
No
operation
Q3
No
operation
Q4
No
operation
Example:
HERE
FALSE
TRUE
BTFSC
:
:
FLAG,1
Before Instruction
PC
= address (HERE)
After Instruction
If FLAG<1> =
PC
=
If FLAG<1> =
PC
=
0;
address (TRUE)
1;
address (FALSE)
© 1997 Microchip Technology Inc.
DS30264A-page 191