PIC12C671-04I/P Microchip Technology Inc., PIC12C671-04I/P Datasheet - Page 73

no-image

PIC12C671-04I/P

Manufacturer Part Number
PIC12C671-04I/P
Description
8 PIN, 1.75 KB OTP, 128 RAM, 6 I/O
Manufacturer
Microchip Technology Inc.
Datasheet

Specifications of PIC12C671-04I/P

A/d Inputs
4-Channel, 8-Bit
Cpu Speed
2.5 MIPS
Eeprom Memory
0 Bytes
Input Output
5
Memory Type
OTP
Number Of Bits
8
Package Type
8-pin PDIP
Programmable Memory
1.75K Bytes
Ram Size
128 Bytes
Speed
4 MHz
Timers
1-8-bit
Voltage, Range
2.5-5.5 V
Lead Free Status / Rohs Status
RoHS Compliant part Electrostatic Device
BCF
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Example
BSF
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Example
1999 Microchip Technology Inc.
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
BCF
BSF
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
00bb
01bb
FLAG_REG,
FLAG_REG, 7
f,b
f,b
bfff
bfff
7
ffff
ffff
BTFSC
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Example
Bit Test, Skip if Clear
[ label ] BTFSC f,b
0
0
skip if (f<b>) = 0
None
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)
Before Instruction
After Instruction
HERE
FALSE
TRUE
01
f
b
PIC12C67X
127
7
PC =
if FLAG<1> = 0,
PC =
if FLAG<1>=1,
PC =
10bb
BTFSC
GOTO
DS30561B-page 73
address HERE
address TRUE
address FALSE
FLAG,1
PROCESS_CO
DE
bfff
ffff

Related parts for PIC12C671-04I/P