Sep 28, 2009 #1 M maha384 Junior Member level 3 Joined Apr 7, 2008 Messages 25 Helped 1 Reputation 2 Reaction score 1 Trophy points 1,283 Location Egypt Activity points 1,455 I use the 10-bit ADC "MCP3002" interfaced to AT89s52(using serial communication) to read the voltage changed using a variable resistance 1k ohm. it reads 0V,and 5V but in between the value is not correct and i don't know the reason for that. attached MCP3002 datasheet, c code, pcb.
I use the 10-bit ADC "MCP3002" interfaced to AT89s52(using serial communication) to read the voltage changed using a variable resistance 1k ohm. it reads 0V,and 5V but in between the value is not correct and i don't know the reason for that. attached MCP3002 datasheet, c code, pcb.
Oct 3, 2009 #2 bobcat1 Advanced Member level 4 Joined Jul 10, 2002 Messages 1,284 Helped 99 Reputation 198 Reaction score 34 Trophy points 1,328 Activity points 8,546 HI Its look like a noise problem Please add some ceramic 0.1 & 0.01 uF capacitor on the ADC power pin as close as possible Please upload schematic diagram fof the circuit All the best The microcontroller specialist
HI Its look like a noise problem Please add some ceramic 0.1 & 0.01 uF capacitor on the ADC power pin as close as possible Please upload schematic diagram fof the circuit All the best The microcontroller specialist
Oct 6, 2009 #3 M maha384 Junior Member level 3 Joined Apr 7, 2008 Messages 25 Helped 1 Reputation 2 Reaction score 1 Trophy points 1,283 Location Egypt Activity points 1,455 i already add the capacitors but not ceramic and the schematic is uploaded thanks for reply