PIC12C508A-04/EJW MICROCHIP [Microchip Technology], PIC12C508A-04/EJW Datasheet - Page 50
PIC12C508A-04/EJW
Manufacturer Part Number
PIC12C508A-04/EJW
Description
8-Pin, 8-Bit CMOS Microcontrollers
Manufacturer
MICROCHIP [Microchip Technology]
Datasheet
1.PIC12C508A-04EJW.pdf
(113 pages)
- Current page: 50 of 113
- Download datasheet (2Mb)
PIC12C5XX
BSF
Syntax:
Operands:
Operation:
Status Affected: None
Encoding:
Description:
Words:
Cycles:
Example:
BTFSC
Syntax:
Operands:
Operation:
Status Affected: None
Encoding:
Description:
Words:
Cycles:
Example:
DS40139E-page 50
Before Instruction
After Instruction
Before Instruction
After Instruction
FLAG_REG = 0x0A
FLAG_REG = 0x8A
PC
if FLAG<1>
PC
if FLAG<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 instruction
fetched during the current instruction
execution is discarded, and an NOP is
executed instead, making this a 2 cycle
instruction.
1
1(2)
HERE
FALSE
TRUE
0110
0101
f
b
f
b
=
=
=
=
=
(f<b>)
31
31
7
7
FLAG_REG,
BTFSC
GOTO
•
•
•
address (HERE)
0,
address (TRUE);
1,
address(FALSE)
bbbf
bbbf
f,b
FLAG,1
PROCESS_CODE
ffff
ffff
7
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 instruction
fetched during the current instruction
execution, is discarded and an NOP is
executed instead, making this a 2 cycle
instruction.
1
1(2)
HERE
FALSE
TRUE
0111
f
b < 7
=
=
=
=
=
31
1999 Microchip Technology Inc.
BTFSS
GOTO
address (HERE)
0,
address (FALSE);
1,
address (TRUE)
bbbf
FLAG,1
PROCESS_CODE
ffff
Related parts for PIC12C508A-04/EJW
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
Part Number:
Description:
IC MCU OTP 512X12 8-SOIJ
Manufacturer:
Microchip Technology
Datasheet:
Part Number:
Description:
IC MCU OTP 512X12 8DIP
Manufacturer:
Microchip Technology
Datasheet:
Part Number:
Description:
IC MCU OTP 512X12 8-SOIJ
Manufacturer:
Microchip Technology
Datasheet:
Part Number:
Description:
IC MCU OTP 512X12 8DIP
Manufacturer:
Microchip Technology
Datasheet:
Part Number:
Description:
IC MCU OTP 512X12 8SOIC
Manufacturer:
Microchip Technology
Datasheet:
Part Number:
Description:
IC MCU OTP 512X12 8SOIC
Manufacturer:
Microchip Technology
Datasheet:
Part Number:
Description:
8-Pin/ 8-Bit CMOS Microcontrollers
Manufacturer:
Microchip Technology
Datasheet:
Part Number:
Description:
IC MCU OTP 512X12 8DIP
Manufacturer:
Microchip Technology
Datasheet:
Part Number:
Description:
IC MCU OTP 512X12 8-SOIJ
Manufacturer:
Microchip Technology
Datasheet:
Part Number:
Description:
IC MCU OTP 512X12 8DFN
Manufacturer:
Microchip Technology
Datasheet:
Part Number:
Description:
IC MCU EPROM 512X12 8CDIP
Manufacturer:
Microchip Technology
Datasheet:
Part Number:
Description:
IC,MICROCONTROLLER,8-BIT,PIC CPU,CMOS,SOP,8PIN,PLASTIC
Manufacturer:
Microchip Technology
Datasheet:
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
Part Number:
Description:
IC MCU OTP 512X12 8DIP
Manufacturer:
Microchip Technology
Datasheet:
Part Number:
Description:
IC MCU OTP 512X12 8-SOIJ
Manufacturer:
Microchip Technology
Datasheet: