Microcontroller Hardware Design
Draw the minimal correct schematic for a modern microcontroller: power, decoupling, clock, reset, boot mode, debug and GPIO, with every requirement traced to the reference manual.
Two ways in. Work the material, or if you already know this, go straight to the project and prove it.
Where this sits
- Used by tracks
- Digital PCB DesignerEmbedded Hardware Prototyper
How this skill is structured
- 1. Concepts — the ideas stated plainly, with the equations worth memorising.
- 2. Worked example — one real problem solved end to end, numbers included.
- 3. Tool demonstration — do the thing in a real open-source tool.
- 4. Resources — the specific free readings and videos, and what part of each to use.
- 5. Project — built alone, producing something a reviewer can check.
- 6. Competence checklist — what you must be able to do. This is also the audit rubric.
1. Concepts
Read these first. Tick each one when you could explain it to someone else without notes.
2. Worked example
Reviewing a minimal RP2040 schematic against the hardware design guide
ProblemYou are handed a minimal RP2040 board schematic. Check it against the vendor's hardware design document and find what is missing.
- 1Power pins: RP2040 has IOVDD (x6), DVDD (x2), VREG_VIN, VREG_VOUT, ADC_AVDD, USB_VDD. Confirm every one is connected. A schematic that connects 'VDD' as a single net has almost certainly missed the core/IO distinction.
- 2The internal regulator: VREG_VIN takes 3.3 V and VREG_VOUT produces 1.1 V for DVDD. It needs a specific output capacitor value from the datasheet. Confirm VREG_VOUT is tied to both DVDD pins and that the capacitor is present and correct.
- 3Decoupling: 100 nF per IOVDD pin (six of them), per DVDD pin (two), on ADC_AVDD and USB_VDD, plus bulk. Count the capacitors in the schematic against the pin count. Six IOVDD pins with two capacitors is a fail.
- 4ADC_AVDD: the hardware design guide specifies a filter from 3.3 V (typically a ferrite bead or a small resistor plus capacitors). A direct connection to the digital rail costs you ADC bits.
- 5Flash: the RP2040 has no internal program flash and boots from external QSPI flash. Confirm the flash is present, its CS is on the correct pin, and that the QSPI traces are short. Confirm the flash's supply and decoupling.
- 6Crystal: 12 MHz crystal with the specified load capacitors, plus the series resistor the design guide calls for on XOUT. Check the crystal's CL against the fitted capacitors and the stray estimate.
- 7Reset: RUN pin with a pull-up and optionally a button and a capacitor. Check the capacitor value against the required reset timing, and confirm the debug probe can also drive it.
- 8Boot mode: the RP2040 boots to USB mass storage if the flash CS is held low at power-up. That is what the BOOTSEL button does — it pulls the flash CS low through a resistor. Confirm the button and its series resistor are present, and that the resistor value does not disturb normal QSPI operation.
- 9Debug: SWD (SWCLK, SWDIO) plus ground brought to a connector or at least test pads. Confirm present.
- 10USB: D+ and D- with the specified 27 ohm series resistors, routed as a differential pair. Confirm the resistors and that no additional pull-up is fitted (the RP2040 handles this internally, unlike some parts).
- 11Result: the two things most commonly missing from a minimal schematic are enough decoupling capacitors (one per pin, not one per rail) and the ADC_AVDD filter. Both are in the design guide and both are silently degrading rather than fatal, which is why they get skipped.
AnswerCheck against the vendor's hardware design document line by line: every supply pin connected and individually decoupled, the internal regulator's specific capacitor, the ADC supply filter, the boot-mode strapping circuit, crystal loading with its series resistor, and debug access. The two usual omissions are per-pin decoupling and the analogue supply filter.
3. Tool demonstration
Draw a complete, ERC-clean minimum system schematic with hierarchical organisation and power symbols used correctly.
4. Resources
Free and, wherever possible, openly licensed. The note tells you which part to actually use — do not read them cover to cover.
5. Project — build this on your own
About 4 hours. This is the artifact that proves the skill. Work it without a walkthrough.
Draw a complete, ERC-clean, review-ready schematic for a minimum microcontroller system of your choice (RP2040, STM32, ESP32, ATSAMD or similar), with every design decision traced to a specific section of the vendor's documentation.
Deliverables
Acceptance criteria — how you know it is good enough
If you want to push further
- Add USB with correct series resistors, ESD protection and a differential-pair net class, and document the impedance target.
- Add a second power rail with a supervisor enforcing the sequencing requirement, and draw the sequencing timing diagram.
6. Competence checklist
Tick these honestly. If you are auditing this skill, this is your rubric — you should be able to demonstrate every line from the project you just built.