Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Post History

57%
+2 −1
Q&A Is using different valued bypass capacitors a cargo cult? Should I do it because that's what everybody else does?

A microcontroller can be modelled simplistically as a broad band current source/sink. For example, when the microcontroller wakes up from sleep mode and goes into an application mode where many of ...

1 answer  ·  posted 1y ago by Carl‭  ·  last activity 1y ago by Olin Lathrop‭

Question microcontroller frequency bypass-capacitor
#5: Post edited by user avatar Carl‭ · 2025-09-01T11:39:54Z (about 1 year ago)
  • A microcontroller can be modelled simplistically as a broad band current source/sink. For example, when the microcontroller wakes up from sleep mode and goes into an application mode where many of its pins need to be pulled HIGH, the waveform for the current that the IC draws from the supply looks almost like a step function (a signal that contains all frequencies). Because the trace that connects the supply voltage to the IC's power pins have inductance, a sudden change in current leads to spikes in the supply voltage. To mitigate these spikes, bypass/decoupling capacitors to ground are placed next to the power pin.
  • The effect of this is shown in the two simulations below: one where the cap is placed "far" away from the controller's power pin, and the other where the cap is placed "closer" to the pin. The microcontroller is modelled as a pulsing current source, and the bypass capacitor is set to 100 nF. The blue curve is the drawn current; the red curve is the voltage at the IC's power pin.
  • The simulations show that it is a good idea to place the caps as close as possible.
  • ![Image_alt_text](https://electrical.codidact.com/uploads/9kxshjiz46bdxubai72e806rpdrg)
  • ![Image_alt_text](https://electrical.codidact.com/uploads/48qs5hehrbwyhwfjqj8dbqjlieix)
  • Usually in datasheets they show multiple bypass capacitors in parallel with the power pin, and many times not with the same value. The argument for doing this seems to be that capacitors with different values and sizes have different frequency responses, so choosing a range of values should "cover all cases". But when I simulate this with simple parasitic capacitor models with values taken from real vendors, I find that using different valued capacitors make things worse, compared to parallel multiple capacitors of the same value:
  • ![Image_alt_text](https://electrical.codidact.com/uploads/rcyk0g3qzcjwnpl9nle6r4jpirm5)
  • ![Image_alt_text](https://electrical.codidact.com/uploads/tlrivoo6ele9s9ts57324hfpi8iz)
  • The amplitude of the spikes is greater in the second simulation.
  • Is using different valued bypass capacitors just a "cargo cult"?
  • A microcontroller can be modelled simplistically as a broad band current source/sink. For example, when the microcontroller wakes up from sleep mode and goes into an application mode where many of its pins need to be pulled HIGH, the waveform for the current that the IC draws from the supply looks almost like a step function (a signal that contains all frequencies). Because the trace that connects the supply voltage to the IC's power pins have inductance, a sudden change in current leads to spikes in the supply voltage. To mitigate these spikes, bypass/decoupling capacitors to ground are placed next to the power pin.
  • The effect of this is shown in the two simulations below: one where the cap is placed "far" away from the controller's power pin, and the other where the cap is placed "closer" to the pin. Ls1 is the inductance from supply to bypass cap, and Ls2 is the inductance from bypass cap to the IC's power pin. The microcontroller is modelled as a pulsing current source, and the bypass capacitor is set to 100 nF. The blue curve is the drawn current; the red curve is the voltage at the IC's power pin.
  • The simulations show that it is a good idea to place the caps as close as possible.
  • ![Image_alt_text](https://electrical.codidact.com/uploads/9kxshjiz46bdxubai72e806rpdrg)
  • ![Image_alt_text](https://electrical.codidact.com/uploads/48qs5hehrbwyhwfjqj8dbqjlieix)
  • Usually in datasheets they show multiple bypass capacitors in parallel with the power pin, and many times not with the same value. The argument for doing this seems to be that capacitors with different values and sizes have different frequency responses, so choosing a range of values should "cover all cases". But when I simulate this with simple parasitic capacitor models with values taken from real vendors, I find that using different valued capacitors make things worse, compared to parallel multiple capacitors of the same value:
  • ![Image_alt_text](https://electrical.codidact.com/uploads/rcyk0g3qzcjwnpl9nle6r4jpirm5)
  • ![Image_alt_text](https://electrical.codidact.com/uploads/tlrivoo6ele9s9ts57324hfpi8iz)
  • The amplitude of the spikes is greater in the second simulation.
  • Is using different valued bypass capacitors just a "cargo cult"?
#4: Post edited by user avatar Carl‭ · 2025-09-01T11:26:04Z (about 1 year ago)
  • Using different valued bypass capacitors is a cargo cult? Should I do it because that's what everybody else does?
  • Is using different valued bypass capacitors a cargo cult? Should I do it because that's what everybody else does?
  • A microcontroller can be modelled simplistically as a broad band current source/sink. For example, when the microcontroller wakes up from sleep mode and goes into an application mode where many of its pins need to be pulled HIGH, the waveform for the current that the IC draws from the supply looks almost like a step function (a signal that contains all frequencies). Because the trace that connects the supply voltage to the IC's power pins have inductance, a sudden change in current leads to spikes in the supply voltage. To mitigate these spikes, bypass/decoupling capacitors to ground are placed next to the power pin.
  • The effect of this is shown in the two simulations below: one where the cap is placed "far" away from the controller's power pin, and the other where the cap is placed "closer" to the pin. The microcontroller is modelled as a pulsing current source, and the bypass capacitor is set to 100 nF.
  • The simulations show that it is a good idea to place the caps as close as possible.
  • ![Image_alt_text](https://electrical.codidact.com/uploads/9kxshjiz46bdxubai72e806rpdrg)
  • ![Image_alt_text](https://electrical.codidact.com/uploads/48qs5hehrbwyhwfjqj8dbqjlieix)
  • Usually in datasheets they show multiple bypass capacitors in parallel with the power pin, and many times not with the same value. The argument for doing this seems to be that capacitors with different values and sizes have different frequency responses, so choosing a range of values should "cover all cases". But when I simulate this with simple parasitic capacitor models with values taken from real vendors, I find that using different valued capacitors make things worse, compared to parallel multiple capacitors of the same value:
  • ![Image_alt_text](https://electrical.codidact.com/uploads/rcyk0g3qzcjwnpl9nle6r4jpirm5)
  • ![Image_alt_text](https://electrical.codidact.com/uploads/tlrivoo6ele9s9ts57324hfpi8iz)
  • The amplitude of the spikes is greater in the second simulation.
  • Is using different valued bypass capacitors just a "cargo cult"?
  • A microcontroller can be modelled simplistically as a broad band current source/sink. For example, when the microcontroller wakes up from sleep mode and goes into an application mode where many of its pins need to be pulled HIGH, the waveform for the current that the IC draws from the supply looks almost like a step function (a signal that contains all frequencies). Because the trace that connects the supply voltage to the IC's power pins have inductance, a sudden change in current leads to spikes in the supply voltage. To mitigate these spikes, bypass/decoupling capacitors to ground are placed next to the power pin.
  • The effect of this is shown in the two simulations below: one where the cap is placed "far" away from the controller's power pin, and the other where the cap is placed "closer" to the pin. The microcontroller is modelled as a pulsing current source, and the bypass capacitor is set to 100 nF. The blue curve is the drawn current; the red curve is the voltage at the IC's power pin.
  • The simulations show that it is a good idea to place the caps as close as possible.
  • ![Image_alt_text](https://electrical.codidact.com/uploads/9kxshjiz46bdxubai72e806rpdrg)
  • ![Image_alt_text](https://electrical.codidact.com/uploads/48qs5hehrbwyhwfjqj8dbqjlieix)
  • Usually in datasheets they show multiple bypass capacitors in parallel with the power pin, and many times not with the same value. The argument for doing this seems to be that capacitors with different values and sizes have different frequency responses, so choosing a range of values should "cover all cases". But when I simulate this with simple parasitic capacitor models with values taken from real vendors, I find that using different valued capacitors make things worse, compared to parallel multiple capacitors of the same value:
  • ![Image_alt_text](https://electrical.codidact.com/uploads/rcyk0g3qzcjwnpl9nle6r4jpirm5)
  • ![Image_alt_text](https://electrical.codidact.com/uploads/tlrivoo6ele9s9ts57324hfpi8iz)
  • The amplitude of the spikes is greater in the second simulation.
  • Is using different valued bypass capacitors just a "cargo cult"?
#3: Post edited by user avatar Carl‭ · 2025-09-01T11:25:05Z (about 1 year ago)
  • A microcontroller can be modelled simplistically as a broad band current source/sink. For example, when the microcontroller wakes up from sleep mode and goes into an application mode where many of its pins need to be pulled HIGH, the waveform for the current that the IC draws from the supply looks almost like a step function (a signal that contains all frequencies). Because the trace that connects the supply voltage to the IC's power pins have inductance, a sudden change in current leads to spikes in the supply voltage. To mitigate these spikes, bypass/decoupling capacitors to ground are placed next to the power pin.
  • The effect of this is shown in the two simulations below: one where the cap is placed "far" away from the controller's power pin, and the other where the cap is placed "closer" to the pin. The microcontroller is modelled as a pulsing current source, and the bypass capacitor is set to 100 nF.
  • The simulations show that it is a good idea to place the caps as close as possible.
  • ![Image_alt_text](https://electrical.codidact.com/uploads/9kxshjiz46bdxubai72e806rpdrg)
  • ![Image_alt_text](https://electrical.codidact.com/uploads/48qs5hehrbwyhwfjqj8dbqjlieix)
  • Usually in datasheets they show multiple bypass capacitors in parallel with the power pin, and many times not with the same value. The argument for doing this seems to be that capacitors with different values and sizes have different frequency responses, so choosing a range of values should "cover all cases". But when I simulate this with simple parasitic capacitor models with values taken from real vendors, I find that using different valued capacitors make things worse, compared to parallel multiple capacitors of the same value:
  • ![Image_alt_text](https://electrical.codidact.com/uploads/rcyk0g3qzcjwnpl9nle6r4jpirm5)
  • ![Image_alt_text](https://electrical.codidact.com/uploads/tlrivoo6ele9s9ts57324hfpi8iz)
  • The amplitude of the spikes are greater in the second simulation.
  • Is using different valued bypass capacitors just a "cargo cult"?
  • A microcontroller can be modelled simplistically as a broad band current source/sink. For example, when the microcontroller wakes up from sleep mode and goes into an application mode where many of its pins need to be pulled HIGH, the waveform for the current that the IC draws from the supply looks almost like a step function (a signal that contains all frequencies). Because the trace that connects the supply voltage to the IC's power pins have inductance, a sudden change in current leads to spikes in the supply voltage. To mitigate these spikes, bypass/decoupling capacitors to ground are placed next to the power pin.
  • The effect of this is shown in the two simulations below: one where the cap is placed "far" away from the controller's power pin, and the other where the cap is placed "closer" to the pin. The microcontroller is modelled as a pulsing current source, and the bypass capacitor is set to 100 nF.
  • The simulations show that it is a good idea to place the caps as close as possible.
  • ![Image_alt_text](https://electrical.codidact.com/uploads/9kxshjiz46bdxubai72e806rpdrg)
  • ![Image_alt_text](https://electrical.codidact.com/uploads/48qs5hehrbwyhwfjqj8dbqjlieix)
  • Usually in datasheets they show multiple bypass capacitors in parallel with the power pin, and many times not with the same value. The argument for doing this seems to be that capacitors with different values and sizes have different frequency responses, so choosing a range of values should "cover all cases". But when I simulate this with simple parasitic capacitor models with values taken from real vendors, I find that using different valued capacitors make things worse, compared to parallel multiple capacitors of the same value:
  • ![Image_alt_text](https://electrical.codidact.com/uploads/rcyk0g3qzcjwnpl9nle6r4jpirm5)
  • ![Image_alt_text](https://electrical.codidact.com/uploads/tlrivoo6ele9s9ts57324hfpi8iz)
  • The amplitude of the spikes is greater in the second simulation.
  • Is using different valued bypass capacitors just a "cargo cult"?
#2: Post edited by user avatar Carl‭ · 2025-09-01T11:24:22Z (about 1 year ago)
  • A microcontroller can be modelled simplistically as a broad band current source/sink. For example, when the microcontroller wakes up from sleep mode and goes into an application mode where many of its pins need to be pulled HIGH, the waveform for the current that the IC draws from the supply looks almost like a step function (a signal that contains all frequencies). Because the trace that connects the supply voltage to the IC's power pins have inductance, a sudden change in current leads to spikes in the supply voltage. To mitigate these spikes, bypass/decoupling capacitors to ground are placed next to the power pin. The effect of this is shown in the two simulations below: one where the cap is placed "far" away from the controller's power pin, and the other where the cap is placed "closer" to the pin. The simulations show that it is a good idea to place the caps as close as possible.
  • ![Image_alt_text](https://electrical.codidact.com/uploads/9kxshjiz46bdxubai72e806rpdrg)
  • ![Image_alt_text](https://electrical.codidact.com/uploads/48qs5hehrbwyhwfjqj8dbqjlieix)
  • Usually in datasheets they show multiple bypass capacitors in parallel with the power pin, and many times not with the same value. The argument for doing this seems to be that capacitors with different values and sizes have different frequency responses, so choosing a range of values should "cover all cases". But when I simulate this with simple parasitic capacitor models with values taken from real vendors, I find that using different valued capacitors make things worse, compared to parallel multiple capacitors of the same value:
  • ![Image_alt_text](https://electrical.codidact.com/uploads/rcyk0g3qzcjwnpl9nle6r4jpirm5)
  • ![Image_alt_text](https://electrical.codidact.com/uploads/tlrivoo6ele9s9ts57324hfpi8iz)
  • The amplitude of the spikes are greater in the second simulation.
  • Is using different valued bypass capacitors just a "cargo cult"?
  • A microcontroller can be modelled simplistically as a broad band current source/sink. For example, when the microcontroller wakes up from sleep mode and goes into an application mode where many of its pins need to be pulled HIGH, the waveform for the current that the IC draws from the supply looks almost like a step function (a signal that contains all frequencies). Because the trace that connects the supply voltage to the IC's power pins have inductance, a sudden change in current leads to spikes in the supply voltage. To mitigate these spikes, bypass/decoupling capacitors to ground are placed next to the power pin.
  • The effect of this is shown in the two simulations below: one where the cap is placed "far" away from the controller's power pin, and the other where the cap is placed "closer" to the pin. The microcontroller is modelled as a pulsing current source, and the bypass capacitor is set to 100 nF.
  • The simulations show that it is a good idea to place the caps as close as possible.
  • ![Image_alt_text](https://electrical.codidact.com/uploads/9kxshjiz46bdxubai72e806rpdrg)
  • ![Image_alt_text](https://electrical.codidact.com/uploads/48qs5hehrbwyhwfjqj8dbqjlieix)
  • Usually in datasheets they show multiple bypass capacitors in parallel with the power pin, and many times not with the same value. The argument for doing this seems to be that capacitors with different values and sizes have different frequency responses, so choosing a range of values should "cover all cases". But when I simulate this with simple parasitic capacitor models with values taken from real vendors, I find that using different valued capacitors make things worse, compared to parallel multiple capacitors of the same value:
  • ![Image_alt_text](https://electrical.codidact.com/uploads/rcyk0g3qzcjwnpl9nle6r4jpirm5)
  • ![Image_alt_text](https://electrical.codidact.com/uploads/tlrivoo6ele9s9ts57324hfpi8iz)
  • The amplitude of the spikes are greater in the second simulation.
  • Is using different valued bypass capacitors just a "cargo cult"?
#1: Initial revision by user avatar Carl‭ · 2025-09-01T11:22:49Z (about 1 year ago)
Using different valued bypass capacitors is a cargo cult? Should I do it because that's what everybody else does?
A microcontroller can be modelled simplistically as a broad band current source/sink. For example, when the microcontroller wakes up from sleep mode and goes into an application mode where many of its pins need to be pulled HIGH, the waveform for the current that the IC draws from the supply looks almost like a step function (a signal that contains all frequencies). Because the trace that connects the supply voltage to the IC's power pins have inductance, a sudden change in current leads to spikes in the supply voltage. To mitigate these spikes, bypass/decoupling capacitors to ground are placed next to the power pin. The effect of this is shown in the two simulations below: one where the cap is placed "far" away from the controller's power pin, and the other where the cap is placed "closer" to the pin. The simulations show that it is a good idea to place the caps as close as possible.
![Image_alt_text](https://electrical.codidact.com/uploads/9kxshjiz46bdxubai72e806rpdrg)

![Image_alt_text](https://electrical.codidact.com/uploads/48qs5hehrbwyhwfjqj8dbqjlieix)

Usually in datasheets they show multiple bypass capacitors in parallel with the power pin, and many times not with the same value. The argument for doing this seems to be that capacitors with different values and sizes have different frequency responses, so choosing a range of values should "cover all cases". But when I simulate this with simple parasitic capacitor models with values taken from real vendors, I find that using different valued capacitors make things worse, compared to parallel multiple capacitors of the same value:

![Image_alt_text](https://electrical.codidact.com/uploads/rcyk0g3qzcjwnpl9nle6r4jpirm5)

![Image_alt_text](https://electrical.codidact.com/uploads/tlrivoo6ele9s9ts57324hfpi8iz)

The amplitude of the spikes are greater in the second simulation. 

Is using different valued bypass capacitors just a "cargo cult"?