PIC16C923-04I/CL Microchip Technology, PIC16C923-04I/CL Datasheet - Page 123

no-image

PIC16C923-04I/CL

Manufacturer Part Number
PIC16C923-04I/CL
Description
8-Bit CMOS Microcontroller with LCD Driver
Manufacturer
Microchip Technology
Datasheet
BSF
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
Example
1997 Microchip Technology Inc.
Bit Set f
[ label ] BSF
0
0
1
None
Bit 'b' in register 'f' is set.
1
1
Before Instruction
After Instruction
Decode
BSF
Q1
01
f
b
(f<b>)
127
7
FLAG_REG = 0x0A
FLAG_REG = 0x8A
register
01bb
FLAG_REG,
Read
Q2
'f'
f,b
Process
bfff
data
Q3
7
register 'f'
ffff
Write
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)
Operation
Decode
HERE
FALSE
TRUE
01
Q1
Q1
No-
f
b
PIC16C9XX
127
7
PC =
if FLAG<1> = 0,
PC =
if FLAG<1>=1,
PC =
.
Operation
register 'f'
10bb
BTFSC
GOTO
Read
Q2
Q2
No-
DS30444E - page 123
address HERE
address TRUE
address FALSE
FLAG,1
PROCESS_CODE
Operation
bfff
Process
data
Q3
Q3
No-
Operation
Operation
ffff
CY
Q4
No-
Q4
No-

Related parts for PIC16C923-04I/CL