Presentation is loading. Please wait.

Presentation is loading. Please wait.

2 Chapter COMPUTER HARDWARE.

Similar presentations


Presentation on theme: "2 Chapter COMPUTER HARDWARE."— Presentation transcript:

1 2 Chapter COMPUTER HARDWARE

2 Objectives of this chapter:
You can… Define input and output List the characteristics of input and output devices Describe the components of a processor and how they complete a machine cycle Differentiate among the various types of memory Differentiate between storage devices and storage media

3 Overview This chapter covers Input Device Output Device
Central Unit Processing (CPU) Memory Unit Storage Communications GO!

4 2.1 Introduction

5 Introduction What is computer hardware?
Computer devices in physical form Comprised of 4 components: Input devices Central Processing Unit (CPU) Output devices Memory

6 Introduction (cont’d)
Processor Control Unit Arithmetic Logic Unit (ALU) Control Unit Arithmetic Logic Unit (ALU) Instructions Data Information Memory Input Devices Data Information Output Devices Instructions Data Information Storage Devices

7 Introduction (cont’d)
Bit and bytes Bit (Binary Digit) is the basic unit of information in computers 1 bit = 0 or 1  Computer binary system Refers to transfer rate per second Kilobyte, megabyte, gigabyte, and terabyte are terms that describe large units of data used in measuring data storage Example: 100 GB hard drive 8 bits = 1 Byte 1024 Bytes = 1 Kilobyte (KB) 1,048,576 Bytes = 1 Megabyte (MB) 1,043,741,824 Bytes = 1 Gigabyte (GB) 1,099,511,627,776 Bytes = 1 Terabyte (TB)

8 2.2 Input Device

9 Input Device What is input?
Data or instructions entered into memory of computer Input device is any hardware component that allows users to enter data and instructions

10 Input Device (cont’d) Two types of input: Data
Unprocessed text, numbers, images, audio, and video Instructions Programs Commands User responses

11 Input Device (cont’d) Keyboard allows the computer user to enter Words
Numbers Punctuation symbols and special function commands into the computer’s memory

12 Input Device (cont’d)

13 Input Device (cont’d) Pointing Device
Pointing device controls movement of pointer, also called mouse pointer mouse buttons mouse pad ball wheel button Mouse Pointing device that fits under palm of hand Mechanical mouse has rubber or metal ball on underside

14 Input Device (cont’d) Pointing Device (cont’d) Optical mouse
No moving mechanical parts inside Senses light to detect mouse’s movement More precise than mechanical mouse Connects using a cable, or wireless

15 Input Device (cont’d) Pointing Device (cont’d) Trackball
Stationary pointing device with a ball on its top or side To move pointer, rotate ball with thumb, fingers, or palm of hand

16 Input Device (cont’d) Pointing Device (cont’d)
Touchpad and a pointing stick Touchpad is small, flat, rectangular pointing device sensitive to pressure and motion Pointing stick is pointing device shaped like pencil eraser positioned between keys on keyboard

17 Input Device (cont’d) Pointing Device (cont’d) Joystick and a wheel
Joystick is vertical lever mounted on a base Wheel is steering-wheel-type input device Pedal simulates car brakes and accelerator

18 Input Device (cont’d) Pointing Device (cont’d) Touch screen
Touch areas of screen with finger Often used with kiosks

19 Input Device (cont’d) Sound and voice input
MIDI (musical instrument digital interface) External device, such as electronic piano keyboard, to input music and sound effects Microphone Allow user to input their voice

20 Input Device (cont’d) Video input
Process of entering full-motion images into computer Video capture card is adapter card that converts analog video signal into digital signal that computer can use Digital video (DV) camera records video as digital signals

21 Input Device (cont’d) Scanner
Flatbed Light-sensing device that reads printed text and graphics Used for image processing, converting paper documents into electronic images Pen or Handheld Flatbed scanner – design to scan flat objects Handheld scanner – capture small amounts of text Sheet-fed scanner – scan one flat document at a time Sheet-fed Drum

