What are Embedded Systems?

Embedded SystemsMicrocontrollerRTOSFirmwareElectronics

An embedded system is a special-purpose computer, made of a processor, memory and input/output peripherals, designed to perform a specific task inside a larger machine or electronic device. A transmitter, a data acquisition card or an HMI panel measures, calculates and communicates thanks to the embedded software running inside it.

What are the main components?

  • Processor: a microcontroller (MCU) or microprocessor (MPU).
  • Memory: flash for the program, RAM for working data.
  • Peripherals: ADC, DAC, timers, UART/RS485, SPI, I²C, CAN and Ethernet.
  • Software (firmware): the code that drives the hardware and runs measurement algorithms and communication protocols.
  • Safety mechanisms: a watchdog timer that restarts the device if the software hangs, and brown-out (low voltage) detection.

MCU, RTOS or embedded Linux?

ApproachTypical hardwareSuited for
Bare-metalSmall MCUSingle-purpose, simple, lowest latency
RTOSMCUDevices where measurement, filtering and communication run together with timing guarantees
Embedded LinuxMPUHMI and gateway devices needing graphical UI, network services, databases

Being real-time does not mean being "fast"; it means guaranteeing a response within a defined time. If missing a deadline counts as a system failure it is hard real-time; if it only degrades quality it is soft real-time.

Amazeng uses Zephyr RTOS in its ZMA data acquisition devices; we explain why in Why We Use Zephyr RTOS. On the HMI side we build Qt/QML interfaces on embedded Linux: HMI Solutions.

Worked example: timing budget at 1 kHz sampling

For a measurement device sampling at 1000 Hz, the budget per sample is 1 / 1000 = 1 ms (1000 µs). Illustrative durations:

  • ADC readout (SPI): 40 µs
  • Digital filter and calibration maths: 150 µs
  • Communication response and logging: 300 µs

The total is 490 µs, a CPU load of about 49%. The remaining margin is needed for interrupts and worst-case delays. If raising the filter order or adding a new protocol exceeds this budget, samples are missed.

Common mistakes

  • Designing to average time: real-time systems must be sized to worst-case execution time (WCET).
  • Long processing inside interrupts: keep interrupt routines short and move heavy computation into tasks.
  • Disabling the watchdog: convenient in development, but it prevents a device that hangs in the field from recovering.
  • Ignoring floating-point cost: on MCUs without an FPU, float maths can be slower than expected.

Where does it matter in industrial measurement?

Almost all modern transmitters and data acquisition devices are embedded systems. We cover how raw ADC data is processed in detail in ADC Integration and Data Processing in Embedded Systems.

Related Terms