Computer architecture
A+ Guide to Managing and maintaining Your PC - Forth Ediition, Andrews, Jean
Chapter2 - How Hardware and Software Work Together
- Hardware and Software Interaction: An Overview
- Hardware is like an automobile, it is useless with out somone behind the wheel
- Software is like the Chauffeur who takes instructions from another source and tells the hardware what to do
- The software has different levels
- Application software - various programs that people use
- Operating system - Works with the applications software on one side and the hardware on the other side
- Various OS have been available over the years and currently
- DOS - first OS for IBM/Compatable computers
- Wrtitten for Early PCs - verry limited
- Even though Win 3.x appeared to be an OS it was not, it was a shell for DOS
- Windows 9X (95, 98, ME)
- True OS but had DOS core for compatability
- Popular with home and business users alike
- Windows NT, 2000, XP
- Break from DOS compatabilites.
- In general come in Server and Client (sometimes called PRO) versions
- Unix - OS for networks and Internet use
- Linux - scalled down linux - open source
- OS/2 - IBM attempt at GUI
- MAC OS - For Macintosh computes
- System Resources
- The 8-bit and 16-bit ISA Slots
- The bus that was used on the first PC systems was called the ISA
- It used an 8 bit data bus
- Other lines are used for voltages, addresses, interupt requests, and other stuff
- Later a 16 bit slot was created and called Extended Industry Standard Archtecture (EISA)
- ISA slots, though still used, are slower than other I/O slots
- The cards themselves usually had jumpers or switches on them to determine what IRQ and addresses used.
- Interrurpt Request Numbers (IRQ)
- When a piece of euqipment needs to do something it places a voltage on its interupt request line (IRQ) to flag that it needs attention
- Each device gets its own IRQ number and this is how the computer is able to tell which device needs attention.
- IRQ 0 (system timer) and IRQ 1 (Keyboard) are not available for other devices
- This left 2 through 7 for other things, but they had specific things that they were assigned to
- IQO 2 had been reserved for a connection to mainframes by IBM
- With only 5 IRQs free we need a new way to connect more than 5 devices, especially with the EISA
- The plan was to use IRQ 2 to signal to another controller but other uses had been created for it by some manufacturers.
- A New IRQ (9) was created and tied to IRQ2 so that both could be used.
- To see how your IRQs are assigned you can use MSD in DOS or Device Manager with WIn 9x and above
- Another way to service the needs of the computer components, is to do polling
- With polling software is always running to check on various devices attached to the equipment
- Memory Addresses
- The way that memory is accsed is by addresses that get assigned when the operating system loads
- The CPU uses an address bus to communicate the memory location that it needs to reference.
- Because only 20 address lines were available in original computers that limited memory to 1,024KBytes of memory (1 Meg)
- DOS used only the first 640 K of that 1 Meg. The rest of that memory was reserved for devices. All that was above 1 MEG became extended memory that could only be used under special circumstances
- Windows does not break this memory up, all memory is available to the Operating System and the Programs. Windows 9x does have some memory fall backs to DOS though
- Shadowing ROM
- Sometimes ROM BIOS will be copied into RAM memory because it can be accessed faster
- Access will be the same either way. Just faster this way
- I/O Addresses
- Another way of addressing devices is by the I/O addresses assgined to them.
- The address match one for one the same lines as the IRQ numbers
- DMA Channels
- Direct Memory Access is used to bypass information from having to go to the CPU first
- 0, 1, 2, and 3 are used for 8 bit, 4, 5, 6, and 7 are used as well for 16 bit.
- Not all devices would be using this. Disk drives are a common use.
- How an OS relates to Other Software
- Real (16 Bit) and Protected (32-Bit) Operating Modes
- Real Mode assumes that there is only one program running at a time. This is called single tasking.
- Because of this applications are given direct access to the memory
- In Protected Mode more than one program can run at a time. This is called multitasking.
- Each program will be assigned its range of memory to be used. Hence it is protected from other aplications
- In protected mode virtual memory (Hard Drive space being used as RAM) can be accessed by the Operating System
- Computers start in real mode and must be made to switch to protected mode.
- In protected mode time is given to one task and then jumps to another task, stoping the first task temporarily. This is called preemptive multitasking.
- How an OS Uses Real and Protected Modes
- Programs must be written to run in real or protected mode. Some are even written to be aware that they are in protected and run sort of as a hybrid.
- Windows 3.x was not an operating system as such but an operating enviornment. It provides support to the applications.
- 16-Bit and 32-Bit Software
- Software written for WIndows 3.x is 16-bit software
- It is designed to be watching other applications and not infringe on them.
- Windows 9x is a hybrid, designed to use both of them
- Windows NT and above are strictly 32-bit software
- How an Os Uses BIOS and Device Drivers
- How an OS Uses System BIOS
- System BIOS contains information about how to run simple hardware common to all equipment
- Things like keyboard, hard drive, floppy drives
- BIOS is configured from the set up program that can be accessed when the computer starts
- How Device Drivers Control Hardware
- Hardware uses special software (device drivers) to make it available to the operating system
- These are special written for the operating system and the hardware
- Device Drivers Under Windows 9x
- Windows 9x is designed to use 32 bit drivers whenever available
- To provide backward compatability to DOS Windows 3.x 16-bit drivers can be loaded in config.sys, autoexec.bat and system.ini
- Windows 9x keeps information about 32 bit drivers in the registry
- Whenever posible you should try to use the most recent drivers to patch problem that may have come up earlier
- Running 16-bit drivers under 9x can cause the system to run slow (as well as other problems)
- Look for 16-bit drivers to be loaded from the three files mentioned above as well as seeing them as problems indicated in Device Manger
- Device Drivers Under Windows 2000
- 2000/xp will load 16 bit mode drivers but there is no guarentee that they will work.
- Always check the Hardware Compatability List (HCL) to verify if drivers are designed for your OS
- How an OS launches an aplication
- Loading Application Software Using the Windows Desktop
- When installed Windows offers several ways for software to be run
- From a shortcut on the desktop
- From the start menu choose programs and the look for the installed program shortcut
- From the RUN command and enter the command line to start it
- Find the program in My COmputer or Windows Explorer and run it from there.
- Chapter Summery
- Key Terms
- Review Questions
- Hands-on Projects
No comments:
Post a Comment