PIC16C620 Microchip Technology, PIC16C620 Datasheet - Page 24

no-image

PIC16C620

Manufacturer Part Number
PIC16C620
Description
EPROM-Based 8-Bit CMOS Microcontroller
Manufacturer
Microchip Technology
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC16C620-04/SS
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC16C620-04I/P
Quantity:
8
Part Number:
PIC16C620/JW
Manufacturer:
MICROCH
Quantity:
20 000
Part Number:
PIC16C620A-04/P
Quantity:
19
Part Number:
PIC16C620A-04/P
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC16C620A-04/SO
Manufacturer:
MICROCHI
Quantity:
84
Part Number:
PIC16C620A-04/SO
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC16C620A-041/P
Quantity:
358
Part Number:
PIC16C620A-04I/P
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC16C620A-04I/SS
Manufacturer:
Microchip Technology
Quantity:
135
Part Number:
PIC16C620A-40/P
Manufacturer:
Microchip Technology
Quantity:
135
PIC16C62X
4.4
The INDF register is not a physical register. Addressing
the INDF register will cause indirect addressing.
Indirect addressing is possible by using the INDF reg-
ister. Any instruction using the INDF register actually
accesses data pointed to by the file select register
(FSR). Reading INDF itself indirectly will produce 00h.
Writing to the INDF register indirectly results in a
no-operation (although status bits may be affected). An
effective 9-bit address is obtained by concatenating the
8-bit FSR register and the IRP bit (STATUS<7>), as
shown in Figure 4-15. However, IRP is not used in the
PIC16C62X.
A simple program to clear RAM location 20h-2Fh using
indirect addressing is shown in Example 4-1.
FIGURE 4-15: DIRECT/INDIRECT ADDRESSING PIC16C62X
DS30235G-page 24
(1)
bank select
RP1 RP0
For memory map detail see (Figure 4-4, Figure 4-5, Figure 4-6 and Figure 4-7).
Note 1: The RP1 and IRP bits are reserved, always maintain these bits clear.
Indirect Addressing, INDF and FSR
Registers
location select
6
Direct Addressing
Data
Memory
from opcode
7Fh
00h
Bank 0
00
0
Bank 1
01
Preliminary
Bank 2
10
not used
NEXT
CONTINUE:
EXAMPLE 4-1:
Bank 3
11
IRP
movlw
movwf
clrf
incf
btfss
goto
bank select
180h
1FFh
(1)
INDIRECT ADDRESSING
0x20
FSR
INDF
FSR
FSR,4
NEXT
7
Indirect Addressing
1998 Microchip Technology Inc.
;initialize pointer
;to RAM
;clear INDF register
;inc pointer
;all done?
;no clear next
;yes continue
FSR register
location select
0

Related parts for PIC16C620