Computer Fundamentals notes of mca 1st sem

1,503 views 107 slides Jul 03, 2024
Slide 1
Slide 1 of 107
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19
Slide 20
20
Slide 21
21
Slide 22
22
Slide 23
23
Slide 24
24
Slide 25
25
Slide 26
26
Slide 27
27
Slide 28
28
Slide 29
29
Slide 30
30
Slide 31
31
Slide 32
32
Slide 33
33
Slide 34
34
Slide 35
35
Slide 36
36
Slide 37
37
Slide 38
38
Slide 39
39
Slide 40
40
Slide 41
41
Slide 42
42
Slide 43
43
Slide 44
44
Slide 45
45
Slide 46
46
Slide 47
47
Slide 48
48
Slide 49
49
Slide 50
50
Slide 51
51
Slide 52
52
Slide 53
53
Slide 54
54
Slide 55
55
Slide 56
56
Slide 57
57
Slide 58
58
Slide 59
59
Slide 60
60
Slide 61
61
Slide 62
62
Slide 63
63
Slide 64
64
Slide 65
65
Slide 66
66
Slide 67
67
Slide 68
68
Slide 69
69
Slide 70
70
Slide 71
71
Slide 72
72
Slide 73
73
Slide 74
74
Slide 75
75
Slide 76
76
Slide 77
77
Slide 78
78
Slide 79
79
Slide 80
80
Slide 81
81
Slide 82
82
Slide 83
83
Slide 84
84
Slide 85
85
Slide 86
86
Slide 87
87
Slide 88
88
Slide 89
89
Slide 90
90
Slide 91
91
Slide 92
92
Slide 93
93
Slide 94
94
Slide 95
95
Slide 96
96
Slide 97
97
Slide 98
98
Slide 99
99
Slide 100
100
Slide 101
101
Slide 102
102
Slide 103
103
Slide 104
104
Slide 105
105
Slide 106
106
Slide 107
107

About This Presentation

computerr fundamnetal


Slide Content

Unit –I
Introduction to Computers
•WhatisComputer?
–Theword‘computer’comesfromtheword‘compute’,
whichmeans‘tocalculate’.
•Hence,peopleusuallyconsideracomputertobeacalculating
devicethatcanperformarithmeticoperationsathighspeed.
•Infact,theoriginalobjectiveforinventingacomputerwasto
createafastcalculatingmachine.However,morethan80%of
workdonebytoday’scomputerisofnon-mathematicalornon-
numericalnature.
•Moreaccurately,wecandefineacomputeras–Adevicethat
operatesupondatalikebio-data,marksobtained,employee
personaldetails,songs,videoetc.
•Hence,datacomesinvariousshapes&sizesdependingupon
thetypeofcomputerapplications.

•Somecommondefinitionsofcomputer–
–Calculatingdevicethatcanperformarithmeticoperationat
anenormousspeed.
–Anelectronicdevicewhichiscapableofcreatingsolutionby
performingcomplexprocessingatinformation.
–Anelectronicdeviceforthestorage&processingof
information.
–Anelectronicdevicethatstores,retrieveandprocessesdata
andcanbeprogrammedwithinstructions.
–Amachinethatacceptsdataandmanipulatesitforsome
resultbasedonaprogramwhichdescribeshowdataistobe
manipulatedorprocessed.
–Amulti-functionelectronicdevicethatcanexecute
instructionstoperformatask.
–Amachinethatacceptsinput,processesitaccordingto
specifiedrulesandproducesoutputaccordingly.
–Anelectronicdevicewhichprocessesdataunderthecontrol
ofasetofinstructionscalledprogramtoproducedesired
result.

What is Data, Information and
Data Processing?
•Data–
–Itisthepluralformof‘datum’meaning‘fact’.
–Itcanbedefinedasrepresentationoffactsorobservations.Foreg.Number,
words,quantities,amountetc.aredata.
–Dataarerepresentedbysymbols.
•Information–
–Dataarrangedinusefulandmeaningfulformisknownasinformation.Insimple
wordswecansaythatDataarerawmaterialwhileinformationismeaningfully
orderedorstructureddataproducedasoutputofdataprocessing.
–Ithasalwaysacontextwhereasthedatamaybecontextfree.
•DataProcessing–
–Theactivityofprocessingdatausingacomputeriscalleddataprocessing.
–Dataprocessingconsistsofthreesub-activities–
•Capturinginputdata
•Manipulatingthedata
•Managingoutputresults.
–Hence,dataisrawmaterialusedasinputtodataprocessingandinformationis
processeddataobtainedasoutputfromdataprocessing.

•Data–
–Fact,observation,assumptionoroccurrenceofanevent.
–Providesknowledgeorinformationorvaluetoanindividual
orbusiness.
–Compiledtoformreports,figures,documentsetc.
–Rawmaterialforinformation
–Maybealphabetic,numericorspecialsymbol.
•Information–
–Organizedorclassifieddata
–Finishedproduct
–Musthavesurprisingvaluetotheuser.
•DataProcessing–
–Reconstruction,manipulatingorre-orderingofdataby
people/machinetoincreaseitsusefulnessandvaluefor
someparticularpurpose.

Characteristics of Computer
•Automation–Computersareautomaticmachinesbecauseoncestartedonajob,they
carryoutthejob(normallywithouthumanassistance)untilitisfinished.
•Speed–Acomputerisaveryfastcalculatingdevice.Itcanperformbillionsofinstructions
inafractionofsecondandthattoowithoutanyerror.
•Accuracy–Inadditiontobeingfast,computersareveryaccurate.Acomputerperforms
everycalculationwiththesameaccuracy.However,errorscanoccurinacomputer.These
errorsaremainlyduetohumanratherthantechnologicalweaknesses.
•Diligence–Unlikehumanbeings,acomputerisfreefrommonotony,tirednessandlackof
concentration.Itcancontinuouslywordforhourswithoutcreatinganyerrorandwithout
grumblingi.e.ifmillionsofcalculationsaretobeperformed,acomputerwillperformthe
lastonewithexactlythesameaccuracyandspeedasthefirstone.
•Versatile–Acomputerisahighlyversatilemachineasitcanperformno.oftasksatthe
samemoment.Onemomentitispreparingresultsofanexamination,anothermoment
preparingelectricitybillandverynextmomentplayinggameetc.
•Large&PerfectMemory–Asahumanbeingacquiresnewknowledge,his/herbrain
subconsciouslyselectswhatitfeelstobeimportantandworthretaininginmemory.The
brainrelegatesunimportantdetailstobackofmindorjustforgetsthem.Thisisnotthe
casewithcomputers/Acomputercanstoreandrecallanyamountofinformationbecause
ofitslargestoragecapacity.Itcanretainapieceofinformationaslongasauserdesires
andtheusercanrecalltheinformationwheneverrequired.

Limitations of Computers
•NoI.Q.(intelligencequotient)–Acomputerisnota
magicaldevice.Itpossessesnointelligenceofitsown.
ItsI.Q.iszero.Ithastobetoldwhattodoandinwhat
sequence.Acomputercannottakeitsowndecisions.
•NoFeeling–Computersaredevoidofemotions.They
havenofeelingsandnoinstinctsbecausetheyare
machines.Basedonoutfeelings,taste,knowledgeand
experienceweoftenmakecertainjudgmentsinour
day-to-daylifewhereas,computerscannotmakesuch
judgmentsontheirown.Theymakejudgmentsbased
ontheinstructionsgiventothemintheformof
programsthatarewrittenbyus.

