Electronic Components Datasheet Search
  New Zealand  ▼
ALLDATASHEET.CO.NZ

X  

PIC16C57C Datasheet(PDF) 33 Page - Microchip Technology

Part # PIC16C57C
Description  EPROM/ROM-Based 8-bit CMOS Microcontroller Series
PDF  192 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  MICROCHIP [Microchip Technology]
Direct Link  http://www.microchip.com
Logo MICROCHIP - Microchip Technology

PIC16C57C Datasheet(HTML) 33 Page - Microchip Technology

Back Button PIC16C57C Datasheet HTML 29Page - Microchip Technology PIC16C57C Datasheet HTML 30Page - Microchip Technology PIC16C57C Datasheet HTML 31Page - Microchip Technology PIC16C57C Datasheet HTML 32Page - Microchip Technology PIC16C57C Datasheet HTML 33Page - Microchip Technology PIC16C57C Datasheet HTML 34Page - Microchip Technology PIC16C57C Datasheet HTML 35Page - Microchip Technology PIC16C57C Datasheet HTML 36Page - Microchip Technology PIC16C57C Datasheet HTML 37Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 33 / 192 page
background image
 1997-2013 Microchip Technology Inc.
Preliminary
DS30453E-page 33
PIC16C5X
6.7
Indirect Data Addressing; INDF
and FSR Registers
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 6-1:
INDIRECT ADDRESSING
• Register file 08 contains the value 10h
• Register file 09 contains the value 0Ah
• Load the value 08 into the FSR Register
• A read of the INDF Register will return the value
of 10h
• Increment the value of the FSR Register by one
(FSR = 09h)
• A read of the INDF register now will return the
value of 0Ah.
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 10h-1Fh
using indirect addressing is shown in Example 6-2.
EXAMPLE 6-2:
HOW TO CLEAR RAM
USING INDIRECT
ADDRESSING
MOVLW
H'10'
;initialize pointer
MOVWF
FSR
; to RAM
NEXT
CLRF
INDF
;clear INDF Register
INCF
FSR,F
;inc pointer
BTFSC
FSR,4
;all done?
GOTO
NEXT
;NO, clear next
CONTINUE
:
;YES, continue
The FSR is either a 5-bit (PIC16C54, PIC16CR54,
PIC16C55,
PIC16C56,
PIC16CR56)
or
7-bit
(PIC16C57, PIC16CR57, PIC16C58, PIC16CR58)
wide register. It is used in conjunction with the INDF
Register to indirectly address the data memory area.
The FSR<4:0> bits are used to select data memory
addresses 00h to 1Fh.
PIC16C54,
PIC16CR54,
PIC16C55,
PIC16C56,
PIC16CR56: These do not use banking. FSR<6:5> bits
are unimplemented and read as '1's.
PIC16C57,
PIC16CR57,
PIC16C58,
PIC16CR58:
FSR<6:5> are the bank select bits and are used to
select the bank to be addressed (00 = bank 0,
01
=bank 1, 10 = bank 2, 11 = bank 3).
FIGURE 6-10:
DIRECT/INDIRECT ADDRESSING
Note
1: For register map detail see Section 6.2.
bank
location select
location select
bank select
Indirect Addressing
Direct Addressing
Data
Memory(1)
0Fh
10h
Bank 0
Bank 1
Bank 2
Bank 3
0
4
5
6
(FSR)
10
00
01
11
00h
1Fh
3Fh
5Fh
7Fh
(opcode)
0
4
5
6
(FSR)
Addresses map back to
addresses in Bank 0.
3
2
1
3
2
1



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com