Embedded Systems 简明教程

Embedded Systems - Overview

System

系统是一组按照规则一起工作的单元的排列。也可以被定义为按照固定计划工作、组织或做一项或多项任务的方式。例如,手表是一个显示时间的系统。它的组件遵循一套规则来显示时间。如果其中一个部件发生故障,手表将停止工作。因此,我们可以说,在一个系统中,它的所有子组件相互依赖。

A system is an arrangement in which all its unit assemble work together according to a set of rules. It can also be defined as a way of working, organizing or doing one or many tasks according to a fixed plan. For example, a watch is a time displaying system. Its components follow a set of rules to show time. If one of its parts fails, the watch will stop working. So we can say, in a system, all its subcomponents depend on each other.

Embedded System

如其名称所示,嵌入式是指附加到另一事物上的东西。可以将嵌入式系统视为具有嵌入式软件的计算机硬件系统。嵌入式系统可以是一个独立的系统,也可以是大型系统的一部分。嵌入式系统是基于微控制器或微处理器的系统,旨在执行特定任务。例如,火灾报警器是一个嵌入式系统;它只感知烟雾。

As its name suggests, Embedded means something that is attached to another thing. An embedded system can be thought of as a computer hardware system having software embedded in it. An embedded system can be an independent system or it can be a part of a large system. An embedded system is a microcontroller or microprocessor based system which is designed to perform a specific task. For example, a fire alarm is an embedded system; it will sense only smoke.

嵌入式系统有三个组件:

An embedded system has three components −

  1. It has hardware.

  2. It has application software.

  3. It has Real Time Operating system (RTOS) that supervises the application software and provide mechanism to let the processor run a process as per scheduling by following a plan to control the latencies. RTOS defines the way the system works. It sets the rules during the execution of application program. A small scale embedded system may not have RTOS.

因此,我们可以将嵌入式系统定义为基于微控制器、软件驱动、可靠、实时的控制系统。

So we can define an embedded system as a Microcontroller based, software driven, reliable, real-time control system.

Characteristics of an Embedded System

  1. Single-functioned − An embedded system usually performs a specialized operation and does the same repeatedly. For example: A pager always functions as a pager.

  2. Tightly constrained − All computing systems have constraints on design metrics, but those on an embedded system can be especially tight. Design metrics is a measure of an implementation’s features such as its cost, size, power, and performance. It must be of a size to fit on a single chip, must perform fast enough to process data in real time and consume minimum power to extend battery life.

  3. Reactive and Real time − Many embedded systems must continually react to changes in the system’s environment and must compute certain results in real time without any delay. Consider an example of a car cruise controller; it continually monitors and reacts to speed and brake sensors. It must compute acceleration or de-accelerations repeatedly within a limited time; a delayed computation can result in failure to control of the car.

  4. Microprocessors based − It must be microprocessor or microcontroller based.

  5. Memory − It must have a memory, as its software usually embeds in ROM. It does not need any secondary memories in the computer.

  6. Connected − It must have connected peripherals to connect input and output devices.

  7. HW-SW systems − Software is used for more features and flexibility. Hardware is used for performance and security.

Advantages

  1. Easily Customizable

  2. Low power consumption

  3. Low cost

  4. Enhanced performance

Disadvantages

  1. High development effort

  2. Larger time to market

Basic Structure of an Embedded System

下图显示了嵌入式系统的基本结构:

The following illustration shows the basic structure of an embedded system −

embedded systems structure
  1. Sensor − It measures the physical quantity and converts it to an electrical signal which can be read by an observer or by any electronic instrument like an A2D converter. A sensor stores the measured quantity to the memory.

  2. A-D Converter − An analog-to-digital converter converts the analog signal sent by the sensor into a digital signal.

  3. Processor & ASICs − Processors process the data to measure the output and store it to the memory.

  4. D-A Converter − A digital-to-analog converter converts the digital data fed by the processor to analog data

  5. Actuator − An actuator compares the output given by the D-A Converter to the actual (expected) output stored in it and stores the approved output.