how hardware and software works together
TRANSCRIPT
![Page 1: how hardware and software works together](https://reader031.vdocuments.mx/reader031/viewer/2022021922/58ef3fcb1a28ab1a3f8b4587/html5/thumbnails/1.jpg)
How Hardware and Software Work TogetherZainab Almugbel Community CollegeImam AbdulRahman Bin Faisal University
![Page 2: how hardware and software works together](https://reader031.vdocuments.mx/reader031/viewer/2022021922/58ef3fcb1a28ab1a3f8b4587/html5/thumbnails/2.jpg)
You Will Learn…
• How hardware and software interact• How system resources help hardware and
software communicate• The steps involved in booting your
computer
![Page 3: how hardware and software works together](https://reader031.vdocuments.mx/reader031/viewer/2022021922/58ef3fcb1a28ab1a3f8b4587/html5/thumbnails/3.jpg)
مستخدم
تطبيقات برامج
التشغيل نظام
االجهزة اساسي محركات وإخراج ادخال نظام
النظام مصادر
االجهزة
![Page 4: how hardware and software works together](https://reader031.vdocuments.mx/reader031/viewer/2022021922/58ef3fcb1a28ab1a3f8b4587/html5/thumbnails/4.jpg)
Categories of PC Software
• BIOS (basic input/output system) and device drivers
• Operating system (OS)• Application software
![Page 5: how hardware and software works together](https://reader031.vdocuments.mx/reader031/viewer/2022021922/58ef3fcb1a28ab1a3f8b4587/html5/thumbnails/5.jpg)
Categories of BIOS (Firmware)
• System BIOS– To control I/O devices
• Startup BIOS– To control startup of computer
• CMOS setup– To change setup information
![Page 6: how hardware and software works together](https://reader031.vdocuments.mx/reader031/viewer/2022021922/58ef3fcb1a28ab1a3f8b4587/html5/thumbnails/6.jpg)
Device Drivers
• Small programs stored on hard drive that tell computer how to communicate with an I/O device
• Necessary for communication between OS and more complex devices
![Page 7: how hardware and software works together](https://reader031.vdocuments.mx/reader031/viewer/2022021922/58ef3fcb1a28ab1a3f8b4587/html5/thumbnails/7.jpg)
Operating System (OS)
• Works with system BIOS and device drivers to provide instructions to hardware to perform tasks
![Page 8: how hardware and software works together](https://reader031.vdocuments.mx/reader031/viewer/2022021922/58ef3fcb1a28ab1a3f8b4587/html5/thumbnails/8.jpg)
System Resources
• Tools used by hardware or software to communicate with the other:– Memory addresses– I/O addresses– Interrupt request numbers (IRQs)– Direct memory access (DMA) channels
• All four types depend on certain lines on a bus on the motherboard
![Page 9: how hardware and software works together](https://reader031.vdocuments.mx/reader031/viewer/2022021922/58ef3fcb1a28ab1a3f8b4587/html5/thumbnails/9.jpg)
System Resources
![Page 10: how hardware and software works together](https://reader031.vdocuments.mx/reader031/viewer/2022021922/58ef3fcb1a28ab1a3f8b4587/html5/thumbnails/10.jpg)
ISA Slot
Stands for "Industry Standard Architecture." ISA is a type of bus used in PCs for adding expansion cards. For example, an ISA slot may be used to add a video card, a network card, or an extra serial port
![Page 11: how hardware and software works together](https://reader031.vdocuments.mx/reader031/viewer/2022021922/58ef3fcb1a28ab1a3f8b4587/html5/thumbnails/11.jpg)
![Page 12: how hardware and software works together](https://reader031.vdocuments.mx/reader031/viewer/2022021922/58ef3fcb1a28ab1a3f8b4587/html5/thumbnails/12.jpg)
IRQs
![Page 13: how hardware and software works together](https://reader031.vdocuments.mx/reader031/viewer/2022021922/58ef3fcb1a28ab1a3f8b4587/html5/thumbnails/13.jpg)
Use Device Manager to See How IRQs Are Assigned
![Page 14: how hardware and software works together](https://reader031.vdocuments.mx/reader031/viewer/2022021922/58ef3fcb1a28ab1a3f8b4587/html5/thumbnails/14.jpg)
Use Device Manager to See How IRQs Are Assigned
![Page 15: how hardware and software works together](https://reader031.vdocuments.mx/reader031/viewer/2022021922/58ef3fcb1a28ab1a3f8b4587/html5/thumbnails/15.jpg)
Memory Addresses
• Hexadecimal numbers, often written in segment/offset form, assigned to RAM and ROM so that the CPU can access both
![Page 16: how hardware and software works together](https://reader031.vdocuments.mx/reader031/viewer/2022021922/58ef3fcb1a28ab1a3f8b4587/html5/thumbnails/16.jpg)
How Memory AddressesAre Assigned
• CPU has fixed number of memory addresses, determined by CPU and the bus it is using
• They can be assigned to any type of physical memory in the system that needs to be addressed by the CPU
• Once addresses have been assigned (usually during boot process), CPU sees physical memory as a single list that can be accessed using memory addresses
• Number of memory addresses partly depends on size of memory bus
![Page 17: how hardware and software works together](https://reader031.vdocuments.mx/reader031/viewer/2022021922/58ef3fcb1a28ab1a3f8b4587/html5/thumbnails/17.jpg)
I/O Addresses
• Numbers the CPU can use to access hardware devices, in much the same way it uses memory addresses to access physical memory
• Also called port addresses or ports
![Page 18: how hardware and software works together](https://reader031.vdocuments.mx/reader031/viewer/2022021922/58ef3fcb1a28ab1a3f8b4587/html5/thumbnails/18.jpg)
I/O Addresses
![Page 19: how hardware and software works together](https://reader031.vdocuments.mx/reader031/viewer/2022021922/58ef3fcb1a28ab1a3f8b4587/html5/thumbnails/19.jpg)
DMA Channels• Provide shortcut method so an I/O device can
send data directly to memory, bypassing the CPU
• A chip on the motherboard contains DMA logic and manages the process
![Page 20: how hardware and software works together](https://reader031.vdocuments.mx/reader031/viewer/2022021922/58ef3fcb1a28ab1a3f8b4587/html5/thumbnails/20.jpg)
Booting up Your Computer• Refers to the computer bringing itself up to an
operable state without user intervention• Hard boot (cold boot)
– Involves initially turning on power with on/off switch– More stressful than soft boot because of initial power
surge through equipment• Soft boot (warm boot)
– Uses OS to reboot– Faster than hard boot
![Page 21: how hardware and software works together](https://reader031.vdocuments.mx/reader031/viewer/2022021922/58ef3fcb1a28ab1a3f8b4587/html5/thumbnails/21.jpg)
Functions PerformedDuring the Boot
1. Startup BIOS tests essential hardware components (power-on self test or POST)
2. Setup information is used to configure both hardware and software
3. Hardware components are assigned system resources they will later use for communication
continued…
![Page 22: how hardware and software works together](https://reader031.vdocuments.mx/reader031/viewer/2022021922/58ef3fcb1a28ab1a3f8b4587/html5/thumbnails/22.jpg)
Functions PerformedDuring the Boot
4. Startup BIOS finds the OS, which is loaded, configured, and executed
5. Hardware devices are matched up with the BIOS and device drivers that control them
6. Some application software may be loaded and executed
![Page 23: how hardware and software works together](https://reader031.vdocuments.mx/reader031/viewer/2022021922/58ef3fcb1a28ab1a3f8b4587/html5/thumbnails/23.jpg)
Summary
• How hardware and software work together• What happens when a PC is turned on OS is
loaded• System resources
– Interrupt request number (IRQ)– Memory addresses– I/O addresses– DMA channels
• Booting up the computer
![Page 24: how hardware and software works together](https://reader031.vdocuments.mx/reader031/viewer/2022021922/58ef3fcb1a28ab1a3f8b4587/html5/thumbnails/24.jpg)