22 Input Device (cont’d) How does a flatbed scanner work? Step 1:
Place the document to be scanned face down on the glass window. Using buttons on the scanner or the scanner program, start the scanning process. Step 2: The scanner converts the document content to digital information, which is transmitted through the cable to the memory of the computer. Step 3: Once in the memory of the computer, users can display the image, print it, it, include it in a document, or place it on a Web page.

23 Input Device (cont’d) Readers Barcode Readers
Optical Mark Readers (OMR) Radio frequency Identification (RFID) Readers Optical Character Recognition (OCR) Devices Magnetic Ink Character Recognition (MICR) Readers Biometric Readers

24 2.3 Output Device

25 Output Device What is output?
Data that has been processed into a useful form, Output device is any hardware component that can convey information to user

26 Output Devices (cont’d)
Display device Output device that visually conveys information Information on display device sometimes called soft copy Monitor houses display device as separate peripheral

27 Output Devices (cont’d)
Display device LCD monitor Uses liquid crystal display Have a small footprint Mobile devices that contain LCD displays include Notebook computer, Tablet PC, PDA, and Smart Phone

28 Output Device (cont’d)
How does LCD work? Uses liquid compound to present information on a display Step 2. As light passes through liquid crystal, electrical charge causes some of the cells to twist, making light waves bend as they pass through color filter. Step 1. Panel of fluorescent tubes emits light waves through polarizing glass filter, which guides light toward layer of liquid crystal cells. Liquid crystal cells Step 3. When light reaches second polarizing glass filter, light is allowed to pass through any cells that line up at the first polarizing glass filter. Absence and presence of colored light cause image to display on the screen. Transparent electrodes Alignment layer Polarizing glass filter Fluorescent tube panel Color filter

29 Output Device (cont’d)
Display device Plasma monitor Displays image by applying voltage to layer of gas Larger screen size and higher display quality than LCD, but are more expensive p. 306 Fig. 6-7

30 Output Device (cont’d)
Display device CRT monitor Contains cathode-ray tube (CRT) Screen coated with tiny dots of phosphor material Each dot consists of a red, blue, and green phosphor Common sizes are 15, 17, 19, 21, and 22 inches Viewable size is diagonal measurement of actual viewing area

31 Output Device (cont’d)
Printer portrait landscape Output device that produces text and graphics on a physical medium Result is hard copy, or printout Two orientations: portrait and landscape

32 Output Device (cont’d)
How do you know which printer to buy? Depends on printing needs Budget Speed Color or black and white Cost per page Multiple copies Graphics and photo printing Paper types and sizes System compatibility Future needs Wireless capability

33 Output Device (cont’d)
Printer Two basic types: Impact Non-impact 300 dpi 600 dpi 1200 dpi What is the resolution of a printer? Sharpness and clarity Measured by number of dots per inch (dpi) printer can output

34 Output Device (cont’d)
Impact printer Characters/graphics are formed on the paper by physical striking contact between ink ribbon and paper Examples are dot-matrix printer (continuous paper), line printer (mainframe/minicomputer)

35 Output Device (cont’d)
Nonimpact printer Forms characters and graphics without striking paper Ink-jet printer sprays tiny drops of liquid ink onto paper Prints in black-and-white or color on a variety of paper types

36 Output Device (cont’d)
Photo printer Color printer that produces photo-lab-quality pictures Many photo printers have a built-in card slot

37 Output Device (cont’d)
Laser printer High-speed, high-quality nonimpact printer Prints text and graphics in very high-quality resolution, ranging from 1,200 to 2,400 dpi Typically costs more than ink-jet printer, but is much faster

38 Output Device (cont’d)
Thermal printer Generates images by pushing electrically heated pins against heat-sensitive paper Dye-sublimation printer (also called a digital photo printer) uses heat to transfer dye to specially coated paper

39 Output Device (cont’d)
Mobile printer Small, lightweight, battery-powered printer that allows mobile user to print from notebook computer, Tablet PC, or PDA while traveling

