Originally Posted by
jonas2
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
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
Bookmarks