I configured my PORTA on mplab as an input but sending one to it does absolutely nothing. Does this means i can only see a change only if its configured as output?
my code goes:
my code goes:
Code:
org 0x00
goto init
org 0x04
nop
retfie
init: bsf STATUS,RP0
bcf STATUS,RP1 ; bank 0
movlw 0xFF
movwf TRISA ; PORTA input
bcf STATUS,RP0
bsf STATUS,RP1 ; bank 2
clrf ANSEL ; PORTA as digital I/O
clrf ANSELH
bcf STATUS,RP1 ; back to bank 1
run: movlw 0xFF
movwf PORTA ;why is PORTA not going high
goto run
end
Last edited: