CHAPTER 6: Computer System Organisation 1. The Computer System's Primary Functions

Size: px
Start display at page:

Download "CHAPTER 6: Computer System Organisation 1. The Computer System's Primary Functions"

Transcription

1 CHAPTER 6: Computer System Organisation 1. The Computer System's Primary Functions All computers, from the first room-sized mainframes, to today's powerful desktop, laptop and even hand-held PCs, perform the same general operations on data. What changes over time is the data handled, how it is handled, how much is moved around, and how quickly and efficiently it can be done. The basic functions that a computer can perform are: 1. Data processing 2. Data storage 3. Data movement 4. Control 1.1 Data Processing (Computation) When you think about a computer and what it does, you of course think that it computes. And this is indeed one part of its job. Computing is really another term for "data transformation"-- changing data from one form to another. The computer spends a great amount of its time doing exactly this: performing math operations, and translating data from one form to another 1.2 Data Storage The computer system stores different types of data in different ways, depending on what the data is, how much storage space it requires, and how quickly it needs to be accessed. This data is stored in its "short term" memory and its "long term" memory. The computer system's main memory ( or primary storage) holds data that you or the computer are working with right now. This is the computer's "short term memory", and is designed to be able to feed data to the processor at high speed so the processor isn't slowed down too much while waiting for it. However, this short-term memory disappears when the computer is turned off. Longer-term storage, referred to as secondary storage, may consist of magnetic tapes, magnetic disk, optical memory device, or similar device, where data is stored permanently in the form of files, ready for you to retrieve when you need it. When you want to use your computer program, for example, the computer loads the instructions that are stored on the hard disk that tell the computer how to run it, from long-term storage (your hard disk) into short-term memory. 1.3 Data Movement The computer also controls the movement of data from place to place. It reads the data you type on the keyboard, moves it into memory and eventually displays it on the screen or stores it in a file. This movement is called input/output or I/O and is how the computer talks to you as well as devices that are connected to it. Moving data between machines is also an important part of modern computing. The computer uses networking components, modems and cables to allow it to communicate with other machines. 1.4 Control The computer system must control the above three functions. Within the computer, a control unit directs and co-ordinates the operation of all the other components of the computer by providing timing and control signals and by executing the instructions of a program. COMP1208-Notes06-CompSys.doc Page 1

2 2. Main Structural Component of a Computer System The main elements associated with a computer system are as follows: (i) (ii) (iii) (iv) (v) Central Processing Unit (CPU) - data processing and control Main Memory (primary storage) - stores data Secondary Storage - stores permanent data Input and Output (I/O) devices - moves data between the computer and its external environment System interconnection (Busses)- provides mechanism for communication among various components Secondary Storage Microcomputer System Main Memory (ROM and RAM) Output Devices Input Devices -Tape -Disc -Teleprinter -Data from transducers Keyboard Input from keyboard Microprocessor (ALU + CU) I/O Unit Output to VDU Printer Output to printer Visual Display Unit (VDU) Figure 1: Microcomputer System Hardware COMP1208-Notes06-CompSys.doc Page 2

3 2.1 CPU The Central Processing Unit (CPU) is the central component of the PC. This vital component is responsible for every single thing the PC does. It determines, at least in part, which operating systems can be used, which software packages the PC can run, how much energy the PC uses, and how stable the system will be, among other things. The processor is also a major determinant of overall system cost: the newer and more powerful the processor, the more expensive the machine will be. The underlying principles of all computer processors are the same. Fundamentally, they all take signals in the form of 0s and 1s (binary signals), manipulate them according to a set of instructions, and produce output in the form of 0s and 1s. The CPU has three main units: Arithmetic and Logic Unit (ALU): Performs arithmetic operations and Performs logical operations. Performs arithmetic and logical operations. For example, it can add together two binary numbers either from memory or from some of the CPU registers. Control Unit: controls the action of the other computer components so that instructions are executed in the correct sequence. Registers - Temporary storage inside CPU. Registers can be read and written at high speed as they are inside the CPU Main Memory Input Port Control Unit Arithmetic Logic Unit System Clock Registers CPU Output Port Figure 2: CPU COMP1208-Notes06-CompSys.doc Page 3

4 The figure below shows an example of the organisation of an accumulator based CPU organisation. Memory (RAM) Address bus data bus MAR PC IR CPU ALU ACC MDR ALU Arithmetic Logic Unit PC Program Counter IR Instruction Register ACC - Accumulator MAR Memory Address Register MDR Memory Data Register Figure 3: Example 1 Accumulator ALU In the following example, there are two input registers A and B and one ALU output register which can be stored back into a register. A+B A B registers A B ALU input registers ALU ALU input bus A + B ALU output register Figure 4: Example 2 illustrating Addition COMP1208-Notes06-CompSys.doc Page 4

5 If we take the example of addition performed by the ALU, in a high level program we may have one statement, such as Z = x + y; Where x, y, z are all integer variables in memory and lets assume that x = 7, and y=5; and inititally z = 0;. In order to perform the addition of the following machine code instructions may be used for this example: Exercise: 1) LOAD value of x from memory into a register A in CPU 2) LOAD value of y from memory into a register B in CPU 3) ADD register A and register B 4) STORE result to memory location z What steps might be involved for the example in Figure 3: Example 1 Accumulator ALU? Most instructions can be divided into one of two categories: register-memory or register-register. Register-memory instructions allow memory words to be fetched into registers, where they can be used as ALU inputs, or they allow registers to be stored back into memory. A typical register-register instruction might be ADD register A to register B. Instruction Execution Figure 5: Machine CycleControl Unit repeats the four operations of the Machine Cycle 1) Fetching next program instruction from memory 2) Decoding program instructions into commands the computer can process 3) Executing - processing the commands 4) Storing - writing the result of the instruction into main memory COMP1208-Notes06-CompSys.doc Page 5

6 2.2 Data Storage / Memory The processor is the brain of the computer. All fundamental computing takes place in the processor. Other components contribute to the computation (by doing such things as moving data in and out of the processor), but the processor is where the fundamental action takes place. The memory in a computer system is of two fundamental types: Main memory: used to store information for immediate access by the CPU. Main Memory is also referred to as Primary Storage or Main Store. closely connected to the processor. the contents are quickly and easily changed. holds the programs and data that the processor is actively working with. interacts with the processor millions of times per second. Secondary storage: devices provide permanent storage of large amounts of data. Secondary storage is also called: secondary memory, external memory, backing store or auxiliary storage. This storage may consist of magnetic tapes, magnetic disk, optical memory device, or similar device. connected to main memory through the bus and a controller. the contents are easily changed, but this is very slow compared to main memory. used for long-term storage of programs and data. The processor only occasionally interacts with secondary memory Main Memory Main memory is where programs and data are kept when the processor is actively using them. When programs and data become active, they are copied from secondary memory into main memory where the processor can interact with them. A copy remains in secondary memory. Main Memory may be visualised as a set of labelled slots called memory locations or memory cells. Each memory location holds one data word and is designated a unique address. Addresses are binary words which are generally interpreted as numbers starting at number 0 and go up one for each successive memory location. Memory locations can be used to store both data, such as characters and numbers, and program instructions. The usual convention when drawing block diagrams of memory is to have the lowest memory location at the bottom and the highest memory address at the top, although not all manufacturers follow this convention. ADDRESS M CONTENT A data word M-1 A data word M-2 A data word M-3 A data word : : : : : : 6 A data word 5 A data word 4 A data word 3 A data word 2 A data word 1 A data word 0 A data word Figure 6: Block Diagram of Memory The CPU can directly access data stored in Main Memory. When a memory location is accessed (READ), the contents of the memory location are unchanged (an exact copy of the contents of that location is made for processing by the CPU). When new information is placed COMP1208-Notes06-CompSys.doc Page 6

