Coursify

Microprocessor

Embedded Systems and Role of Microcontrollers

1 hour

Learning Goals

  • Define embedded systems and explain their salient features: real-time operation, dedicated functionality, tight resource constraints, and single-purpose design
  • Distinguish between microprocessor-based systems and microcontroller-based systems, including differences in RAM/ROM ratios, integration level, and typical applications
  • Analyze the architectural differences between Von Neumann and Harvard architectures, understanding why microcontrollers like the 8051 employ Harvard architecture
  • Identify the essential design constraints of embedded systems: ability to fit on a single chip, low power consumption, fast data processing for real-time operations, and cost efficiency
  • Enumerate real-world applications of microcontrollers in consumer electronics, automotive systems, industrial automation, and IoT devices
  • Understand the MCS-51 family of microcontrollers and their variants (8051, 8031, 8951) with respect to internal ROM capacity and application domains
  • Compare the operational characteristics and addressing mechanisms of 8-bit microprocessors (like 8085) with modern microcontrollers to appreciate architectural evolution
  • Apply knowledge of microcontroller fundamentals to determine appropriate system architectures for given embedded application requirements

An Embedded System is a specialized computer system designed to perform a dedicated function or a specific set of tasks within a larger mechanical or electrical system. Unlike general-purpose computers (like a PC or laptop), which are designed to handle a vast array of applications, embedded systems are "embedded" as part of a complete device, often including hardware and mechanical parts.

Salient Features of Embedded Systems

Embedded systems are characterized by several unique features that dictate their design and architecture:

  1. Dedicated Functionality: They are designed to do one specific task (e.g., a microwave controller only manages the microwave).
  2. Real-Time Operation: Many embedded systems must respond to external events within a strict time limit (deterministic behavior).
  3. Tight Resource Constraints: They often operate with limited memory (RAM/ROM), processing power, and energy.
  4. Single-Purpose Design: The software is usually "burned" into the hardware and rarely changes during the device's lifetime.

Difference between Microprocessor and Microcontroller

Design Constraints in Embedded Systems

The engineering of embedded systems is driven by four primary constraints:

  • Form Factor: The ability to fit the entire system on a single chip or a very small PCB.
  • Low Power Consumption: Essential for battery-operated devices (e.g., wearable fitness trackers).
  • Fast Data Processing: Necessary for real-time operations where a delay could lead to system failure (e.g., automotive braking systems).
  • Cost Efficiency: Since these are often mass-produced, reducing the cost per unit by even a few cents is critical.

A Microprocessor is a general-purpose CPU on a single chip. It does not contain RAM, ROM, or I/O ports internally.

  • Architecture: Typically Von Neumann.
  • RAM/ROM Ratio: High (GBs of RAM, TBs of storage).
  • Integration: Low (requires external chips for memory and I/O).
  • Application: PCs, Servers, Laptops.
  • Example: Intel Core i9, 8085.

Typical Memory Ratios: MPU vs MCU

Comparing internal memory integration (Logarithmic Scale Representation)

Architectural Evolution: Von Neumann vs. Harvard

The shift from microprocessors like the 8085 to microcontrollers like the 8051 involved a significant change in how memory is handled.

Von Neumann Architecture (e.g., 8085)

Uses a single bus and a single memory space for both instructions (code) and data.

  • Pros: Simple hardware design.
  • Cons: "Von Neumann Bottleneck"—the CPU cannot fetch an instruction and read/write data at the same time.

Harvard Architecture (e.g., 8051)

Uses separate buses and separate memory spaces for instructions and data.

  • Pros: Higher throughput. The CPU can fetch the next instruction from Program Memory (ROM) while simultaneously reading/writing data to Data Memory (RAM).
  • Cons: More complex hardware (dual buses).

Why 8051 uses Harvard Architecture

The 8051 employs Harvard architecture primarily to ensure deterministic timing and high-speed execution for control tasks. By separating the program and data memory, it avoids the bus bottleneck, allowing it to execute instructions faster than a Von Neumann processor of the same clock speed.

The MCS-51 (8051) Family Variants

Choosing the Right Architecture for an Application

  1. 1
    Step 1

    Determine if the task is general-purpose (requires MPU) or a specific control task (requires MCU).

  2. 2
    Step 2

    If the system requires a guaranteed response time (e.g., Airbag deployment), select a microcontroller with an interrupt-driven Harvard architecture.

  3. 3
    Step 3

    For battery-powered or compact devices, prioritize highly integrated MCUs to minimize the component count and power draw.

  4. 4
    Step 4

    If the code is large (>64KB for 8051), consider a variant like the 8031 with external memory or a more modern 32-bit MCU.

Design Trap: Over-specifying

Avoid using a high-end microprocessor for a task that an 8-bit microcontroller can handle. Using an MPU for a simple thermometer increases cost, power consumption, and circuit complexity unnecessarily.

Knowledge Check

Question 1 of 4
Q1Single choice

Which architecture allows the CPU to fetch an instruction and access data simultaneously?

Embedded Systems and Role of Microcontrollers | Microprocessor | Coursify