Evolution of Computer
Necessity is the mother of evolution…
2400B.C.Abacus–earliestcalculatingdevice
1600 NapierBonesbyJohnNapier–usedformultiplicationanddivision
1620 SlideRule-multiplicationanddivision
1642 PascalineorPascalineCalculatorbyBlaisePascal–foradditiononly
1671 LeibnizCalculatorbyGottfriedVonLeibniz–firstcalculatorformultiplication,also
describethebinarynumeralsystem
1801 JosephMarieJacquard–weavingpatternusingPunchedCards
1822 DifferenceEnginebyCharlesBabbageforcomputingtable
1833 AnalyticalEnginebyCharlesBabbage(fatherofmoderndigitalcomputer)–base
ofmoderndigitalcomputer,usedpunchedcardsforinput,steamenginefor
power,generalpurposeprogrammablecomputer
1843 LadyAdaLovelace–firstprogrammer
1847 GeorgeBoolepublishedthepaperforBooleanAlgebra–thebasicofmodern
computationtheory
1880 HermanHollerithdevelopedHollerithTabulatingMachine(thecoreofIBM)uses
punchedcards

1937 ClaudeShennonimplementedBooleanAlgebrausingelectronicrelays&switches
1939 HowardMark-IorAutomaticSequenceControllerCalculator(ASCC)byHoward
A.AikenincollaborationwithIBM–firstelectromechanicalcomputer
1943-46ENIACbyProf.J.PresperEckert&JohnMouchly-firstallelectroniccomputer
1946–52EDVAC–amajordrawbackofENIACwasthatitsprogramwerewiredonboards
thatmakeitdifficulttochangetheprograms.
Dr.JohnVonNeumannintroducedthe‘storedprogram’conceptasaresult
sequenceofdataandinstructionscanbestoredinthememoryofacomputer.
Duetothisfeature,weoftenrefertomoderndigitalcomputersas‘stored
programdigitalcomputer’.
1947–49EDSAC(Electronicdelayedstorageautomaticcalculator)byProf.MauriceWilkes
1951 UNIVAC-1(UniversalAutomaticComputer)–firstdigitalcomputer
1955 IBMintroducesfirsttransistorbasecalculator
1957 FORTRAN–firstHLLforscientificapplication
1971 Intelfirstmicroprocessor–4004

Functional Components of a Computer
•Acomputerfollowsinput-process-output(IPO)
cycle.
•Thefirststageisperformedincomputerbyinput
unit.
•Thesecondstageisperformedbythecentral
processingunit.
•Thethirdstageisperformedbyoutputunit.
•Themainmemoryholdstheinputand
intermediateoutputduringtheprocessing

•The basic structure of a computer is as shown
below -
Input Unit Output Unit
Central
Processing
Unit
Main Memory
Storage Device

Input Unit
•Theinputunitisresponsiblefortakinginputand
convertingitintocomputerunderstandableform
(binarycode).
•Theinputunitisformedbytheinputdevicesattached
tothecomputer.
•Examplesofinputmediaare:keyboard,mouse,
magneticinkcharacterreader(MICR),opticalcharacter
reader(OCR),opticalmarkreader(OMR),joysticketc.
•Inputcomprisedofdata&instruction.
S.No.Input Data Instruction
1 Purchase Cake & Pastries Cake, Pastries Purchase
2 Make a phone call at 74551657455165 Make a phone call
3 Make tea using ingredients Ingredients Make tea

Central Processing Unit (CPU)
•TheCPUisthecontrolcentreforacomputer.
•Itguides,directsandgovernsitsperformance.
•Itisthebrainofthecomputer.
•TheCPUhastwocomponentswhichare
responsiblefordifferentfunctions.
•Thesetwocomponentsare–
–ControlUnit(CU)and
–ArithmeticLogicUnit(ALU).

ALU
•TheALUperformsallthefourarithmetical(+,-,*,/)
andsomelogical(<,>,=,<=,>=,<>)operations.
•Whentwonumbersarerequiredtobeadded,these
numbersaresentfrommemorytoALUwhereaddition
takesplaceandtheresultisputbackinthememory.In
thesamewayotherarithmeticoperationsare
performed.
•Forlogicaloperationalso,thenumberstobecompared
aresentfrommemorytoALUwherethecomparison
takesplaceandtheresultisreturnedtothememory.
•TheresultofalogicaloperationiseitherTRUEor
FALSE.
•Theoperationsprovidethecapabilityofdecision-
makingtothecomputer.

Control Unit (CU)
•TheCUcontrolsandguidestheinterpretation,flowand
manipulationofalldataandinformation.
•TheCUsendscontrolsignalsuntiltherequiredoperationsare
doneproperlybyALUandmemory.
•AnotherimportantfunctionofCUistheprogramexecution
i.e.carryingoutalltheinstructionsstoredintheprogram.
•TheCUgetsprograminstructionsfrommemoryandexecutes
themoneaftertheother.
•AftergettingtheinstructionsfrommemoryinCU,the
instructionisdecodedandinterpretedi.e.whichoperationis
tobeperformed.
•TheCUevencontrolstheflowofdatafrominputdevicesto
memoryandfrommemorytooutputdevices.

Output Unit
•Theoutputunitisformedbytheoutputdevices
attachedtothecomputer.
•TheoutputcomingfromtheCPUisintheformof
electronicbinarysignalswhichneedsconversionin
someformwhichcanbeeasilyunderstoodby
humanbeingsi.e.characters,graphicaloraudio
visual.Thisfunctionofconversionisperformedby
outputunit.
•SomepopularoutputdevicesareVDU(visual
displayunit),printer,plotter,speechsynthesizerand
codeetc.

The Memory
•Thememoryofacomputerisoftencalledmainmemoryorprimary
memory.
•ItisgenerallythethirdcomponentofCPU.
•Itismorelikeapredefinedworkingplace,whereittemporarilykeeps
informationanddatatofacilitateitsperformance.
•Thememoryofacomputercanbethoughofas‘cell’.
–Amemorycellmaybedefinedasadevicewhichcanstoreasymbolselected
fromasetofsymbols.
–Eachofthesecellsisfurtherbrokendownintosmallerpartsknownas‘bits’.
•Abitisanelementaryunitofmemory.
•Abitmeansabinarydigiti.e.either0or1.
•Anumberofbitstogetherareusedtostoredatainstructionsbytheircombination.
•Agroupof4bitsiscalleda‘nibble’andagroupof8bitsiscalled‘byte’.
•Onebyteisthesmallestunitwhichcanrepresentadataitemoracharacter.Otherunits
are–KB,MB,GB,TBetc.
•Sincecomputer’smainmemory(primarymemory)istemporary,secondary
memoryspaceisneededtostoredataandinformationpermanentlyfor
lateruse.Somemostcommonsecondarystoragemediaarethefloppy
diskette,harddisk,CD-RWetc.Thesecondarymemorydevicesarealso
knownasstoragedevices.

