Class Activity 9 (S60529)
Class Activity 9 (S60529)
Class Activity 9 (S60529)
Computer components
CPU
Module of general-purpose arithmetic and logic functions
CPU is the electronic circuitry within a computer that
executes instructions that make up a computer program.
o registers.
Registers are a type of computer memory used to quickly accept,
store, and transfer data and instructions that are being used
immediately by the CPU.
The registers used by the CPU are often termed as
Processor registers.
o cache.
A CPU cache[70] is a hardware cache used by the
central processing unit (CPU) of a computer to
reduce the average cost (time or energy) to access
data from the main memory o buses.
Data lines that provide a path for moving data
among system modules
Address bus
Control bus
o clock.
Most CPUs are synchronous circuits, which means they
employ a clock signal to pace their sequential
operations.
Input module
Contains basic components for accepting data and
instructions and converting them into an internal form of
signals usable by the system
Output module
An output module controls devices such as relays,
motor starters, lights.
Discrete I/O. The most common type of PLC I/O is
discrete I/O. Sometimes discrete I/O is referred to as
digital I/O.
The concept is simple, discrete I/O are signals that
are either on or off
Main Memory
The memory unit that communicates directly within the
CPU, Auxillary memory and Cache memory, is called main
memory.
It is the central storage unit of the computer system. It
is a large and fast memory used to store data during computer
operations.
Computer function
Interrupts
Classes of interrupt o Program
Generated by some condition that occurs as a result
of an instruction execution, such as arithmetic
overflow, division by zero, attempt to execute an
illegal machine instruction,
and reference outside a user's allowed memory
space
o Timer
Generated by a timer within the processor. This
allows the operating system to perform certain
functions on a regular basis.
o I/O
Generated by an I/O controller, to signal normal
completion of an operation or to signal a variety
of error conditions. o Hardware failure
Generated by a failure, such as power failure or
memoryparity error.
I/O function
I/O to processor