16F84 MICROCHIP [Microchip Technology], 16F84 Datasheet - Page 56

no-image

16F84

Manufacturer Part Number
16F84
Description
18-pin Flash/EEPROM 8-Bit Microcontrollers
Manufacturer
MICROCHIP [Microchip Technology]
Datasheet
PIC16F8X
BCF
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
Example
BSF
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
Example
DS30430C-page 56
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
Decode
BCF
Decode
BSF
Q1
Q1
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
register
register
00bb
01bb
FLAG_REG,
Read
FLAG_REG, 7
Read
Q2
Q2
'f'
'f'
f,b
f,b
Process
Process
bfff
bfff
data
data
Q3
Q3
.
7
register 'f'
register 'f'
ffff
ffff
Write
Write
Q4
Q4
BTFSC
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
Example
If Skip:
Bit Test, Skip if Clear
[ label ] BTFSC f,b
0
0
skip if (f<b>) = 0
None
If bit 'b' in register 'f' is '1' then the next
instruction is executed.
If bit 'b', in register 'f', is '0' then the next
instruction is discarded, and a NOP is
executed instead, making this a 2T
instruction
1
1(2)
Before Instruction
After Instruction
(2nd Cycle)
No-Operat
HERE
FALSE
TRUE
Decode
01
Q1
Q1
ion
f
b
1998 Microchip Technology Inc.
127
7
PC =
if FLAG<1> = 0,
PC =
if FLAG<1>=1,
PC =
.
No-Operati
register 'f'
10bb
BTFSC
GOTO
Read
Q2
Q2
on
address HERE
address TRUE
address FALSE
FLAG,1
PROCESS_CODE
No-Opera
Process
bfff
data
Q3
Q3
tion
No-Operat
No-Operat
ffff
CY
Q4
Q4
ion
ion

Related parts for 16F84