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

1 day ago
40

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...