7 in a memory location (WRITE), the existing data is overwritten with the new data. Data is stored in binary (1 s and 0 s). A byte is 8-bits and bytes are grouped into words. A computer with a 32-bit word has 4 bytes per word, whereas a computer with a 64-bit word has 8 bytes per word. Most instructions operate in entire words, for example, adding two 32-bit integers. Thus a 32-bit machine will have 32-bit registers and instructions for manipulating 64-bit words, whereas a 64-bit machine will have 64-bit registers and instructions for manipulating 64-bit words. Byte ordering The bytes in a word can be numbered: from left-to-right (Big Endian) or from right-to-left (Little Endian). For example IBM mainframes and SPARC.computer systems use big endian, whereas the Intel family use little endian Address Big Endian Address Little Endian Byte Byte bit word bit word ---- Figure 7: Byte Ordering Example: to store the value 6 in a 32 bit integer, the binary value is Thus byte 2,3 and 4 are all zeros and byte 0 is Big Endian Little Endian COMP1208-Notes06-CompSys.doc Page 7

8 Main memory types include: Random Access memory (RAM) Read-only memory (ROM) Random Access memory (RAM) is an area in the computer system that temporarily holds data before or after it is processed. RAM can be written to as sell as read from. For example, when you enter a document, the characters you type usually are not processed straight away. They are held in RAM until you tell the computer to carry out a process such as printing. Most RAM is volatile, i.e. when the computer is powered off all data stored in RAM is destroyed. The term random access refers to the fact that any memory location in it can be accessed for reading and writing simply by supplying the appropriate address. Read-only memory (ROM) holds data that is fixed and cannot be changed. It is used to hold reference data and programs that will be needed no matter what the application of the computer. For example when a computer is powered on, a set of instructions stored in ROM called ROM BIOS (basic input output system) that tell the computer how to access its disk drives where the main operating system files are stored. The computer can then copy these files into RAM Secondary Storage Most computer systems have secondary storage devices which are used to provide additional data storage capability. Secondary storage provides permanent storage for programs and data not currently being used. The data in secondary memory is not directly accessible by the CPU but may be transferred to main memory before processing. Secondary storage is considerably less expensive than main memory but requires significantly longer access times. Examples of secondary storage include, floppy disks, hard disks and CD-ROM. A hard disk might have a storage capacity of 40 gigabytes. This is about 300 times the amount of storage in main memory (assuming 128 megabytes of main memory.) However, a hard disk is very slow compared to main memory Why have two types of storage? The reason for having two types of storage is this contrast: Primary memory Secondary memory 1. Fast 1. Slow 2. Expensive 3. Low capacity 4. Connects directly to the processor 2. Cheap 3. Large capacity 4. Not connected directly to the processor Floppy disks are mostly used for transferring software between computer systems and for casual backup of software. They have low capacity, and are very, very slow compared to other storage devices. COMP1208-Notes06-CompSys.doc Page 8

9 2.3 Input/output devices Input/output devices provide an interface between the computer and the user. There is at least one input device (e.g. keyboard, mouse, measuring device such as a temperature sensor) and at least one output device (e.g. printer, screen, control device such as an actuator). Input and output devices like keyboards and printers, together with the external storage devices, are referred to as peripherals 2.4 System Interconnection (Busses) The computer system requires interconnections between the various components. When these data paths carry more than one bit simultaneously from a number of different components, it is referred to as a data bus or simply Bus. CPU chip registers On-chip bus ALU system bus memory bus bus interface I/O bridge main memory USB controller graphics adapter I/O bus disk controller Expansion slots for other devices such as network adapters. mousekeyboard monitor disk Figure 8: Computer System with Multiple Buses COMP1208-Notes06-CompSys.doc Page 9

10 3. Microprocessors/MicroControllers/Embedded Systems 3.1 What is a Microprocessor Memory CPU (µp) Input Output Microprocessor Figure 9: Microprocessor Based Computer System A microprocessor (µp) is a Central Processing Unit (CPU) on a single chip. The µp contains the arithmetic, logic, and control circuitry required to interpret and execute instructions from a computer system. A microprocessor by itself is not a computer, when combined with other ICs that provide storage for data and programs, often on a single semiconductor base to form a chip, the microprocessor becomes the heart of a small computer or microcomputer. Microprocessors are classified by the semiconductor technology of their design (TTL, transistor-transistor logic; CMOS, complementary-metal-oxide semiconductor; or ECL, emitter-coupled logic), the width of the data format (4-bit, 8-bit, 16-bit, 32-bit, or 64-bit) they process their instruction set (CISC, complex-instruction-set computer, or RISC, reducedinstruction-set computer). Microprocessors evolution is driven by performance, i.e. increased and faster processing power with the ability to store more data. Examples of first-generation 8-bit µp families include for example: Intel's 8080, Zilog's Z80 and Motorola's The 32-bit and 64-bit microprocessors found in today's workstations and servers include the x86, PowerPC, Alpha, MIPS and SPARC series. COMP1208-Notes06-CompSys.doc Page 10

11 3.2 What is a Microcontroller? Memory CPU (µp) Input Output Microcontroller Figure 10: Microcontroller - A computer system on a single integrated circuit chip A microcontroller is a complete computer system, on a single integrated circuit chip, optimized for control applications. It consists of a microprocessor, memory (both RAM, Random Access Memory and ROM, Read Only Memory), Input/Output ports, and possibly other features such as timers and ADCs/DACs. Having the complete controller on a single chip allows the hardware design to be simple and very inexpensive. Microcontrollers are used increasingly in products as varied as industrial applications, home appliances, and toys. Microcontrollers evolution is driven by a requirement for increased integration and reduced cost, as most control applications do not need the word size and CPU speed of the newer generalpurpose microprocessors. Examples of well established 8-bit controllers include, the PIC, Intel 80C51, Motorolla MC68HC05/08 series and MC68HC11 series of microcontrollers. From the MC68HC11 the MC68HC12 and MC68HC16, both 16-bit controllers, have been developed 3.3 What is an Embedded System? Computer systems fall into two distinct categories: General-Purpose Computers Embedded Systems The first, and most obvious, is that of the general-purpose computer (i.e. PCs). The application programs themselves determine the functionality of the computer system. For the computer to fulfill a new role, all that is required is for a new application to be loaded. In contrast with this is the embedded system. Embedded systems are systems that are dedicated to perform specific functions, with the hardware and software being tailored directly to the application. They differ from conventional computer systems in that they are not required to be general purpose. Real-time operation is also often very important for embedded systems. Some examples of embedded systems are microwave ovens, VCRs, CD players, video cameras, remote controls, video games, laser printers, fax machines, photocopiers, ATM machines, automotive control, climate control in buildings, aircraft and spacecraft avionics and control, railway signalling systems, music synthesisers, traffic-light controllers and cash registers (to name just a few!). All of these systems have a microprocessor, memory and I/O devices. Each of them runs software specifically written to control their host application. COMP1208-Notes06-CompSys.doc Page 11

12 The processors used in PCs make up only a small percent of the overall number of processors sold. The majority of processors made are used in embedded applications. Embedded applications usually require the processor (and/or system) to have high-integration (i.e. be very compact), low-power consumption, fast response and high performance. Embedded systems do not have the ability to run different software such as is possible on a general-purpose computer. There is no requirement for a VCR to run Windows The only software required by the VCR s embedded controller is that which reads user input through the console buttons or remote control, and based upon that input, controls the various subsystems of the VCR. It is possible to change the functionality of an embedded system by changing the system s controlling software, but this is not as easy as running a new application on a conventional computer. The most commonly used processors in small applications are the Intel 8051 (and derivatives) and the Motorola 68HC11 (and derivatives). 3.4 Summary: Differentiate between a Microprocessor and Microcontroller Microprocessors: high performance, general purpose "brains " for PCs and workstations (i.e. Pentium 4). It includes a control units, an ALU and various registers. Typical cost: 100 to 500, Annual demand: 10s of millions per year. Microcontrollers: devices with high levels of integration for embedded control, Microprocessor functions plus on-chip memory and peripheral functions (e.g. ports, timers) "Swiss army knife" of microprocessor technology, Typical cost: > , Annual demand: billions. Figure 11: Microprocessor vs Microcontroller COMP1208-Notes06-CompSys.doc Page 12

