Quote Originally Posted by Mugelpower View Post
Hello Ace,

But the data sheet page 114 tells us (you, not me) how to set the adcon0 register bit to select channel 6 = RB7.

So, thats REALLY irritating to me.

so I hope thats clear enough for you.

.
Mhhhh,

I do not understand you : you ask for code ready to paste !!!

No, no, no ...



Forget the ' 675


Just take your '88 datasheet ADC section ...
READ it carefully,

beginning by the ANSEL config

WHAT do you have to write to select Channel 6 ( RB 7 ) ???

Now ADCON 0 Config

WHAT do you have to write to select RC clock ?, Channel 6 ?, AD OFF ( ADCIN will turn it ON in time )

Now, ADCON 1 Config

WHAT do you have to write to select Right justif. ?, Voltage refs ???

THAT's all you have to do ... but that must suit your harware config !!!


You don't see here ANY ref to other existing devices ... so, forget that " cut ( ? ) and paste" horrible habit.

Alain