Ch2 Part 1
Ch2 Part 1
• The material which consists of the central unit and the input / output
devices.
• Software that is programs (set of instructions that the machine must
execute).
3
Von Newman Architecture
Program
Input data Output data
Computer
John Von Newman proposed that programs and data together should
be stored in the memory of a computer
Control Unit
The control unit determines the order in which the instructions
of a program should be executed and controls the retrieval of the
proper operands.
Order of the operations performed by the control :
• extraction of the instruction to be executed,
• analysis of this instruction and bind with the A.L.U.,
• search for data to be processed in the main memory,
• initiation of treatment in the A.L.U
• storing results in the main memory or in auxiliary memory
7
Von Newman Architecture
Main memory (RAM) :
The Buses
Output units are devices that bring information out of a computer after being
processed. Examples of output units: monitor, printers, plotters, projectors,…
9
Input/output examples
Keyboard: A computer keyboard is the
main input device for computers. It is composed
of keys set that sends commands to the computer.
10
Cathode Ray Tubes
The first computer monitors used cathode ray tubes (CRTs). These
monitors are voluminous, heavy with high power consumption.
11
Liquid Crystal Displays (LCD)
12
Liquid Crystal Displays (LCD)
The performance of a monitor is measured by :
13
Liquid Crystal Displays (LCD)
Resolution
14
Liquid Crystal Displays (LCD)
Monitor size
15
Printer
Printer is an output device that allows a user to print items on paper
such as letters, computer programs, and pictures.
16
Dot matrix printer
Uses a print head made of pins that moves up-and-down motion
on the page and prints by impact. Every pin produces a dot and
every character is made of multiple dots
standard screen
wide screen
17
Dot matrix printer
Advantages :
• Low purchase cost,
• Cheap to operate,
• Low repair cost
• Ability to print on continuous paper.
Disadvantages :
Noisy, with low resolution, and not all can do color.
18
Inkjet printer
Creates digital images by propelling droplets of ink onto paper,
plastic or other substrates.
Advantages :
• Prints good resolution photos,
• No warm-up time is needed before printing,
• It can be very cheap
• Prints pages in color.
Disadvantages :
• It has an average printing speed .
• The ink can be rather expensive
19
Laser printer
Laser printer uses static electricity and a laser to melt the powder
ink from a cartridge onto the paper. Most do not print colors.
Advantages :
• It is 2 to 3 times faster and more economical
to use than the Inkjet printers that use more ink.
Disadvantages :
• Higher purchase price.
• Need more frequent maintenance and cleaning
• Their print quality is not as good as Inkjet printers.
20
3D printers
3D printing or additive manufacturing (AM) is the process of
building a three-dimensional object (physical objects) from
computer-aided design (CAD) model (digital blueprints) by
successively adding material layer by layer.
21
4D printers
4D printing uses the same technique of 3D printing and adds the
dimension of transformation over time. The printed product reacts
with environment parameters (humidity, temperature, etc.) and
changes its form accordingly. It uses special materials and
sophisticated designs that are “programmed” to prompt your 3D
print to change its shape
22
1D, 2D, 3D & 4D printers
23
Motherboard
A motherboard is the main printed circuit board in a computer. It
connects all the different components of the computer such as CPU,
memory, connectors for input and output devices, and allows
communication between them
24
Motherboard
25
Computer Memories
The memory is a device able to store, preserve, and extract
information (coded in binary in a computer).
27
Cache
28
Main memory
• Its storage capacity is small and has a high cost per bit storage.
29
RAM (Random Access Memory)
Temporary storage that stores program code and data that can be
accessed, read, and written to by the processor (CPU) and other
hardware devices
RAM is volatile, all its contents are lost when the power supply is
interrupted.
SRAM (Static RAM) and DRAM (Dynamic RAM) , SRAM is faster than
DRAM and used as cache memory. 30
ROM (Read Only Memory)
ROM is non-volatile and is more like a permanent storage for
information.
32
Secondary memory
Second memory device include :
1. Flash memory that can be electrically erased and reprogrammed
(USB flash drives, memory cards, and (SSD) solid state drives),
2. Optical disc for which data is read and written by lasers (CD-ROM,
CD-RW, DVD, Blu-ray BD),
3. Magnetic disk is a circuit plate constructed of metal with
magnetized material (HDD hard disk drive, floppy disk drive)
34
Hard disk partitioning
Hard disk partitioning is the creation of one or more regions on a
hard disk, so that an operating system can manage information in
each region separately. These regions are called partitions
35
Information Organization in Memory
The information are represented and manipulated by the computer
in binary form.
A bit can hold only one of two values 0 or 1 sometimes refer to false
or true.
36
Information Organization in Memory
A byte = 8 bits. Because bits are so small, they are assembled into a
group of eight to form a byte.
The word size is the number of bits processed by the CPU at a time
With modern computers word size can be 32 bits or 64 bits.
• 1 Byte = 8 bits.
• 1 Kilobyte = 1 KB = B = 1,024 Byte.
• 1 Megabyte = 1 MB = KB = Byte.
• 1 Gigabyte = 1 GB = MB = Byte.
• 1 Terabyte = 1 TB = GB = Byte.
38
Information Coding
39
ASCII code
Sample of
ASCII code
table
40
ASCII code
For example, the code of ‘A’ = 65, ‘a’= 97, and ‘0’ = 48 in decimal,
The right most bit in a Byte is called least significant bit (LSB) and the
left-most bit is called most significant bit (MSB).
The MSB can also correspond to the sign bit of a signed binary number
(negative or positive number) 41
Extended ASCII code
42