Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Forums > General Electronics Chat


General Electronics Chat This forum is for general chat about electronics, eg: Dont know what a part does? Dont know how to read a circuit? Want to get an opinion?

Reply
 
LinkBack Thread Tools Display Modes
Old 11th October 2004, 11:09 AM   (permalink)
Default ADC connection problem(help pls urgent)

Hello.. i hv a problem about the connection of ADC.. i am using the MCP3021 (12 bit ADC).. This ADC is control by the PIC.. But when i connect the ADC that is shown in figure 2 it hv some noise and i cannot receive the correct binary value... Figure 1(this it the diagram from 1 site).. Can anyone tell me how to receive the accurate ADC value??
Attached Images
File Type: jpg adc_112.jpg (24.3 KB, 216 views)
kingkong83 is offline  
Old 11th October 2004, 11:16 AM   (permalink)
Default

Any difference between Figure 1 and 2?? But i think it is same right??
kingkong83 is offline  
Old 11th October 2004, 06:02 PM   (permalink)
Default

Using a digital supply for Vref will generally cause at least a few LSBs of uncertainty, which can look bewildering in the digital domain. Do you have this connected to a D/A converter?
Roff is offline  
Old 11th October 2004, 06:22 PM   (permalink)
Default

Describe the noise? Too high, too low, or just changing randomly? How much is it changing? A few mV of noise or all over the scale?

Fig 2 needs a ceramic or tantalum cap from Vdd to Vss, and it must be as close to the ADC as possible.

Be aware the MCP3201 loses accuracy if CLK is below 10kHz.

And of course review your code and verify the timing is being met. Be aware that the PIC samples pins in a different part of its instruction cycle than when it updates outputs, so a port write for the clk immediately followed by a port read is not one instruction cycle apart, timewise. When all else fails, add some NOPs in there.
Oznog is offline  
Reply

Bookmarks

Thread Tools
Display Modes





All times are GMT. The time now is 11:26 PM.


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

eXTReMe Tracker