40 Output Device (cont’d)
Label printers and Postage printers Small printer that prints on adhesive-type material Most also print bar codes Postage printer has built-in digital scale and prints postage stamps

41 Output Device (cont’d)
Plotter Sophisticated printer used to produce high-quality drawings Large-format printer creates photo-realistic-quality color prints

42 Output Device (cont’d)
Audio output device Computer component that produces music, speech, or other sounds Speakers and headsets are common devices

43 Output device (cont’d)
Data projector Device that takes image from computer screen and projects it onto larger screen

44 Output Device (cont’d)
Force feedback Sends resistance to joystick or wheel in response to actions of user

45 2.4 Central Processing Unit (CPU)

46 Arithmetic Logic Unit (ALU)
CPU What is the central processing unit (CPU)? Also called the processor Interprets and carries out basic instructions that operate a computer Processor Control Unit Arithmetic Logic Unit (ALU) Control Unit Arithmetic Logic Unit (ALU) Control unit directs and coordinates operations in computer Arithmetic logic unit (ALU) performs arithmetic, comparison, and logical operations

47 CPU (cont’d) Machine cycle
Four operations of the CPU comprise a machine cycle Step 1. Fetch Obtain program instruction or data item from memory Processor Control Unit Memory ALU Step 2. Decode Translate instruction into commands Step 4. Store Write result to memory Step 3. Execute Carry out command

48 CPU (cont’d) Register Temporary high-speed storage area that holds data and instructions Stores location from where instruction was fetched Stores instruction while it is being decoded Stores data while ALU computes it Stores results of calculation

49 Each tick is a clock cycle Pace of system clock is clock speed
CPU (cont’d) System clock Controls timing of all computer operations Generates regular electronic pulses, or ticks, that set operating pace of components of system unit Each tick is a clock cycle Pace of system clock is clock speed Most clock speeds are in the gigahertz (GHz) range (1 GHz = one billion ticks of system clock per second) Processor speed can also be measured in millions of instructions per second (MIPS)

50 CPU (cont’d) Parallel processing
Control Processor Parallel processing Using multiple processors simultaneously to execute a program faster Requires special software to divide problem and bring results together Processor 1 Memory Processor 2 Memory Processor 3 Memory Processor 4 Memory Results combined

51 2.5 Number System & Data Representation

52 Overview Representation of characters using codes
Other data types – audio, graphic, video representation

53 Introduction Human brain can process large variety of data including :
Character Numbers Image and sound Touch, smell and taste. Current technology limits data that computer can efficiently manipulate to numeric data. Therefore, ALL data - no matter how complex - must be represented (encoded) in the computers memory in numeric form

54 Introduction (cont’d)
Computers represent data using binary numbers because: It is easy to represent binary numbers as electrical states or signals which can be processed by two-state (on-off) electrical devices (eg transistors) It is easy to represent binary numbers as electrical signals for moving between system components.

55 Introduction (cont’d)
Goals of computer data representation: Compactness - compact data representation requires less storage space and less expensive processing and storage devices. Accuracy - the accuracy of representation increases with the number of data bits used. Range – routine calculations can generate quantities that are either too large or too small to be stored within finite circuitry.

56 Introduction (cont’d)
Ease of manipulation - the efficiency of a processor depends on its complexity. Standardization - various organizations have created standard data encoding methods for communication among computer systems and their components. Some standards evolve from proprietary products which become very popular. eg?

57 Data type CPU will have instructions for dealing with limited no of data types (primitives), based on these goals of data representation. Usually these types are: Char Boolean (T/F) Integer Real Memory addresses

58 Alphanumeric Codes There are three main coding methods in use: ASCII
EBCDIC Unicode. 7-bit code (128 characters) Has an extended 8-bit version Used on PC’s and non-IBM mainframes Was widely used transfer data from one computer to another- now being replaced by Unicode. ASCII coding Examples (refer text book)

