1 intro to micro p
DESCRIPTION
dee3213TRANSCRIPT
Introduces the basic computer concepts
Chapter 1: Introduction to Microprocessor
1
Computer???
HardwareElectronics circuit boards
that provide functionality of the system
SoftwareProgram consists
of sets of instructionsthat control the system
2
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.
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
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
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
MemoryMemory
Program Storage
Data Storage
7
Memory
8
Memorydata address
Figure 2:Components of memory
9
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
I/O DevicesInput device
Allow computer user to enter data & programs into the computer
11
I/O DevicesOutput device
Displaying the results of computation
12
Microprocessor vs. Microcontroller
13
Computer’s Software
14
Programming Language
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
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.
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
Terminologies
18
Source Code: A program written in assembly or high-level language.
Object Code: The output of an assemble or compiler.