Computer Systems Hardware


Published on

Published in: Education, Technology
1 Comment
  • Be the first to like this

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide

Computer Systems Hardware

  1. 1. Hardware Computer Systems Standard Grade Computing Studies Computing Department, Calderside Academy
  2. 2. Software Computer Systems Standard Grade Computing Studies Calderside Academy Computing Department
  3. 3. What is software <ul><li>Software </li></ul><ul><ul><li>is the term that we use for all the programs and data that we use with a computer system. </li></ul></ul><ul><li>Two types of software </li></ul><ul><ul><ul><li>Program - the instructions that the computer follows (e.g. a word processor or a game). </li></ul></ul></ul><ul><ul><ul><li>Data - what the programs process (e.g. a word processing document or a saved game) </li></ul></ul></ul>
  4. 4. More on software <ul><li>Programs </li></ul><ul><ul><li>there are two types of program software. </li></ul></ul><ul><li>Systems Software </li></ul><ul><ul><ul><li>programs used to organise the computer, handle its devices, manage memory etc. The Operating System is Systems Software (see later). </li></ul></ul></ul><ul><li>Applications software </li></ul><ul><ul><ul><li>programs designed to carry out a manual task (Word Processors, Databases, Graphics etc.) </li></ul></ul></ul>
  5. 5. The Operating System <ul><li>The operating system (OS) is the most important program used by the computer . </li></ul><ul><ul><li>The OS in most modern computers is stored on hard disc and is loaded into RAM when the computer starts up. </li></ul></ul><ul><ul><li>Some computers store their OS in ROM so that it cannot be erased by accident. ROM operating systems load very quickly. </li></ul></ul><ul><ul><li>The operating system controls and monitors the operation of the computer system. </li></ul></ul><ul><ul><li>The filing system is part of the OS and it controls the loading and saving of programs and data from backing storage. </li></ul></ul>
  6. 6. Modern Operating Systems <ul><li>Examples of operating systems which are disc based </li></ul><ul><ul><li>Windows 98 for the PC </li></ul></ul><ul><ul><li>System 8 for Apple Macintosh </li></ul></ul><ul><ul><li>Unix for large fileservers and networks. </li></ul></ul><ul><li>Examples of operating systems which are ROM based </li></ul><ul><ul><li>JavaOS for Network Computers (NCs) </li></ul></ul><ul><ul><li>RiscOS for ACORN Computers </li></ul></ul><ul><ul><li>Windows CE2 for palm top and handheld computers. </li></ul></ul>
  7. 7. Standard Functions of the OS. <ul><li>User interface </li></ul><ul><ul><li>the OS provides the means of communicating with the computer system (Icons, commands etc. are all provided by the operating system). </li></ul></ul><ul><li>Manages memory </li></ul><ul><ul><li>The way that memory is allocated to programs is controlled by the OS. </li></ul></ul><ul><li>Controls input/output </li></ul><ul><ul><li>The access to all devices attached to the computer is controlled by the OS. For example, the OS can stop two programs trying to use the same device at the same time. </li></ul></ul>
  8. 8. More OS - Standard Functions <ul><li>The filing system manages backing storage </li></ul><ul><ul><li>The access to all types of backing storage devices is controlled by a special part of the operating system called the filing system. </li></ul></ul><ul><ul><li>The filing system will prevent two programs trying to access the same files at the same time. </li></ul></ul>
  9. 9. Resource allocation <ul><li>When a computer is running the demands on the systems resources (i.e. memory, input/output devices, backing storage etc.) may be greater than the resources available. To deal with this a resource allocation system is built into the OS. </li></ul><ul><li>Various techniques are used to prevent two programs demanding the same resource at the same time (e.g. two programs can't both send files to the printer at the same time). </li></ul>The resource allocation system also ensures that all programs running on the system receive as much processing time as possible.
  10. 10. OS - Special Functions <ul><li>Multi-programming </li></ul><ul><ul><li>Also know as multi-tasking. Some operating systems allow more than one program to run on the system at the same time. This is possible because the resource allocation system shares the processors time between the different programs. </li></ul></ul><ul><li>Multi-access </li></ul><ul><ul><li>Some operating systems allow many users to use the same computer system at the same time. Any computer system used in this way will have a multi-access operating system. The resource allocation system shares the resources of the computer system (discs, memory, processor etc.) between the different users. </li></ul></ul>
  11. 11. OS - Different modes of processing <ul><li>There are several different modes of processing. </li></ul><ul><li>Interactive </li></ul><ul><li>Accepting input from a human. Interactive computer systems are programs that allow users to enter data or commands. Most popular programs, such as word processors and spreadsheet applications, are interactive. In interactive processing, the application responds to commands as quickly as it can once they have been entered. Sometimes there is a delay while the processor finishes another task. </li></ul><ul><li>Real Time </li></ul><ul><li>Real-time operating systems are systems that respond to input immediately. Automatic teller machines for banks are an example of real time processing. Real time systems are used for tasks such as navigation, in which the computer must react to a steady flow of new information without interruption. </li></ul>
  12. 12. OS - Different modes of processing (cont.) <ul><li>BATCH </li></ul><ul><li>Executing a series of jobs (programs + data) all at one time. The term originated in the days when users entered programs on punch cards. They would give a batch of these programmed cards to the system operator, who would feed them into the computer. </li></ul><ul><li>Usually, batch jobs are stored up during working hours and then executed during the evening or whenever the computer is idle. Batch processing is particularly useful for operations that require the computer or a peripheral device for an extended period of time. Once a batch job begins, it continues until it is done or until an error occurs. Note that batch processing implies that there is no interaction with the user while the program is being executed. </li></ul>
  13. 13. OS - Different modes of processing (cont.) <ul><li>Interactive systems with background job capability </li></ul><ul><li>Some operating systems allow a background process to occur at the same time as a foreground interactive process. </li></ul><ul><li>The foreground process is the one that accepts input from the keyboard, mouse, or other input device. Background processes cannot accept interactive input from a user, but they can access data stored on a disk and write data to the video display unit. </li></ul>For example, some word processors print files in the background, enabling you to continue editing while files are being printed.
  14. 14. The Filing System <ul><li>The system that an operating system uses to organise and keep track of files. </li></ul><ul><li>Catalogue/Directory </li></ul><ul><li>The filing system can access the contents of floppy and hard discs. The contents of these discs is held in the directory(also called catalogue). The filing system reads this information so that it can find any file on the disc straight away. </li></ul><ul><li>Types of File </li></ul><ul><li>Software can be stored on backing storage as files. There are two types of files. </li></ul><ul><ul><li>Program files (such as the operating system, word processors etc). </li></ul></ul><ul><ul><li>Data files (such as graphics images, documents etc). </li></ul></ul>
  15. 15. Types of filing system <ul><li>A hierarchical filing system is one that uses directories to organise files into a tree structure. </li></ul><ul><li>Hierarchical filing system </li></ul><ul><li>A filing system in which directories have files and subdirectories beneath them. </li></ul><ul><li>Flat filing system </li></ul><ul><li>All the files are organised into one large area. </li></ul>A Hierarchical Filing Structure C:/ D:/               Computer Drives Folders Files
  16. 16. Types of access <ul><li>Sequential Access </li></ul><ul><li>To go from file A to file Z in a sequential-access system, you must pass through all intervening files. </li></ul><ul><li>Sequential access is sometimes called serial access. </li></ul><ul><li>Random Access </li></ul><ul><li>Refers to the ability to access data at random. In a random-access system, you can jump directly to file Z. Disks are random access media, whereas tapes are sequential access media. </li></ul>
  17. 17. Systems Software <ul><li>The operating system is just one example of systems software. </li></ul><ul><li>Other examples of systems software are: </li></ul><ul><ul><li>Anti-virus tools </li></ul></ul><ul><ul><li>Disk utilities </li></ul></ul><ul><ul><li>Programming tools </li></ul></ul><ul><ul><li>Printer manager utilities </li></ul></ul><ul><li>All these are examples of programs. Programs can be written in a number of different ways... </li></ul>
  18. 18. Low Level Languages <ul><li>Computers only understand binary!!! </li></ul><ul><li>All programs have to end up in binary language in order work. </li></ul><ul><li>The binary language that the computer understands is called MACHINE CODE </li></ul><ul><li>Machine code looks like this… </li></ul><ul><li>00100111,01110100,10010001 </li></ul><ul><li>NOT very easy to understand. </li></ul><ul><li>That’s why High Level Languages and Assembly Language have been produced... </li></ul>
  19. 19. High Level Languages <ul><li>We use high level languages (HLLs) because programming in low level languages like machine code is VERY difficult. </li></ul><ul><li>High level languages make it easier for us to write programs because we can use commands that mean something (PRINT, END, IF, THEN). </li></ul><ul><li>High level language programs still have to be converted into machine code to work. This is done by a translator. </li></ul><ul><li>There are lots of different HLLs but they all still have several things in common... </li></ul>
  20. 20. Common features of High Level Languages <ul><li>English like words and phrases as instructions eg. PRINT, IF, THEN, END, STOP, ELSE, OPEN etc. </li></ul><ul><li>Arithmetic operations such as multiply, divide, add subtract etc. </li></ul><ul><li>High level languages are problem orientated. This means that the programmer can forget about the internal workings and set-up of the computer system and can concentrate on solving the problem. </li></ul>
  21. 21. Common features of High Level Languages <ul><li>Words and symbols are combined to conform to a predefined SYNTAX to produce program instructions (also called statements). Syntax are the rules which govern how the program commands are used (similar to the rules of grammar that govern how we use the English language). </li></ul><ul><li>Must be translated into machine code. A special program (a type of systems software) called a translator does this…. </li></ul>
  22. 22. Types of translator <ul><li>There are two types of translator for high level languages . </li></ul><ul><li>Compiler </li></ul><ul><li>A program that translates source code into machine code. The compiler gets its name from the way it works, looking at all of the source code and collecting, reorganising and converting the instructions into machine code. </li></ul><ul><li>Compilers require some time to create an executable program. However, programs produced by compilers run much faster than the same programs executed by an interpreter. </li></ul><ul><li>The program produced by the compiler is executable. It does not need the compiler or the source code. </li></ul><ul><li>Many compilers are available for the same language. For example, there is a FORTRAN compiler for PCs and another for Apple Macintosh computers. This makes the program source code PORTABLE (able to run on a number of different computer processors). </li></ul>
  23. 23. Types of translator <ul><li>Interpreter </li></ul><ul><li>An interpreter translates high-level instructions into a machine code line by line. Each HLL statement is converted, in turn, into machine code and then executed. </li></ul><ul><li>An interpreter can immediately execute high-level programs (unlike a compiler). For this reason, interpreters are sometimes used during the development of a program, when a programmer wants to add small sections at a time and test them quickly. Also interpreters are often used in education because they allow students to program interactively. </li></ul><ul><li>The advantage of an interpreter over a compiler is that it does not need to go through the compilation stage during which machine code instructions are generated. </li></ul><ul><li>Many interpreters are available for the same language. For example, there is a BASIC interpreter for PCs and another for Apple Macintosh computers. This makes the program source code PORTABLE. </li></ul>
  24. 24. Assembly Language <ul><li>Machine code consists entirely of numbers and is almost impossible for humans to read and write. Assembly language has the same structure and set of commands as machine code, but it allows a programmer to use names instead of numbers. </li></ul><ul><li>Each type of processor has its own machine code, so an assembly language program written for one type of processor won't run on another. </li></ul><ul><li>In the early days of programming, all programs were written in assembly language. Now, most programs are written in a high-level language such as FORTRAN or C. Programmers still use assembly language when speed is essential or when they need to perform an operation that isn't possible in a high-level language. </li></ul>
  25. 25. Types of translator <ul><li>There is one type of translator for assembly language programs. </li></ul><ul><li>Assembler </li></ul><ul><li>A program that translates programs from assembly language to machine language. </li></ul>LDA #28 PRN #76 CLE #1 JMP #8 011000011100 101001001100 100100000001 110100001000 Assembler
  26. 26. Types of High Level Language <ul><li>General purpose </li></ul><ul><li>General purpose high level languages are written for a wide variety of tasks. They can be used for any type of application however they may lack certain commands that make particular tasks easy to do. </li></ul><ul><li>Special Purpose </li></ul><ul><li>Special purpose high level languages are written for particular types of task. For example Delphi is written for windows database programming and has special commands that make this type of task easier to carry out. </li></ul>
  27. 27. Computer System - Block Diagram <ul><li>The Computer System consists of four parts. </li></ul><ul><li>Input, Processor, Output, Backing Storage </li></ul>Data Flow Processor Output Input Backing Storage
  28. 28. Advanced types of Input <ul><li>Voice Recognition </li></ul><ul><li>With voice recognition systems the computer can understand the words spoken to it and can carry out commands associated with the words. Using voice recognition a letter can be dictated instead of being typed at the keyboard. </li></ul><ul><li>Handwriting Recognition </li></ul><ul><li>Handwriting can be recognised and the computer can convert the written text into typed text for storing. </li></ul><ul><li>Scanner </li></ul><ul><li>A scanner is used to take information stored on paper and read it into a computer system. Scanners can be used to convert photographs, paintings etc. or even typed text into a form that can be stored on a computer. </li></ul>
  29. 29. Optical Character Recognition <ul><li>OCR </li></ul><ul><li>Is used to convert paper typed documents into text files that can be edited and stored on a computer system. </li></ul><ul><li>OCR software can search a scanned image for the shapes of letters, numbers etc. When it finds shapes that match it converts them to the correct text and stores them in a file. </li></ul>
  30. 30. Advanced types of Input <ul><li>Trackball </li></ul><ul><li>A trackball is basically an upside down mouse. A trackball allows the user to move a small ball in order to move the pointer across the screen. </li></ul><ul><li>Graphics Tablet </li></ul><ul><li>A graphics tablet allows the user to draw on a special worktop. As the user draws the details are stored on the computer system. These devices are most often used by architects and designers. </li></ul>
  31. 31. More on Output Devices. <ul><li>There are two types of printers </li></ul><ul><ul><li>laser </li></ul></ul><ul><ul><li>inkjet </li></ul></ul><ul><li>Printers are used to create a hard copy of output from the computer system (normally on paper). </li></ul>Laser printers are more expensive , produce high quality printouts, can produce 8 to 12 pages in a minute and are almost silent when they are working. <ul><li>Inkjet printers are cheaper than laser they produce reasonable quality printouts </li></ul><ul><li>(not quite as good as laser), can often printout in colour , print 2 to 5 pages in minute </li></ul><ul><li>but they are a little noisy . </li></ul>
  32. 32. More on Output Devices <ul><li>VDU </li></ul><ul><li>Visual Display Unit (VDU) is the proper name for the computer monitor. The VDU allows us to see the output from the computer. </li></ul><ul><li>Plotter </li></ul><ul><li>A plotter is a device used for creating a hard copy of the output from a computer system. Plotters use special pens to draw the output as a series of lines. Plotters are often used to output building drawings and designs. </li></ul>
  33. 33. More on Output Devices <ul><li>Voice Output </li></ul><ul><li>Voice output from a computer system is also know as speech synthesis. Some voice output programs are know as text readers. They take a text file and recite it to the user. </li></ul>Other speech synthesis programs can tell the user what they are doing (for example floor announcements in a speaking elevator). Hello, I am Hal!
  34. 34. More on Backing Storage <ul><li>Magnetic tape, floppy disc, hard disc and CD-ROM,CD/RW(rewritable) DVD, DVD/RW(rewritable) are all types of backing storage. The newest and most portable storage is usb memory stick . </li></ul>Tape cheap Floppy disc CD / RW USB memory stick. Portable
  35. 35. What is the CPU <ul><li>CPU - Central Processing Unit </li></ul><ul><li>It is the combination of the Processor and Memory. </li></ul><ul><li>There are TWO types of memory in the CPU, RAM and ROM. </li></ul>Memory Control PROCESSOR Data Flow Central Processing Unit ALU.Arithmetic and Logic Unit ROM RAM Control unit
  36. 36. RAM and ROM <ul><li>RAM is Random Access Memory </li></ul><ul><li>It can be written to and read from. It is where most programs and data are stored while the computer is being used. </li></ul><ul><li>ROM is Read Only Memory </li></ul><ul><li>Data stored in ROM can only be read, it can never be written over or deleted. We normally store important programs in ROM to do with the computers Operating System (see later). </li></ul>
  37. 37. More about the Processor <ul><li>The processor is made up of two main parts. </li></ul><ul><li>The CONTROL UNIT fetches program instructions from the memory storage locations, decodes and then executes them. </li></ul><ul><li>The ALU (Arithmetic/Logic Unit) carries out all the calculations as instructed by the control unit. </li></ul>
  38. 38. Binary Everywhere! <ul><li>Binary is used to store all the data and programs in a computer system. </li></ul><ul><li>We use binary to store: </li></ul><ul><li>Graphics , Text , Numbers , Video, Sound and Programs . </li></ul><ul><li>Binary is just the code used to store the data. </li></ul>
  39. 39. Storing Numbers <ul><li>Numbers are stored in binary. </li></ul><ul><li>1 Bin is 1 Dec </li></ul><ul><li>10 Bin is 2 Dec </li></ul><ul><li>1000 Bin is 8 Dec </li></ul><ul><li>1001 Bin is 9 Dec </li></ul><ul><li>1111 Bin is 15 Dec </li></ul><ul><li>11111111 Bin is 255 Dec </li></ul><ul><li>You don’t need to understand binary (that’s Maths) but you do need to know that it is how most numbers are stored in the computer. </li></ul>
  40. 40. Storing large numbers <ul><li>In most computers the largest binary number that they can store in 32 ones long. </li></ul><ul><li>The biggest number we can store in ordinary binary in these 32 bit computers is 4294967295. </li></ul><ul><li>If we want to store more we need to use FLOATING POINT REPRESENTATION . </li></ul><ul><li>Floating Point is the Computing version of Standard Form. </li></ul>
  41. 41. Floating Point Representation <ul><li>The point is floated to the left </li></ul><ul><li>.2451 x 10 5 </li></ul>Mantissa Exponent The Mantissa is the number to be stored rounded to a few places and with the point moved. The Exponent is the number of places we must move the point to the right in order to get back our original number, 24510 . What must you know? Large numbers can be stored in a computer using floating point representation. The number is broken into two halves. The first half (the mantissa) is the number rounded to a few places and the second half (the exponent) is the number of places the point must be moved to create the original number!
  42. 42. Storing Text <ul><li>Text is stored using a special set of codes called ASCII. </li></ul><ul><li>Each symbol (letter, number etc) has its own unique code e.g. </li></ul><ul><li>a is 97, A is 65, ? is 63, 3 is 51 </li></ul><ul><li>ASCII ( A merican S tandard C ode for I nformation I nterchange) </li></ul><ul><li>One ASCII code is one byte long (eight bits). </li></ul>
  43. 43. Storing Graphics <ul><li>Black and White graphics as stored using pixels ( Picture Elements ). </li></ul><ul><li>The image to be stored is broken up into dots, each dot is a pixel. </li></ul><ul><li>The pixels are ON for black and OFF for white e.g. </li></ul>
  44. 44. Character Set <ul><li>A character set is the set of characters that a device or a program uses. </li></ul><ul><li>For example some printers use character sets that are different from the software that is printing to them. </li></ul><ul><li>When the ASCII code for a symbol reaches the printer the printer substitutes the character from its character set with the same code. </li></ul><ul><li>A common problem created by non-standard character sets is £ being replaced by $ or @. </li></ul>
  45. 45. Control Characters <ul><li>The character set for all types of devices contains special control characters . </li></ul><ul><li>These control characters carry out special operations like switching a printer on or off, clearing the VDU or moving a robot arm. </li></ul><ul><li>The ASCII control code 7 sounds makes the PC speaker beep. </li></ul>
  46. 46. More on Memory <ul><li>Computers store blocks of data called ‘words’ in memory (A 32 bit computer has words that are 32 bits long) . </li></ul><ul><li>Each place that can store a word is called a storage location . </li></ul><ul><li>Each storage location has a unique address that identifies it from all the other locations. </li></ul>
  47. 47. Capacity <ul><li>The size of memory, hard disc space, floppy drive space, programs, data files etc. are all measured by the number of bytes, kilobytes, megabytes or gigabytes (1024 megabytes) they can store. </li></ul>445 floppy discs = 1 CD-ROM
  48. 48. Types of Access <ul><li>There are two types of access </li></ul><ul><li>Random Access (also called Direct Access ) devices retrieve the data you want straight away e.g. CD-ROM drive, Hard disc drive, floppy disc drive. </li></ul><ul><li>Sequential (also called Serial ) devices have to move through all the data, record after record, to find the data you need e.g. Cassette tape, magnetic tape. </li></ul>
  49. 49. Non-magnetic storage <ul><li>Non-magnetic storage involves the use of media not coated in magnetic material. </li></ul><ul><li>Examples of this are: CD-ROM, Video Disc, Digital Video Disc (DVD) </li></ul><ul><li>These use pits and bumps (lands) on the disc to store digital data and use laser light to write and read them. </li></ul>
  50. 50. Virtual Reality <ul><li>Virtual Reality involves the user entering a 3D world generated by the computer. </li></ul><ul><li>To be immersed in a 3D VR world requires special hardware e.g. </li></ul><ul><li>A headset (containing goggles , headphones and a position tracker ) </li></ul><ul><li>A data glove or data suit so that the users body can interact with the VR world. </li></ul>
  51. 51. Multimedia <ul><li>Multimedia systems combine graphics , text , sound , video and animation to provide a rich experience for the user. </li></ul><ul><li>Many interactive multimedia software titles are available now. </li></ul><ul><li>Often these are stored on CD-ROM e.g. Microsoft Encarta. </li></ul>
  52. 52. <ul><li>Floating Point </li></ul>100.11100 10011100 * 2 3