Computer

From SEGGER Wiki
Revision as of 22:27, 15 June 2019 by MartinBaldwin (talk | contribs) (Components of a computer)
Jump to: navigation, search

A computer is a machine that carries out a sequence of instructions.

While most people think of computers as machines that only do information processing, such as Laptops and Servers, but there is also a category called "Embedded Computers" or Embedded Systems. In Embedded Systems, the computer is used for a very specific purpose, which is typically to control the device of which it is a part.

Embedded Systems span a wide range, from small medical devices, like hearing aids, blood pressure sensors, and pace makers, to household appliances, such as washers & dryers, refridgerators, and coffee makers, to automotive, industrial and aerospace applications.

Instructions

Components of a computer

There are 6 types of components in a computer system:

1) The CPU is the Brain.

2) The Oscillator, or the Clock, is a crystal, RC oscillator, or any other clock source, used to regulate the timing of the CPU, also referred to as “clocking” the CPU.

3) The Program Memory (ROM) is the non-volatile memory containing a list of instructions to be executed sequentially by the CPU.

4) The Output Unit sends data out.

5) The Input Unit lets data in.

6) The RAM is read/write memory that is typically volatile, so its content is lost when the computer is powered down.

The first three components are absolutely essential for a computer to function. With these components, the Clock will prompt the Brain to keep fetching instructions from the ROM and to keep executing them sequentially. Unfortunately, such a computer has no way to communicate. The results of its executed instructions cannot be seen by anyone and thus whatever it does is irrelevant to the outside world.

It needs is an Output Unit. By adding output we start to see a computer with some limited uses. It be used as a clock that displays the amount of time since powering up (but that resets when powered down) or it can serve as a timer that beeps after a certain period, like an egg timer.

Next we add an Input Unit. A simple addition is a button. In the above example the button resets the clock or timer. Other input devices measure things such as temperature.

As the complexity of the task increases, the short term memory in the CPU (the CPU register) will no longer be sufficient to get the job done.

Adding the sixth type of component, RAM, greatly increases functionality and completes the build-out of our basic computer system.

How does a computer work