Embedded System,Microprocessor

M4-R5.1 · Chapter 3: Sensors, Actuators and Microcontrollers · 3 min read

1. Embedded Systems

An embedded system is a dedicated computer system—consisting of hardware and software—designed to perform a specific, predefined task within a larger mechanical or electrical system. Unlike a general-purpose computer (like a desktop), an embedded system is highly specialized.

Key Characteristics:

  • Single-Functioned: Designed to perform one specific task (or a few closely related tasks) repeatedly and efficiently.

  • Real-Time Operation: Many embedded systems must respond to events or sensor inputs within a strict time frame (e.g., deploying an airbag in a car). They often use a Real-Time Operating System (RTOS).

  • Resource Constraints: They are typically optimized to minimize cost, size, and power consumption.

  • Firmware: The software is usually embedded in ROM or Flash memory rather than a traditional hard drive, and is rarely modified by the end-user.

Core Components:

  1. Hardware: A Microcontroller (MCU) or Microprocessor (MPU) acts as the brain. It also includes memory (RAM/ROM), timers, and I/O interfaces to communicate with sensors and actuators.

  2. Software: The application code (firmware) that dictates the logic and behavior.

Examples:

  • Industrial temperature controllers and IoT sensor nodes.

  • Home appliances (washing machines, microwaves).

  • Automotive systems (Anti-lock Braking Systems, engine control units).


2. Microprocessor (MPU)

A microprocessor is the central processing unit (CPU) of a computer integrated onto a single semiconductor chip. It is a general-purpose processor designed to handle a wide variety of complex computing tasks.

Key Characteristics:

  • General-Purpose: It is designed to execute general-purpose software and handle multiple different applications concurrently.

  • Dependent on External Peripherals: A microprocessor chip typically only contains the CPU (Arithmetic Logic Unit, Control Unit, and Registers). It relies on external chips connected via a motherboard for Memory (RAM/ROM) and I/O ports.

  • High Performance: Microprocessors operate at very high clock speeds (often in the GHz range) and consume significant power, requiring active cooling systems (like the fans in an i5 laptop).

Internal Architecture:

  • ALU (Arithmetic Logic Unit): Performs mathematical and logical operations.

  • CU (Control Unit): Manages the execution of instructions and controls the flow of data via buses.

  • Registers: Small, ultra-fast storage locations used for temporary data during processing.

  • System Buses: Data Bus (transfers data), Address Bus (locates memory addresses), and Control Bus (manages communication timing).


3. Difference Between Microprocessor and Microcontroller

To understand the difference, it helps to look at a Microcontroller (MCU) as a "mini-computer on a single chip." While a microprocessor is just the processing core, a microcontroller packages the processing core, memory, and I/O peripherals all onto one integrated circuit.