Unit 1 Introduction To Computers: Structure
Unit 1 Introduction To Computers: Structure
Structure
1.1 1.2 1.3 Introduction
Objectives
Introduction to Computers
Components of a Computer Hardware vs Software System vs Applications Software Bits and Bytes Input and Output Devices
1.8.1 Input Devices 1.8.2 Output Devices
1.9
RAM/ROM
1.1 INTRODUCTION
This unit aims at introducing you to todays most commonly used electronic device the computer. The study of this unit will highlight the characteristics and evolution of computers. It will also help you to understand the basic terminology associated with computers.
Objectives
After studying this unit, you should be able to understand the basic characteristics of computers, understand how the computers evolved, understand the components that make up a computer, differentiate between hardware and software, differentiate between system and application software, understand the difference between bits and bytes, classify devices as input and output devices, differentiate between ROM and RAM, and appreciate the use of various secondary storage devices. 5
Computer Basics
Output
Data can be of any type text, numeric, alpha-numeric, image, picture, sound etc. The instructions that act upon this data are also called the program or software in computer terminology.
Computers are versatile machines and are capable of performing any task as long as it can be broken down into a series of logical steps. This means that their capability is, once again, limited only by human intelligence. As is evident, in todays fast developing technology-world, it is almost inconceivable to find an area where computers are not being used. The presence of computers can be seen in every sphere Railway/Air reservation, Banks, Hotels, Weather forecasting and many more. Storage Capacity Todays computers can store volumes of data. Unlike human memory where unimportant information is relegated to the back of the mind and forgotten as time progresses, a piece of information once recorded (or stored) in the computer, can never be forgotten and can be retrieved almost instantaneously! Information can, therefore, be retained as long as desired (using secondary storage a type of detachable memory).
Introduction to Computers
SAQ 1
Identify the characteristics of a computer that have contributed towards making it such a popular device.
Blaise Pascal, a French mathematician, is usually credited for building the first digital computer in 1642. He invented the mechanical calculating machine. Numbers were entered in this machine by dialing a series of numbered wheels.
Computer Basics
Another series of toothed wheels transferred the movements to a dial, which showed the results. In 1671, Gottfried von Leibnitz, a German mathematician, invented a calculating machine which was able to add and perform multiplications. He invented a special stepped gear mechanism for introducing the addend digits, which is still being used. The prototypes made by Pascal and Leibnitz were not used in many places. It was only about a century later that Thomas of Colmar created the first successful mechanical calculator which could add, subtract, multiply, and divide. A lot of improved desktop calculators by various inventors followed, such that by 1890 a range of improvements like accumulation of partial results, storage of past results, and printing of results were not uncommon.
consumed about 180,000 watts of electrical power. It had punched cards I/O and its programs were wired on boards. ENIAC is accepted as the first successful high-speed electronic digital computer and was used from 1946 to 1955. EDVAC Fascinated by the success of ENIAC, John Von Neumann, a mathematician, undertook an abstract study of computation in 1945. In this he aimed to show that a computer should be able to execute any kind of computation by means of a proper programmed control. His ideas, referred to as stored program technique, became essential for future generations of high-speed digital computers and were universally accepted. The basic idea behind the stored program concept was that data as well as instructions can be stored in the computers memory to enable automatic flow of operations. Between 1947 and 1950, the More School personnel and the Ballistics Research Laboratory of the US army built a computer named Electronic Discrete Variable Automatic Computer (EDVAC), which was based on Von Neumanns concept of stored program. UNIVAC The Universal Automatic Computer (UNIVAC), developed in 1951, was the first digital computer to be produced and was installed in the Census Bureau. The first-generation stored-program computers needed a lot of maintenance, reached 70% to 80% reliability of operations and were used for almost 10 years. EDVAC and UNIVAC fell into this group of computers and were the first commercially available computers.
Introduction to Computers
Computer Basics
First generation computers relied on machine language (binary-coded program) to perform operations and could solve only one problem at a time. Punched cards and paper tapes were used to input data and instructions, and output was displayed on printouts. Early computers like ENIAC, EDVAC and UNIVAC can all be classified as first generation computers. Second Generation Computers (1956 to 1963) In the early 1950s, the discoveries of Transistor and Magnetic core memory changed the image of computers from unreliable to highly reliable machines with increased capability, and higher storage capacity. The transistor was far superior to the vacuum tube, allowing computers to become smaller in size, cheaper, reliable and more energy efficient. Though transistor still generated a great deal of heat, it was a substantial improvement over the vacuum tube. Second generation of computers was also characterized by allowing programmers to specify instructions in symbolic (or assembly) language rather than cryptic binary machine language. High level programming languages like COmmon Business Oriented Language (COBOL) and FORmula TRANslation (FORTRAN) were also being developed at this time. Due to the increase in the cost of expanding programming, these machines were expensive to purchase and operate. Such computers were, therefore, mostly found in large computer centres or government/private laboratories with many programmers and support professionals. Third Generation Computers (1964 to 1971) The development of Integrated Circuit by Jack Kilby, an engineer with Texas Instruments, in 1958, was the hallmark of the third generation of computers. Punched cards and printouts gave way to devices like keyboards and monitors making it easier for the user to interact with the computer. Computer manufacturers could provide a range of accessories like the cathode ray tube display devices, page printers, consoles etc. Existence of an operating system allowed the device to run various applications at one time with the central program monitoring the memory. For the first time, computers were being widely used in business for areas like : Accounting Payroll
10
Billing Tracking Inventory, etc. Third generation computers were substantially smaller and cheaper than their predecessors. Fourth Generation Computers (1971 to present) The trend in 1970s was to move from single-purpose but powerful computers towards cheaper computer systems that could support a large range of applications. A new revolution in computer hardware came about which could shrink the computer logic circuitry and its components using the Large Scale Integration (LSI) technology. Hundreds of components could now fit onto a single chip!
Introduction to Computers
In the 1980s, Very Large Scale Integration (VLSI) squeezed hundreds of thousands of components onto a single chip. This shrinking trend continued and led to the introduction of personal computers (PCs) programmable machines that are small enough and inexpensive so that these can be purchased and used by individuals. Companies like Apple Computers and IBM introduced very successful PCs. The IC technology was not only used to construct the processor, but also for the construction of memory. The first memory chip was constructed in 1970 and could hold 256 bits. Fifth Generation Computers (the Road Ahead) The fifth generation of computers characterized by artificial intelligence is in the process of development. The goal here is to develop devices that are capable of learning and responding to natural language input. This generation of computers is using new technologies in very large scale integration, along with new programming languages and will be capable of amazing feats, in the area of artificial intelligence, such as voice recognition.
SAQ 2
What unique features classify computers into different generations?
11
Computer Basics
Secondary Storage
Input Unit Data and instructions must be entered into the computer system for processing, and results obtained from computations must be displayed or recorded for the user. The input device serves the purpose of receiving data and instructions in a form that can be understood by the computer. Central Processing Unit Data and instructions (programs) are stored in the computers memory after which all the major calculations and computations are carried out within the CPU. The CPU is also responsible for controlling the operations of various units of the computer system. Arithmetic Logic Unit (ALU) All calculations and comparisons, based on the instructions provided, are carried out within the ALU. It performs arithmetic functions like addition, subtraction, multiplication, division and also logical operations like greater than, less than and equal to. Main Memory The main memory holds data and instructions after input, till they are needed. It also holds the processed results that are awaiting output. Control The function of the control unit is to execute the instructions of a program, one by one, in the desired sequence. It interprets each instruction and then prompts its execution by one of the units like input, output, ALU, storage. For example, a comparison of two numbers (a logical operation) to be performed by the ALU may require loading the two numbers into the main memory which is a function performed by the control unit. It
12
will then pass on the execution of the compare function to the ALU. Output Unit The processed data, stored in the memory of the computer is sent to the output unit, which then converts it into a form that can be understood by the user. The output is usually produced in one of the two ways on the display device, or on paper (hard copy). Secondary Storage Also termed as auxiliary or backup storage, it is typically used as a supplement to main storage. It is much cheaper than the main storage and stores large amount of data and instructions permanently. Hardware devices like magnetic tapes and disks fall under this category.
Introduction to Computers
SAQ 3
What are the basic components of a computer system?
13
Computer Basics
application programs.
SAQ 4
State TRUE or FALSE (a) All code or data is stored and processed in computers using two symbols 0 and 1. (b) A Byte is a group of four bits and is often used to store characters.
14
Introduction to Computers
Numeric Keypad
Alphanumeric Keypad It consists of keys for English alphabets, 0 to 9 numbers, and special characters like + / * ( ) etc. Function Keys There are twelve function keys labeled F1, F2, F3, , F12. The functions assigned to these keys differ from one software package to another. These keys are also user programmable keys. Special-function Keys These keys have special functions assigned to them and can be used only for those specific purposes. Functions of some of the important keys are defined below. Enter It is similar to the return key of the typewriter and is used to execute a command or program. Spacebar It is used to enter a space at the current cursor location. Backspace This key is used to move the cursor one position to the left and also delete the character in that position. Delete It is used to delete the character at the cursor position. Insert Insert key is used to toggle between insert and overwrite mode during data entry. 15
Computer Basics
Shift This key is used to type capital letters when pressed along with an alphabet key. Also used to type the special characters located on the upper-side of a key that has two characters defined on the same key. Caps Lock Cap Lock is used to toggle between the capital lock feature. When on, it locks the alphanumeric keypad for capital letters input only. Tab Tab is used to move the cursor to the next tab position defined in the document. Also, it is used to insert indentation into a document. Ctrl Control key is used in conjunction with other keys to provide additional functionality on the keyboard. Alt Also like the control key, Alt key is always used in combination with other keys to perform specific tasks. Esc This key is usually used to negate a command. Also used to cancel or abort executing programs. Numeric Keypad Numeric keypad is located on the right side of the keyboard and consists of keys having numbers (0 to 9) and mathematical operators (+ * /) defined on them. This keypad is provided to support quick entry for numeric data. Cursor Movement Keys These are arrow keys and are used to move the cursor in the direction indicated by the arrow (up, down, left, right). Mouse The mouse is a small device used to point to a particular place on the screen and select in order to perform one or more actions. It can be used to select menu commands, size windows, start programs etc. The most conventional kind of mouse has two buttons on top: the left one being used most frequently. Mouse Actions Left Click : Used to select an item. Double Click : Used to start a program or open a file. Right Click : Usually used to display a set of commands. Drag and Drop : It allows you to select and move an item from one location to another. To achieve this place the cursor over an item on the screen, click the left mouse button and while holding the button down move the cursor to where you want to place the item, and then release it. Joystick The joystick is a vertical stick which moves the graphic cursor in a direction the stick is moved. It typically has a button on top that is used to select the option pointed by the cursor. Joystick is used as an input device
16
primarily used with video games, training simulators and controlling robots.
Introduction to Computers
Scanner Scanner is an input device used for direct data entry from the source document into the computer system. It converts the document image into digital form so that it can be fed into the computer. Capturing information like this reduces the possibility of errors typically experienced during large data entry.
Hand-held scanners are commonly seen in big stores to scan codes and price information for each of the items. Light Pen It is a pen shaped device used to select objects on a display screen. It is quite like the mouse (in its functionality) but uses a light pen to move the pointer and select any object on the screen by pointing to the object. Users of Computer Aided Design (CAD) applications commonly use the light pens to directly draw on screen. Touch Screen It allows the user to operate/make selections by simply touching the display screen. Common examples of touch screen include information kiosks, and bank ATMs.
Computer Basics
Liquid Crystal Display (LCD) LCD was introduced in the 1970s and is now applied to display terminals also. Its advantages like low energy consumption, smaller and lighter have paved its way for usage in portable computers (laptops). Printer Printers are used to produce paper (commonly known as hardcopy) output. Based on the technology used, they can be classified as Impact or Non-impact printers. Impact printers use the typewriting printing mechanism wherein a hammer strikes the paper through a ribbon in order to produce output. Dot-matrix and Character printers fall under this category. Non-impact printers do not touch the paper while printing. They use chemical, heat or electrical signals to etch the symbols on paper. Inkjet, Deskjet, Laser, Thermal printers fall under this category of printers. When we talk about printers we refer to two basic qualities associated with printers: resolution, and speed. Print resolution is measured in terms of number of dots per inch (dpi). Print speed is measured in terms of number of characters printed in a unit of time and is represented as characters-per-second (cps), lines-per-minute (lpm), or pages-per-minute (ppm). Plotter Plotters are used to print graphical output on paper. It interprets computer commands and makes line drawings on paper using multicoloured automated pens. It is capable of producing graphs, drawings, charts, maps etc.
18
Computer Aided Engineering (CAE) applications like CAD (Computer Aided Design) and CAM (Computer Aided Manufacturing) are typical usage areas for plotters.
Introduction to Computers
1.9 RAM/ROM
Computers memory can be classified into two types RAM and ROM. RAM or Random Access Memory is the central storage unit in a computer system. It is the place in a computer where the operating system, application programs and the data in current use are kept temporarily so that they can be accessed by the computers processor. The more RAM a computer has, the more data a computer can manipulate. Random access memory, also called the Read/Write memory, is the temporary memory of a computer. It is said to be volatile since its contents are accessible only as long as the computer is on. The contents of RAM are cleared once the computer is turned off. ROM or Read Only Memory is a special type of memory which can only be read and contents of which are not lost even when the computer is switched off. It typically contains manufacturers instructions. Among other things, ROM also stores an initial program called the bootstrap loader whose function is to start the computer software operating, once the power is turned on. Read-only memories can be manufacturer-programmed or user-programmed. While manufacturer-programmed ROMs have data burnt into the circuitry, userprogrammed ROMs can have the user load and then store read-only programs. PROM or Programmable ROM is the name given to such ROMs. Information once stored on the ROM or PROM chip cannot be altered. However, another type of memory called EPROM (Erasable PROM) allows a user to erase the information stored on the chip and reprogram it with new information. EEPROM (Electrically EPROM) and UVEPROM (Ultra Violet EPROM) are two types of EPROMs.
SAQ 5
Differentiate between RAM and ROM.
Computer Basics
media and can be reused a number of times. Floppy disks are commonly used to move files between different computers. The main disadvantage of floppy disks is that they can be damaged easily and, therefore, are not very reliable. Hard Disk Hard disks are made up of rigid material and are usually a stack of metal disks sealed in a box. The hard disk and the hard disk drive exist together as a unit and are a permanent part of the computer where data and programs are saved. These disks have storage capacities ranging from 1GB to 80 GB and more. Hard disks are also rewritable and are more reliable when compared with floppies.
Depending on the way they are packaged, hard disks can be classified as Disk packs or Winchester disks. Disk packs are removable, in the sense that they can be removed and kept offline when not in use. They must be mounted on the disk drive before use. Winchester disks on the other hand, consist of disk platters sealed in a contamination-free container and form a permanent component of the computer. CD Compact Disk (CD) is portable disk having data storage capacity between 650-700 MB. It can hold large amount of information such as music, full-motion videos, and text etc. It contains digital information that can be read, but cannot be rewritten. Separate drives exist for reading and writing CDs. Since it is a very reliable storage media, it is very often used as a medium for distributing large amount of information to large number of users. In fact today most of the software is distributed through CDs. DVD Digital Versatile Disk (DVD) is similar to a CD but has larger storage capacity and enormous clarity. Depending upon the disk type it can store several Gigabytes of data (as opposed to around 650MB of a CD). DVDs are primarily used to store music or movies and can be played back on your television or the computer too. They are not rewritable media. 20
1.11SUMMARY
In this unit, you have studied the evolution of a computer from a simple device like the abacus to the more sophisticated ones as seen today, and its characteristics (speed, accuracy, diligence, versatility, and storage capacity) that have contributed towards making it such a popular device. The differences between concepts like hardware/software, system/application software, bits/bytes, ROM/RAM was also explained. Various types of input, output and secondary storage devices along with their usages, were also studied.
Introduction to Computers
1.12ANSWERS TO SAQs
SAQ 1 Computer characteristics : (a) (b) (c) (d) (e) SAQ 2 Computers can be classified into various generations based on the following features : (a) (b) (c) (d)
Computer Generation First Second
Third
Fourth
Large scale and very large scale integrated circuits (LSI, VLSI) Use of ICs with ultra large scale
Increased storage
Sophisticated programs and languages for special applications Based on Artificial Intelligence
Fifth
Extremely fast
21
Computer Basics
SAQ 3 The basic components of the computer system include : Input Unit Input unit receives data and instructions in a form that can be understood by the computer. Output Unit Output unit presents processed information in a form that can be understood by the user. Main Memory Main memory holds data and instructs after input, till needed. Also holds information awaiting output. Arithmetic Logic Unit Arithmetic logic unit performs calculations and comparisons based on the instructions. Control Unit Control unit interprets each instruction and prompts the execution by one of the units input, output, ALU, storage. Secondary Storage Secondary storage supplements main storage, and stores data and instructions permanently. SAQ 4 (a) (b) SAQ 5 The main memory in the computer system is referred to as RAM (Random Access Memory). It is fast access memory and is used to store data and instructions during computer operations. The main feature of RAM is that it can be read from and written onto any location and can be accessed randomly (hence the name RAM). The contents of RAM are available only as long as the computer is on and are lost once it is switched off. It is, therefore, also called volatile memory. Secondary storage can be used to store data and instructions permanently. ROM or Read Only Memory holds data or instructions permanently and as the name suggest, can only be read from but cannot be changed by the users. It is non-volatile in nature, which means that contents of ROM are not lost even if the power is switched off. It, therefore, usually contains instructions that are required to get the computer started once it is powered on. The contents of ROM are built into it at the time of manufacturing itself. True False
22