dramrattan
Member
PORTA is at address 0x05 and its direction register, TRISA, is at address 0x85,
which means that PORTA is in Bank 0 and TRISA is in Bank 1. Therefore either
indirect addressing or bank switching must be performed to access the direction register. How do i writea simply assembly code to show how PORTA can be initialized using indirect addressing mode for the PIC16F877?
which means that PORTA is in Bank 0 and TRISA is in Bank 1. Therefore either
indirect addressing or bank switching must be performed to access the direction register. How do i writea simply assembly code to show how PORTA can be initialized using indirect addressing mode for the PIC16F877?