When setting Equates I have noticed something in examples I've seen.
In an example, the programmer wrote:
PORTA equ 05
TRISA equ 05
PORTB equ 06
TRISB equ 06
Yet, in the datasheet for the referenced PIC, it says porta address is 05h while trisa address is 85h, same for portb and trisb (06h and 86h respectively). Can someone explain this to me? Wouldn't specifying trisa and b as 0x instead of 8x cause a problem?
In an example, the programmer wrote:
PORTA equ 05
TRISA equ 05
PORTB equ 06
TRISB equ 06
Yet, in the datasheet for the referenced PIC, it says porta address is 05h while trisa address is 85h, same for portb and trisb (06h and 86h respectively). Can someone explain this to me? Wouldn't specifying trisa and b as 0x instead of 8x cause a problem?