aljamri Member Jul 5, 2010 #21 I think you need to add x to your hex numbers gai_man_de said: Can anyone explain and help me to solve that problem? Thanks. My code is: BANKSEL TRISA CLRF TRISA BANKSEL PORTA MOVLW 0xFF MOVWF PORTA BANSEL TRISA MOVLW 0xFF MOVWF TRISA value of PORTA and TRISA after my code is: TRISA : 11111111 PORTA : 01000000 Click to expand...
I think you need to add x to your hex numbers gai_man_de said: Can anyone explain and help me to solve that problem? Thanks. My code is: BANKSEL TRISA CLRF TRISA BANKSEL PORTA MOVLW 0xFF MOVWF PORTA BANSEL TRISA MOVLW 0xFF MOVWF TRISA value of PORTA and TRISA after my code is: TRISA : 11111111 PORTA : 01000000 Click to expand...
gai_man_de New Member Jul 7, 2010 #22 Pommie said: You need to turn off the analogue function. See post 3 of this thread for details. Mike. Click to expand... Thanks. I forgot to turn of ADC in PORTA and change signal to PORTA is digital (not analog). Now, it run correctly
Pommie said: You need to turn off the analogue function. See post 3 of this thread for details. Mike. Click to expand... Thanks. I forgot to turn of ADC in PORTA and change signal to PORTA is digital (not analog). Now, it run correctly
gai_man_de New Member Jul 7, 2010 #23 aljamri said: I think you need to add x to your hex numbers Click to expand... I added '0' front of 'FF' to make it as number, not label or variable. Of course, it equals 0xFF Thanks any way!
aljamri said: I think you need to add x to your hex numbers Click to expand... I added '0' front of 'FF' to make it as number, not label or variable. Of course, it equals 0xFF Thanks any way!