59 Alphanumeric Codes (cont’d)
EBCDIC 8-bit code (256 characters) Used on mainframe IBM machines. Both ASCII and EBCDIC are 8-bit codes inadequate for representing all international characters. Eg. Chinese characters Unicode recent 16 bit standart- can represent 65 thousand characters, of which 49,000 have been defined, incorporates ASCII-7 as subset.

60 Alphanumeric Codes (cont’d)
Unicode Unicode recent 16 bit standard- can represent 65 thousand characters, of which 49,000 have been defined, incorporates ASCII-7 as subset. Need to represent many more data types that text. Eg. Graphics, sound and video. Need STANDARD ways to do this enable exchanging/sharing data. Standard maybe created by official Industry committees or may be adopted from a commercial product in widespread use. Many data types such as images and sound require large no of bits to encode  data compression required for storage and transmission.

61 Binary System Using On/Off Electrical States to Represent Data & Instructions The binary system has only two digits - 0 and 1 Bit - binary digit Byte - group of 8 bits used to represent one character, digit, or other value

62 The Binary System: Using On/Off Electrical States to Represent Data & Instructions
ASCII (American Standard Code for Information Interchange) – the binary code most widely used with microcomputers EBCDIC (Extended Binary Coded Decimal Interchange Code) - used with large computers Unicode - uses two bytes for each character rather than one byte (8 bits)

63 Data Compression Data compression software uses algorithms to reduce total no bits transmitted. Saves storage or bandwidth but uses CPU resources. Two types - lossy and lossless Lossless where original data restored exactly e.g. documents, accounting records, executable programs Lossy where some reduction in data quality acceptable - e.g. images/video /sound

64 Image Data Two main categories of images - bit map images and object images Bit map images (eg photos, paintings) have a definition for each individual point making up the image (pixel) Object images have a set of mathematical definitions which describe the object(s) making up the image and their position within image

65 Bit Maps A number of different bit map data formats exist - eg .gif, .bmp, jpeg Bit maps can require large amounts of memory, eg 800 * 600 image has 480,000 pixels. Using 24 bit colour, image requires 1.44 MB storage. Some formats include data compression to reduce file size. Eg GIF uses data compression algorithm called LZW.

66 Object Image Object images generally more compact and lend themselves to more complex manipulation. Must be converted to bitmaps for display or printing (e.g. postscript printer) Images are made up of lines, curves, which can be mathematically defined and filled with colors/patterns. Manipulation of image does not result in loss of detail

67 Audio Data Sound waves are analog. In order to be stored and manipulated by computer, they must be converted to digital form. Frequent sampling of the wave (and large sample size) ensures good quality reproduction but produces large sound files, as in standard .wav files Specialized hardware (sound cards) required for good quality sound (perform 2 way conversions)

68 MP3 Other standard file formats such as MP3 and .midi work differently -much smaller MP3 is audio part of MPEG (Motion Picture Experts Group) standard, and uses a lossy compression algorithm.

69 Video Data Consists of sound and images (frames) which must be sampled and converted to digital format. Uncompressed video data very large. Eg 60 minutes of DV-AVI video files (v. high quality) ~ 12GB Standard formats MPEG, include data compression. Eg High quality MPEG-2 format, 2 hours on single DVD disc (4.7GB). Video conferencing performance using any standard still poor due to bandwidth problems over data communications links.

70 2.6 Memory Unit

71 Memory Unit Memory consists of electronic components that store:
instructions waiting to be executed by the processor data needed by those instructions Results of the processed data (information) In short, it stores 3 types of items: OS and other system software Application programs Data being processed and the result (info)

72 Memory Unit (cont’d) RAM & ROM Cache Registers Cheapest Fastest
Disks, CD-ROM, Tapes

73 Memory Unit (cont’d) How is memory measured?
By number of bytes available for storage Term Abbreviation Approximate Size Kilobyte KB or K 1 thousand bytes Megabyte MB 1 million bytes Gigabyte GB 1 billion bytes Terabyte TB 1 trillion bytes

74 Memory Unit (cont’d) Random Access Memory (RAM)?
Memory chips that can be read from and written to by processor Also called main memory or primary storage Most RAM is volatile, it is lost when computer’s power is turned off The more RAM a computer has, the faster it responds

