How Hardware and Software Work Together - PowerPoint PPT Presentation

1 / 38
About This Presentation
Title:

How Hardware and Software Work Together

Description:

CPU has fixed number of memory addresses, determined by CPU and bus it is using ... Setup information is used to configure both hardware and software ... – PowerPoint PPT presentation

Number of Views:83
Avg rating:3.0/5.0
Slides: 39
Provided by: anneke6
Category:

less

Transcript and Presenter's Notes

Title: How Hardware and Software Work Together


1
Chapter 2
  • How Hardware and Software Work Together

2
You Will Learn
  • How hardware and software interact
  • How BIOS and device drivers are used to send
    instructions to hardware
  • How different operating systems work
  • The steps involved in booting your computer

3
Hardware and Software Interaction An Overview
  • Software
  • Intelligence of the computer
  • Determines what hardware is present
  • Decides how hardware is configured and used
  • Uses hardware to perform tasks
  • Consists of programs that instruct computers to
    perform specific tasks

4
(No Transcript)
5
Operating System (OS)
  • Software that controls a computer
  • Manages hardware
  • Runs applications
  • Provides user interface
  • Stores, retrieves, and manipulates files
  • Communicates with hardware using system
    resources uses BIOS or device drivers for
    interface to system resources

6
(No Transcript)
7
Categories of PC Software
  • BIOS (basic input/output system) and device
    drivers
  • Operating system (OS)
  • Application software

8
BIOS and Device Drivers
  • Categories of BIOS (firmware) programs
  • System BIOS
  • Startup BIOS
  • CMOS setup
  • Device drivers
  • Small programs stored on hard drive that tell
    computer how to communicate with an input/output
    device
  • Necessary for communication between OS and more
    complex devices

9
Operating System (OS)
  • Works with system BIOS and device drivers to
    provide instructions to hardware to perform tasks

10
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

11
System Resources
12
The 8-bit and 16-bit ISA Slots
  • 8-bit ISA bus had a limited number of system
    resources available to it
  • Number was increased with invention of 16-bit ISA
    bus

13
(No Transcript)
14
(No Transcript)
15
Interrupt Request Number (IRQ)
  • Line on a bus that a device uses to alert the CPU
    that it needs servicing
  • Interruptions to CPU are called hardware
    interrupts
  • Polling is an alternative to an interrupt

16
Common Uses for Some IRQs
17
IRQs
  • Preconfigured assignments make it easier to
    configure devices and avoid conflicts with other
    devices
  • COM1 and COM2 (for serial devices such as modems)
  • LPT1 and LPT2 (for parallel devices such as
    printers)

18
IRQs
19
Memory Addresses
  • Hexadecimal numbers, often written in
    segment/offset form, assigned to RAM and ROM so
    that the CPU can access both

20
How Memory AddressesAre Assigned
  • CPU has fixed number of memory addresses,
    determined by CPU and 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

21
How Memory AddressesAre Assigned
22
Shadowing ROM
  • Process of copying programs from ROM to RAM for
    execution

23
I/O Addresses
  • Numbers the CPU can use to access hardware
    devices, in same way it uses memory addresses to
    access physical memory
  • Also called port addresses or ports

24
(No Transcript)
25
Assignments for I/O Addresses
26
DMA Channels
  • Provide shortcuts for a device to send data
    directly to memory bypasses CPU
  • A chip on the motherboard contains DMA logic and
    manages the process
  • Each channel requires two lines to manage it
  • One for DMA controller to request clearance from
    CPU
  • One used by CPU to acknowledge that DMA
    controller is free to send data over data lines
    without interference from CPU

27
DMA Channels
28
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

29
Plug and Play (PnP) Standard
  • Makes installing hardware devices less
    complicated
  • Rather than having to reset DIP switches and
    jumpers, OS and/or startup BIOS automatically
    configures hardware devices to reduce or
    eliminate conflicting requests for system
    resources
  • Applies to OS, BIOS on the motherboard, and BIOS
    on devices

30
Functions PerformedDuring the Boot
  • Startup BIOS tests essential hardware components
    (power-on self test or POST)
  • Setup information is used to configure both
    hardware and software
  • Hardware components are assigned system resources
    they will later use for communication

continued
31
Functions PerformedDuring the Boot
  • Startup BIOS finds the OS, which is loaded,
    configured, and executed
  • Hardware devices are matched up with the BIOS and
    device drivers that control them
  • Some application software may be loaded and
    executed

32
Startup BIOS Controls the Beginning of the Boot
  • Startup BOS is in control for first three steps
    and beginning of the fourth, where control is
    turned over to the OS

33
Parts of the Boot Process
  • Step 1 POST
  • Step 2 ROM BIOS startup program searches for and
    loads an OS
  • Step 3 OS configures the system and completes
    its own loading
  • Step 4 User executes application software

34
Boot Step 1
35
How BIOS Finds/Loads the OS
36
(No Transcript)
37
Boot Step 3
38
Chapter 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, including when hard
    drive has failed
Write a Comment
User Comments (0)
About PowerShow.com