ADC PCB layout help
Jonathan
Posts: 1,023
Hi All,
I am finally going to join the modern world and stop mucking about making my own PCB's. To this end I am modifying one of the existing Prop boards (on Ray's site) or perhaps making a couple of daughter boards. I think I am going to modify a Prop baord to put an xbee on it and have the ADC on it's own board.
Anyway, since layout is important for good ADC performance, I was hoping that someone could share a layout. I'm happy using just about any 12 bit ADC, as long as there is an object for it. Even if it isn't connected to a Prop a good layout example would be very helpful. I'm not talking about anything for an automotive or other very noisy environment, just a decent place to start.
Of course, I'll send Ray any layouts I come up with for all to use.
Jonathan
I am finally going to join the modern world and stop mucking about making my own PCB's. To this end I am modifying one of the existing Prop boards (on Ray's site) or perhaps making a couple of daughter boards. I think I am going to modify a Prop baord to put an xbee on it and have the ADC on it's own board.
Anyway, since layout is important for good ADC performance, I was hoping that someone could share a layout. I'm happy using just about any 12 bit ADC, as long as there is an object for it. Even if it isn't connected to a Prop a good layout example would be very helpful. I'm not talking about anything for an automotive or other very noisy environment, just a decent place to start.
Of course, I'll send Ray any layouts I come up with for all to use.
Jonathan
Comments
This is because there are often special requirements for ADC chips.
Otherwise there are some good references on the web - google is your friend.
You will find these sources much better than we can describe because they usually include diagrams.
I'll keep looking and thanks for the help!
Jonathan
I have been looking and I find many app notes but no actual layout examples. Surely there must be some example layouts somewhere! Maybe I am looking for the wrong key words.
Jonathan
The reality is that ADCs are not that hard unless you desire extremes of precision and higher frequency capture. At those points, noise and adequate sampling rate can become important.
I am guessing that you don't actually have a specific use in mind, but desire to have a general purpose ADC available. Adding a unity-gain op amp to the front end may not be necessary.... though it certainly won't hurt.
The link above is a short presentation from Texas Instruments regarding PCB layout for ADC. They focus on a handful of core principles and then show examples. TI has other great whitepapers, but guys tend to be visual learners with attention spans that require bullet-points.
Note that this is not a copy-and-paste layout for a specific ADC chip. It is more of a list of Do/Don'ts that will keep you to avoid adding noise to your signal. Without following good practices, almost any environment will be sufficiently noisy to affect the last few bits of a 12-bit ADC.
Regarding the previous suggestions to add a unity op amp buffer, it can help but it can also certainly hurt. You are still adding stuff in between your signal and the measurement point, so carefully consider the non-idealities of the op amp (offsets, signal coupling, etc.). That said, an op amp may be necessary if source impedance is within a few orders of magnitude of the ADC input impedance (say, less than 1:5000 ratio).
@hatallica - That PDF was indeed interesting. Still trying to puzzle my way through it.
While both those suggestions were very helpful, I'm still left with a lot of questions, like should the opposite side of the board from the adc be ground plane? Or is it OK to route ADC inputs on the other side? I sure wish I could take a look at an ADC design in a CAD program.
Thanks folks!
Jonathan
Practically speaking, though, there is no one answer. The specific ADC that you use might have one ground pin, or it might have separate analog and digital ground pins. It might measure referenced to analog ground, or it might have differential inputs.
So, I apologize for yet another generic reference, but it shows that there can be several solutions. The basic gist is to keep digital and analog ground paths separate, but still referenced at one single point.
Regarding ground plane - you only need it on one side and the signals can certainly be routed on the other (I am assuming that you will be using a through hole design, which simplified trace routing). In a really simple example that only has a Propeller and a MCP3301, a separate ground plane would be beneath the analog (MCP3301) portion and the digital (Propeller) portion. The two planes would connect at only one point.
Maybe if you have a specific ADC in mind, then I could whip something up really quick in Diptrace and see if I can figure out how to attach the file.
I am planning on using the MCP3208. Spent a bit of time yesterday modifying one of the boards on Ray's site for the Prop. Hope to finish that today. Only changes are that I like using RJ45 and RJ11 connectors, so I am switching the headers over.
Thanks a lot for the help! Really appreciated.
JOnathan
I'm still trying to teach myself SPIN, after decades with the Stamp...which BTW...all you SPIN users, should not discount as a very good controller, especially the SX!
Again, the LTC1298 is a good device, old, like me, but still available, but getting a little more pricy. The MCP3208 is also good, if you need lots of inputs to do the same thing.
I have been using ExpressPCB for just as long, for making boards. They have there own software, which you can download, using there own server. Easy to use IDE, after a short learning curve. Prices are good, which you can Google there web site to check out.
Hope the above helps...DennO
So, most folks I see put the ADC inputs as close to the connectors as they can. You were putting the ADC as close to the uC as possible?
Just sent off my first board to ExpressPCB, a mod of one of the Prop boards on Ray's site. I'll be starting an ADC board this week.
Thanks for all the help. Still surprised one can't just find an existing layout.
Jonathan
gender-slap aside (personally I tend towards hyper-focus and learn by many methods), one of the best and ongoing references on this topic come from Bonnie Baker. A lot of good articles etc via TI, Microchip, EDN, and such. Google her and "Planet Analog"
F
MCP3208 Evaluation Board
Also, I really like this attached schematic from Analog Devices, Inc.:
... very important idea of star ground. If an opamp is used as a buffer it should have low offset (micro volt), high input impedance, low output impedance (~50 ohms), keep max out more than Vref of ADC, be sure reference for AGND is same star-gnd as ADC and supplied power if from Va not Vd. Some opamps are touted as rail to rail but run out of gas as they get close to the rail. Therefore if you have +5V-A supply and an analog input range of 3-4 volts it should be okay.
Or leave it off completely. Do you really need a buffer?
An opamp could be designed in and left off the board with a strap from input to output instead.
PS: I agree Bonnie Baker has many good write ups in EDN.
Great! Just the sort of thing I was looking for. The ADC layout answered many of my questions.
I'm not worried about the op-amp buffer, the signals I am reading are pretty easy. I may throw the place for it on the board. I am certainly going to leave places for a voltage divider and LC filters.
I see in that layout that they didn't leave room for a cap on the inputs. I have often found that caps are helpful in smoothing readings. Mind you, most have been hand soldered on perfboard and had no ground plane. Still, I think I'll leave places for some caps too.
Thanks for all the help, folks. I'm feeling better about laying out a PCB.
Jonathan