75 Memory Unit (cont’d) How do program instructions transfer in and out of RAM? Step 1. When you start the computer, certain operating system files are loaded into RAM from the hard disk. The operating system displays the user interface on the screen. Operating system instructions RAM Operating system interface Step 2. When you start a word processing program, the program’s instructions are loaded into RAM from the hard disk. The word processing program and certain operating system instructions are in RAM. The word processing program window is displayed on the screen. Word processing program instructions Word processing program window RAM Step 3. When you quit a program, such as the word processing program, its program instructions are removed from RAM. The word processing program is no longer displayed on the screen. Word processing program instructions are removed from RAM Word processing program window is no longer displayed on desktop

76 Memory Unit (cont’d) Static RAM (SRAM) Dynamic RAM (DRAM)
Two basic types of RAM chips Most common type Do not have to be re-energized as often as DRAM Dynamic RAM (DRAM) Static RAM (SRAM) Must be re-energized constantly Faster and more reliable than DRAM chips Newer Type: Magnetoresistive RAM (MRAM)

77 Memory Unit (cont’d) Where does memory reside?
dual inline memory module Where does memory reside? Resides on small circuit board called memory module Memory slots on motherboard hold memory modules memory slot memory chip

78 Memory Unit (cont’d) How much RAM do you need?
Depends on type of applications you intend to run on your computer RAM Use 256 MB to 1 GB 512 MB to 2 GB 2 GB and up Home and business users managing personal finance Using standard application software such as word processing Using educational or entertainment CD-ROMs Communicating with others on the Web Users requiring more advanced multimedia capabilities Running number-intensive accounting, financial, or spreadsheet programs Using voice recognition Working with videos, music, and digital imaging Creating Web sites Participating in video conferences Playing Internet games Power users creating professional Web sites Running sophisticated CAD, 3D design, or other graphics-intensive software

79 Memory Unit (cont’d) Cache
Helps speed computer processes by storing frequently used instructions and data Also called memory cache L1 cache built into processor L2 cache slower but has larger capacity L2 advanced transfer cache is faster, built directly on processor chip L3 cache is separate from processor chip on motherboard (L3 is only on computers that use L2 advanced transfer cache)

80 Memory Unit (cont’d) Read-only memory (ROM)
Memory chips that store permanent data and instructions Nonvolatile memory, it is not lost when computer’s power is turned off Three types: Firmware— Manufactured with permanently written data, instructions, or information EEPROM (electrically erasable programmable read-only memory)— Type of PROM containing microcode programmer can erase PROM (programmable read-only memory)— Blank ROM chip onto which a programmer can write permanently

81 Memory Unit (cont’d) Flash memory
Nonvolatile memory that can be erased electronically and rewritten Used with PDAs, smart phones, printers, digital cameras, automotive devices, audio players, digital vocie recorders, and pagers Step 3. Plug the headphones into the MP3 player, push a button on the MP3 player, and listen to the music through the headphones. flash memory chips USB port Step 1. Purchase and download MP3 music tracks from a Web site. With one end of a special cable connected to the system unit, connect the other end into the MP3 player. MP3 Player Step 2. Instruct the computer to copy the MP3 music track to the flash memory chip in the MP3 player.

82 Memory Unit (cont’d) CMOS
Complementary metal-oxide semiconductor memory Used in some RAM chips, flash memory chips, and other types of memory chips Uses battery power to retain information when other power is turned off Stores date, time, and computer’s startup information

83 Memory Unit (cont’d) What is access time?
Amount of time it takes processor to read data from memory Measured in nanoseconds (ns), one billionth of a second It takes 1/10 of a second to blink your eye; a computer can perform up to 10 million operations in same amount of time Term Speed Millisecond One-thousandth of a second Microsecond One-millionth of a second Nanosecond One-billionth of a second Picosecond One-trillionth of a second

84 2.7 Ports & Connectors

