PIC16F716-I/P Microchip Technology Inc., PIC16F716-I/P Datasheet - Page 77
PIC16F716-I/P
Manufacturer Part Number
PIC16F716-I/P
Description
18 PIN, 3.5 KB FLASH, 128 RAM, 13 I/O
Manufacturer
Microchip Technology Inc.
Datasheet
1.PIC16F716-IP.pdf
(126 pages)
Specifications of PIC16F716-I/P
A/d Inputs
4-Channel, 8-Bit
Cpu Speed
5 MIPS
Eeprom Memory
0 Bytes
Input Output
13
Memory Type
Flash
Number Of Bits
8
Package Type
18-pin PDIP
Programmable Memory
3.5K Bytes
Ram Size
128 Bytes
Speed
20 MHz
Timers
2-8-bit, 1-16-bit
Voltage, Range
2-5.5 V
Lead Free Status / Rohs Status
RoHS Compliant part
Electrostatic Device
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
PIC16F716-I/P
Manufacturer:
MICROCHIP
Quantity:
5 373
Part Number:
PIC16F716-I/P
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
2003 Microchip Technology Inc.
BTFSS
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Example
Bit Test f, Skip if Set
[ label ] BTFSS f,b
0
0
skip if (f<b>) = 1
None
01
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 a NOP is executed
instead, making this a two-cycle
instruction.
1
1(2)
HERE
FALSE
TRUE
Before Instruction
After Instruction
if FLAG<1> = 1,
f
b < 7
127
PC = address HERE
if FLAG<1> = 0,
PC =
PC =
11bb
BTFSS
GOTO
•
•
•
address FALSE
address TRUE
bfff
REG1
PROCESS_CODE
ffff
Preliminary
CALL
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Example
CLRF
Encoding:
Description:
Words:
Cycles:
Example
Status Affected:
Operands:
Operation:
Syntax:
Call Subroutine
[ label ] CALL k
0
(PC)+ 1
k
(PCLATH<4:3>)
None
10
Call Subroutine. First, return
address (PC+1) is pushed onto
the stack. The eleven bit
immediate address is loaded
into PC bits <10:0>. The upper
bits of the PC are loaded from
PCLATH. CALL is a two-cycle
instruction.
1
2
HERE
Before Instruction
After Instruction
Clear f
[ label ] CLRF
0
00h
1
Z
00
The contents of register ‘f’ are
cleared and the Z bit is set.
1
1
CLRF
Before Instruction
After Instruction
k
f
PC<10:0>,
Z
PC
PC
TOS = Address HERE+1
PIC16F716
REG1
REG1
Z
127
(f)
2047
0kkk
CALL
0001
REG1
TOS,
= Address HERE
= Address THERE
= 0x5A
= 0x00
= 1
DS41206A-page 75
f
kkkk
THERE
1fff
PC<12:11>
kkkk
ffff