Major components of a computer system
•TheHardware
•TheOperatingSystem
•TheApplicationprogramroutines
–compilers,linkers,databasemanagementsystems,utility
programsetc.
•TheHumanware(users)
–Where,hardwareprovidesthebasiccomputingresources,
theapplicationprogramroutinedefinethewaysinwhich
theseresourcesareusedtosolvethecomputingproblemsof
theusersandtheOperatingSystemcontrolsandcoordinates
theuseofthehardwareamongthevariousapplication
programsforthevarioususers.Theoperatingsystemfrees
theapplicationsoftwaretoconcentrateonproducing
information.

User
Application Software
Operating System
CPU & Hardware
Interacts with
Interacts with
Interacts with
CPU

Hardware
•Hardwarerepresentsthephysicalandtangiblecomponentsofthe
computeri.e.thecomponentsthatcanbeseenandtouched.
•Theelectronic,electricalandmechanicalequipmentthatmakes
upacomputeriscalledhardware.
•Inputdevices,outputdevices,CPU,floppydisk,harddisketc.are
examplesofhardware.
•Peripherals
–Peripheralsarethedevicesthatsurroundthesystemunite.g.the
keyboard,mouse,speakers,printers,monitorsetc.
•Acomputerconsistsoffiveprimaryhardwarecomponents–
–Inputdevices,
–memory,
–CPU,
–outputdevices,
–storagedevices
•Thecomponentsworktogetherwithsoftwaretoperform
calculations,organizedataandcommunicatewithother
computers.

Software
•Softwarerepresentsthesetofprogramsthatgoverntheoperationof
acomputersystemandmakethehardwarerun.
•Theyarebroadlyclassifiedintothreecategories–
–OperatingSystem
–LanguageProcessor
–ApplicationSoftware
•OperatingSystem
–Anoperatingsystemisaprogramwhichactsasaninterfacebetweenauser
andthehardware(i.e.allcomputerresources).
–Anoperatingsystemisanimportantcomponentofacomputersystemwhich
controlsallothercomponentsofthecomputersystem.
–Operatingsystemisjustlikeoursecretary–wepassourorder/requeststo
operatingsystemand‘theoperatingsystem’doesitforus.‘OperatingSystem’
itselfdecides:Howtodo?;Whattodo?;Whentodo?
–Theprimarygoalofanoperatingsystemisthustomakethecomputersystem
convenienttouseandsecondarygoalistousecomputerhardwareinan
efficientmanner.

•Theoperatingsystemperformsthefollowingfunctions–
–Providestheinstructionstoprepareuser-interfacei.e.wayto
interactwithuserwhetherthroughtypedcommandsorthrough
graphicalsymbols.
–Loadsnecessaryprograms(intothecomputermemory)whichare
requiredforpropercomputerfunctioning.
–CoordinateshowprogramsworkwiththeCPU,keyboard,mouse,
printerandotherhardwareaswellaswithothersoftware.
–Managesthewayinformationisstoredonandretrievedfrom
disks.
•TherearevarioustypesofO.S.–
–Singleuser,multiuser,batchprocessing,multiprocessingetc.
–Asthenamesuggest,singleuserOSsupportssingleuserwhereas
multiusersupportsmultipleusers.ThebatchprocessingOS
processesthebatches(groups)ofjobsandmultiprocessingOSis
capableofhandlingmultipleCPU’satthesametime.

Language Processor
•Assembler
–Thislanguageprocessorconvertstheprogramwritteninassemblylanguage
intomachinelanguage.
•Interpreter
–ThislanguageprocessorconvertsanHLLprogramintomachinelanguageby
convertingitlinebyline.
–Ifthereisanyerrorinanyline,itreportsitatthesametimeandprogram
executioncannotresumeuntiltheerrorisrectified.
–Interpretermustalwaysbepresentinthememoryeverytimetheprogramis
executedaseverytimetheprogramisrun,itisfirstinterpretedandthen
executed.
–Forerrordebugging,interpreterisverymuchusefulasitreportstheerror(s)at
thesametime.Butonceerrorsareremoved,unnecessaryusageofmemory
takesplaceasithastobepresentinthememoryalways.
•Compiler
–ItalsoconvertstheHLLprogramintomachinelanguagebuttheconversion
mannerisdifferent.
–ItconvertstheentireHLLprograminonego,andreportsalltheerrorsofthe
programalongwiththelinenumbers.
–Afteralltheerrorsareremoved,theprogramisrecompiled,andafterthatthe
compilerisnotneededinthememoryastheobjectprogramisavailable.

Application Software
•Anapplicationsoftwareisasetofprogramsnecessary
tocarryoutoperations.Foreg.Inventorycontrol,
financialaccounting,railwayreservationetc.
•Subdividedintotwocategories–
–CustomizedApplicationSoftware:Thistypeofsoftwareis
tailor-madesoftwareaccordingtoauser’srequirements.The
softwareisdevelopedtomeetalltherequirementsspecified
bytheuser.However,thiscannotbedirectlyinstalledatany
otheruser’sworkplaceastherequirementofthisusermay
differfromthefirstoneandthesoftwaremaynotfitinthe
requirementsofthenewuser.
–GeneralPurposeApplicationSoftware:Thistypeof
softwareisdevelopedkeepinginmindthegeneral
requirementsforcarryingoutaspecifictask.Manyuserscan
useitsimultaneouslyasitfulfillsthegeneralrequirements.

Types of Computers
Computers
Digital
Purpose Wise
Special
Purpose
General
Purpose
Size and
Performance
Wise
Embedded Micro
Programmable Laptop Workstation
Mini Mainframe Super
Analog Hybrid

•DigitalComputers
–Thedigitalcomputersworkupondiscontinuousdata.
–Theyconvertthedataintodigits(binarydigits0&1)andall
operationsarecarriedoutonthesedigitsatextremelyfast
rates.
–Digitalcomputerscanfurtherbeclassifiedas:
•Purpose-wiseDigitalComputes
–SpecialPurposeComputerisdesignedtoperformaspecifictask.The
instructions(programs)tocarryoutthetaskarepermanentlystoredinthe
machine.Forthespecifictasks,thistypeofcomputerworksefficientlybut
suchcomputersarenotversatile.
–GeneralPurposeComputeristheonethatcanworkondifferenttypesof
programsinputtoitandthusbeusedincountlessapplications.The
programsarenotpermanentlystoredbutareinputatthetimeof
execution.Thesecomputersareveryversatile.
•SizeandPerformancewiseDigitalComputers
–EmbeddedComputers:
»Thesecomputersareembeddedwithincircuitryofappliancessuchas
television,washingmachineetc.
»Thesecomputersaretypicallypre-programmedforaspecifictasksuch
astuningtoaparticulartelevisionfrequencyetc.

–Microcomputers:
»AmicrocomputerisacomputerwhoseCPUisamicroprocessor.
»Amicroprocessorisaprocessorwhoseallcomponentsareonasingle
integratedcircuit(IC)chip.
»Theyaredesignedforperformingbasicoperationslikeeducational,
training,smallbusinessapplications,playinggamesetc.
»Furtherclassifiedas:
•ProgrammableComputerorPDAs(personaldigitalassistants):
•Theyareusedasnotepads,schedulingsystems,address
booketc.
•Ifequippedwithacellularphone,theycanconnectto
worldwidecomputernetworkstoexchangeinformation
regardlessoflocation.
•Laptop(Notebook)ComputersandDesktopPersonalComputers
(PCs):
•Theyhavelargeamountofinternalmemory.
•Theyareequippedwithkeyboard,amouse,track-balletc.
•TheyusuallyhavesimilarhardwareandsoftwareasPCs,but
theyaremorecompactandhaveflat,lightweightLCDs
insteadofvideodisplaymonitors.
•Laptopcomputers(alsocalledNotebooks)canbecarriedout
inbriefcases.
•Laptopcomputersaresocalledastheycansitonalapand
Desktopcomputersaresocalledastheycansitonadesk.

