Tutorial (9): Creating arrays using indirect addressing in PIC microcontrollers
13:31
2
Tutorial (8): Creating arrays using lookup tables in PIC microcontrollers
17:33
3
Tutorial (7): Creating Software Delay and Hardware Delay in PIC Microcontrollers
51:46
4
Experiment (4): Interrupts in PIC microcontroller
18:26
5
Experiment (3): Creating software delay in PIC microcontroller
28:14
6
Tutorial (6): Branching and Conditional Instructions in PIC Microcontrollers
18:37
7
Tutorial (5): Logical Instructions in PIC microcontrollers
18:53
8
Tutorial (4): Arithmetic Instructions in PIC microcontrollers
27:16
9
Tutorial (3): PIC input/Output Ports with Addition
36:23
10
Tutorial (2) Using Output ports in PIC microcontrollers
15:14
11
Tutorial (1): How to download and install MPLAB of PIC microcontrollers
10:39

Tutorial (9): Creating arrays using indirect addressing in PIC microcontrollers

8 months ago
128

Addressing the INDF register will cause indirect addressing.
Indirect addressing is possible by using the INDF register. Any instruction using the INDF register actually accesses the register pointed to by the File Select Register (FSR).
Reading the INDF register itself, indirectly (FSR = 0) will read 00h. Writing to the INDF register indirectly results in a no operation.
An effective 9-bit address is obtained by concatenating the 8-bit FSR register and the IRP bit .
Indirect addressing can be used to handle several registers without referring to them directly.

Loading 1 comment...