85 Ports Many I/O devices connect into bus via standard interface called a port. An I/O port is a connector at end of bus into which device can be plugged. Older I/O ports were low speed, still in limited use Serial (e.g. RS-232, 25 pin tech. spec, used for mouse, modem, network interface) one bit at a time, over one line. Parallel (e.g. Centronics, used for printers) multiple bits at a time, over multiple lines. Newer ports, e.g. USB port handle multiple devices and much higher data throughput

86 Ports (cont’d) A port is a connecting socket or jack on the outside of the system unit into which are plugged different kinds of cables. Serial port - sends bits one at a time, one after another Parallel port SCSI port USB port FireWire port Dedicated port Infrared port

87 Ports (cont’d) Serial port
Parallel port - transmits 8 bits simultaneously SCSI port USB port FireWire port Dedicated port Infrared port The back of a Macintosh machine

88 Ports (cont’d) Serial port Parallel port
SCSI port - allows data to be transmitted in a “daisy chain” to up to 7 devices USB port FireWire port Dedicated port Infrared port

89 Ports (cont’d) Serial port Parallel port SCSI port
USB port - can theoretically connect up to 127 peripheral devices daisy-chained to one general-purpose port FireWire port Dedicated port Infrared port USB port and connector

90 Ports (cont’d) Serial port Parallel port SCSI port USB port
FireWire port – for camcorders, DVD players, and TVs Dedicated port Infrared port

91 Dedicated ports: mouse port, modem port, and keyboard port
Ports (cont’d) Serial port Parallel port SCSI port USB port FireWire port Dedicated port - special-purpose ports Infrared port Dedicated ports: mouse port, modem port, and keyboard port

92 Ports (cont’d) Serial port Parallel port SCSI port USB FireWire port
Dedicated port Infrared port - allows a computer to make a cableless connection with infrared-capable devices

93 2.8 Bus

94 Bus A pathway which is associate 3 computer components
Consists of 3 types: Data BUS Transmits data/instructions to & from the different components Address BUS transmit the signals that specify locations in memory Control BUS Carries control signals data and address in data bus and address bus to make sure that the data traffic flows smoothly.

95 Bus (cont’d) Data travels between components (CPU, memory & I/O devices) of the computer along communication paths called buses. (Note: can also have buses external to system) Bus is made up of multiple lines, which may be wires or conductors on a printed board. Bus may carry data between two components only (point-to-point) or it may be shared between many (multipoint). System bus connects CPU with main memory & other system components.

96 2.9 Data organization & Access

97 How Data is Organized? Data storage hierarchy Characters: a letter, number or special characters Field: a unit of data consisting of one or more characters (bytes) Record: collection of related fields File: collection of related records Database: an organized collection of integrated files

98 Data Access Method Sequential vs. direct access Sequential storage: data is stored and retrieved in sequence E.g. Magnetic tape Slow but cheaper Direct access storage: the computer can go directly to the information that you want E.g. CD Fast but expensive (1)complexity in maintaining file allocation table (2)need to use hard-disc technology

99 2.10 Storage

100 Storage Holds data, instructions, and information for future use
Storage medium is physical material used for storage Also called secondary storage

101 Storage (cont’d) What is a storage device? Hardware that records and retrieves items to and from storage media Reading Process of transferring items from storage media to memory Writing Process of transferring items from memory to storage media Functions as source of input Creates output

102 Storage (cont’d) Magnetic tapes Diskettes Sequential access to data
Suitable for small/medium size storage that are not accessed frequently Used for backup and long-term storage Diskettes Direct access to data Use magnetic disk Consists of track, sector and cluster

103 Storage (cont’d) Hard Disk Optical Disc
Direct access Faster than diskettes because faster spinning rate Optical Disc Example CD-ROM High capacity data Storage Area Network/File Server Hard Drive – storage

104 Storage (cont’d) Why is storage necessary?
Retain data when the computer is turned off Are cheaper than memory Play an important role during startup Are needed for output

105 End of Chapter 2


Download ppt "2 Chapter COMPUTER HARDWARE."

Similar presentations


Ads by Google