Independent learning for embedded-systems engineersHardware · Firmware · Software
TEA-101CORE EMBEDDED SYSTEMS TOPICFOUNDATION

Embedded systems architecture

Define the system before dividing the work: boundaries, behaviours, interfaces and failure responses that keep hardware, firmware and software aligned.

After this module, you should be able to:

  • Describe an embedded system from its external behaviour
  • Choose boundaries and allocate responsibilities deliberately
  • Write useful interface contracts
  • Identify the evidence an architecture must produce
01 / SYSTEM VIEW

Architecture is the set of decisions that make the system understandable.

An architecture is more than a block diagram. It explains what lies inside the system boundary, what the system must do, how responsibilities are divided, how elements interact and which constraints shape those decisions.

For an embedded product, the important boundaries are rarely identical to organisational boundaries. A behaviour such as “stop the motor safely when position feedback is lost” may depend on a sensor, analogue conditioning, an MCU peripheral, an interrupt, firmware state logic, a power stage and the mechanical load.

CONTEXTWhat surrounds the product?Users, equipment, environment, power, networks and physical processes
BEHAVIOURWhat must happen?Normal operation, transitions, degraded modes and safe responses
STRUCTUREWhere is it realised?Hardware, firmware, software and external services
Architecture is a reasoning aid.If a diagram cannot help an engineer predict behaviour, analyse a failure or plan verification, it is probably describing inventory rather than architecture.
02 / CORE DECISIONS

Make the consequential decisions explicit.

DecisionQuestions to answerTypical output
System boundaryWhat is controlled, assumed or external? Where do power, data and physical effects cross?Context diagram and assumptions
Functional allocationWhich element senses, decides, acts, monitors and records?Function-to-element allocation
State and mode controlWhat modes exist? Which transitions are permitted? What happens after interruption?State model and transition rules
Interface contractsWhat is exchanged, when, in what units and with what response to invalid or missing data?Interface specification
Cross-cutting qualitiesWhat timing, safety, security, power, diagnostic and reliability properties span components?Budgets, principles and constraints
Change boundariesWhich parts must evolve independently? Where is compatibility controlled?Versioning and configuration strategy

A useful interface contract is testable

“MCU communicates with sensor” is not a contract. State the physical interface, direction, data representation, range, units, timing, initialisation, ownership, timeout, error detection and response to corrupted, stale or unavailable data.

03 / METHOD

Build the architecture from behaviour, not from the parts catalogue.

  1. Set the context. Identify external actors, physical processes, energy sources and trust boundaries.
  2. Walk critical scenarios. Trace start-up, normal operation, shutdown, update, service and credible fault conditions.
  3. Partition responsibilities. Allocate sensing, decisions, actuation, monitoring and data retention.
  4. Define interface contracts. Include timing, validity, ownership and failure behaviour.
  5. Apply system budgets. Allocate timing, accuracy, memory, power and diagnostic coverage.
  6. Challenge the design. Examine single failures, common causes, communication loss and unexpected sequences.
  7. Connect verification. Decide how each important architectural claim will be demonstrated.

Worked example: temperature-controlled chamber

The requirement is not simply “maintain 37 °C”. The architecture must explain how temperature is sensed, how plausibility is checked, how heater energy is controlled and what happens if readings stop changing.

Temperature sensorSignal acquisitionControl algorithmPWM outputPower driverHeaterIndependent cut-off

A robust allocation might use firmware for normal closed-loop control, a hardware watchdog for loss of execution and an independent thermal cut-off for an over-temperature condition that must remain controlled even when the MCU fails.

04 / EVIDENCE

Retain enough evidence to defend the architecture.

System context

External actors, interfaces, environmental constraints and explicit assumptions.

Architecture description

Views showing decomposition, allocation, data flow, control flow and deployment.

Interface definitions

Signals, protocols, units, timing, validity rules, errors and ownership.

Behaviour models

Modes, states, sequences, start-up, shutdown and fault responses.

Decision records

Alternatives, rationale, constraints and consequences of major choices.

Verification strategy

How architectural properties and interface behaviours will be tested or analysed.

Common failure patterns

Component-first architecture

The design begins with a preferred MCU or platform before system behaviours and constraints are understood.

Happy-path diagrams

Normal data flow is shown, but start-up, loss of communication and degraded operation are absent.

Implicit ownership

Two components assume the other detects, validates or recovers from the same fault.

Architecture after implementation

Documentation records what was built but no longer guides decisions or verification.

05 / REFERENCES

Further learning

KEY TAKEAWAY

Design the interactions, not only the components.

A credible embedded architecture makes behaviour, ownership, interfaces and failure responses explicit enough to guide implementation and objective enough to verify.