RAYPCB · ENGINEERING GUIDE

Microcontroller PCB Architecture: Choose the System Before the MCU

A microcontroller PCB should be organized around the product's work: what it measures, controls, communicates and remembers, and how it behaves when power or communication is lost. Selecting a familiar MCU first can make those requirements harder to satisfy if the necessary interfaces, memory, power states or physical pins are unavailable in the chosen package.

This page addresses the architecture decision before detailed layout. Its load-power inventory adds distinct downstream loads for one operating condition, helping expose the power domains that the design needs. It is not a semiconductor selector or a power-supply approval. For application startup and actuator behavior, continue to PCB controller design.

Assembled embedded boards with external interfaces
Assembled embedded boards with external interfaces. RAYPCB site archive image; illustrative context, not a current inspection or ownership record.

Write a workload that can be checked

Describe inputs by signal type, range, timing and expected behavior. A temperature sample once per second and a fast acquisition stream create different requirements even when both are described as sensor data. Include filtering, buffering, conversion and communication work, rather than counting only the number of channels.

Describe outputs with equal care. A logic signal, a relay coil, a motor command and a communication message need different interfaces and fault handling. State which outputs must remain inactive during reset, which can retain a previous value, and which need an external enable. Those requirements influence both the MCU choice and circuitry outside it.

Keep hard limits separate from preferences. Required memory, supported interfaces, supply range and enclosure constraints can rule out a part. A preferred development environment or familiar library can influence the choice without overriding a missing electrical capability. A concise requirement table makes that distinction visible to purchasing and engineering alike.

Begin with workload and behavior, then allocate resources
Begin with workload and behavior, then allocate resources. Original explanatory diagram; conceptual, not a released circuit or inspection record.

Describe an architecture decision before picking a part

RequirementDefineReview implication
MeasurementRange, sample timing and signal conditions.ADC, reference, conditioning and placement.
CommunicationReal transactions, bursts and service delays.Ports, pins, timing and buffers.
PowerSources, domains and concurrent operating states.Regulators, isolation of domains and startup behavior.
RecoveryProgramming, update and diagnostic needs.Access, firmware support and retained resources.

Allocate resources before assigning pins

List peripheral instances and their dependencies: timers, capture channels, serial ports, ADC inputs, DMA resources and interrupt behavior where relevant. Then check how those resources map to the actual package pins. Two functions that exist in a device family may compete for the same physical pin in the selected package.

Include debug, programming, clock and boot-related requirements in that allocation. Reserve the resources needed to observe and recover the board. Removing a debug connection late in layout can make an already difficult startup issue much harder to investigate, especially when the application immediately reconfigures the same pins.

For a specific family, move from this architecture map to the appropriate detailed guide. The STM32 layout review assumes an exact device and circuit have already been selected. It checks how the physical implementation preserves those decisions, rather than deciding the product's interface and memory needs from scratch.

Review itemWhat to establish
WorkloadInput/output functions, timing and behavior during unavailable resources.
ResourcesPeripheral instances, memory, actual package pins and debug access.
Power boundaryDistinct loads, operating condition and upstream conversion kept separate.
AlternativesExact parts, support circuitry and required revalidation.
Build scopeFiles, quantities, programming and observable functional checks.

Load power inventory

RAYPCB ENGINEERING

Load power inventory

Embedded Hardware and Interfaces
Loading Load power inventory…
Using this tool & sharing results

Use the stated units, input limits and model assumptions. Results support an engineering discussion; they do not approve a design, process or production order.

After changing inputs, update the result before using it. Where a download or copy action is available, review that brief and attach or paste it into your enquiry. Opening Contact does not transfer these inputs or send a request.

How to use and share tool results

Use the current inputs and keep the assumptions

Load the example to learn the worksheet, then clear it before entering your project values. Blank fields are not silently converted to zero. Units and selected conventions belong to the result, so review them together with the numbers. Editing any input invalidates the previous result and disables its download until you calculate again. Edited example data remain labeled as an illustrative example.

This tool runs locally on the values you enter. It does not open a schematic, select approved components, measure signals or inspect a physical board. Keep the exact component documents and a record of measurements with the design. Downloading the text report does not send an enquiry or populate the Contact form. Attach it manually if it helps explain a specific engineering question; completing the worksheet is optional.

InputWhat to establish before using it
Review referenceUse a nonconfidential revision reference.
Downstream loads · CSVUse distinct loads in one operating condition. Exclude upstream regulator inputs to avoid double counting.

Draw the power tree using distinct boundaries

