Difference between revisions of "Computer"

From SEGGER Wiki
Jump to: navigation, search
m
m
Line 8: Line 8:
 
There are 5 types of components in a computer system:
 
There are 5 types of components in a computer system:
 
* CPU (Brain)
 
* CPU (Brain)
  +
* oscillator (crystal, RC oscillator or any other clock source), used to clock the CPU
* Program memory (ROM), Non volatile memory containing a list of instructions to execute sequentially
 
  +
* Program memory (ROM), Non volatile memory containing a list of instructions to execute sequentially by the CPU
 
* RAM (Short term, volatile memory)
 
* RAM (Short term, volatile memory)
 
* Output units
 
* Output units
 
* Input units
 
* Input units
  +
Of these 6 types, only the first three are actually required for a functioning computer. This computer will simply fetch instructions from program memory and execute them sequentially.
  +
Unfortunately, a computer consisting of no more than that will be completely useless, as it has not way to communicate with the outside world. In other words:
  +
Whatever this basic computer does is completely irrelevant, as it can not be see by anyone and has no effect on the world at all.
  +
The next thing it needs is an Output unit. Now we can start to build a computer that can actually be used for some things. The uses are still very limited, as it does not have input and
  +
memory, but still some things can be done, such as a clock (showing up time since power up) or a timer that beeps after a certain period of time, such as an egg timer.
   
 
==How does a computer work==
 
==How does a computer work==

Revision as of 20:45, 15 June 2019

A computer is a machine that carries out a sequence of instructions. While most people think of computers as machines which do information processing only, such as Laptops and Servers, there is also a category of computers 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 which it is a part of. Embedded Systems span a wide range, from small medical devices such as hearing aids, blood pressure sensors, pace makers to household appliances such as Washer & dryers, Refridgerators, Coffee makers, to automotive, industrial and airospace uses.

Instructions

Components of a computer

There are 5 types of components in a computer system:

  • CPU (Brain)
  • oscillator (crystal, RC oscillator or any other clock source), used to clock the CPU
  • Program memory (ROM), Non volatile memory containing a list of instructions to execute sequentially by the CPU
  • RAM (Short term, volatile memory)
  • Output units
  • Input units

Of these 6 types, only the first three are actually required for a functioning computer. This computer will simply fetch instructions from program memory and execute them sequentially. Unfortunately, a computer consisting of no more than that will be completely useless, as it has not way to communicate with the outside world. In other words: Whatever this basic computer does is completely irrelevant, as it can not be see by anyone and has no effect on the world at all. The next thing it needs is an Output unit. Now we can start to build a computer that can actually be used for some things. The uses are still very limited, as it does not have input and memory, but still some things can be done, such as a clock (showing up time since power up) or a timer that beeps after a certain period of time, such as an egg timer.

How does a computer work