IPC144 Introduction to Programming Using C Instructor: Travis Mander 1.

Slides:



Advertisements
Similar presentations
The Central Processing Unit: What Goes on Inside the Computer.
Advertisements

COMP6005 An Introduction to Computing Session Two: Computer Hardware.
INTRODUCTION OF COMPUTER
1 Hardware - devices for Input. 2 Hardware - devices for Input Processing.
Introduction to Computer Systems
Computer Applications NCBS Stage 1. The Central Processing UnitSlide 2Computer Applications Stage 1 Course Content and Assessment Practical – 60% (2 Hrs.
Introduction to Computers Essential Understanding of Computers and Computer Operations.
Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill Technology Education Introduction to Computer Administration Introduction.
Alternate Version of STARTING OUT WITH C++ 4 th Edition Chapter 1 Introduction to Computers and Programming.
Chapter 3 Computer Hard ware
INTRODUCTION TO COMPUTER PROGRAMMING itc-314 LECTURE 01.
UNIX Unbounded 5 th Edition Amir Afzal Chapter 1 First Things First.
COMPUTER SYSTEM.
Introduction to Computers
1 Introduction to Computers Prof. Sokol Computer and Information Science Brooklyn College.
Computers Parts/Types. Topics Definition Types of Computers Parts of Computer System Impact on Society.
1 Introduction to Computers Lect 1 Won’t tell you much you don’t know. (Misleading– the course gets more conceptual as we create webpages.) Will go into.
Introduction to the Computer System. What is a computer ? A computer is an electronic device that can accept data and instruction, process them or store.
COMP1050 Winter 2015 Computer System Maintenance.
An overview of Computer System
Components of a Computer Prepared by: Mrs. McCallum-Rodney.
1 Introduction to Computers By Masseta ICT Dept. Mzumbe University.
GCSE Information Technology Computer Systems 2 Hardware is the name that is given to any part of a computer that you can actually touch. An individual.
5-1 Computer Components Consider the following ad.
The Central Processing Unit (CPU) and the Machine Cycle.
Intro to Computers Computer Applications. What is a Computer? Initially the term computer referred to an individual whose job it was to perform mathematical.
Computer Architecture
Appendix A Information Systems Hardware Information Systems Today Leonard Jessup and Joseph Valacich.
Chapter 5 Computing Components. 5-2 Chapter Goals List the components and their function in a von Neumann machine Describe the fetch-decode-execute cycle.
SKILL AREA: 1.2 MAIN ELEMENTS OF A PERSONAL COMPUTER.
Introduction to Computer Systems
Computer Basic Vocabulary
CSCI-100 Introduction to Computing Hardware Part I.
ELEMENTS OF A COMPUTER SYSTEM HARDWARE SOFTWARE PEOPLEWARE DATA.
Parts of the Computer System
Looking Inside the Computer System
COMPUTER Structure Int 2 Unit 1 – Computer Systems St Kentigern’s Academy.
Computer Organization. The Five Hardware Units General purpose computers use the "Von Neumann" architecture Also referred to as "stored program" architecture.
Computer Architecture2  Computers are comprised of three things  The physical computer  The operating system  The user and programs running on the.
Senem KUMOVA METİN // Fall CS 115 Introduction to Programming Introduction to Computing.
Computer Programming (1) Code & No.: CS 102 CREDIT HOURS: 5 UNIT Lecture 3.0 hours/week Lab: 2.0 hour/on every week a. This course introduces the students.
Computer Fundamentals MSCH 233 Lecture 1. What is a computer? A computer is an electronic machine which can accept data in a certain form, process the.
© 2003 Prentice Hall, Inc.A-1 Appendix A Information Systems Hardware Information Systems Today Leonard Jessup and Joseph Valacich.
Basic concepts of a computer system V1.0 (21/11/2005)
24/06/20161 Hardware Processor components & ROM. 224/06/2016 Learning Objectives Describe the function and purpose of the control unit, memory unit and.
Introduction to Programming. Key terms  CPU  I/O Devices  Main memory  Secondary memory  Operating system  User interface  Application  GUI 
DIGITAL TECHNOLOGY. 20 Questions  Pair off with another student within your table.  Both of you are to think of your favorite in a specific category.
INTRODUCTION TO COMPUTERS. A computer system is an electronic device used to input data, process data, store data for later use and produce output in.
Computer Structure. We will look at:  Four Box diagram  CPU  Memory  Registers and their role  Processing speed.
Chapter 1: Introduction to Computers and Programming
Computer Systems Nat 4/5 Computing Science Computer Structure:
Introduction to Computers
An Overview of the Computer System
An Introduction to The computer.
Introduction to Computers
Introduction to Computers
08/28/06 parts of the computer.
An Introduction to The computer.
Looking Inside the machine (Types of hardware, CPU, Memory)
Chapter 1: Introduction to Computers and Programming
An Overview of the Computer System
PARTS OF THE COMPUTER.
Basic Computer Organization
Introduction to Computers
Introduction to Computer Architecture
COMPUTER FUNDAMENTALS i
Computer components is a programmable machine that receives input, stores and manipulates data, and provides output in a useful format. Computer The computer.
4. Computer system.
08/28/06 parts of the computer.
Chapter 1: Introduction to Computers and Programming
Presentation transcript:

IPC144 Introduction to Programming Using C Instructor: Travis Mander 1

Introduction to Computer Programming Computer Organization 2

Objectives: By the end of this session, the student will be able to: Name and define 5 categories of Computer Architecture Show how these categories inter-relate Define the function of input devices Define the function of output devices Define the function of Primary Storage Distinguish between addresses and data List the two parts of the CPU Describe the function of each part of the CPU Define the function of Secondary Storage Describe the interaction between: Hardware Operating System Application Software User 3

Computer Architecture The architecture of a computer can be broken down into 5 categories. These 5 categories interrelate with each other in a structured way. Categories The categories of the architecture of a computer system are: 4

Computer Architecture, Continued Interrelation of Categories The categories interrelate in the following way: 5 Input Primary Storage Secondary Storage Output ©

Input Purpose The purpose of input is to take data that is external to the computer system, and transform it into data that is internal to the computer system. Some of the devices that perform this function are: Keyboard Mouse Barcode scanner Optical Mark Recognition (OMR)‏ Optical Character Recognition (OCR)‏ Hand-written characters Voice recognition Touch screens 6

Output Purpose The purpose of output is to take information that is internal to the computer system, and transform it into information that is external to the computer system, and therefore available for the user to use. Some of the devices that perform this function are: Monitor Dot-matrix printer Bubble-jet printer Laser printer Voice (Audio)‏ 7

Primary Storage Purpose The purpose of primary storage is: to store software that is in the process of being executed to store data for a short period of time while it is being manipulated The term 'memory' is also used when referring to Primary Storage. There are two types of Memory: RAM - Random Access Memory ROM - Read Only Memory ROM is read only memory, its contents cannot be altered, therefore is not Primary Storage. Unless otherwise stated, when we refer to memory in this course we are referring to RAM. 8

Primary Storage, Continued Addresses and Data Memory - a long street with millions or billions of houses Each house has an address - a number Each house has an occupant - a piece of data which is represented by a number from 0 to 255 Sometimes all it takes is a single house to represent something, such as single character (a letter of the alphabet). Sometimes many houses get together to represent something, For example it takes four houses to represent a single precision floating point number 9

Primary Storage, Continued Addresses and Data MB of RAM is a street with 134,217,728 houses (addressed ,217,727)‏ 72 (H) 105 (i)

Processor Purpose The processor, or Central Processing Unit (CPU) is where the computer system performs the manipulation of data. Every computer must have at least one CPU to function. A processor is composed of: Control unit Arithmetic / logic unit (ALU)‏ Control unit The control unit oversees the operation of the CPU by performing: Fetch - get an instruction from memory Decode - decide what the instruction means and direct the necessary data be moved from memory to the ALU The combination of Fetch and Decode is called, Instruction Time or I-Time 11

Processor, Continued Arithmetic / Logic Unit The ALU performs two classes of operations: Arithmetic operations Logical operations The ALU is responsible for: Execute Store The combination of Execute and Store is call Execution-Time, or E-Time 12

Processor, Continued Arithmetic operations The arithmetic operations performed by the ALU are: Addition Subtraction Multiplication Division Older ALUs could only perform addition and subtraction. The multiplication and division operations were performed through a set of instructions. 13

Processor, Continued Logic operations The logic operations, or tests, performed by the ALU are: Equal-to Greater than Less than These can be combined to create an additional three tests: Greater than or equal Less than or equal Greater than and Less than (not equal)‏ 14

Processor, Continued Machine cycle A machine cycle is the combination of I-Time and E-Time. The I-Time and E-Time differs from instruction to instruction, therefore the machine cycle will also be different. Diagram of a machine cycle This a diagram of the steps in a machine cycle: 15 Control Unit Arithmetic / Logic Unit 2 - Decode 1 - Fetch Memory 3 - Execute 4 - Store

Secondary Storage Purpose The purpose of secondary storage is to: retain data and programs while the computer system is turned off hold data and programs that cannot fit into primary storage Types of secondary storage Secondary storage is composed of two main groups of media, within each group are many types of secondary storage. The most common are: Magnetic media floppy diskette tape hard disk Optical media CD-ROM / -R / -RW DVD-ROM / -RAM 16

Computer Architecture Layers of the computer The computer is structured in layers, conceptually can be thought of: 17 Hardware Operating System Application User

Computer Architecture Layers of the computer Advantages: Simplified interface for each layer (user does not need to know how to trigger an interrupt to start reading from the disk drive). Change of hardware does not necessarily mean a change to the Applications - maybe just the O/S We are concerned with the Application layer- we must interface to the User and the Operating System The 'gap' allows the User to request certain tasks of the O/S (which application to launch, format a diskette, backup system...)‏ 18 Hardware Operating System Application User