Quote Originally Posted by jonas2 View Post
Hello


This model melanie and I'll add my program routines.
And I need to use the port and having output RA0 and RA1 RA2 RA3
Input, and my question is about the ADCON registers?
<font color=red>I do not configured. </font color>

Thank you
Hello Jonas2,"I do not configured"means . . . you have changed from Melanie's code ?
Anyway, to address your question, I hope. . .
From the DATA SHEET:
ADCON0 = %11000000
bit 0 = 0 ADCON is turned off
bit 1 = 0 unimplemented (not used) read as 0
bit 2 = 0 A/D Go Done conversion not in progress
bit 3 -5 = all zeros A/D channel select bits
bit 5-7 = 11 FRC (clock derived from the internal A/D RC oscillator)

ADCON1 = %00000111
sets all ports to digital