PIC16C54-20I/SS Microchip Technology, PIC16C54-20I/SS Datasheet - Page 54
![no-image](/images/manufacturer_photos/0/4/439/microchip_technology_sml.jpg)
PIC16C54-20I/SS
Manufacturer Part Number
PIC16C54-20I/SS
Description
ROM-Based 8-Bit CMOS Microcontroller Series
Manufacturer
Microchip Technology
Datasheet
1.PIC16C54-20ISS.pdf
(194 pages)
- Current page: 54 of 194
- Download datasheet (3Mb)
PIC16C5X
BSF
Syntax:
Operands:
Operation:
Status Affected: None
Encoding:
Description:
Words:
Cycles:
Example:
BTFSC
Syntax:
Operands:
Operation:
Status Affected: None
Encoding:
Description:
Words:
Cycles:
Example:
DS30453D-page 52
Before Instruction
After Instruction
Before Instruction
After Instruction
FLAG_REG = 0x0A
FLAG_REG = 0x8A
PC
if FLAG<1> = 0,
PC
if FLAG<1> = 1,
PC
Bit Set f
[ label ] BSF
0
0
1
Bit ’b’ in register ’f’ is set.
1
1
BSF
Bit Test f, Skip if Clear
[ label ] BTFSC f,b
0
0
skip if (f<b>) = 0
If bit ’b’ in register ’f’ is 0 then the
next instruction is skipped.
If bit ’b’ is 0 then the next instruc-
tion fetched during the current
instruction execution is discarded,
and a NOP is executed instead,
making this a 2-cycle instruction.
1
1(2)
HERE
FALSE
TRUE
0101
0110
f
b
f
b
(f<b>)
= address (HERE)
= address (TRUE);
= address(FALSE)
31
31
7
7
FLAG_REG,
BTFSC
GOTO
•
•
•
bbbf
bbbf
f,b
FLAG,1
PROCESS_CODE
ffff
ffff
7
Preliminary
BTFSS
Syntax:
Operands:
Operation:
Status Affected: None
Encoding:
Description:
Words:
Cycles:
Example:
Before Instruction
After Instruction
PC
If FLAG<1>
PC
if FLAG<1>
PC
Bit Test f, Skip if Set
[ label ] BTFSS f,b
0
0
skip if (f<b>) = 1
If bit ’b’ in register ’f’ is ’1’ then the
next instruction is skipped.
If bit ’b’ is ’1’, then the next instruc-
tion fetched during the current
instruction execution, is discarded
and a NOP is executed instead,
making this a 2-cycle instruction.
1
1(2)
HERE
FALSE
TRUE
0111
f
b < 7
31
=
=
=
=
=
2002 Microchip Technology Inc.
GOTO
BTFSS
bbbf
address (HERE)
0,
address (FALSE);
1,
address (TRUE)
PROCESS_CODE
FLAG,1
ffff
Related parts for PIC16C54-20I/SS
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![PIC16C54-XTI/SO](/photos/6/76/67656/150-18-soic_tmb.jpg)
Part Number:
Description:
IC MCU OTP 512X12 18SOIC
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C54-RC/P](/photos/6/76/67657/18-dip_300mil__tmb.jpg)
Part Number:
Description:
IC MCU OTP 512X12 18DIP
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C54-RC/SO](/photos/6/76/67656/150-18-soic_tmb.jpg)
Part Number:
Description:
IC MCU OTP 512X12 18SOIC
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C54-XT/SO](/photos/6/76/67656/150-18-soic_tmb.jpg)
Part Number:
Description:
IC MCU OTP 512X12 18SOIC
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C54-LP/SO](/photos/6/76/67656/150-18-soic_tmb.jpg)
Part Number:
Description:
IC MCU OTP 512X12 18SOIC
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C54-XTI/P](/photos/6/76/67657/18-dip_300mil__tmb.jpg)
Part Number:
Description:
IC MCU OTP 512X12 18DIP
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C54-RCI/P](/photos/6/76/67657/18-dip_300mil__tmb.jpg)
Part Number:
Description:
IC MCU OTP 512X12 18DIP
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C54-XT/P](/photos/6/76/67657/18-dip_300mil__tmb.jpg)
Part Number:
Description:
IC MCU OTP 512X12 18DIP
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C54-RCI/SO](/photos/6/76/67656/150-18-soic_tmb.jpg)
Part Number:
Description:
IC MCU OTP 512X12 18SOIC
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C54-LPI/P](/photos/6/76/67657/18-dip_300mil__tmb.jpg)
Part Number:
Description:
IC MCU OTP 512X12 18DIP
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C54-LPI/SO](/photos/6/76/67656/150-18-soic_tmb.jpg)
Part Number:
Description:
IC MCU OTP 512X12 18SOIC
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C54-XTE/SO](/photos/6/76/67656/150-18-soic_tmb.jpg)
Part Number:
Description:
IC MCU OTP 512X12 18SOIC
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C54-LP/P](/photos/6/76/67657/18-dip_300mil__tmb.jpg)
Part Number:
Description:
IC MCU OTP 512X12 18DIP
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C54-HS/SO](/photos/6/76/67656/150-18-soic_tmb.jpg)
Part Number:
Description:
IC MCU OTP 512X12 18SOIC
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C54-HS/P](/images/manufacturer_photos/0/4/439/microchip_technology_tmb.jpg)
Part Number:
Description:
IC, 8BIT MCU, PIC16C, 40MHZ, DIP-18
Manufacturer:
Microchip Technology
Datasheet: