A lot of PICs have analog on portA. If the one you are using shutting the ADC off may help.
Go to the FAQ section and look for a thread about portA not working.
A lot of PICs have analog on portA. If the one you are using shutting the ADC off may help.
Go to the FAQ section and look for a thread about portA not working.
Dave
Always wear safety glasses while programming.
I disabled the A/D converter ADCON0 = 0, but the problem remains. Strange.
What PIC are you using?
Dave
Always wear safety glasses while programming.
Check the data sheet but if I remember correctly ADCON1 is the register to set on that PIC.
ADCON1 = %01111111
makes all digital.
Dave
Always wear safety glasses while programming.
Hmmm.
How are the configs set?
Dave
Always wear safety glasses while programming.
I finally found the solution. You cannot clear PORTA
when I removed the code
'PORTA = %01000000 ' Clear PORTA
It worked on the first 'release from reset'. Now all I need is to indivually clear each bit.
Bookmarks