A-to-D

Status
Not open for further replies.

YAN-1

New Member
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
 
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.
 
Thank you for your response. What value of capacitor woud you recommend? Cermaic or electrolyte?
 
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
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…