13 4. Example: Describe a simple computer system 4.1 Washing Machine Example This section demonstrates the use of block diagrams and flowcharts to describe a simple computer system. The example system chosen is a typical design of a modern washing machine incorporating a microcomputer control system. The Motorola MC6805 P2 8-bit microcontroller is chosen for this example as it is a complete computer system on a single chip and its architecture is straightforward. The device is designed to be mass produced to compete successfully with mechanical and electromechanical controllers. The 6805 is a complete, 8-bit computer system in a single integrated circuit. This means that its word size is eight bits, or one byte. The computer system is housed in a dual-in-line package and has 28 connecting pins as shown in the Figure 12 below. Figure 12: MC 6805 P2 dual-in-line package COMP1208-Notes06-CompSys.doc Page 13

14 4.2 Describe the System using Block Diagrams Figure 13 shows a simplified block diagram of the architecture of the 6805 computer. Since the device is a complete computer, it contains not only a CPU and associated registers, but also an I/O subsystem and a memory subsystem based on ROM and RAM. In addition, the device contains a timer, which allows elapsed time to be measured. NUM XTAL EXTAL Memory RESET INT Oscillator Timer ROM RAM CPU Control Unit registers Accumulator Condition Index Register Code Stack Register Program Pointer Counter Program High Counter Low ALU PORTA Register PORTB Register PORTC Register A0 to A7 Port A I/O Lines B0 to B7 Port B I/O Lines C0 to C3 Port C I/O Lines Input/Output Figure 13: Simplified Block Diagram for MC 6805 P2 Microcomputer System A program for the 6805 is held in ROM inside the package. The pattern of bits held in this ROM is determined by a mask (an etching pattern) which acts like a stencil during manufacture. The 6805 is, therefore, called a mask-programmed computer Communications within the processor The CPU is logically separate from the I/O and memory subsystems even though all are on the same chip. The processor communicates with the I/O and memory subsystems via one set of interconnections. Since the device is an 8-bit device, the bi-directional path carrying the data, called the data bus, contains eight individual lines. The control bus contains connections that indicate the direction of data (to or from) and carries timing information to ensure that the transmitter and the intended receiver of data can synchronise. The identity of the receiver of data is given by the address on the address bus. The address range of the 6805 is 0x00 to 0x7FF, thus the address bus is 11- bits. Instructions for the processor are transferred from the ROM to the CPU. The control unit then arranges for the instruction to be executed. This may involve fetching one or two further bytes of data along the bus. The I/O and timer subsystems are connected to the same buses as the memory subsystem. Each device in the I/O subsystem is identified by its own unique address, and data can be sent to and from any one of them, using the same form of instruction as used for direct data to and from the memory subsystem, i.e. memory mapped I/O. COMP1208-Notes06-CompSys.doc Page 14

15 4.2.2 The Memory Subsystem The memory subsystems of the 6805 include ROM and RAM. One section of the ROM has the purchaser's program (for example the washing machine program) embedded in it during manufacture. A second section of the ROM contains a self-testing program for the computer system which will test the subsystems connected to the bus. The RAM in the memory subsystem contains 64 bytes. Any byte can be used for general data storage. The RAM is volatile, that is, the contents will be lost when the power is switched off. : : : : I/O Ports and timer not used RAM ROM (page zero) not used ROM (main user + self test) Interrupt vectors Address 0x000 0x009 0x00A 0x03F 0x040 0x07F 0x080 0x0FF 0x100 0x3BF 0x3C0 0x7F7 0x7F8 : 0x7FF Figure 14: Simplified Memory Map - MC 6805 P2 Microcomputer System Inputs and Outputs The MC 6805 I/O connections are arranged as two 8-bit ports and one 4-bit port. Each port can be arranged as an output or an input, i.e. the ports are bi-directional. The I/O ports for the MC6805 are mapped as followed: Address PORT A 0x00 PORT B 0x PORT C 0x02 not used 0x03 PORT A - DDR 0x04 PORT B - DDR 0x05 not used PORT C - DDR 0x06 Figure 15: I/O Memory Mapping - MC 6805 P2 Microcomputer System Each port has a Data Direction Register (DDR). The contents of these registers determine whether the port pin is input or output. If a bit in the DDR is 0, then the corresponding pin will be input. If a bit in the DDR is 1, then the corresponding pin will be output. COMP1208-Notes06-CompSys.doc Page 15

16 4.2.4 Clocks and Timers The processor is driven by a clock signal that is derived from an oscillator contained within the device. The clock determined the rate at which instructions are executed and is a source of timing for the timer. The MC6805 includes an 8-bit timer that counts pulses from either an external clock or the prcessor's own clock. Each time a pulse is received, the timer decrements. The timer give a signal when its value reaches The Central Processing Unit (CPU) The processor works by executing a program of machine instructions. Each type of CPU has its own instruction set, i.e. the set of commands that the CPU is designed to interpret and execute. Machine instructions are very specific and it usually takes more than one machine instruction to execute one high-level language instruction. Many instructions move data from one place to another within the computer, others perform arithmetic or logical operations. Other instructions control program flow, jumping forward or backwards in the program. Each instruction has its own unique operation code, known as the opcode, 8-bits long in the case of the MC6805. To execute an instruction the opcode is transferred to the CPU, where it is decoded and executed. Many instructions require data in addition to the opcode before they can be completed. If this is the case, the next one or two bytes following the opcode in the program are fetched from memory. These data bytes are referred to as operands. Instructions in the MC6805 are thus of variable length; the maximum is three bytes. 1 byte opcode 2 Bytes opcode operand 1 3 Bytes opcode operand 1 operand2 Figure 16: Machine Code Instruction Layout - The Arithmetic Logic Unit ( ALU) is used to perform the arithmetic and logical operations defined by the instruction set. The CPU Control Unit sequences the logic elements of the ALU to carry out the required operations. Registers in the CPU are memories inside the microprocessor (not part of the memory map). The MC6805 contains five registers, including the accumulator and the program counter. The accumulator is a data holding. Data can be read from memory into the accumulator and data can be written into memory from the accumulator. Arithmetic and combinatorial logic operations can be performed on the accumulator register, thus many machine instructions involve the accumulator in some way. The program counter is a special address-storage register that the CPU uses to keep track of where it is in a program. the program counter always contains the address of the next instruction to be executed. COMP1208-Notes06-CompSys.doc Page 16

17 4.3 Describing the Operation using Flowcharts C0 C1 C2 Hot Water Valve Cold Water Valve Drain Pump C3 B0 COMP1208-Notes06-CompSys.doc Page 17

18 4.3.2 Process Description - Example 1 Suppose we require a piece of code to detect whether the door is shut and the wash programme set to programme 1. Only if both are true will it lock the door and open the hot water valve. Otherwise it is to branch beyond this piece of code. The drain pump and cold water valve are to remain closed throughout. We shall assume that an earlier piece of program has set Port A to be an input and Port B and Port C to be outputs. So we may design a simple algorithm for the process as follows: Algorithm 1. Check that the door shut and wash programme is 1 2. if not, then skip beyond this algorithm segment 3. If so, then lock the door and open the hot water valve More Detailed Algorithm Read Port A into the accumulator register Mask off all bits except bit 1 and bit 0 Test whether this value is 3, i.e. bit 0 and bit 1 are both set indicating that the door is shut (A0) and the wash programme is programme 1 (A1) If the value is not 3 then branch to the next address beyond this fragment of code If the value is equal to 3, then lock the door and open the hot water valve by setting Port C pin 0 and pin 3 to high. The pseudocode for this program segment is as follows: 1. Load Port A into the accumulator register 2. AND accumulator with immediate value 0x Arithmetic compare with immediate value 0x03 4. If not equal, then branch to the next address beyond this fragment (after step 6). 5. Load the accumulator with immediate value 0xF9. 6. Store accumulator direct to port C COMP1208-Notes06-CompSys.doc Page 18