–Minicomputers
»Alsocalledmid-rangeservers,aremorepowerfulcomputersthan
micro-computersintermsofprocessingpowerandcapabilities.
»Theyaremainlymultiusersystemswheremanyusers
simultaneouslyworkonthesystems.
»Theypossessgreaterstoragecapacityandlargermemoriesas
comparedtomicrocomputers.
»Theyarecapableofhandlingmoreinput-outputdevices.
»ExamplesarePDP-11,VAX,7500Magnumetc.
–MainframeComputers
»Theyaredesignedtohandlehugevolumeofdataandinformation.
»Thesecansupportmorethanhundredusersatthesametime.
»Theyareverylargeandexpensivecomputersandhavegreat
processingspeedandverylargestoragecapacityandmemoryas
comparedtomicrocomputers.
»Thesecomputersevenpossessandworkwithmorethanone
processoratthesametime.
»Theyaremultiuser,multiprocessorsystems.
»ExamplesICL39,CDC6600,VAX8842,IBM3090/600etc.

–SuperComputers
»Thesecomputersconsistsofseveralprocessorsrunningtogether
therebymakingthemimmenselyfasterandpowerful.
»Theyarecapableofhandlinghugeamountofcalculationsthatare
beyondhumancapabilities.
»Theycanperformbillionsofinstructionspersecond.
»Thesecomputerscostin15-20milliondollarsrange.
»Theyaremainlyusedinapplicationslikeweatherforecasting,
nuclearscienceresearch,metrologyetc.
»Examples:CRAYX-MP-14,CDC-205,ETAGF-10,PARAMetc.
»Thepowerofasupercomputerisusuallymeasuredintermsof
‘floatingpointoperationspersecond’or‘flops’.

•AnalogComputers
–Inanalogcomputers,continuousquantitiesareused.
–Computationsarecarriedoutwithphysicalquantities
suchasvoltage,length,current,temperatureetc.
–Analogcomputersoperatebymeasuringratherthanby
counting.
–Themainadvantageofanalogcomputersisthatall
calculationstakeplaceinparallelandhencetheseare
faster.
–Theyaremostusedinengineeringandscientific
applications.
–Examplethermometer,voltmeter,ammeteretc.

•HybridComputers
–Thesecomputersutilizesthebestfeaturesofboththe
digitalandanalogcomputers.
–Theyarebestusedinhospitalswhereanalogpartis
responsibleformeasurementofpatient’sheartbeat,
bloodpressure,temperatureandothervitalsignsand
thentheoperationiscarriedoutindigitalfashionto
monitorpatient’svitalsigns.
–Hybridcomputersarealsousedinweatherforecasting,
submarinesetc.

Input Devices
•Aninputdeviceisanyhardwareusedtoenterdata,
programs,commandsanduserresponsesintoa
computer.
•Mostcommonare–
Keyboard,Mic,WebCamera,Mouse,Joystick,
Trackball,Scanner,MICR,OCR,OMR,BarCode
Readeretc.

Keyboard
•Animportantdataentrydeviceisthekeyboard
whichisatypewritelikedevice.
•Itcontainsamatrixofswitches(oneswitchperkey)
andakeyboardcontroller.
•Throughpressingandreleasingofswitches,
keyboardcontrollergeneratesascancodeusinga
firmwarelookuptable.ThisscancodeissenttoPC.
ThePChasanotherkeyboardcontrollerwhich
convertsthereceivedscancodeintoaspecific
character.

•Advantages
–Mostcommonandhistoricalwayofinputtingdata.
–Reliablewayofinputtingtextandnumbers.
–Availableinvarietyofformats.
•Disadvantages
–Notusefulforenteringsomespecifictypesofdata(eg.
pictures,diagram,voiceetc.)
–Veryslowwhileaccessingmenuoptionsorselecting
variousobjectsonscreen.
–Notmuchusefulforenteringorchangingsizesof
windowofscreen.
–Veryslowwhilemovingwindowsorotherobjects.

The Mouse
•Themouseisapointingdevicethatfitsunderpalmofa
hand.
•Mousecontrolsmovementofpointer(alsocalled
mousepointer)onscreen.
•Whenamousemovesonaflatsurface,thecursoron
thescreenalsomovesinthedirectionofmouse’s
movement.
•Amousegenerallyhastwoorthreebuttonsanditmay
ormaynothaveawheel.
•Withitsbuttonsandwheel,amousecanperformany
oneoftheseoperations:
–Point,Drag,DoubleClick,PressWheel,RotateWheel
–RightClick,Click,RightDrag

Types of Mouse
•MechanicalMouse:
–Amechanicalmousehasarubberormetalballonitsunderside.Whenthe
mouseismoved,itsballrolls.
–Mechanicalsensorswithinthemousedetectthedirectioninwhichtheballis
rollingandmovethescreenpointeraccordingly.
•Opto-mechanicalMouse:
–Thismouseissameasmechanicalmouseinthesensethatitalsohasaballon
itsundersideexceptitusesopticalsensorstosensethemotionoftheball.
•OpticalMouse:
–Thismousehasanopticalsensorinplaceofamouse-ball.
–Ituseslaserlighttodetectthemouse’smovement.
–Sincetheyhavenomechanicalmovingparts,theyrespondmorequicklyand
preciselythanmechanicalandopto-mechanicalmice,buttheyaremore
expansivecomparatively.
•WirelessMouse:
–Thesetypeofmousearenotphysicallyconnectedtocomputer.
–Theyuseseitherinfraredorradiowaves(eg.bluetooth)tocommunicatewith
computer.
–Theyaremoreexpensivecomparatively.

•Advantages
–Idealforpointingobjects/optionsondesktop
computers.
–Mostfamiliarandeasytousepointingdevice.
•Disadvantages
–Needaflatspaceclosetocomputer.
–Amousecan’teasilyusedwithalaptoporanotebook
orapalmtopcomputers
•Thesetypesofcomputers,insteaduseanothertypeof
pointingdevicesliketrackball,touchpad.

Light Pen
•Alightpenisalsoapointingdevice.
•Itconsistsofaphotocellmountedinapen-shaped
tube.
–Whenthepenisbroughtinfrontofapictureelementofthe
screen,itsenseslightcomingfromalimitedfieldofview.
–Thelightcomingfromthescreencausesthephotocellto
respondbygeneratingapulse.
–Thiselectricresponseistransmittedtoaprocessorthat
identifiesthepixel(graphicpoint)thelightpenispointingto.
–Clickingisperformedbypressingthepenonthescreen.
•Itprovidesnoinformationofthescreenwhenheld
overablankpartofthescreenbecauseitisapassive
devicewithasensoronly.
•Itisalsousedtodrawimagesonthescreen.

