Except for PORTA.0, you've set all PORTA pins to OUTPUT mode.
By default at power-up, all pins are in INPUT mode.Code:TRISA = 1 ; All PORTA as inputa
So unless you need to set a pin to output, you don't need to change the TRIS register.
Except for PORTA.0, you've set all PORTA pins to OUTPUT mode.
By default at power-up, all pins are in INPUT mode.Code:TRISA = 1 ; All PORTA as inputa
So unless you need to set a pin to output, you don't need to change the TRIS register.
DT
Bookmarks