Identify the sources and downstream voltage domains. Mark which domains are always present, switched, externally supplied or retained during a low-power state. Include devices that can remain powered while the processor is off. Their signal connections may need special attention to prevent unintended powering through an input.

The worksheet accepts one row for each distinct downstream load in one operating condition. It multiplies voltage by current and sums the load powers. The illustrative values are 3.3 V at 120 mA, 3.3 V at 10 mA and 5 V at 80 mA, totaling 0.829 W. These are teaching assumptions, not current specifications for a particular MCU or product.

Do not add a regulator input and its output loads to that same total. They are different boundaries of the same power flow. Source demand also includes conversion and distribution losses, while peak startup and simultaneous load changes need separate cases. Repeat the inventory for sleep, startup and active modes instead of blending them into an unexplained average.

Embedded processor board with display and network connectors
Embedded processor board with display and network connectors. RAYPCB site archive image; illustrative context, not a current inspection or ownership record.

Keep memory and data movement in the architecture

Estimate program, working memory and retained-data needs from the intended software and operating conditions. Allow for buffers, communication stacks, update mechanisms and diagnostic records where the product requires them. An approximate source-code size is not a complete estimate of runtime memory demand.

Identify where data can accumulate. A sensor or interface may produce bursts while a host, storage device or firmware task services them intermittently. Specify the largest relevant burst and the longest permitted service delay. A buffer calculation is useful only when the input and drain rates refer to the same payload boundary.

Keep external memory requirements explicit. They can affect pin count, routing, power-up behavior, firmware configuration and assembly inspection. If a module contains memory internally, retain the exact module identity rather than assuming another module with a similar footprint supplies the same capacity or interface arrangement.

Add distinct downstream loads once
Add distinct downstream loads once. Original explanatory diagram; conceptual, not a released circuit or inspection record.

Choose boundaries that make the board testable

Separate functional blocks by responsibility: power conversion, processing, measurement, external communication and output drive. These boundaries need not become separate physical boards, but they help define where to measure and what to isolate during diagnosis. A block diagram should include the important power and reset relationships, not only signal arrows.

For a modular product, define the connector contract before splitting the design. Supply limits, signal levels, startup states, mechanical fit and revision compatibility must survive the boundary. The modular PCB design guide develops that contract so a connector does not become an undocumented bundle of assumptions.

Reserve functional-test access according to the intended build. Decide which checks need a test fixture, which can run in firmware and which require external instruments or loads. A processor booting successfully establishes only part of the evidence. Include the observable response for each important input, output and communication path.

Compare candidates on the complete implementation

When comparing MCU options, include the support circuit, package, programming flow, required external parts and engineering effort. A lower unit price can create other costs if it needs more board area, extra memory, a different supply or additional validation. Use current supplier information for any purchasing comparison rather than a generic price table embedded in an article.

Review alternatives at the level of actual ordering codes and documented behavior. A similar CPU core does not establish pin, peripheral, electrical or firmware compatibility. Keep a written substitution review with the BOM. If the architecture deliberately allows more than one implementation, define the differences and the tests needed for each.

Prepare the enquiry around the selected build scope and remaining decisions. Supply the board revision, fabrication data, BOM, placement information and programming or test requirements when available. If the architecture is still open, state the unresolved question clearly so the next discussion concerns a specific requirement rather than an assumed ready-to-build product.

Keep the architecture connected to testable requirements

For each functional block, record the requirement it satisfies and the evidence that will show whether it does. A communication link needs a defined message and timing expectation; a power domain needs operating states and limits; an output needs its permitted startup and fault behavior. Assign responsibility for unresolved interactions between blocks.

Keep the architecture document small enough to stay current but precise enough to expose a changed assumption. When an interface, source or processor changes, revisit the affected power, timing, software and test requirements together. A board-level calculation can support that discussion without representing the complete product. The useful manufacturing handoff identifies a coherent revision and agreed scope, with open engineering questions visible rather than concealed behind a generic ready-for-production label.

Do not count both sides of a regulator as separate loads
Do not count both sides of a regulator as separate loads. Original explanatory diagram; conceptual, not a released circuit or inspection record.

Standards, source context and limits

The referenced manufacturer documentation supports specific devices, interfaces or design methods. Apply the version and operating conditions appropriate to the actual part. A similar product name is not evidence that pin functions, voltage tolerance, startup behavior or package dimensions match. Worked examples illustrate reasoning and arithmetic; they are not released schematics or independent hardware test results.

Define the evidence for each functional block
Define the evidence for each functional block. Original explanatory diagram; conceptual, not a released circuit or inspection record.

For fabrication scope and the agreed construction requirements, see PCB manufacturing.