19 The Flowchart for this program segment is as follows: START LOAD Port A to Accumulator Accumulator AND 0x03 Is Accumulator = 0x03? FALSE TRUE LOAD Accumulator <-- 0xF9 STORE Accumulator to Port C STOP Figure 18: Flowchart for Program Fragment Aside: see an example of the machine code for the above flowchart opcode operands Meaning 0xB6 0x00 LOAD accumulator from Port A (0x00) *0xA4 0x03 AND accumulator with immediate value 0x03 0xA1 0x03 Arithmetic Compare with immediate value 0x03 0x26 0x04 BRANCH IFF NOT EQUAL to the next 4 bytes 0xA6 0xF9 LOAD accumulator with immediate value 0x03 0xB7 0x02 STORE accumulator direct to port C (0x02) Figure 19: Fragment of MC6805 Machine Code COMP1208-Notes06-CompSys.doc Page 19

20 4.3.3 Process Description - Example 2 A second example is a fragment from the program handling the draining of water from the tank. Take the following sample algorithm: 1 Set bit 2 on Port C to set the drain pump running 2 Read bit 6 on port A, i.e. water level low sensor, and wait until the water level is low 3 Clear bit 2 on Port C to stop the drain pump 4 Set bit 4, 5 and 6 on Port B to turn on the indicator lights 1, 2 and 3 START SET Bit 2 Port C drain pump on READ Port A bit 6 Is bit 6 Port A clear TRUE FALSE CLEAR Bit 2 Port C drain pump off WRITE 0x70 to Port B indicator lights 1, 2 and 3 ON STOP Figure 20: Flowchart for Program Fragment COMP1208-Notes06-CompSys.doc Page 20

21 4.3.4 Exercises: Assuming the following: Washing Machine Programme 1: Hot Wash, Fast Spin Washing Machine Programme 2: Hot Wash, Slow Spin Washing Machine Programme 3: Cold Wash, Fast Spin Washing Machine Programme 4: Cold Wash, Slow Spin 1) Fill Cycle Design an algorithm for the fill cycle of the washing machine. This should include the filling of the machine with water until the machine is full. This simple machine has two temperature settings only for the water, hot or cold. The temperature will depend on the programme selected by the user. The water hot sensor is used to determine if the water is hot. When the fill cycle is complete the indicator light 1 should be illuminated. 2) Wash Cycle Design an algorithm for the wash cycle of the washing machine. This should include the checking that the water level is high before spinning the motor forward for a period of time and then spinning in the reverse direction. When the wash cycle is complete the indicator lights 1 and 2 should be illuminated. 3) Drain Cycle Design an algorithm for the drain cycle of the washing machine. This should include turning on the drain pump until the water level is low. When the drain cycle is complete the indicator lights 1, 2 and 3 should be illuminated. 4) Spin Cycle. Design an algorithm for the spin cycle of the washing machine. This should include checking that the water is drained before spinning the motor at the required speed for a fixed period of time. The speed will depend on the programme selected by the user. This simple machine has two speed settings, fast or slow. When the spin cycle is complete the indicator lights 1,2,3, and 4 should be illuminated. COMP1208-Notes06-CompSys.doc Page 21

MICROPROCESSOR AND MICROCOMPUTER BASICS

MICROPROCESSOR AND MICROCOMPUTER BASICS Introduction MICROPROCESSOR AND MICROCOMPUTER BASICS At present there are many types and sizes of computers available. These computers are designed and constructed based on digital and Integrated Circuit

More information

The Central Processing Unit:

The Central Processing Unit: The Central Processing Unit: What Goes on Inside the Computer Chapter 4 Objectives Identify the components of the central processing unit and how they work together and interact with memory Describe how

More information

Logical Operations. Control Unit. Contents. Arithmetic Operations. Objectives. The Central Processing Unit: Arithmetic / Logic Unit.

Logical Operations. Control Unit. Contents. Arithmetic Operations. Objectives. The Central Processing Unit: Arithmetic / Logic Unit. Objectives The Central Processing Unit: What Goes on Inside the Computer Chapter 4 Identify the components of the central processing unit and how they work together and interact with memory Describe how

More information

CHAPTER 2: HARDWARE BASICS: INSIDE THE BOX

CHAPTER 2: HARDWARE BASICS: INSIDE THE BOX CHAPTER 2: HARDWARE BASICS: INSIDE THE BOX Multiple Choice: 1. Processing information involves: A. accepting information from the outside world. B. communication with another computer. C. performing arithmetic

More information

Management Challenge. Managing Hardware Assets. Central Processing Unit. What is a Computer System?

Management Challenge. Managing Hardware Assets. Central Processing Unit. What is a Computer System? Management Challenge Managing Hardware Assets What computer processing and storage capability does our organization need to handle its information and business transactions? What arrangement of computers

More information

A+ Guide to Managing and Maintaining Your PC, 7e. Chapter 1 Introducing Hardware

A+ Guide to Managing and Maintaining Your PC, 7e. Chapter 1 Introducing Hardware A+ Guide to Managing and Maintaining Your PC, 7e Chapter 1 Introducing Hardware Objectives Learn that a computer requires both hardware and software to work Learn about the many different hardware components

More information

CHAPTER 7: The CPU and Memory

CHAPTER 7: The CPU and Memory CHAPTER 7: The CPU and Memory The Architecture of Computer Hardware, Systems Software & Networking: An Information Technology Approach 4th Edition, Irv Englander John Wiley and Sons 2010 PowerPoint slides

More information

Advanced Computer Architecture-CS501. Computer Systems Design and Architecture 2.1, 2.2, 3.2

Advanced Computer Architecture-CS501. Computer Systems Design and Architecture 2.1, 2.2, 3.2 Lecture Handout Computer Architecture Lecture No. 2 Reading Material Vincent P. Heuring&Harry F. Jordan Chapter 2,Chapter3 Computer Systems Design and Architecture 2.1, 2.2, 3.2 Summary 1) A taxonomy of

More information

Chapter 3: Computer Hardware Components: CPU, Memory, and I/O

Chapter 3: Computer Hardware Components: CPU, Memory, and I/O Chapter 3: Computer Hardware Components: CPU, Memory, and I/O What is the typical configuration of a computer sold today? The Computer Continuum 1-1 Computer Hardware Components In this chapter: How did

More information

Chapter 2 Basic Structure of Computers. Jin-Fu Li Department of Electrical Engineering National Central University Jungli, Taiwan

Chapter 2 Basic Structure of Computers. Jin-Fu Li Department of Electrical Engineering National Central University Jungli, Taiwan Chapter 2 Basic Structure of Computers Jin-Fu Li Department of Electrical Engineering National Central University Jungli, Taiwan Outline Functional Units Basic Operational Concepts Bus Structures Software

More information

Chapter 6. Inside the System Unit. What You Will Learn... Computers Are Your Future. What You Will Learn... Describing Hardware Performance

Chapter 6. Inside the System Unit. What You Will Learn... Computers Are Your Future. What You Will Learn... Describing Hardware Performance What You Will Learn... Computers Are Your Future Chapter 6 Understand how computers represent data Understand the measurements used to describe data transfer rates and data storage capacity List the components

More information

CSCA0102 IT & Business Applications. Foundation in Business Information Technology School of Engineering & Computing Sciences FTMS College Global

CSCA0102 IT & Business Applications. Foundation in Business Information Technology School of Engineering & Computing Sciences FTMS College Global CSCA0102 IT & Business Applications Foundation in Business Information Technology School of Engineering & Computing Sciences FTMS College Global Chapter 2 Data Storage Concepts System Unit The system unit

More information

