On the 18F4320 I do the toggle to get it working.
Here is the way I do it.
And I have to set ADCON1 with the dec value: ExampleCode:getT2: ADCON0=$5 gosub getAD temp2 = ADRESH return getAD: pause 50 ADCON0.1 = 1 pause 50 return
ADCON1=13
But that is me![]()
Bookmarks