Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
LinkBack Thread Tools Display Modes
Old 30th September 2007, 06:46 PM   (permalink)
Default A-to-D

Hello everyone. I am using the A-to-D module of a PIC 16F877A to convert the value of a certain voltage on RA0 into a digital number. The voltage comes from a drop across a 1-k potentiometer. I was wondering if I am supposed to have a capacitor at the RA0 pin with the gorund in order to clean up the signal or make the conversion better. Your advice is much appreciated.

Nichola V Abdo
__________________
World.......behold........YAN is coming
YAN-1 is offline  
Old 30th September 2007, 07:20 PM   (permalink)
Default

You can try it without the cap, but I think everyone here would recommend a cap to filter out "wiper noise". I would also use a larger pot if there is one available, as it will draw much less current. If it will be battery powered use a higher value.
Ambient is offline  
Old 30th September 2007, 08:05 PM   (permalink)
Default

Thank you for your response. What value of capacitor woud you recommend? Cermaic or electrolyte?
__________________
World.......behold........YAN is coming
YAN-1 is offline  
Old 30th September 2007, 08:57 PM   (permalink)
Default

I wouldn't worry about it - there's usually no need for a capacitor, it will simply slow down the response time. There's even an internal capacitor in the sample and hold.

As for the value of the potentiometer, bear in mind the recommended minimum source impedance feeding the analogue pin - I would suggest going no higher than 4.7K
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline  
Reply

Bookmarks

Thread Tools
Display Modes





All times are GMT. The time now is 09:07 PM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

eXTReMe Tracker