21/317
2 - How does a typical microcontroller work?
Table 1.
Table of the main processor sizes
2.2 HOW THE CPU AND ITS PERIPHERALS MAKE UP A SYSTEM
The CPU cannot work alone. It is the central piece of a system that includes the following com-
ponents:
2.2.1 CPU
It computes and coordinates. It controls almost all the other components of the system, except
in some cases like interrupts or direct memory access where some peripherals take the initia-
tive.
2.2.2 Memory
It stores both the program, that tells the CPU what to do, and the data, that is temporarily
stored by the CPU like intermediate computation results, and the global state of the system.
In computers, there is only one memory to store both. This memory is volatile, so that a
supplementary, high-capacity and non-volatile storage is required to hold the contents of the
memory when the system is not powered-on, in most cases a hard magnetic disk. The cost
per bit stored of the memory being much higher than that of the hard disk, the capacity of the
memory is usually much lower than that of the disk. Only a fraction of the disk contents
resides in memory at any time.
In microprocessor-based systems, the memory is the only storage, and various types of
memory are used according to its use: read-only memory for the program, read-write
memory for the data, and/or non-volatile solid-state memory for those data that must be
preserved from one session to the next, the system being powered-off between two
sessions.
Data size
Relative
power
Common applications
4 bits
Lowest
Watches, calculators, TV remote control, washing machines.
8 bits
Low
Industrial products and home computers in the '80s; most
microcontrollers today where little numeric computation is required.
16 bits
Medium
As a microprocessor, the former PCs; as a microcontroller,
industrial and automotive products used in car bodies.
32 bits
High
All
PCs
use
this
size
of
microprocessor
today;
some
microcontrollers are also becoming available commercially such as
automotive injection calculators.
64 bits
Highest
Only in mainframes; microcontrollers of this size are just coming out
from the laboratories.
Содержание ST7 Series
Страница 1: ...ST7 8 BIT MCU FAMILY USER GUIDE JANUARY 1999 1 ...
Страница 238: ...238 317 8 C Language and the C Compiler 08 Burn bmp Then use the EPROMer programmer software as described in Chapter 7 ...
Страница 289: ...289 317 10 Second Application a Sailing Computer 10 befor Bs Rw Vw VMG AlphaR AlphaV Before the wind ...