Computer Performance. Topic 3. Contents. Prerequisite knowledge Before studying this topic you should be able to:

Computer Performance. Topic 3. Contents. Prerequisite knowledge Before studying this topic you should be able to: 55 Topic 3 Computer Performance Contents 3.1 Introduction...................................... 56 3.2 Measuring performance............................... 56 3.2.1 Clock Speed.................................

More information

1 PERSONAL COMPUTERS

1 PERSONAL COMPUTERS PERSONAL COMPUTERS 1 2 Personal computer a desktop computer a laptop a tablet PC or a handheld PC Software applications for personal computers include word processing spreadsheets databases web browsers

More information

Chapter 2 Logic Gates and Introduction to Computer Architecture

Chapter 2 Logic Gates and Introduction to Computer Architecture Chapter 2 Logic Gates and Introduction to Computer Architecture 2.1 Introduction The basic components of an Integrated Circuit (IC) is logic gates which made of transistors, in digital system there are

More information

what operations can it perform? how does it perform them? on what kind of data? where are instructions and data stored?

what operations can it perform? how does it perform them? on what kind of data? where are instructions and data stored? Inside the CPU how does the CPU work? what operations can it perform? how does it perform them? on what kind of data? where are instructions and data stored? some short, boring programs to illustrate the

More information

MICROPROCESSOR. Exclusive for IACE Students www.iace.co.in iacehyd.blogspot.in Ph: 9700077455/422 Page 1

MICROPROCESSOR. Exclusive for IACE Students www.iace.co.in iacehyd.blogspot.in Ph: 9700077455/422 Page 1 MICROPROCESSOR A microprocessor incorporates the functions of a computer s central processing unit (CPU) on a single Integrated (IC), or at most a few integrated circuit. It is a multipurpose, programmable

More information

150127-Microprocessor & Assembly Language

150127-Microprocessor & Assembly Language Chapter 3 Z80 Microprocessor Architecture The Z 80 is one of the most talented 8 bit microprocessors, and many microprocessor-based systems are designed around the Z80. The Z80 microprocessor needs an

More information

Primary Memory. Input Units CPU (Central Processing Unit)

Primary Memory. Input Units CPU (Central Processing Unit) Basic Concepts of Computer Hardware Primary Memory Input Units CPU (Central Processing Unit) Output Units This model of the typical digital computer is often called the von Neuman compute Programs and

More information

İSTANBUL AYDIN UNIVERSITY

İSTANBUL AYDIN UNIVERSITY İSTANBUL AYDIN UNIVERSITY FACULTY OF ENGİNEERİNG SOFTWARE ENGINEERING THE PROJECT OF THE INSTRUCTION SET COMPUTER ORGANIZATION GÖZDE ARAS B1205.090015 Instructor: Prof. Dr. HASAN HÜSEYİN BALIK DECEMBER

More information

Chapter 1. The largest computers, used mainly for research, are called a. microcomputers. b. maxicomputers. c. supercomputers. d. mainframe computers.

Chapter 1. The largest computers, used mainly for research, are called a. microcomputers. b. maxicomputers. c. supercomputers. d. mainframe computers. Chapter 1 CD-ROM stands for: a. Compact Disk Random Only Memory b. Compact Disk Read Only Memory c. Computer Device Read Only Memory d. Computer Disk Random Online Memory Control Unit (CU) is the a. Main

More information

Chapter 1 Computer System Overview

Chapter 1 Computer System Overview Operating Systems: Internals and Design Principles Chapter 1 Computer System Overview Eighth Edition By William Stallings Operating System Exploits the hardware resources of one or more processors Provides

More information

ADVANCED PROCESSOR ARCHITECTURES AND MEMORY ORGANISATION Lesson-17: Memory organisation, and types of memory

ADVANCED PROCESSOR ARCHITECTURES AND MEMORY ORGANISATION Lesson-17: Memory organisation, and types of memory ADVANCED PROCESSOR ARCHITECTURES AND MEMORY ORGANISATION Lesson-17: Memory organisation, and types of memory 1 1. Memory Organisation 2 Random access model A memory-, a data byte, or a word, or a double

More information

Central Processing Unit (CPU)

Central Processing Unit (CPU) Central Processing Unit (CPU) CPU is the heart and brain It interprets and executes machine level instructions Controls data transfer from/to Main Memory (MM) and CPU Detects any errors In the following

More information

EMBEDDED SYSTEM BASICS AND APPLICATION

EMBEDDED SYSTEM BASICS AND APPLICATION EMBEDDED SYSTEM BASICS AND APPLICATION TOPICS TO BE DISCUSSED System Embedded System Components Classifications Processors Other Hardware Software Applications 2 INTRODUCTION What is a system? A system

More information

CHAPTER 4 MARIE: An Introduction to a Simple Computer

CHAPTER 4 MARIE: An Introduction to a Simple Computer CHAPTER 4 MARIE: An Introduction to a Simple Computer 4.1 Introduction 195 4.2 CPU Basics and Organization 195 4.2.1 The Registers 196 4.2.2 The ALU 197 4.2.3 The Control Unit 197 4.3 The Bus 197 4.4 Clocks

More information

Parts of a Computer. Preparation. Objectives. Standards. Materials. 1 1999 Micron Technology Foundation, Inc. All Rights Reserved

Parts of a Computer. Preparation. Objectives. Standards. Materials. 1 1999 Micron Technology Foundation, Inc. All Rights Reserved Parts of a Computer Preparation Grade Level: 4-9 Group Size: 20-30 Time: 75-90 Minutes Presenters: 1-3 Objectives This lesson will enable students to: Identify parts of a computer Categorize parts of a

More information

MACHINE ARCHITECTURE & LANGUAGE

MACHINE ARCHITECTURE & LANGUAGE in the name of God the compassionate, the merciful notes on MACHINE ARCHITECTURE & LANGUAGE compiled by Jumong Chap. 9 Microprocessor Fundamentals A system designer should consider a microprocessor-based

More information

lesson 1 An Overview of the Computer System

lesson 1 An Overview of the Computer System essential concepts lesson 1 An Overview of the Computer System This lesson includes the following sections: The Computer System Defined Hardware: The Nuts and Bolts of the Machine Software: Bringing the

More information