•Advantages
–Easytouse
–UsefulforprogramslikeCADforchangingshape,size,
location,colorsetc.ofthescreenimage.
–Candirectlydrawonscreen.
•Disadvantages
–Notveryaccuratewhiledrawing.
–Expensivecomparedtoalternatepointingdeviceslike
mouse.
–Tiresomeafterlongusagehours.

Touch Screen
•Atypeofdisplayscreenthathasatouch-sensitive
transparentpanelcoveringthescreenisknownas
touchscreen.
•Intouchscreen,agridoflightbeamsorfinewires
criss-crossthecompilerscreen.
–Whenyoutouchthescreenwithyourfinger,theraysare
blockedandthecomputersenseswhereyouhave
pressedandtherebyidentifiestheobjectwhichyou
wanttochoose.
•TheyareoftenusedinpublicplacessuchasBank
ATM,Airports,Travelagenciesetc.

•Advantages
–Easytouse
–NoextraperipheralsneededapartfromTouchScreen
monitorscreen.
–Noexperience/trainingrequiredtouseit.
•Disadvantages
–Notsuitableforinputtingbulkdata.
–Notveryaccuratewhilepointingtosmallareasofscreen
asfingerisrelativelylargeobject.
–Moreexpensivethanmouse.
–Tiresomewhenusedforlong.

Graphic Tablet
•Agraphictabletorsimplyatabletordigitizingtabletenables
toenterdrawingsandsketchesintoacomputer.
•Itconsistsofanelectronicsurfaceandacursororpen.
•Acursor(alsocalledapuck)issimilartoamouse,exceptthat
ithasawindowwithcrosshairsforpinpointplacementandit
canhaveasmanyas16buttons.
•Apen(alsocalledastylus)lookslikeasimpleballpointpen
butusesanelectronicheadinsteadofink.
•Thetabletcontainselectroniccircuitrythatenablesitto
detectmovementofthecursororpenandtranslatethe
movementintodigitalsignalsthatitsendstothecomputer.
•Aswedrawonthepad,theimageiscreatedonthescreen.
Thedrawingcreatedinthismannerareveryaccurate
(generallyuptohundredthofaninch).

•Advantages
–Veryusefulinenvironmentsinvolvingmoveofdrawings
etc.(eg.Fashiondesigning,artetc.)
–Effectivemethodforinputtingdrawingastheyare
drawn/created.
•Disadvantages
–Notveryusefulforpointingandclickingobjects.

Joystick
•Adevicethatletstheusermoveanobjectonthe
screen.
•Childrencanplaywithcomputersinasimplewayby
theuseofajoystick.Joystickmakesitmucheasier
forthemandprovidesabettercontrol.
•Itisasticksetintwocrossedgroovesandcanbe
movedleftorright,forwardorbackward.
•Themovementofthestickaresensedbya
potentiometer.
•Ajoystickisgenerallyusedtocontrolvelocityofthe
screencursorsmovementratherthanitsabsolute
position.

•Advantages
–Usefulforplayinggamesoncomputers.
–Givesimmediatefeelofdirectionduetomovementof
thestick.
•Disadvantages
–Involvesmorearmsandwristmovement,hencedifficult
tousebysomepeople.
–Notveryusefulforclicking/selectingobjects.

Microphone
•Wecansendsoundinput
tocomputerthrough
specialinputdevice
calledmicrophoneor
mic.
•Itworksintandemwitha
soundcard.
•Whenwespeakorinput
asoundthroughmic,the
soundcardtranslatesthe
electricalsignalfrom
microphoneintoa
digitizedformthatthe
computercanstoreand
process.

•Advantages
–Usefulforinputtingaudio/soundswhichcan’tbeinput
throughotheravailableinputdevices.
•Disadvantages
–Needsspecificandadditionalhardwarecalledsoundcard
whichmustbeinsertedinmotherboard.

Magnetic Ink Character Reader (MICR)
•Humanreadablecharactersareprintedon
documents(suchascheques)usingaspecial
magneticinkcalledmagneticink(thatcontainsiron
oxide).
•Specialfonthasbeensetforthesecharactersby
AmericanBankingAssociation.
•MICRreadsthesecharactersbymagnetizingtheink
andbyexaminingtheshapeofthecharacter.
•Theyaremainlyusedbybanks.

Magnetic Ink Character Reader

•Advantages
–DocumentspreparedbyMICRaredifficulttoforge.
–Documentscanstillbereadafterbeingfoldedorsplit
etc.
•Disadvantages
–MICRreadersandencodersareexpensive.
–Thesystemcanonlyacceptafewcharacters.
–Theycanonlybeusedbybankingindustrybecauseof
limitedsetofcharacters.

Scanner
•Ascannerisadevicelikephotocopier,whichcreatesan
electronicformofaprinted.
•Thescannerscanconvertanyimageintoelectronic
formbyshininglightontotheimageandsensingthe
intensityofthereflectionateverypoint.
•Scannerscomeinavarietyofsizesfromhand-heldto
desktopmodels.
–Hand-heldScannersareverysmallwhichcanbeheldina
hand.Thesearelessexpensivebutlesswide.
–Flatbedscannersarelargerandmoreexpensivescannersbut
theydefinitelycreatehigherqualityimages.Thesescanners
haveaflatsurfaceonwhichtheprintedimagetobescanned
isplaced.
–Drumscannersaremediumsizescannerswitharolling
drum.Thesheetisfedthroughthescannerssothatthe
drumrollsovertheentiresheettobescanned.

•Advantages
–Flatbedscannersareveryaccurateandcanproduceimages
withafarhigherresolutionthanadigitalcamera.
–Anyimagecanbeconvertedfrompaperintodigitalformat
andlaterenhancedandusedinothercomputerdocuments.
•Disadvantages
–Imagescantakeupalotofmemoryspace.
–Thequalityofthefinalimagedependsuponthequalityof
originaldocument.

Optical Character Reader (OCR)
•Anopticalcharacterreaderisusedtoreadcharacterof
specialtypefontsprintedonconventionalpaperwith
conventionalink(thesedaysOCR’sarecapableof
reading/identifyinghandwrittentextalso).
•Theprintedcharactersareexaminedbypassingthem
underastronglightandalenssystem,which
differentiateslight(noink)frominkedareas,anda
logicalsystemwhichattemptstodeterminewhichof
thepossiblecharactersisbeingexamined.
•Thesysteminactualusedependheavilyonthefact
thatonlyalimitednumberofcharactersinaparticular
fontareused,butsuchsystemsarestillquiteusefulas
theimageoftextisconvertedintoactualtextwhichis
editableinwordprocessor.

•Advantages
–OCRisfasterthantypingadocumentwhichisinprinted
formorhand-writtenform.
–Convertedtextiseditableinwordprocessor.
–Advancedversioncanevenrecreatetables,columnsand
evenproducewebpages.
•Disadvantages
–YouneedtobuyascannerandOCRsoftware.
–Itisnotcompletelyaccurateandtextwouldneedproof-
readingafterwards.

