003 Decoupling Capacitor
003-decoupling-capacitor.mc places a 100 nF capacitor directly across a 3.3 V source. CAP is a two-pin capacitor and nF means nanofarads. Unlike the series LED path, this chain describes a shunt component from the supply rail to ground.
bash
eval "$(../mcc/scripts/mcc-slot.sh)"
MCC_SYSTEM_ROOT="$(cd .. && pwd)" "$MCC_BIN" --local parse 00-getting-started/003-decoupling-capacitor.mc --lib mcode --pass1 --pass2
MCC_SYSTEM_ROOT="$(cd .. && pwd)" "$MCC_BIN" --local parse 00-getting-started/003-decoupling-capacitor.mc --lib mcode --viz -o 00-getting-started/003-decoupling-capacitor.htmlSource
text
// Example: Decoupling Capacitor
// Goal: Place a capacitor between a supply rail and ground.
// Library focus: CAP, DC.
module main
{
DC.SRC PWR(3.3V, 500mA)
CAP C_DEC(100nF, 10V)
PWR.1 -> C_DEC -> PWR.2
}