Digital Systems Based on Principles and Applications of Electrical Engineering/Rizzoni (McGraw Hill

Digital Systems Based on Principles and Applications of Electrical Engineering/Rizzoni (McGraw Hill Digital Systems Based on Principles and Applications of Electrical Engineering/Rizzoni (McGraw Hill Objectives: Analyze the operation of sequential logic circuits. Understand the operation of digital counters.

More information

Instruction Set Architecture (ISA)

Instruction Set Architecture (ISA) Instruction Set Architecture (ISA) * Instruction set architecture of a machine fills the semantic gap between the user and the machine. * ISA serves as the starting point for the design of a new machine

More information

(Refer Slide Time: 00:01:16 min)

(Refer Slide Time: 00:01:16 min) Digital Computer Organization Prof. P. K. Biswas Department of Electronic & Electrical Communication Engineering Indian Institute of Technology, Kharagpur Lecture No. # 04 CPU Design: Tirning & Control

More information

Chapter 8 Memory Units

Chapter 8 Memory Units Chapter 8 Memory Units Contents: I. Introduction Basic units of Measurement II. RAM,ROM,PROM,EPROM Storage versus Memory III. Auxiliary Storage Devices-Magnetic Tape, Hard Disk, Floppy Disk IV.Optical

More information

Computer Basics: Chapters 1 & 2

Computer Basics: Chapters 1 & 2 Computer Basics: Chapters 1 & 2 Definition of a Computer What does IPOS stand for? Input Process Output Storage Other types of Computers Name some examples of other types of computers, other than a typical

More information

MULTIPLE CHOICE FREE RESPONSE QUESTIONS

MULTIPLE CHOICE FREE RESPONSE QUESTIONS MULTIPLE CHOICE FREE RESPONSE QUESTIONS World ORT Union I n p u t d e v i c e s Where would you find the letters QUERTY? A. Mouse B. Keyboard C.Numeric Keypad How did the computer mouse get its name? A.

More information

Week One Lecture Note 1.0 INTRODUCTION TO COMPUTER 1.1 WHAT IS COMPUTER?

Week One Lecture Note 1.0 INTRODUCTION TO COMPUTER 1.1 WHAT IS COMPUTER? Week One Lecture Note 1.0 INTRODUCTION TO COMPUTER 1.1 WHAT IS COMPUTER? A Computer is a device or set of devices that work under the control of a stored program, automatically accepts and processes data

More information

Machine Architecture and Number Systems. Major Computer Components. Schematic Diagram of a Computer. The CPU. The Bus. Main Memory.

Machine Architecture and Number Systems. Major Computer Components. Schematic Diagram of a Computer. The CPU. The Bus. Main Memory. 1 Topics Machine Architecture and Number Systems Major Computer Components Bits, Bytes, and Words The Decimal Number System The Binary Number System Converting from Decimal to Binary Major Computer Components

More information

TYPES OF COMPUTERS AND THEIR PARTS MULTIPLE CHOICE QUESTIONS

TYPES OF COMPUTERS AND THEIR PARTS MULTIPLE CHOICE QUESTIONS MULTIPLE CHOICE QUESTIONS 1. What is a computer? a. A programmable electronic device that processes data via instructions to output information for future use. b. Raw facts and figures that has no meaning

More information

Computers. Hardware. The Central Processing Unit (CPU) CMPT 125: Lecture 1: Understanding the Computer

Computers. Hardware. The Central Processing Unit (CPU) CMPT 125: Lecture 1: Understanding the Computer Computers CMPT 125: Lecture 1: Understanding the Computer Tamara Smyth, tamaras@cs.sfu.ca School of Computing Science, Simon Fraser University January 3, 2009 A computer performs 2 basic functions: 1.

More information

COMPUTER BASICS. Seema Sirpal Delhi University Computer Centre

COMPUTER BASICS. Seema Sirpal Delhi University Computer Centre COMPUTER BASICS Seema Sirpal Delhi University Computer Centre What is a Computer? An electronic device that stores, retrieves, and processes data, and can be programmed with instructions. A computer is

More information

Programming Logic controllers

Programming Logic controllers Programming Logic controllers Programmable Logic Controller (PLC) is a microprocessor based system that uses programmable memory to store instructions and implement functions such as logic, sequencing,

More information

COMPUTER SCIENCE AND ENGINEERING - Microprocessor Systems - Mitchell Aaron Thornton

COMPUTER SCIENCE AND ENGINEERING - Microprocessor Systems - Mitchell Aaron Thornton MICROPROCESSOR SYSTEMS Mitchell Aaron Thornton, Department of Electrical and Computer Engineering, Mississippi State University, PO Box 9571, Mississippi State, MS, 39762-9571, United States. Keywords:

More information

Basic Concepts of Information Technology (IT)

Basic Concepts of Information Technology (IT) Basic Concepts of Information Technology (IT) Objectives Define Computer and Identify the Four Basic Computing Functions Identify the Different Types of Computers Describe Hardware Devices and Their Uses

More information

Tech Application Chapter 3 STUDY GUIDE

Tech Application Chapter 3 STUDY GUIDE Name: Class: Date: Tech Application Chapter 3 STUDY GUIDE Multiple Choice Identify the letter of the choice that best completes the statement or answers the question. 1. This type of device retains data

More information

Microprocessor and Microcontroller Architecture

Microprocessor and Microcontroller Architecture Microprocessor and Microcontroller Architecture 1 Von Neumann Architecture Stored-Program Digital Computer Digital computation in ALU Programmable via set of standard instructions input memory output Internal

More information

Fall 2009. Lecture 1. Operating Systems: Configuration & Use CIS345. Introduction to Operating Systems. Mostafa Z. Ali. mzali@just.edu.

Fall 2009. Lecture 1. Operating Systems: Configuration & Use CIS345. Introduction to Operating Systems. Mostafa Z. Ali. mzali@just.edu. Fall 2009 Lecture 1 Operating Systems: Configuration & Use CIS345 Introduction to Operating Systems Mostafa Z. Ali mzali@just.edu.jo 1-1 Chapter 1 Introduction to Operating Systems An Overview of Microcomputers

More information

MICROPROCESSOR BCA IV Sem MULTIPLE CHOICE QUESTIONS

MICROPROCESSOR BCA IV Sem MULTIPLE CHOICE QUESTIONS MICROPROCESSOR BCA IV Sem MULTIPLE CHOICE QUESTIONS 1) Which is the microprocessor comprises: a. Register section b. One or more ALU c. Control unit 2) What is the store by register? a. data b. operands

More information

Computer Components Study Guide. The Case or System Box

Computer Components Study Guide. The Case or System Box Computer Components Study Guide In this lesson, we will briefly explore the basics of identifying the parts and components inside of a computer. This lesson is used to introduce the students to the inside

More information

Central Processing Unit

Central Processing Unit Chapter 4 Central Processing Unit 1. CPU organization and operation flowchart 1.1. General concepts The primary function of the Central Processing Unit is to execute sequences of instructions representing

More information

Writing Assignment #2 due Today (5:00pm) - Post on your CSC101 webpage - Ask if you have questions! Lab #2 Today. Quiz #1 Tomorrow (Lectures 1-7)

Writing Assignment #2 due Today (5:00pm) - Post on your CSC101 webpage - Ask if you have questions! Lab #2 Today. Quiz #1 Tomorrow (Lectures 1-7) Overview of Computer Science CSC 101 Summer 2011 Main Memory vs. Auxiliary Storage Lecture 7 July 14, 2011 Announcements Writing Assignment #2 due Today (5:00pm) - Post on your CSC101 webpage - Ask if

More information

A Computer Glossary. For the New York Farm Viability Institute Computer Training Courses

A Computer Glossary. For the New York Farm Viability Institute Computer Training Courses A Computer Glossary For the New York Farm Viability Institute Computer Training Courses 2006 GLOSSARY This Glossary is primarily applicable to DOS- and Windows-based machines and applications. Address:

More information

Microcontroller Basics A microcontroller is a small, low-cost computer-on-a-chip which usually includes:

Microcontroller Basics A microcontroller is a small, low-cost computer-on-a-chip which usually includes: Microcontroller Basics A microcontroller is a small, low-cost computer-on-a-chip which usually includes: An 8 or 16 bit microprocessor (CPU). A small amount of RAM. Programmable ROM and/or flash memory.

More information

LSN 2 Computer Processors

LSN 2 Computer Processors LSN 2 Computer Processors Department of Engineering Technology LSN 2 Computer Processors Microprocessors Design Instruction set Processor organization Processor performance Bandwidth Clock speed LSN 2

More information

Let s put together a Manual Processor

Let s put together a Manual Processor Lecture 14 Let s put together a Manual Processor Hardware Lecture 14 Slide 1 The processor Inside every computer there is at least one processor which can take an instruction, some operands and produce

More information

Computer Systems Structure Input/Output

Computer Systems Structure Input/Output Computer Systems Structure Input/Output Peripherals Computer Central Processing Unit Main Memory Computer Systems Interconnection Communication lines Input Output Ward 1 Ward 2 Examples of I/O Devices

More information

Microprocessor or Microcontroller?

Microprocessor or Microcontroller? Microprocessor or Microcontroller? A little History What is a computer? [Merriam-Webster Dictionary] one that computes; specifically : programmable electronic device that can store, retrieve, and process

More information

OVERVIEW OF MICROPROCESSORS

OVERVIEW OF MICROPROCESSORS C HAPTER 1 OVERVIEW OF MICROPROCESSORS 1.1 GENERAL A microprocessor is one of the most exciting technological innovations in electronics since the appearance of the transistor in 1948. This wonder device

More information

Technical Product Specifications Dell Dimension 2400 Created by: Scott Puckett

Technical Product Specifications Dell Dimension 2400 Created by: Scott Puckett Technical Product Specifications Dell Dimension 2400 Created by: Scott Puckett Page 1 of 11 Table of Contents Technical Product Specifications Model 3 PC Technical Diagrams Front Exterior Specifications

More information

AUTOMATIC NIGHT LAMP WITH MORNING ALARM USING MICROPROCESSOR

AUTOMATIC NIGHT LAMP WITH MORNING ALARM USING MICROPROCESSOR AUTOMATIC NIGHT LAMP WITH MORNING ALARM USING MICROPROCESSOR INTRODUCTION This Project "Automatic Night Lamp with Morning Alarm" was developed using Microprocessor. It is the Heart of the system. The sensors

More information

CPU Organisation and Operation

CPU Organisation and Operation CPU Organisation and Operation The Fetch-Execute Cycle The operation of the CPU 1 is usually described in terms of the Fetch-Execute cycle. 2 Fetch-Execute Cycle Fetch the Instruction Increment the Program

More information

Lecture 2: Computer Hardware and Ports. y.alharbi@sau.edu.sa http://faculty.sau.edu.sa/y.alharbi/en

Lecture 2: Computer Hardware and Ports. y.alharbi@sau.edu.sa http://faculty.sau.edu.sa/y.alharbi/en BMTS 242: Computer and Systems Lecture 2: Computer Hardware and Ports Yousef Alharbi Email Website y.alharbi@sau.edu.sa http://faculty.sau.edu.sa/y.alharbi/en The System Unit McGraw-Hill Copyright 2011

More information

Topics. Introduction. Java History CS 146. Introduction to Programming and Algorithms Module 1. Module Objectives

Topics. Introduction. Java History CS 146. Introduction to Programming and Algorithms Module 1. Module Objectives Introduction to Programming and Algorithms Module 1 CS 146 Sam Houston State University Dr. Tim McGuire Module Objectives To understand: the necessity of programming, differences between hardware and software,

More information

456 26 Microcontrollers Figure 26-1 Objectives Key Words and Terms 26.1 OVERVIEW OF THE MICROCONTROLLER microcontroller

456 26 Microcontrollers Figure 26-1 Objectives Key Words and Terms 26.1 OVERVIEW OF THE MICROCONTROLLER microcontroller This sample chapter is for review purposes only. Copyright The Goodheart-Willcox Co., Inc. All rights reserved. 456 Electronic Communication and Data Systems Objectives After studying this chapter, you

More information

Computer Organization & Architecture Lecture #19

Computer Organization & Architecture Lecture #19 Computer Organization & Architecture Lecture #19 Input/Output The computer system s I/O architecture is its interface to the outside world. This architecture is designed to provide a systematic means of

More information

Learning Outcomes. Simple CPU Operation and Buses. Composition of a CPU. A simple CPU design

Learning Outcomes. Simple CPU Operation and Buses. Composition of a CPU. A simple CPU design Learning Outcomes Simple CPU Operation and Buses Dr Eddie Edwards eddie.edwards@imperial.ac.uk At the end of this lecture you will Understand how a CPU might be put together Be able to name the basic components

More information

Hardware: Input, Processing, and Output Devices. A PC in Every Home. Assembling a Computer System

Hardware: Input, Processing, and Output Devices. A PC in Every Home. Assembling a Computer System C H A P T E R 3 Hardware: Input, Processing, and Output Devices A PC in Every Home February 3, 2000 Ford will make available to all 330,000 employees hourly and salaried an HP Pavilion PC, an HP DeskJet

More information

Computer System: User s View. Computer System Components: High Level View. Input. Output. Computer. Computer System: Motherboard Level

Computer System: User s View. Computer System Components: High Level View. Input. Output. Computer. Computer System: Motherboard Level System: User s View System Components: High Level View Input Output 1 System: Motherboard Level 2 Components: Interconnection I/O MEMORY 3 4 Organization Registers ALU CU 5 6 1 Input/Output I/O MEMORY

More information

Chap-02, Hardware and Software. Hardware Model

Chap-02, Hardware and Software. Hardware Model Philadelphia University School of Business Administration INFO-101 Information Systems Prof London Chap-02, Hardware and Software Hardware Components Central processing unit (CPU) Arithmetic/logic unit

More information

Computer Architecture Lecture 2: Instruction Set Principles (Appendix A) Chih Wei Liu 劉 志 尉 National Chiao Tung University cwliu@twins.ee.nctu.edu.

Computer Architecture Lecture 2: Instruction Set Principles (Appendix A) Chih Wei Liu 劉 志 尉 National Chiao Tung University cwliu@twins.ee.nctu.edu. Computer Architecture Lecture 2: Instruction Set Principles (Appendix A) Chih Wei Liu 劉 志 尉 National Chiao Tung University cwliu@twins.ee.nctu.edu.tw Review Computers in mid 50 s Hardware was expensive

More information

Introducción. Diseño de sistemas digitales.1

Introducción. Diseño de sistemas digitales.1 Introducción Adapted from: Mary Jane Irwin ( www.cse.psu.edu/~mji ) www.cse.psu.edu/~cg431 [Original from Computer Organization and Design, Patterson & Hennessy, 2005, UCB] Diseño de sistemas digitales.1

More information

CS101 Lecture 26: Low Level Programming. John Magee 30 July 2013 Some material copyright Jones and Bartlett. Overview/Questions

CS101 Lecture 26: Low Level Programming. John Magee 30 July 2013 Some material copyright Jones and Bartlett. Overview/Questions CS101 Lecture 26: Low Level Programming John Magee 30 July 2013 Some material copyright Jones and Bartlett 1 Overview/Questions What did we do last time? How can we control the computer s circuits? How

More information

Computer Organization. and Instruction Execution. August 22

Computer Organization. and Instruction Execution. August 22 Computer Organization and Instruction Execution August 22 CSC201 Section 002 Fall, 2000 The Main Parts of a Computer CSC201 Section Copyright 2000, Douglas Reeves 2 I/O and Storage Devices (lots of devices,

More information

Computer Systems Structure Main Memory Organization

Computer Systems Structure Main Memory Organization Computer Systems Structure Main Memory Organization Peripherals Computer Central Processing Unit Main Memory Computer Systems Interconnection Communication lines Input Output Ward 1 Ward 2 Storage/Memory

More information

Module 2. Embedded Processors and Memory. Version 2 EE IIT, Kharagpur 1

Module 2. Embedded Processors and Memory. Version 2 EE IIT, Kharagpur 1 Module 2 Embedded Processors and Memory Version 2 EE IIT, Kharagpur 1 Lesson 5 Memory-I Version 2 EE IIT, Kharagpur 2 Instructional Objectives After going through this lesson the student would Pre-Requisite

More information

Chapter 5 Busses, Ports and Connecting Peripherals

Chapter 5 Busses, Ports and Connecting Peripherals Chapter 5 Busses, Ports and Connecting Peripherals 1 The Bus bus - groups of wires on a circuit board that carry information (bits - on s and off s) between computer components on a circuit board or within

More information

DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING Question Bank Subject Name: EC6504 - Microprocessor & Microcontroller Year/Sem : II/IV

DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING Question Bank Subject Name: EC6504 - Microprocessor & Microcontroller Year/Sem : II/IV DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING Question Bank Subject Name: EC6504 - Microprocessor & Microcontroller Year/Sem : II/IV UNIT I THE 8086 MICROPROCESSOR 1. What is the purpose of segment registers

More information

Handout 17. by Dr Sheikh Sharif Iqbal. Memory Unit and Read Only Memories

Handout 17. by Dr Sheikh Sharif Iqbal. Memory Unit and Read Only Memories Handout 17 by Dr Sheikh Sharif Iqbal Memory Unit and Read Only Memories Objective: - To discuss different types of memories used in 80x86 systems for storing digital information. - To learn the electronic

More information

CPU Organization and Assembly Language

CPU Organization and Assembly Language COS 140 Foundations of Computer Science School of Computing and Information Science University of Maine October 2, 2015 Outline 1 2 3 4 5 6 7 8 Homework and announcements Reading: Chapter 12 Homework:

More information

Memory Systems. Static Random Access Memory (SRAM) Cell

Memory Systems. Static Random Access Memory (SRAM) Cell Memory Systems This chapter begins the discussion of memory systems from the implementation of a single bit. The architecture of memory chips is then constructed using arrays of bit implementations coupled

More information

Spacecraft Computer Systems. Colonel John E. Keesee

Spacecraft Computer Systems. Colonel John E. Keesee Spacecraft Computer Systems Colonel John E. Keesee Overview Spacecraft data processing requires microcomputers and interfaces that are functionally similar to desktop systems However, space systems require:

More information

Lecture N -1- PHYS 3330. Microcontrollers

Lecture N -1- PHYS 3330. Microcontrollers Lecture N -1- PHYS 3330 Microcontrollers If you need more than a handful of logic gates to accomplish the task at hand, you likely should use a microcontroller instead of discrete logic gates 1. Microcontrollers

More information

PART B QUESTIONS AND ANSWERS UNIT I

PART B QUESTIONS AND ANSWERS UNIT I PART B QUESTIONS AND ANSWERS UNIT I 1. Explain the architecture of 8085 microprocessor? Logic pin out of 8085 microprocessor Address bus: unidirectional bus, used as high order bus Data bus: bi-directional

More information

Computer Hardware HARDWARE. Computer Hardware. Mainboard (Motherboard) Instructor Özgür ZEYDAN

Computer Hardware HARDWARE. Computer Hardware. Mainboard (Motherboard) Instructor Özgür ZEYDAN Computer Hardware HARDWARE Hardware: the collection of physical elements that comprise a computer system. Bülent Ecevit University Department of Environmental Engineering 1. Case and inside 2. Peripherals

More information

Computer Organization and Components

Computer Organization and Components Computer Organization and Components IS1500, fall 2015 Lecture 5: I/O Systems, part I Associate Professor, KTH Royal Institute of Technology Assistant Research Engineer, University of California, Berkeley

More information

Overview of MIS Professor Merrill Warkentin

Overview of MIS Professor Merrill Warkentin Management Systems (MIS) Mississippi State University Data raw numbers - not processed facts, lists, numbers, tables of value to an organization 1 2 Data Processing (DP) the restructuring of data to improve

More information

Introduction to Computer Architecture Concepts

Introduction to Computer Architecture Concepts to Computer Architecture Concepts 1. We will start at the very beginning, first with the fundamental concepts behind the modern digital computer, and then some details of their implementation. Many people,

More information

Obj: Sec 1.0, to describe the relationship between hardware and software HW: Read p.2 9. Do Now: Name 3 parts of the computer.

Obj: Sec 1.0, to describe the relationship between hardware and software HW: Read p.2 9. Do Now: Name 3 parts of the computer. C1 D1 Obj: Sec 1.0, to describe the relationship between hardware and software HW: Read p.2 9 Do Now: Name 3 parts of the computer. 1 Hardware and Software Hardware the physical, tangible parts of a computer

More information

STUDY GUIDE CHAPTER 1

STUDY GUIDE CHAPTER 1 STUDY GUIDE CHAPTER 1 True/False Indicate whether the statement is true or false. 1. Digital technology has made it easy to produce copies of music with no loss of quality from the original. 2. Free source

More information

Main Memory & Backing Store. Main memory backing storage devices

Main Memory & Backing Store. Main memory backing storage devices Main Memory & Backing Store Main memory backing storage devices 1 Introduction computers store programs & data in two different ways: nmain memory ntemporarily stores programs & data that are being processed

More information

ADVANCED PROCESSOR ARCHITECTURES AND MEMORY ORGANISATION Lesson-12: ARM

ADVANCED PROCESSOR ARCHITECTURES AND MEMORY ORGANISATION Lesson-12: ARM ADVANCED PROCESSOR ARCHITECTURES AND MEMORY ORGANISATION Lesson-12: ARM 1 The ARM architecture processors popular in Mobile phone systems 2 ARM Features ARM has 32-bit architecture but supports 16 bit

More information

Here is a diagram of a simple computer system: (this diagram will be the one needed for exams) CPU. cache

Here is a diagram of a simple computer system: (this diagram will be the one needed for exams) CPU. cache Computer Systems Here is a diagram of a simple computer system: (this diagram will be the one needed for exams) CPU cache bus memory controller keyboard controller display controller disk Computer Systems

More information

The I2C Bus. NXP Semiconductors: UM10204 I2C-bus specification and user manual. 14.10.2010 HAW - Arduino 1

The I2C Bus. NXP Semiconductors: UM10204 I2C-bus specification and user manual. 14.10.2010 HAW - Arduino 1 The I2C Bus Introduction The I2C-bus is a de facto world standard that is now implemented in over 1000 different ICs manufactured by more than 50 companies. Additionally, the versatile I2C-bus is used

More information

1 Computer hardware. Peripheral Bus device "B" Peripheral device. controller. Memory. Central Processing Unit (CPU)

1 Computer hardware. Peripheral Bus device B Peripheral device. controller. Memory. Central Processing Unit (CPU) 1 1 Computer hardware Most computers are organized as shown in Figure 1.1. A computer contains several major subsystems --- such as the Central Processing Unit (CPU), memory, and peripheral device controllers.

More information

a storage location directly on the CPU, used for temporary storage of small amounts of data during processing.

a storage location directly on the CPU, used for temporary storage of small amounts of data during processing. CS143 Handout 18 Summer 2008 30 July, 2008 Processor Architectures Handout written by Maggie Johnson and revised by Julie Zelenski. Architecture Vocabulary Let s review a few relevant hardware definitions:

More information

8051 MICROCONTROLLER COURSE

8051 MICROCONTROLLER COURSE 8051 MICROCONTROLLER COURSE Objective: 1. Familiarization with different types of Microcontroller 2. To know 8051 microcontroller in detail 3. Programming and Interfacing 8051 microcontroller Prerequisites:

More information

COMPUTER ORGANIZATION AND ARCHITECTURE. Slides Courtesy of Carl Hamacher, Computer Organization, Fifth edition,mcgrawhill

COMPUTER ORGANIZATION AND ARCHITECTURE. Slides Courtesy of Carl Hamacher, Computer Organization, Fifth edition,mcgrawhill COMPUTER ORGANIZATION AND ARCHITECTURE Slides Courtesy of Carl Hamacher, Computer Organization, Fifth edition,mcgrawhill COMPUTER ORGANISATION AND ARCHITECTURE The components from which computers are built,

More information

Software engineering for real-time systems

Software engineering for real-time systems Introduction Software engineering for real-time systems Objectives To: Section 1 Introduction to real-time systems Outline the differences between general-purpose applications and real-time systems. Give

More information

Computer Hardware Submitted in partial fulfillment of the requirement for the award of degree Of MCA

Computer Hardware Submitted in partial fulfillment of the requirement for the award of degree Of MCA A Seminar report On Computer Hardware Submitted in partial fulfillment of the requirement for the award of degree Of MCA SUBMITTED TO: SUBMITTED BY: www.studymafia.org www.studymafia.org Preface I have

More information

Programming A PLC. Standard Instructions

Programming A PLC. Standard Instructions Programming A PLC STEP 7-Micro/WIN32 is the program software used with the S7-2 PLC to create the PLC operating program. STEP 7 consists of a number of instructions that must be arranged in a logical order

More information

Communicating with devices

Communicating with devices Introduction to I/O Where does the data for our CPU and memory come from or go to? Computers communicate with the outside world via I/O devices. Input devices supply computers with data to operate on.

More information