Optical Mark Reader (OMR)
•Inthismethod,specialpreprintedformsaredesignedwithboxes
whichcanbemarkedwithadarkpencilorink.
•Eachboxisannotateddistinctlysothattheuserclearly
understandswhatresponsehe/sheismarking.
•Suchadocumentisreadbyadocumentreader,calledoptical
markreader(OMR)whichtranscribedintoelectronicpulseswhich
aretransmittedtothecomputer.
•Suchdocumentsaremostlyusedinareaswhereresponsesare
oneoutofasmallnumberofalternativeandthevolumeofdatato
beprocessedislarger.
•OMRarebestsuitedfor:
–Objectivetypeanswerpapersinexaminationinwhichlargenumberof
candidatesappear.
–Varioustypesofsurveyswhereresponsescanberestrictedtooneor
moreoutofafewpossibilities.
–Orderformscontainingsmallchoiceofitems.
–Timesheetsofemployeeswherestartandstoptimesmaybemarked.

•Advantages
–Informationisenteredatitssourceandnofurther
transcriptionisrequiredtherebyminimizingunreliability
ofdata.
–Aquickandreliablewayofinputtinglargevolumesof
simpledata.
•Disadvantages
–Needforaccuratealignmentofprintingonforms
–Can’tbeusedforbulktext/numbersinput.

Smart Card Reader
•Theenhancedversionofcardswithmagneticstripsis
calledSmartCard.
•Thesmartcardcontainsamicroprocessorthatretains
certainsecurityandpersonaldatainitsmemoryatall
times.
•Thespecialreadermachinesthatcanreadinformation
onsmartcardarecalledsmart-cardreaders.
•Thesecardscanholdmoreinformation,havesome
processingcapabilityandarealmostimpossibleto
duplicate.
•Theycanserveasmulti-purposecardeg.AnATMcard,
creditcard,IDcard,electronic-cashcardetc.
•Application–banking,medicalrecords,security,etc.

Bar Code Reader
•Abarcodeisapatternofprintedbarsonvarious
typesofproducts.
•Abarcodereaderemitsabeamoflightwhich
reflectsoffthebarcodeimage.
•Alight-sensitivedetectorinthebarcodereader
thenidentifiesthebarcodeimagebyrecognizing
specialbarsatthebothendsoftheimage.
•Oncethebarcodeisidentified,thebarpatternis
convertedintoanumericcodethatcanbe
processedlaterinanymanner.

•Advantages
–Fastandreliablemethodofinputtingdata.
–Canevenreadfromcurvedorupsidedownsurfaces.
•Disadvantages
–Inputislimitedtoanumbercode.

Biometric Sensors
•Theyareusedforidentifyingaperson’sidentity.
•Biometricisatechnologythatverifiesaperson’s
identitybymeasuringaunique-to-the-individual
biologicaltrait.
•Biometrictechnologiesincludedynamicsignature
verification,retinal/irisscanning,DNA
identification,face-shaperecognition,voice
recognitionandfingerprintidentification.
•Biometricidentificationissuperiortolower
technologyidentificationmethodsincommonuse
today–namelypassword,PINnumbers,key-cards
andsmartcards.

Digital Camera (DigiCam)
•Acamerathatstoresimagesdigitallyratherthanrecording
themonfilmiscalleddigitalcamera.
•Onceapicturehasbeentaken,itcanbedownloadtoa
computersystem,andthenmanipulatedwithagraphics
programandprinted.
•Unlikefilmphotographs,whichhaveanalmostinfinite
resolution,digitalphotosarelimitedbytheamountof
memoryinthecamera,theopticalresolutionofthedigitizing
mechanism,andbytheresolutionofthefinaloutputdevice.
•Thebigadvantageofdigitalcameraisthatmakingphotosis
bothinexpensiveandfastbecausethereisnofilmprocessing.
•Adigitalcameradiffersfromwebcamerainthesensethatit
canbeoperateduponwithoutacomputersystemwhereasa
webcameraworkswithacomputersystem.

Web Camera
•Awebcamorwebcamera,isthelooselyusedterm
foranycamerathatgeneratesimagesthatcanbe
accessedbyanddisplayedonwebbrowsers
throughaserver.
•Awebcamisessentiallyacamerathatisconnected
toacomputereitherdirectlyorwirelessly.
•Awebcamgathersaseriesofdigitalimagesthatcan
bedisplayedremotelyonwebbrowsersremotely.

Output Devices
•Theoutputdeviceproduceoutputofthemachine
inhumanreadableform.
•Themostcommonoutputdevicesaremonitors,
printers,plotter,speakersetc.

Monitors
•Monitor(orscreen)isthemostcommonformof
outputfromacomputer.
•Itdisplaysinformationinasimilarwaytothatshown
onatelevisionscreen.
•Thepictureonamonitorismadeupofthousandsof
tinydotscalledpixels(pictureelements).
•Thequalityanddetailofthepictureonamonitor
dependsonthenumberofpixelsthatitcandisplay.
Thedenserarethepixels,thegreatertheclarityofthe
screenimage.
•ThetwomostcommontypesofmonitorareaLiquid
CrystalDisplay(LCD)andaCathodeRayTube(CRT)
monitor.

Cathode Ray Tube
•Itworksinthesamewayasatelevision.
•Itcontainsanelectrongunatthebackoftheglass
tubethatfireselectronatgroupsofphosphordots,
whichcoattheinsideofthescreen.
•Whentheelectronsstrikethephosphordotsthey
glowtogivethecolors.

Liquid Crystal Display(LCD) or TFT Display
•Liquidcrystalisthematerialusedtocreateeachpixel
onthescreen.
•Thematerialhasaspecialproperty–itcan‘polarize’
lightdependingontheelectricalchargeacrossit.This
featureallowsthepixelstobecreated.Eachtinycellof
liquidcrystalisapixel.
•TFT(orThinFilmTransistor)isthedevicewithineach
pixelthatsetsthecharge.
•SometimestheyarecalledLiquidCrystalDisplay
referringtothematerialtheyuseortheyarecalledTFT
displayreferringtothetinytransistorsthatmakethem
work.
•LCDusemuchlesspowerthananormalmonitor.

•Advantages
–Relativelycheapandreliable.
–Candisplaytextandgraphicsinawiderangeofcolors.
–Aseachtaskisprocessed,theresultscanbedisplayed
immediatelyonthescreen.
•Disadvantages
–Nopermanentcopytokeep–theresultswilldisappear
whenthecomputerisswitchedoff.
–Unsuitableforuserswithvisualproblems.
–CRTscreensaremadeofglassandcanbeveryfragile
(easilybrokerordamaged).

Printers
•Itisanoutputdeviceusedforcreatingpapercopies
ofoutputfromthecomputer.
•Printerscanproducetextandimagesonpaper.
•Veryspecialistprinterscanalsoprintonplasticor
eventextilessuchasT-shirts.
•Printerscanbedividedintotwodifferent
categories-
–ImpactPrinters:Intheseprinters,thereismechanical
contactbetweentheprintheadandpaper.
–Non-impactPrinters:Intheseprinters,thereisno
mechanicalcontactbetweentheprintheadandpaper.

Impact Printers
•Theimpactprinterscomeinlotofvarietiessuchas
dotmatrixprinters,lineprinters,drumprinters,
daisywheel.
•DotMatrixPrinters
–Itisthemostpopularserialprinteri.e.itprintsone
characteratatime.
–Theprintheadcontainsaverticalarrayofpins.
–Astheheadmovesacrossthepaper,selectedpinsfire
againstaninkedribbontoformapatternofdotsonthe
paper.

