Referring to 2 different tutorials, i was taught with 2 different codes in assigning/setting the pins as an input or output.
Here is the first :
Here is the second:
Why the first tutorial does move the Bank to bank 1 while the second does not?
Here is the first :
Code:
bsf STATUS,5
movlw 00h
movwf TRISA
bcf STATUS,5
Here is the second:
Code:
movlw 00h
tris GPIO
Why the first tutorial does move the Bank to bank 1 while the second does not?