1 intro to micro p

18
Introduces the basic computer concepts Chapter 1: Introduction to Microprocessor 1

Upload: ikinfad

Post on 13-Dec-2014

1.381 views

Category:

Technology


1 download

DESCRIPTION

dee3213

TRANSCRIPT

Page 1: 1 Intro To Micro P

Introduces the basic computer concepts

Chapter 1: Introduction to Microprocessor

1

Page 2: 1 Intro To Micro P

Computer???

HardwareElectronics circuit boards

that provide functionality of the system

SoftwareProgram consists

of sets of instructionsthat control the system

2

Page 3: 1 Intro To Micro P

Computer Classification

3

Microcomputer: microprocessor based computer.

Workstation: microcomputer used for research, more sophisticated.

Mainframe: large computer normally used for business

Supercomputer: high speed for high precision calculation with combination of thousand of processors.

Microcontroller: small size processor with internal memory and I/O port.

PDA: pocket sized computer for personal info.

Page 4: 1 Intro To Micro P

Computer Architecture

Memory

Program Storage

Data Storage

Output Units

Input Units

Control Unit

Datapath

Arithmetic Logic

Unit (ALU)

Registers

Common Bus (address, data & control)

Processor (CPU)

Figure 1: Computer Hardware Organization

4

Page 5: 1 Intro To Micro P

Processor (CPU)The brain of a computer system

Control Unit

Datapath

Arithmetic Logic

Unit (ALU)

Registers

•Decodes and monitors the execution of instructions.•Controls flow of information in CPU, memory, I/O devices:

•System clock (Intel® Core™ I7-720QM Processor (1.6GHz, turbo up to 2.8GHz, 6MB L3 Cache))•Maintains a register called program counter(PC)

•ALU: performs all arithmetic computations & logic evaluations.•Registers: storage location in CPU, used to hold data or a memory address during the execution of an instruction..

5

Page 6: 1 Intro To Micro P

Common BusA group of conducting wires that allow

signals to travel from one point to another:• Address bus: the location of data in memory

or I/O devices• Data bus: carry data in & out from CPU• Control bus: control the operation of the CPU

Common Bus (address, data & control)

6

Page 7: 1 Intro To Micro P

MemoryMemory

Program Storage

Data Storage

7

Page 8: 1 Intro To Micro P

Memory

8

Page 9: 1 Intro To Micro P

Memorydata address

Figure 2:Components of memory

9

Page 10: 1 Intro To Micro P

Discussion 1A memory in microP stores data in binary

format. To retrieve an information, the microP assigns addresses to the location. Each location stores 1 byte of data.

If a value of hex D7 is stored in the location of $2000, show the content of the memory on $2000.

10

Page 11: 1 Intro To Micro P

I/O DevicesInput device

Allow computer user to enter data & programs into the computer

11

Page 12: 1 Intro To Micro P

I/O DevicesOutput device

Displaying the results of computation

12

Page 13: 1 Intro To Micro P

Microprocessor vs. Microcontroller

13

Page 14: 1 Intro To Micro P

Computer’s Software

14

Programming Language

Page 15: 1 Intro To Micro P

Machine Instructions

15

A program is stored in the computer memory in the form of binary numbers.

Hard to understand, debug, and maintain the program.

Examples:0100 0011 :decrement the contents of

accumulator A by 1.1000 0110 0000 0110 :places the value 6 in

accumulator A

Page 16: 1 Intro To Micro P

Assembly Language

16

Defined by assembly instructions: mnemonic representation of a machine instruction.

Must be translated by an assembler before it can be executed.

Programmers need to work on the program logic at a very low level & cannot achieve high productivity.

Examples:ABA :add the contents of accumulator B to

accumulator A.DECA :decrement the contents of accumulator A

by 1.

Page 17: 1 Intro To Micro P

High Level Language

17

The syntax is similar to English.A compiler is required to translate the

program.Allows user to work on the program logic at

higher level.Examples:

C++CPASCALOMNET++JAVA

Page 18: 1 Intro To Micro P

Terminologies

18

Source Code: A program written in assembly or high-level language.

Object Code: The output of an assemble or compiler.