PDA

View Full Version : ADCON Explanation



eoasap
- 10th December 2005, 23:29
hi! using 18LF8722 and there are two ports that are A/D. i've used the ADCON1 = 7 before, but only when someone on here specifically told me which port to use for a specific chip.

I want to make both these ports digital, but am unsure how. If anyone can tell me how, and also how to interpret the command so i understand it better i'd appreciate it. thanks ;)

mister_e
- 11th December 2005, 09:25
Everything is in the datasheet dude!

look in the adcon1 and CMCON section.

ADCON1=%00001111
CMCON=%00000111

now, turn the volume of your PC to maximum then click on the folowing link ;)
http://www.picbasic.co.uk/forum/showthread.php?t=2050

Acetronics2
- 11th December 2005, 10:11
now, turn the volume of your PC to maximum then click on the folowing link ;)
http://www.picbasic.co.uk/forum/showthread.php?t=2050

Hi, Steve

I'm a little deceived ... I was waiting to something more funny; let's say related to leather and sweat ...
Would have been logical, from where it comes ...

Hi, hi, hi ....

Maudit Français

Alain

eoasap
- 11th December 2005, 14:44
somehow i missed that big chart, i swear i loooked! ;)

Thanks steve, that did the trick.

mister_e
- 11th December 2005, 19:08
@eoasap

Good! Looks like the whip worked OR it works better with eyes open :) just kidding! it happen!

@acetronics

Well i'll try to do better next time... there's always a midpoint between 'What we want to post' and 'what we can post' ;)

<img src=http://www.picbasic.co.uk/forum/attachment.php?attachmentid=653&stc=1&d=1134328059>

Mes salutations a la France!