DatasheetQ Logo
Electronic component search and free download site. Transistors,MosFET ,Diode,Integrated circuits

PIC16F84A-04B/SS 查看數據表(PDF) - Microchip Technology

零件编号
产品描述 (功能)
生产厂家
PIC16F84A-04B/SS
Microchip
Microchip Technology 
PIC16F84A-04B/SS Datasheet PDF : 124 Pages
First Prev 51 52 53 54 55 56 57 58 59 60 Next Last
PIC16F8X
BCF
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
Bit Clear f
[label] BCF f,b
0 f 127
0b7
0 (f<b>)
None
01 00bb bfff ffff
Bit 'b' in register 'f' is cleared.
1
1
Q1
Q2
Q3
Q4
Decode
Read
register
'f'
Process Write
data register 'f'
Example
BCF
FLAG_REG, 7
Before Instruction
FLAG_REG = 0xC7
After Instruction
FLAG_REG = 0x47
BSF
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
Bit Set f
[label] BSF f,b
0 f 127
0b7
1 (f<b>)
None
01 01bb bfff ffff
Bit 'b' in register 'f' is set.
1
1
Q1
Q2
Q3
Q4
Decode
Read
register
'f'
Process Write
data register 'f'
Example
BSF
FLAG_REG, 7
Before Instruction
FLAG_REG = 0x0A
After Instruction
FLAG_REG = 0x8A
DS30430C-page 56
BTFSC
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
Bit Test, Skip if Clear
[label] BTFSC f,b
0 f 127
0b7
skip if (f<b>) = 0
None
01
10bb
bfff ffff
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 2TCY
instruction.
1
1(2)
Q1
Q2
Q3
Q4
Decode
Read
Process No-Operat
register 'f' data
ion
If Skip:
(2nd Cycle)
Q1
Q2
Q3
Q4
No-Operati No-Opera No-Operat
No-Operat
on
tion
ion
ion
Example
HERE
FALSE
TRUE
BTFSC
GOTO
FLAG,1
PROCESS_CODE
Before Instruction
PC = address HERE
After Instruction
if FLAG<1> = 0,
PC = address TRUE
if FLAG<1>=1,
PC = address FALSE
© 1998 Microchip Technology Inc.

Share Link: 

datasheetq.com  [ Privacy Policy ]Request Datasheet ] [ Contact Us ]