Decoupling caps, the magic component
FredBlais
Posts: 380
I'm writing this topic because I'm becoming confused about when and which value decoupling caps should have, even after long searching on google, I'm still wondering what to do. I'm tired of putting random values without really knowing the reason behind that, and I want to know the effect of not putting one. Some says that it is for removing noise of switching components, does it mean that we do not have to put it on analog component like op amps, buffers or ADCs? Some people are saying to put a "bulk" capacitor near high current chips (like the prop), is it that important, if yes, how much bulky? I even read that we should put a 10nF and 100nF·between each VDD/VSS pair on a chip·(prop 2 should·have lot of that).·I heard on the forum that the prop and the eeprom for the code only needed one decoupling cap, is it a good thing to do?
·
·
Comments
The Propeller PLL circuit can actually be damaged if they are left off. I've known other chips be impossible to program, when I left off the decoupling capacitors as an experiment.
They are also essential on op amps, and on buffers and drivers because of the loads on the outputs.
They won't be effective unless the board is designed properly, of course.
Leon
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Amateur radio callsign: G1HSM
Post Edited (Leon) : 12/14/2009 9:23:05 PM GMT
The more you use the smoother you boot;
The smoother you boot the better you spin;
So use Decoupling caps, and you always win.
(done in the spirit of "beans beans the magical fruit")
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Signature space for rent!
Send $1 to CannibalRobotics.com.
It's good to read the datasheet of the regulator. Some like it, others not!
Nick
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Never use force, just go for a bigger hammer!
The DIY Digital-Readout for mills, lathes etc.:
YADRO
Next you have to think of the types of those caps, they must all react to the broadest mix of load variations, so they must have the lowest Effective Series Reactance. Ceramics for the little ones and good quaility electrolytics ( or tantalums ) along with the shortest broadest power rails.
I try to get two 100nf and two 100Uf tants either side of the Prop, and always cross couple the power pins directly under the 40 pin DIPs.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Style and grace : Nil point
I didn't mean across the regulator pins, but providing bulk decoupling for the whole board.
Leon
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Amateur radio callsign: G1HSM
The bulk cap can go anywhere. Usually at the incoming supply.
What is not said so far is the importance of a wide ground plane. Making the GND copper pour a wide path is good for stability. It reduces an effect aptly named "ground bounce" where a fast impulse can temporarily raise or lower the localised voltage of the GND trace around that one component. This, not too surprisingly, can corrupt a signal.
Actually, those two are interrelated, the decoupling caps can only do their job if the ground plane is sturdy. The capacitors are there to prevent the power supply from also bouncing.
Finally, my opinion on ceramic caps used for power rail decoupling is that you don't need a 10nF if you are using a 100nF and you don't need a 100nF if you are using a 1uF. I say this, and maybe I'm being naive, because ceramics are a pure capacitive construction. What you do need is good placement so that each capacitor does the best job it can.
You need a good ground plane
You need good placement of the bypass chips
If you do this the precise value and mix of bypass cap values is not terribly critical
If you don't do this looking for magic values for the bypass caps will gain you little
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
24 bit LCD Breakout Board now in. $21.99 has backlight driver and touch sensitive decoder.
As a rule of thumb, all IC's should have a 100nF cap across the power pins. Multiple power pins usually means multiple caps. Take a look at the Intel processor chips. You also need tantalums spread about the pcb, depending on the pcbs function. Ground and power planes are pretty essential these days.
For the prop in QFP (for overclocking) I am using 4 x 100nF X7R, 1 x 10nF X7R, 1 x 10uF tantalum. (X7R is a better quality ceramic than a Z5U).
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Links to other interesting threads:
· Home of the MultiBladeProps: TriBlade,·RamBlade,·SixBlade, website
· Single Board Computer:·3 Propeller ICs·and a·TriBladeProp board (ZiCog Z80 Emulator)
· Prop Tools under Development or Completed (Index)
· Emulators: CPUs Z80 etc; Micros Altair etc;· Terminals·VT100 etc; (Index) ZiCog (Z80) , MoCog (6809)
· Search the Propeller forums·(uses advanced Google search)
My cruising website is: ·www.bluemagic.biz·· MultiBladeProp is: www.bluemagic.biz/cluso.htm
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
www.smarthome.viviti.com/propeller
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
24 bit LCD Breakout Board now in. $21.99 has backlight driver and touch sensitive decoder.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chip Gracey
Parallax, Inc.
I would like to say the prop is pretty hearty tho.
I DO have 0.1uf caps on each prop.
Others here know I have been pretty abusive to the poor prop.
Rippin power legs off,
wiring madness :
http://forums.parallax.com/attachment.php?attachmentid=62967
Still works as good as the day I made it.
And I run an object that outputs digital SPDIF audio on that.
[noparse]:)[/noparse]
- Increasing the amount of ground plane is good, because it lowers the effective resistance from your power to your device, and it increases the 'Q' factor of your frequency roll-off.
- Making power rails as short and wide as possible also decreases the effective resistance from power to device, while increasing the 'Q'.
- Some capacitor types are better than others, because they themselves have an internal resistance that factors in as well.
- Using different value capacitors in close proximity parallel to one another is ok also, and most effective if there are multiple "frequency poles" in your power signal that you wish to attenuate. Where one value capacitor fails at a particular frequency roll-off, another value capacitor can take the slack.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe
IC Layout Engineer
Parallax, Inc.
I use toner transfer so 15 mill tracks are the finest, I tend to 40/50 mill VDD and as much on the VSS side as poss (saves on Ferric Chloride as a bonus )
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Style and grace : Nil point
It's not so much the frequency as the rise and fall times, which are independent of the frequency, which cause large switching transients.
It's not a black art; decoupling and PCB layout can even be simulated, if you have lots of $$$.
Leon
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Amateur radio callsign: G1HSM
Respectfully, it is partially a black art. You can simulate pcb design with lots of $$$ and you can measure noise with lots of expensive test equipment (EMI is usually done in conjunction with an external test house except for the largest of companies). However, you cannot usually simulate all the IC's - try simulating the prop design on your $$$ pcb simulators - only Parallax will have access to this information. Chip manufacturers just do not release this sort of information.
You may have to lay a pcb out multiple times to get the power and ground planes quiet enough to pass EMI certification. This, of course, also includes filtering all inputs and outputs to the device (box, not components). Before someone says, that has nothing to do with decoupling.. yes it does. If you do not have a quiet supply, you will have a noisy pcb. To a large extent, a good designer will often minimise this first up. But there is never-the-less the intuition implied in all of this, which also includes experience, and that is a 'black art'. It is an art learned by trial and error, not taught.
There are 3 main factors that cause noise (excluding the pcb layout and decoupling). Frequency of the chip, the rise and fall times particularly on the output pins, and what the chip is doing.
The Rockwell modem chips of the 90's were extremely noisy, and often resulted in numerous iterations of pcbs, with various versions of the ground and power planes, both analog and digital. Decoupling was extremely important, as was filtering all input and output connections.
There is nothing better than a perfect ground and power plane. However, with tiny and close tracks, this quite often is not easy, even with multilayer pcbs.
I always start with the power and ground layouts. Of course, adding in the tracks will lead to modifications.
Now, having said all of the above, where does that leave the prop?
The prop switches largish currents on the power pins when cog(s) start and stop. Sapieha discovered this. This also occurs with waitxxx instructions. This is one of the reasons Sapieha and I recommend a 10uF tantalum close to the prop power pins. I have provision for additional decoupling caps immediately under the prop chips power and ground pins (TriBlade and RamBlade). We have discovered by experiments that by placing better decoupling at the power/ground pins and good power/ground planes, we can overclock the prop considerably. Sapieha has had a TriBlade running at 120MHz (15MHz pllx8) for well over 6 months now. I am expecting to get similar performance out of the RamBlade.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Links to other interesting threads:
· Home of the MultiBladeProps: TriBlade,·RamBlade,·SixBlade, website
· Single Board Computer:·3 Propeller ICs·and a·TriBladeProp board (ZiCog Z80 Emulator)
· Prop Tools under Development or Completed (Index)
· Emulators: CPUs Z80 etc; Micros Altair etc;· Terminals·VT100 etc; (Index) ZiCog (Z80) , MoCog (6809)
· Search the Propeller forums·(uses advanced Google search)
My cruising website is: ·www.bluemagic.biz·· MultiBladeProp is: www.bluemagic.biz/cluso.htm
We used to book the test facility for a half-day and operate the equipment ourselves for initial testing, which was quite cheap. Any problems were easily identified and fixed and the actual testing was just a formality.
Leon
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Amateur radio callsign: G1HSM
Post Edited (Leon) : 12/15/2009 2:57:21 PM GMT
(great thread all --this is very relevant to me right now)
Let me state that query better.
At a given clock, there is this current occurring with COG run state change. At a different clock, would that current change, and if so how?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Propeller Wiki: Share the coolness!
Chat in real time with other Propellerheads on IRC #propeller @ freenode.net
Safety Tip: Life is as good as YOU think it is!
One egg, one chicken ...
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Style and grace : Nil point
By the way, Leon, when do you use ferrite?
Post Edited (FredBlais) : 12/15/2009 11:35:43 PM GMT
I've not read how Sapieha measured it. It's likely that the method of conclusions here is by means of working out, by trial and error, which instructions crashed a Cog when running at the limit of the Prop then using better capacitors to strengthen the power rails rather than monitoring the actual current pulses. These sorts of tweaks do work but it doesn't mean the variations in power demands are notable.
Each running Cog has a demand. I/O pins have a decent demand. Hub accesses may incur a little extra, this could explain a Cog startup surge, particularly if starting all Cogs at once. I can't see any good reason why a Wait instruction needs more power, it's more likely they are just more timing sensitive.
To answer your second question: Yes, the whole IC's power usage is clockrate dependent. And it's not linear either. Every transition requires current to charge/discharge the mosfet gate charges of the following transistors. The speed of the switching is an RC time curve. As the clockrate approaches the knee of this curve the power requirements start rising rapidly. And your nice little digital chip is fast entering the analogue world.
You use them to separate the power plane into smaller areas. good example is the beagle board. look at its schematic. especially around the hdmi output.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
24 bit LCD Breakout Board now in. $21.99 has backlight driver and touch sensitive decoder.
·
Leon
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Amateur radio callsign: G1HSM
Power surges result when the chip turns some part of it's circuits on. The waitxxx instruction stops parts of the cog's circuits and when the point is reached, it turns on again. Quite often this could be followed immediately with output pins changing. All this current adds up. Although this is small in the overall scenario, it depletes the bypass caps if insufficient. The frequency has two effects... firstly, the current used by the chip increases with frequency. Secondly, things happen quicker with higher frequency, which may also increase the current demand. However, the rise times are determined by the chip's geometries, loading, and track capacitance, and not to do with the chip frequency.
So, you can see, frequency does play a part, it just depends on which point you are looking at.
Often, the best solution is to ensure good design practices, and spread the circuit with tantalum capacitors, and a 100nF bypass capacitor at every power pin of the IC to the ground plane. This is also what we have found is required at the prop chip power pins.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Links to other interesting threads:
· Home of the MultiBladeProps: TriBlade,·RamBlade,·SixBlade, website
· Single Board Computer:·3 Propeller ICs·and a·TriBladeProp board (ZiCog Z80 Emulator)
· Prop Tools under Development or Completed (Index)
· Emulators: CPUs Z80 etc; Micros Altair etc;· Terminals·VT100 etc; (Index) ZiCog (Z80) , MoCog (6809)
· Search the Propeller forums·(uses advanced Google search)
My cruising website is: ·www.bluemagic.biz·· MultiBladeProp is: www.bluemagic.biz/cluso.htm