PIC16C773 Microchip Technology, PIC16C773 Datasheet - Page 25

no-image

PIC16C773

Manufacturer Part Number
PIC16C773
Description
28/40-Pin/ 8-Bit CMOS Microcontrollers w/ 12-Bit A/D
Manufacturer
Microchip Technology
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC16C773-E/SS
Quantity:
7
Part Number:
PIC16C773-I/SO
Quantity:
11
Part Number:
PIC16C773-I/SO
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Company:
Part Number:
PIC16C773-I/SO
Quantity:
8 700
Part Number:
PIC16C773/JW
Manufacturer:
Microchip
Quantity:
6
Part Number:
PIC16C773/SO
Manufacturer:
Microchip Technology
Quantity:
135
Part Number:
PIC16C773/SO
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
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
FIGURE 2-11: DIRECT/INDIRECT ADDRESSING
1999 Microchip Technology Inc.
RP1:RP0
bank select
Note 1: For register file map detail see
location select
6
Direct Addressing
Data
Memory(1)
from opcode
00h
7Fh
Bank 0
Example
00
0
Advance Information
80h
FFh
2-1.
Bank 1
Figure
01
2-2.
100h
17Fh
Bank 2
10
EXAMPLE 2-1:
NEXT
CONTINUE
An effective 9-bit address is obtained by concatenating
the 8-bit FSR register and the IRP bit (STATUS<7>), as
shown in
180h
1FFh
Bank 3
11
Figure
IRP
movlw
movwf
clrf
incf
btfss
goto
:
bank select
2-11.
HOW TO CLEAR RAM
USING INDIRECT
ADDRESSING
0x20
FSR
INDF
FSR
FSR,4 ;all done?
NEXT
7
Indirect Addressing
PIC16C77X
;initialize pointer
;
;clear INDF register
;inc pointer
;NO, clear next
;YES, continue
FSR register
to RAM
DS30275A-page 25
location select
0

Related parts for PIC16C773