•Advantages
–Lowoperatingcosts
–Canprintoncontinuousstationary
–Theyarerobustandcanbeusedindirtyorharsh
conditions–youoftenseethemingaragesorfactories.
–Usingcarbonatedpaper,DMP’scancreatecarbon
copies.
•Disadvantages
–Lowresolution–printqualityistoopoortoproduce
importantdocumentsforcustomersormanagement.
–Veryslow–canbelessthan100charactersperminute.
–Verynoisy–can’tbeusednearaphone.
–Cannotproducecolorcopies.

Non Impact Printers
•Thenaturallimitationofspeedinelectromechanical
devicesandcostconsiderationshaveledtothe
developmentofprinterscallednon-impactprinters.
•InkjetPrinters
–Aprinterthatfiresextremelysmalldropletsofinkonto
papertocreateimpressionoftextorimage.
–Itdirectsahigh-velocitystreamofinktowardsthepaper.
–Thisstreamisdeflected,generallybypassingitthrough
anelectrostaticfieldsuchasthatusedtodeflectbeams
inoscilloscopes.
–Insomesystemstheinstreamisbrokenintodropletsby
anultrasonictransducer.

•BubbleJetPrinters
–Inabubblejetprinter,tinyresistorscreateheat,andthis
heatvaporizesinktocreateabubble.
–Theexpansionthatcreatesthebubblecausesadroplet
toformandejectfromtheprinthead.
–Atypicalbubblejetprintheadhas64to128tiny
nozzles,andallofthemcanfireadroplet
simultaneously.

•Advantages
–Goodresolution–usually300-600dotsperinch.Thismeansthey
canprintgoodqualityresults.
–Cheaptobuy.
–Small–idealforhomeoroffice.
–Lighterinweightthanotherprinters
–FastcomparedtoaDotMatrixPrinter
–Veryquiet
–Canprintblackandwhiteandcoloronthesamepage.
•Disadvantages
–Slowcomparedtoalaserprinter
–Colorprintingcantake25-30secondseachpage
–Overall,thecartridgescostmoreperpagethanlaserprinter
cartridges
–Cartridgesneedtobereplacedmorefrequentlythanthoseofa
laserprinter.
–Outputisinkbasedandwillsmudgeiftheprintoutgetswet.
–Ifleftunusedforlongperiodsoftime,thecartridgescaneasilydry
out.

Plotters
•Plottersaretheoutputdevicesthatproducegood
qualitydrawingsandgraphs.
•Twotypes:
–Drumplotter:
•Theoutputpaperismountedonarotatingdrum.
•Apencapableoflinearmotionismountedonacarriage.
•Thedrumcanrotateineitherclockwiseoranti-clockwisedirection
underthecontrolofplottinginstructionssentbythecomputer.
•Thepencanmoveineitherdirection–lefttorightorrighttoleftor
upwardsordownwards.
–Flat-bedplotter:
•Itconsistsofastationaryhorizontalplottingsurfaceonwhichpaper
isfixed.
•Thepenismountedonacarriagewhichcanmovehorizontallyor
verticallyorleftwardsorrightwards.

•Advantages
–Drawingsareofthesamequalityasifanexpertdrew
them.
–Largersizesofpapercanbeusedthanwouldbefound
onmostprinters.
•Disadvantages
–Plottersareslowerthanprinters,drawingeachline
separately.
–Theyareoftenmoreexpensivethanprinters.
–Thereisalimittotheamountofdetailstheseplotters
canproduce.

Speakers
•Asthesoundcapabilitieshavebecomeastandardpart
ofacomputersystem,speakershavebecomekey
sound-outputsystems.
•Acomputersystemhavingsoundcapabilitiescannot
workwithoutasoundcard.
•Speakersreceivethesoundinformofelectriccurrent
fromthesoundcardandthenconvertittosound
format.
•Speakersreceiveconstantlychangingelectriccurrent
fromsoundcard.Thiscurrentistransferredtoa
magnetwhichpushesthespeakercorebackandforth.
Thiswaypressurevibrationsaregeneratedthatcreate
sound.

Memory Devices
•Themainmemoryortheinternalmemoryorthe
primarymemoryisalsoknownasImmediateAccess
Store(IAS).
•TheIASorthemainmemoryholdsthedataand
programsneededatthatinstantbyCPU.
•TheCPUreadsthedataandprogramskepton
secondarystorageintothemainmemory,temporarily
i.e.aslongastheyarebeingprocessed.
•TheCPUneedstodothisbecausesecondarystorageis
muchtooslowerthanthemainmemoryandtheCPU.
•Thus,whenthedataandprogramsareavailablein
mainmemorywhichisfasterthansecondarystorage,
theCPU’stimeisnotwasted.

Units of Memory
•Abinarynumberiseither0(representingOFF/lowvoltage)or1(representing
ON/highvoltage),andisknownasbit,whichisshortformforbinarydigit.
•Internallycharactersarerepresentedthroughagroupofbitsdependingupon
encodingschemebeingused.
•ASCII(AmericanStandardCodeforInformationInterchange)encodingscheme
representsacharacterasagroupof8bitsorabyte.
•Unicodeschemerepresentsacharacterasagroupof16bitsor2bytes.
•Byteisthesmallestmeasuringunitofmemory.
•Theothermeasuringunitsofmemoryare–
–4bits = 1nibble
–8bits = 1byte
–2
10
or1024bytes= 1Kilobyteor1KB
–2
10
or1024KB = 1Megabyteor1MB
–2
10
or1024MB = 1Gegabyteor1GB
–2
10
or1024GB = 1Terabyteor1TB
–2
10
or1024TB = 1Petabyteor1PB
•Eachkeyboardcharacterisrepresentedthroughatleast1byte.

Parts of Memory
•TheCPUisattachedtotwokindsofmemories:RAM,whichis
volatileandROM,whichisnon-volatile.
–RandomAccessMemory(RAM)
•TheRAMisintheformofRAMchips.
•ThedataisheldinRAM,buttemporarilythedatadisappearsifthepoweris
switchedoff.
•RAMisvolatilememory.
–ReadOnlyMemory(ROM)
•TheROMisalsointheformofchips.
•ThedatastoredonROMisnoterasedwhenthepowerisswitchedoffi.e.it
ispermanent.
•ROMisanon-volatilememory.
•ProgramsrelatedtotheoperatingsystemarestoredonROMchipswhen
thecomputerismanufactured.
•TheinformationstoredonROMisusuallyusedtotellthecomputerhowto
loadtheoperatingsystemwhenitisswitchedonorre-booted.
–BothRAMandROMarereferredtoasImmediateAccessStorage
(IAS)becauseCPUcanaccessthedatasoquicklycomparedto
datainbackingstorage(thesecondarystorage)

The Main Memory
(Primary Memory)
•The main memory can be divided into two parts :
–RAM (Random Access Memory)
–ROM (Read Only Memory)
99

•Random Access Memory
–InRAMthememorycellscanbeaccessedforinformation
transferfromanydesiredrandomlocation.
–Theprocessoflocatingawordinmemoryisthesameand
requiresanequalamountoftime,thusthename“random
access”.
–ThemaindrawbackofRAMisthatitisavolatilememoryi.e.
whenthepowergoesoff,contentsofRAMgetserased.
–TheRAMchipsinacomputercanbeoftwobasictypes:
•DynamicRAM(DRAM)and
•StaticRAM(SRAM)
100

