PIC16F716-I/SS Microchip Technology Inc., PIC16F716-I/SS Datasheet - Page 20

no-image

PIC16F716-I/SS

Manufacturer Part Number
PIC16F716-I/SS
Description
MCU, 8-Bit, 2KW Flash, 128 RAM, 13 I/O, SSOP-20
Manufacturer
Microchip Technology Inc.
Datasheet

Specifications of PIC16F716-I/SS

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
20-pin SSOP
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
Part Number:
PIC16F716-I/SS
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
PIC16F716
2.5
The INDF register is not a physical register. Addressing
INDF actually addresses the register whose address is
contained in the FSR register (FSR is a pointer). This is
indirect addressing.
EXAMPLE 2-1:
• Register file 05 contains the value 10h
• Register file 06 contains the value 0Ah
• Load the value 05 into the FSR register
• A read of the INDF register will return the value of
• Increment the value of the FSR register by one
• A read of the INDR register now will return the
Reading INDF itself indirectly (FSR = 0) will produce
00h. Writing to the INDF register indirectly results in a
no-operation (although Status bits may be affected).
A simple program to clear RAM locations 20h-2Fh
using indirect addressing is shown in Example 2-2.
FIGURE 2-4:
DS41206B-page 18
10h
(FSR = 06)
value of 0Ah.
RP1: RP0
bank select
(2)
Note 1:
Indirect Addressing, INDF and
FSR Registers
2:
3:
location select
6
Direct Addressing
For register file map detail see Figure 2-2.
Maintain clear for upward compatibility with future products.
Not implemented.
Data
Memory
DIRECT/INDIRECT ADDRESSING
INDIRECT ADDRESSING
from opcode
(1)
00h
7Fh
Bank 0
00
0
80h
FFh
Bank 1
01
100h
17Fh
Bank 2
10
(3)
EXAMPLE 2-2:
An effective 9-bit address is obtained by concatenating
the 8-bit FSR register and the IRP bit of the STATUS
register, as shown in Figure 2-4. However, IRP is not
used in the PIC16F716.
NEXT
CONTINUE
180h
1FFh
Bank 3
11
(3)
IRP
(2)
bank select
MOVLW
MOVWF
CLRF
INCF
BTFSS
GOTO
:
7
Indirect Addressing
0x20
FSR
INDF
FSR
FSR,4
NEXT
HOW TO CLEAR RAM
USING INDIRECT
ADDRESSING
© 2007 Microchip Technology Inc.
;initialize pointer
;to RAM
;clear RAM & FSR
;inc pointer
;all done?
;no, clear next
;yes, continue
FSR register
location select
0

Related parts for PIC16F716-I/SS