DatasheetQ Logo
Electronic component search and free download site. Transistors,MosFET ,Diode,Integrated circuits

PIC16LC773-20/SP View Datasheet(PDF) - Microchip Technology

Part Name
Description
Manufacturer
PIC16LC773-20/SP
Microchip
Microchip Technology 
PIC16LC773-20/SP Datasheet PDF : 202 Pages
First Prev 21 22 23 24 25 26 27 28 29 30 Next Last
PIC16C77X
The INDF register is not a physical register. Address-
ing INDF actually addresses the register whose
address is contained in the FSR register (FSR is a
pointer). This is indirect addressing.
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-1.
FIGURE 2-11: DIRECT/INDIRECT ADDRESSING
RP1:RP0
Direct Addressing
6
from opcode
0
EXAMPLE 2-1: HOW TO CLEAR RAM
USING INDIRECT
ADDRESSING
NEXT
CONTINUE
movlw
movwf
clrf
incf
btfss
goto
:
0x20 ;initialize pointer
FSR ; to RAM
INDF ;clear INDF register
FSR ;inc pointer
FSR,4 ;all done?
NEXT ;NO, clear next
;YES, continue
An effective 9-bit address is obtained by concatenating
the 8-bit FSR register and the IRP bit (STATUS<7>), as
shown in Figure 2-11.
Indirect Addressing
IRP
7
FSR register
0
bank select location select
00
00h
01
80h
10
100h
11
180h
bank select
location select
Data
Memory(1)
7Fh
FFh
17Fh
1FFh
Bank 0 Bank 1 Bank 2 Bank 3
Note 1: For register file map detail see Figure 2-2.
1999-2013 Microchip Technology Inc.
Advance Information
DS30275B-page 25

Share Link: 

datasheetq.com  [ Privacy Policy ]Request Datasheet ] [ Contact Us ]