|
|
|
||||
|
|
||||
|
||||
| Introduction | ||||
|
I think there is a world market for maybe
five computers.
- Thomas Watson, Chairman of IBM, 1943 |
||||
|
There is no reason anyone would want a
computer in their home.
- Ken Olson, President of Digital Equipment Corporation, 1977 |
||||
|
One of the more surprising developments of
the last few decades has been the ascendance of computers to a position
of prevalence in human affairs. Today there are more computers in our
homes and offices than there are people who live and work in them. Yet
many of these computers are not recognized as such by their users.
- Programming Embedded Systems in C and C++, Michael Barr, 1999 |
||||
|
|
||||
| "An embedded system is a combination of computer hardware and software, and perhaps additional mechanical or other parts, designed to perform a specific function." - Programming Embedded Systems in C and C++, Michael Barr, 1999 | ||||
| The Oxford Dictionary says a robot is "1 a machine with a human appearance or functioning like a human. 2 a machine capable of carrying out a complex series of actions automatically. 3 a person who works mechanically and efficiently but insensitively." | ||||
| Webopedia says a robot is "(1) a device that responds to sensory input. (2) A program that runs automatically without human intervention. Typically, a robot is endowed with some artificial intelligence so that it can react to different situations it may encounter." | ||||
|
|
||||
Basic Microprocessor System/Microcontroller Block Diagram |
||||
| As we shall see, much of the work performed by the CPU involves reading from and writing to memory. There are three busses involved in accessing memory: the address bus, the data bus and the control bus. The function of each of these busses is illustrated in EdSim51's Read and Write Cycle Simulations. | ||||
| Read Cycle | ||||
| The steps involved in the read cycle are: | ||||
|
||||
| Write Cycle | ||||
| The steps involved in the write cycle are: | ||||
|
||||
|
An embedded system is made up of the basic functional blocks shown above. The Central Processing Unit (CPU) is the microprocessor and can be thought of as the system's brain. Memory, input ports and output ports are connected to the microprocessor through an address bus, a data bus and a control bus. Ports are physical interfaces through which data is sent to and from external peripherals such as keyboards, displays, etc. |
||||
Three Basic Elements of a Microprocessor |
||||
| A microprocessor has three basic elements, as shown above. The ALU performs all arithmetic computations, such as addition, subtraction and logic operations (AND, OR, etc). It is controlled by the Control Unit and receives its data from the Register Array. | ||||
| The Register Array is a set of registers used for storing data. These registers can be accessed by the ALU very quickly. Some registers have specific functions - we will deal with these later. | ||||
| The Control Unit controls the entire process. It provides the timing and control signals for getting data into and out of the registers and the ALU and it synchronizes the execution of instructions (we will deal with instruction execution at a later date). | ||||
| What's the difference between a microprocessor and a microcontroller? | ||||
| A microprocessor system consists of a microprocessor with memory, input ports and output ports connected to it externally. A microcontroller is a single chip containing a microprocessor, memory, input ports and output ports. Since all four blocks reside on the one chip, a microcontroller is much faster than a microprocessor system. | ||||
|
|
||||
| Program Memory and Data Memory | ||||
| There are many different kinds of memory used in embedded systems and new kinds are being developed all the time. However, we can split memory into two types; RAM and ROM | ||||
|
||||
|
||||
| Which do we use, RAM or ROM? | ||||
| The obvious advantage of RAM over ROM is the fact that data can be written to it as well as read from it. The obvious advantage of ROM over RAM is the fact that data is not lost on power down. So which is used in embedded systems? | ||||
|
The answer is both. |
||||
|
||||
|
||||
| Therefore, we should always keep in mind the two types of memory. RAM for data, ROM for the program. | ||||
|
||||
|
|
||||
|
Copyright (c) 2005-2006 NyCelt LLC
|