WORKING OF I/O SYSTEM
•TheworkingofI/OsystemcombinesI/OhardwareandI/O
software.
•TheI/Ohardwareincludesports,busesanddevicecontrollersfor
differentdevices,andI/Odevices.
•TheI/Osoftwareisthedevicedriversoftwarethatmaybe
embeddedwithoperatingsystemorcomeswitheachdevice.
•TheworkingofI/Osystemisdescribedasfollows:
•I/ODevicesareattachedtocomputerviatheportsofcomputer.
Therearemanystandardportsavailableonthebacksideofthe
computercaselikeserialportandparallelport.
•Ifoneormoredevicesuseacommonsetofwires,itiscalleda
bus.Forexample,PCIbus,PCIExpressbus,etc.
WORKING OF I/O SYSTEM
•DeviceControlleroperatesonabus,aportoradevice.Itcontrols
thesignalsonthewiresofportorbus.Thecontrollershaveone
ormoreregistersfordataandcontrolsignals.
•Controllermaybesimplelikeaserialportcontrollerforaserial
port,or,complexlikeaSCSIcontroller.Somedeviceshavetheir
ownbuilt-incontrollers.
•DeviceDriverissoftwareviawhichtheoperatingsystem
communicateswiththedevicecontrollers.Eachdevicehasits
owndevicedriver,andadevicecontrollerwhichisspecifictothe
device.
•Thedevicedrivershidethedifferencesamongthedifferent
devicecontrollerandpresentauniforminterfacetotheoperating
system
WORKING OF I/O SYSTEM
•ApplicationprogramsuseanI/Odevicebyissuing
commandsandexchangingdatawiththedevicedriver.
•Thedevicedriverprovidescorrectcommandstothe
controller,interpretsthecontrollerregister,andtransfersdata
toandfromdevicecontrollerregistersasrequiredforthe
correctdeviceoperation.