PDA

View Full Version : Newbie with 16f627 problem (Getting the A/D working!!!)



paul webb
- 13th September 2005, 17:42
Hi All
I hope someone can help me, i have played witht he 16c84 sometime ago and have just started playing again, now i have the 16f627 chip and want to use one of its portA inputs as Analogue and the other portA inputs as digital, and to simply out put the digital value on portB ,it sounds easy but i have no real idea where to start, just coding in assembly at the moment till i understand whats going on. anyone help with example code that would be great, i have looked on the web but no luck for such a simple thing.
cheers
Paul

Melanie
- 13th September 2005, 18:14
Datasheet! Dowload the Datasheet and read it... last I checked, the 16F627 didn't have A/D (which is a pretty good reason why you can't get them to work)... it has Analogue Comparators... the Datasheet does a pretty good job in explaining how to configure and use them.

paul webb
- 13th September 2005, 18:23
Hi Thanks for the quick reply, im off to download the datasheet!
I will read it cover to cover before i say another word!
Thanks again
Paul