UNIT2 Fundamentals
UNIT2 Fundamentals
POINTING DEVICES
• Pointing devices are the input devices that are generally used for
moving the cursor to a particular location to point an object on the
screen.
• With the help of pointing devices, we can easily select the icons,
menus, windows, etc on the Graphical User Interface (GUI)
• Some of the commonly used pointing devices are:
➢ Mouse
➢ Trackball
➢ Light pen
➢ Joystick
➢ Touchscreen
Mouse
• Mouse is a small hand-held pointing device that basically controls
the two-dimensional movement of the cursor on the displayed
screen.
• It is an important part of the Graphical User Interface (GUI) based
Operating Systems (OS) as it helps in selecting a portion of the
screen and copying and pasting the text.
• The mouse, on moving, also moves the pointer appearing on the
displaydevice.The most commonly used types of mouse are:
Trackball
• Trackball is a pointing device that basically consists of a socket
containing the ball, which can be rolled manually to move the
cursor on the screen. The socket also contains sensors, which
detect the movement of the ball. With the help of the trackball, we
can change the position of the cursor on the screen by simply
rotating the ball with our fingers or thumb.
• The trackball finds its use as a game controller in games like
Centipede, Golden Tee and Marble Madness.
Light Pen
Light pen is an electro-optical pointing device that is used for
selecting the objects on the display screen with the help of a light
sensitive pen. It is generally connected to the Visual Display Unit
(VDU) of the computer system. The pen contains a light-sensitive
diode, which helps in pointing the objects displayed on the screen.
Using a light pen, we can directly draw the objects on the screen by
holding it in our hand.
Figure below shows light pen attached to a computer system:
SCANNING DEVICES
• Scanning devices are the input devices that can electronically
capture text and images, and convert them into computer readable
form. The basic task of a scanning device is to convert an image or
the textual data into digital data.
• the scanning devices can be categorised as follows:
➢ Hand-held scanners
➢ Flat-bed scanners
➢ Drum scanners
➢ Slide scanners
Hand-held Scanners
Hand-held scanners are the scanning devices that are generally used for
digitising the images into bit map, which is a matrix of 0’s and 1’s.The size
of these scanners is small and the price is relatively less as compared to
the other three types of scanners. These scanners are also known as half
page scanners, as they can scan maximum upto 5 inches at a time. The
hand-held scanners are suitable for scanning small images rather than
the whole page of text or pictures.
The hand-held scanning devices are generally used for identifying the
bar-code label of the products.
The bar-code is a code comprising vertical bars of different widths that
can be read only electronically. The code captured by the scanning device
is stored permanently in the memory.
Flatbed Scanners
• Flatbed scanners consist of a flat surface composing of glass pane
on which the documents are kept for scanning.
• Under this glass pane, there is xenon light and a CCD, which
consists of an array of red, green and blue filters.
• The object to be scanned is put upside down on the glass pane and
the cover is lowered. The light reflected from the document surface
helps in identifying the image or the text present in the document.
• The scanning is done from left to right horizontally, line by line and
the procedure is repeated until all the lines are scanned. The flat-
bed scanners are best suited for slides and photo scanning.
Drum Scanners
Drum scanners generally consist of a large drum, which is used for
scanning the documents. These scanners make use of the Photo
Multiplier Tubes (PMT) technology, instead of the CCD technology. The
resolution image of these scanners is very high due to which they are
very expensive. The disadvantage of these scanners is that they are slow
in speed.
These scanners are suitable for scanning negatives.
Slide Scanners
Slide scanners are used for scanning slides as well as film negatives.
The slides are created on a transparent base using photochemical
solution. The film negatives are the inversion of the positive images.
In order to scan the slide, it is put into the tray, which is meant for
scanning the objects. These scanners are also known as film
scanners as they can easily scan the original image of the film.
The slide scanners are capable of scanning up to 35 slides at a time
and offer an optical resolution ranging from 4000 dpi to 4800 dpi.
Slide scanners can efficiently scan negatives and black and white
films.
OPTICAL RECOGNITION DEVICES
Optical recognition devices are used for recognising the characters
optically. The optical recognition devices basically make use of
optical scanner for inputting data. The following are some of the
commonly used optical recognition devices:
➢ OCR devices
➢ OMR devices
➢ MICR devices
OCR Devices
Optical Character Recognition (OCR) devices scan a particular document
by recognising its individual characters and converting it into the editable
form. These devices distinguish the dark area on the document from the
light areas for recognising the characters. The images scanned by the
OCR device can be easily edited and formatted on a computer system.
OMR Devices
The Optical Mark Recognition (OMR) devices make use of OMR
technology, which helps in obtaining the data from the marked fields.
These devices prove to be of great use in recognising characters in
question sheets, enrolment forms, registration forms, employee payroll,
etc. Most popularly, the OMR devices are used for scanning the
documents having multiple choices as in the question papers used in
schools, colleges, etc. The correct answer is marked by the student in the
boxes with the dark pencil or ink while answering The OMR devices do
not scan the entire document sheet. Instead, they analyse the darkened
area only to check whether it is marked or not.
MICR Devices
Magnetic Ink Character Recognition (MICR) devices are the special
devices used for recognizing the characters written with magnetic ink
consisting of iron oxide particles. These devices were specially developed
for the banking operations. The details on the bank cheques, such as
cheque number, bank and branch code are written with the magnetic ink.
The MICR devices process the cheque, identify the numeric characters
and store the data on the disk.
Output devices
• receive the processed data (information) from the CPU and present
it to the user in a desired form.
• The main task of an output device is to convert the machine
readable information into human-readable form which may be in
the form of text, graphics, audio or video.
• Depending upon the form of output required, the output device
may belong to one of the following categories:
• Display monitors
• Printers
• Plotters
• Voice output systems
• Projectors
DISPLAY MONITORS
Display monitors are the most commonly used soft copy output devices.
Earlier the display monitors were capable of displaying the characters
only in a single font and in a single colour. The display screens, which are
available today, support many fonts and colours. Different types of
display monitors use different technology for displaying the data. On the
basis of technology used display monitors may be classified into three
categories:
1. Cathode Ray Tube Monitor (CRT)
2. Liquid Crystal Display Monitor (LCD)
3. Thin Film Transistor Monitor(TFT)
IMPACT PRINTERS
Impact printers are those printers in which there exists a mechanical
contact between print head and paper. Print head is the part of the
printer that resembles a hammer and is responsible for transferring the
ink to the paper in the form of required characters. Impact printer
contains an individual print head for each character. The print head of a
character strikes the ink ribbon, and the ink ribbon in turn strikes the
paper, leaving an impression of that particular character on the paper.
Some of the most popular impact printers are as follows:
• Dot matrix printers
• Daisy wheel printers
• Drum printer
Drum printers
are the impact printers in which the characters are engraved on a
cylindrical drum, which is rotated around print head hammer. The paper
and the ink ribbon lie between the hammer and the drum. When a
character is to be printed, the hammer strikes the paper and forces it to
hit the ribbon. The ribbon in turn hits the character on the drum and the
impression of the character is formed on the paper. The advantages of
the drum printers are low cost, higher speed as compared to other
impact printers;
The disadvantages of these printers include poor quality of printing and
large noise production.
NON-IMPACT PRINTERS
Non-impact printers are the printers in which there exists no mechanical
contact between the print head and paper. These printers spray ink on
the paper with the help of a nozzle. Non-impact printers do not produce
much noise and are fast as compared to impact printers.
The most popular non-impact printers are:
1. Ink-jet printers
2. Laser printers
Ink-jet printers
are the non-impact printers that produce an image by spraying small
droplets of ink on the paper with the help of a nozzle.
The ink-jet printers offer a resolution of 300 dots per inch and produce
high quality printouts, such as graphics and images. They are cheaper
and portable as compared to the other non-impact printers.
Laser Printers
Laser printers are the non-impact printers that produce images with the
help of a laser beam. The laser beam electrically charges the drum
coated with selenium and then transfers the entire document, which is to
be printed to it. The charged drum is then allowed to roll into the dry
powder ink known as toner. The toner sticks to the charged images on
the drum and is then transferred to the paper with the help of heat and
pressure. The electrical charges and the remaining toner automatically
get removed from the drum after the printing of the document.
Laser printers have a high speed and resolution. They produce high
quality printing in various fonts and that too, without producing any
noise. Laser printers are capable of printing both black and coloured text.
PLOTTERS
Plotter is a device used to print high quality graphics and images. It uses
one or more pens to produce a high quality drawing. These pens change
their positions and draw continuous lines to produce an image. The
plotters were used as a substitute to the coloured printers when the
printers were very expensive and were also not capable of drawing
bigger images such as graphs. The plotters provided cheap and efficient
drawing.
The plotters are further divided into the following four categories on the
basis of their working:
• Drum plotters
• Flat-bed plotters
• Ink-jet plotters
• Electrostatic plotters
Drum Plotter
Drum plotter is a plotter in which pen is moved vertically, i.e., along the Y
axis and the paper wrapped on the drum is moved horizontally, i.e., along
the X axis. The movement of pen in left or right direction and the
movement of paper in backward or forward direction produce a graph or
an image.
Flat-bed Plotter
Flat-bed plotter is the plotter in which the position of the paper is kept
constant and the pens are moved around in various directions to draw
graphs and images. The pens can be moved both along X and Y axis.
Ink-jet Plotter
Ink-jet plotters are the plotters in which a line or a solid colour
output is drawn with the help of spraying ink droplets on the
paper. They have a high speed and produce higher quality output
as compared to the other plotters.
Electrostatic Plotter
Electrostatic plotters are the plotters in which the electrostatic charges
are used to draw images and graphs. These images and graphs are made
of tiny dots on a special paper. The electrostatic plotters are the fastest
plotters and produce an output of high quality and resolution.
Raster scan and vector scan are two of the most popular approaches
used to display the pictures and images of objects on the screen.
Raster Scan –
• Characters or graphics displayed on the CRT screen are formed of a
number of dot points. The dot points are arranged on horizontal
scan lines on the screen.
• In the raster scan method the electron beam is first directed at the
top left-hand corner of the screen and then it is moved along the
first horizontal scan line.
• The beam illuminates the selected dots along the first horizontal
scan line, which are needed to produce characters or graphics.
When the beam reaches right end of the first scan line, it is turned
off (blanked) and retraced rapidly left side to the starting point of
the second scan line.
• Now it moves along the second scan line and illuminates the
required dots on it.
• This process is repeated and all the scan lines of the screen are
illuminated to display images, characters or graphics on the screen.
• When the beam reaches at the end of the last line it is blanked and
retraced back to the starting point of the first scan line again and
the entire process is repeated again to refresh the illumination of
the desired dots so that one can always see the display due to
persistence of vision.
• In this method the beam is scanned over the entire screen.
Vector scan-
• In vector scan (also known as random scan), the electron beam is
directed only to the part of the screen where the image is to be
displayed rather than scanning from left to right and top to bottom
as in the case of raster scan.
• This technique illuminates the selected dots on the screen directly.
Straight lines can be drawn connecting any two points on the
screen.
• In this method, the picture can be draw in terms of line, one at a
time. The vector scan method is quite suitable to display graphics
consisting of straight lines. But it is not suitable to display curves.
As shown in Fig., vector scan CRT display directly traces out only the
desired lines on CRT i.e. If we want a line connecting Point A with Point B
on the vector graphics display, we simply drive the beam deflection
circuitry, which will cause beam to go directly from Point A to B. If we
want to move the beam from point A to Point B without showing a line
between points, we can blank the beam as we move it. To move the
beam across the CRT, the information about both, magnitude and
direction is required.
➢ Parallel port-A parallel port allows the transfer of all the bits of a
word simultaneously. In parallel interface there are multiple lines to
connect the peripheral to the port. A parallel interface is used to
transfer data at faster rate for high-speed peripherals such as disk
and tape. Within the computer data is transferred in parallel so that
the computer works at high speed.
➢ Serial port-A serial port allows serial data transfer. In serial data
transfer one bit of data is transferred at a time. In serial interface only
one line or a pair of lines is used to transmit data. It is used for slow-
speed peripherals such as terminals. Printers employ either serial
interface or parallel interface. The disadvantage of a serial/parallel port is
that only one device can be connected to a port.
The serial data transfer can be classified into the following three
types:
Simplex -In this method of serial data transmission data are
transmitted only in one direction. For example the transfer of data
from a computer to a remote printer.
Baud Rate
The term baud rate specifies the rate at which serial data are
transmitted. It is equal to 1/(the time for a bit cell). If the time for
one bit cell is 9.01 ms, the baud rate = 1/9.01 ms = 110 bd (baud).
MICROCONTROLLERS
• A microcontroller (MCU) is a small computer on a single integrated
circuit that is designed to control specific tasks within electronic
systems. It combines the functions of a central processing unit
(CPU), memory, and input/output interfaces, all on a single chip.
• Microcontrollers are widely used in embedded systems, such as
home appliances, automotive systems, medical devices, and
industrial control systems. They are also used in consumer
electronics products, such as gaming systems, digital cameras, and
audio players.
• It is very small and compact. It forms a part of the device or
equipment which is to be controlled.
• A Microcontroller is a small and low-cost microcomputer, which is
designed to perform the specific tasks of embedded systems like
displaying microwave’s information, receiving remote signals etc.
• A simple microcontroller contains a CPU, memory (RAM and
ROM/EEPROM/Flash memory) and I/O lines.
• A powerful microcontroller may contain a few other components
(which are needed for industrial and other control applications)
such as A/D converter, D/A converter, DMA channels, pulse-width
modulator, watch-dog timer, high-speed input/output system, wave
generator, interrupt processor, etc.
Types of Microcontrollers
Applications of Microcontrollers
• Light sensing and controlling devices like LED.
• Temperature sensing and controlling devices like microwave oven,
chimneys.
• Fire detection and safety devices like Fire alarm.
• Measuring devices like Volt Meter.
Input-Output Processor (IOP)
• The Input-Output Processor (IOP) is just like a CPU that handles the
details of I/O operations.
• It relieves CPU from the task of input/output operations. A modern
computer has several I/O devices. Some of them are very fast devices.
To perform I/O operations I/O programs are to be executed. If CPU is
kept busy in executing I/O programs, its appreciable time is wasted in
it and it gets less time to perform its own task of data processing.
Therefore, to make a modern computer efficient and faster, important
I/O devices are provided with I/O processors.
• The IOP can fetch and execute its own instructions that are
specifically designed to characterize I/O transfers. In addition to the
I/O-related tasks, it can perform other processing tasks like
arithmetic, logic, branching, and code translation. The main memory
unit takes a pivotal role. It communicates with the processor by
means of DMA(Direct Memory Access).
• The Input-Output Processor is a specialized processor which loads
and stores data in memory along with the execution of I/O
instructions. It acts as an interface between the system and devices.
It involves a sequence of events to execute I/O operations and then
store the results in memory.
Features of an Input-Output Processor
• Specialized Hardware: An IOP is equipped with specialized
hardware that is optimized for handling input/output operations.
This hardware includes input/output ports, DMA controllers, and
interrupt controllers.
• DMA Capability: An IOP has the capability to perform Direct Memory
Access (DMA) operations. DMA allows data to be transferred
directly between peripheral devices and memory without going
through the CPU, thereby freeing up the CPU for other tasks.
• Interrupt Handling: An IOP can handle interrupts from peripheral
devices and manage them independently of the CPU. This allows
the CPU to focus on executing application programs while the IOP
handles interrupts from peripheral devices.
• Command Processing: An IOP can process commands from
peripheral devices independently of the CPU. This allows the CPU
to focus on executing application programs while the IOP handles
peripheral device commands.
• Parallel Processing: An IOP can perform input/output operations
in parallel with the CPU. This allows the system to handle multiple
tasks simultaneously and improve overall system performance.
DSP (DIGITAL SIGNAL PROCESSOR)
• The processors specially designed to process digital signals is called
DSP.
• It receives digitized signals, performs some mathematical operations
and sends result to an output device or a host microprocessor.
• One of the big advantages of DSP is the programmability of the
processor, which allows important system parameters to be changed
easily to accommodate the application. DSPs are optimized for digital
signal manipulations.
• Most of DSP systems accept analog signal using ADC (Analog-to-
Digital Converter), process them using DSP and send the result to a
D/A converter or a host microprocessor. DSPs implement integration,
differentiation, complex Fast Fourier Transform etc. using hardware.
Arithmetic Processor
• A processor has an arithmetic processor (as a sub part of it) that
executes arithmetic operations. An arithmetic processor is a
processor devoted exclusively to arithmetic functions.
• It can be used to implement a full variety of arithmetic functions in
hardware at a relatively low cost.
• This processor physically may be separate however can be utilized
by CPU to execute complex arithmetic instructions.
• In the absence of arithmetic processors these instructions can be
executed using slower software routines by the CPU itself.
• So this auxiliary processor improves the speed of execution of
programs having several complex arithmetic computations.
• General purpose microprocessors such as 8086, 8088, 80286,
80386 etc. are not optimized to perform complex numerical
calculations, CRT graphics manipulations or word processing. For
these purposes specialized coprocessors have been developed.
These coprocessors operate in parallel with CPUs.
• There are two ways to interface an arithmetic processor to a CPU:
➢ In one approach it is treated as a peripheral device. Such
units are called peripheral processor. The CPU sends data
and instructions for processing to such an unit and
receives results from it.
➢ In another approach the arithmetic processor is
connected as an extension of the CPU. The instructions
and registers of arithmetic processor are extensions to
those of the CPU. The instruction set of the CPU includes
a special subset of opcodes reserved for arithmetic
processor. Arithmetic processor of this type is called
coprocessor.