I added spaces:
trisio= % 00010000
I added spaces:
trisio= % 00010000
It looks like it should work. Back up and write a program to blink an LED on GPIO.1 and 5. Just to test.
Dave
Always wear safety glasses while programming.
Hi
You are setting gpio.5 as input with trisio = 100000
Only gpio.3 must be set to work as adc.
Then the correct trisio = 1000. Or = 8
Greetings...
Ruben de la Pena .
Sorry, my mistake...
I did not see the data sheet and I have not used this Pic.
I read you need use AN3 as adc input and I assumed this was at Gpio.3.
It is at Gpio.4, then you need set trisio.4 as input and the correspondent pin at Ansel.
But Trisio.5 MUST BE CLEARED to work as output.
Greetings...
Ruben de la Pena V.
Bookmarks