Dynamic RAM (DRAM)
•Itconsistsofatransistorandcapacitorthat’scapableofstoringan
electriccharge.
•Dependingontheswitchingactionofthetransistor,thecapacitor
eithercontainsnocharge(0bit)ordoesholdacharge(1bit).
•Sincethechargeonthecapacitortendstoleakoff,provisionis
madetoperiodicallysegmentorrefreshthestoragecharge.Thus,
dynamicRAMprovidedvolatilestoragei.e.itscontentsarelostin
theeventofpowerfailure.
•AtypicalDRAMcellconsistsofonlytwoelements-
–aMOSFET(metalOxideSemiconductorFieldEffectTransistor)switch,
and
–aCapacitorstoringabit.
•DRAMcellconsumesverylesspowerandisabletosustainhigh
frequencyofswitchingoperations.
•Today’sDRAMchipshaveaccesstimerangingfrombelow7to70
nanoseconds.
–Theamountoftimetakentoproducedatarequiredfrommemory,from
thestartofaccessuntiltheavailabilityofdata,iscalledMemoryAccess
Time.
101

TYPES OF DRAM
•EDO(ExternalDataOut)DRAM–AnEDODRAMcellkeepsitsdatavalid
untilthememoryreceivesanadditionalsignal.Ithasadual-pipeline
architecture,whichallowsthememorycontrollertosimultaneouslyread
newdatawhiledischargingtheold.Asaresultthesystemdoesnothaveto
waitforaseparatereadcycle,butcanreadorwritedataimmediatelyas
soonasaddressbitsaresuppliedtothechip.
•SynchronousDRAM(SDRAM)–Becauseofmultiplexing,EDODRAMchips
cannotoperateinlock-stepwiththeirhostmicroprocessors.Such
asynchronousmemoryperformanceskeepthememorybusspeedlimited
to66MHz.SDRAMweredesignedtooperateinsynchronizationwiththe
hostmicroprocessor,deliverdataineachclockcycleandrunthememory
busfasterthan66MHz.
•RambusDRAM(RDRAM)–Itisfairlyfastandithastriedtoaddresssome
ofthecomplexelectricalandphysicalproblemsinvolvedwithmemory.The
Rambusprotocoldoesnotmultiplexorsharecontrolinformationonthe
databus,ratheritcreatesanindependentcontrolandaddressbussplitinto
twogroupsofpinsforrowandcolumncommands,anddataistransmitted
acrossa16-bitwidedatabus.
•DoubleDataRate(DDR)SDRAM–UnlikeSDRAMmemorythatsupports
oneoperationineachclockcycle,DDRSDRAMmemorycandotwo
operationsperclockcycle,therebydoublingthememorybandwidthover
thecorrespondingsingle-data-rateSDRAM.
102

STATIC RAM (SRAM)
•Itisalsovolatilebutaslongastheyaresupplied
withpower,theyneednospecialregeneratorcircuit
toretainthestoreddata.
•Iteventuallyconsistsofinternalflip-flops(aflip-flop
isabinarycellcapableofstoringonebitof
information)thatstorethebinaryinformation.
•SRAMstakeupmorespaceforagivenstorage
capacitythandoDRAMs.
•SRAMsarethususedinspecializedapplications
whileDRAMsareusedintheprimarystorage
sectionsofmostcomputers.
•Itiseasiertouseandhasshorterreadandwrite
cyclescomparedtoDRAM. 103

•ReadOnlyMemory(ROM)
–Itisamemoryunitthatperformsthereadoperation
only,itdoesnothaveawritecapability.
–ThebinaryinformationinaROMismadepermanent
duringthehardwareproductionoftheunitandcannot
bealteredbywritingdifferentwordsintoit(non-
volatile).
–Itisanon-volatilememoryi.e.whenthepowergoes
off,contentsofROMstayswithintheunit.
–ROMsareusedforapplicationsinwhichitisknown
thattheinformationneverneedstobealtered.
–ROMarehoweverslowerthanRAM.
104

TYPES OF ROM
•ProgrammableReadOnlyMemory(PROM)–AROMthatcanbe
programmedtorecordinformationusingafacilityknownasPROM-
programmer.Oncethechiphasbeenprogrammed,therecorded
informationcannotbechangedi.e.PROMbecomessameasROM.
•ErasablePROM(EPROM)–ItisanothertypeofROMthatbeerasedandthe
chipcanbeprogrammedtorecorddifferentinformationusingaspecial
PROM-programfacility.Erasureisachievedbyexposingthechipto
ultravioletlight.WhenanEPROMisinuse,informationcanonlybe“read”
andtheinformationremainsonthechipuntilitiserased.EPROMareof
twotypes–UPROM(ultravioletPROM)andEAPROM(ElectricallyAlterable
PROM).
•ElectricallyErasablePROM(EEPROM)–ThistypeofROMcanbe
programmedanderasedbyelectricalsignals.Informationloadedinthis
memorycanberetainedformanyyearswithoutanypowersupplied.One
ofitsapplicationisasaback-upofRAMmemorywhosecontentsarelostin
apowerfailure.Whenpowerisreturned,theEEPROMmemorycanbeused
toreplacethelostcontentsoftheRAMmemoryandthemicrocomputer
cancontinueworkingjustasifnothinghadhappened.
105

Cache Memory
•TheCacheMemoryisahigh-speedmemoryavailableinsideCPUinorder
tospeedupaccesstodataandinstructionsstoredinRAMmemory.
•Itcanbeeitherareservedsectionofmainmemoryoranindependent
high-speedstoragedevice.
•Amemorycache,sometimescalledacachestoreorRAMcache,isa
portionofmemorymadeofhighspeedstaticRAM(SRAM)insteadofthe
slowerandcheaperdynamicRAM(DRAM)usedformainmemory.
•Memorycachingiseffectivebecausemostprogramsaccessthesamedata
orinstructionsoverandoveragain.Bykeepingasmuchofthis
informationinSRAM,thecomputeravoidsaccessingtheslowerDRAM.
•Wheneversomedataisrequired,theCPUfirstlooksinthecache,ifitis
thereornot.Ifthedataisfoundincache,CPUdoesnotaccessmemory
andhencetheprocessbecomesveryfast.
•Whendataisfoundinthecache,itiscalledacachehit,andthe
effectivenessofacacheisjudgedbyitshitrate.Manycachesystemusesa
techniqueknownassmartcaching,inwhichthesystemcanrecognize
certaintypesoffrequentlyuseddata.
106

TYPES OF CACHE MEMORY
•Level1(L1)Cache
•Level2(L2)Cache
–TheL1cacheisbuiltinsidetheCPUpackagewhiletheL2
cacheisexternaltotheCPUandresidesonthe
motherboard.LikeL1caches,L2cachesarecomposedof
SRAMbuttheyaremuchlarger.
–Insixthgenerationprocessors(fromPentiumProonwards),
bothL1andL2cachehavebeenintegratedwithintheCPU
packagetoreduceaccesstimeandimprovesystem
performance.
–TheL2cacheonthemotherboardworksatmotherboardbus
speedwhiletheL1cacheinsidetheCPUworksathalfthe
CPUclockspeed. 107
Tags