Download - 1 Intro To Micro P
![Page 1: 1 Intro To Micro P](https://reader036.vdocument.in/reader036/viewer/2022081414/548b6a12b479596f608b4a40/html5/thumbnails/1.jpg)
Introduces the basic computer concepts
Chapter 1: Introduction to Microprocessor
1
![Page 2: 1 Intro To Micro P](https://reader036.vdocument.in/reader036/viewer/2022081414/548b6a12b479596f608b4a40/html5/thumbnails/2.jpg)
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](https://reader036.vdocument.in/reader036/viewer/2022081414/548b6a12b479596f608b4a40/html5/thumbnails/3.jpg)
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](https://reader036.vdocument.in/reader036/viewer/2022081414/548b6a12b479596f608b4a40/html5/thumbnails/4.jpg)
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](https://reader036.vdocument.in/reader036/viewer/2022081414/548b6a12b479596f608b4a40/html5/thumbnails/5.jpg)
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](https://reader036.vdocument.in/reader036/viewer/2022081414/548b6a12b479596f608b4a40/html5/thumbnails/6.jpg)
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](https://reader036.vdocument.in/reader036/viewer/2022081414/548b6a12b479596f608b4a40/html5/thumbnails/7.jpg)
MemoryMemory
Program Storage
Data Storage
7
![Page 8: 1 Intro To Micro P](https://reader036.vdocument.in/reader036/viewer/2022081414/548b6a12b479596f608b4a40/html5/thumbnails/8.jpg)
Memory
8
![Page 9: 1 Intro To Micro P](https://reader036.vdocument.in/reader036/viewer/2022081414/548b6a12b479596f608b4a40/html5/thumbnails/9.jpg)
Memorydata address
Figure 2:Components of memory
9
![Page 10: 1 Intro To Micro P](https://reader036.vdocument.in/reader036/viewer/2022081414/548b6a12b479596f608b4a40/html5/thumbnails/10.jpg)
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](https://reader036.vdocument.in/reader036/viewer/2022081414/548b6a12b479596f608b4a40/html5/thumbnails/11.jpg)
I/O DevicesInput device
Allow computer user to enter data & programs into the computer
11
![Page 12: 1 Intro To Micro P](https://reader036.vdocument.in/reader036/viewer/2022081414/548b6a12b479596f608b4a40/html5/thumbnails/12.jpg)
I/O DevicesOutput device
Displaying the results of computation
12
![Page 13: 1 Intro To Micro P](https://reader036.vdocument.in/reader036/viewer/2022081414/548b6a12b479596f608b4a40/html5/thumbnails/13.jpg)
Microprocessor vs. Microcontroller
13
![Page 14: 1 Intro To Micro P](https://reader036.vdocument.in/reader036/viewer/2022081414/548b6a12b479596f608b4a40/html5/thumbnails/14.jpg)
Computer’s Software
14
Programming Language
![Page 15: 1 Intro To Micro P](https://reader036.vdocument.in/reader036/viewer/2022081414/548b6a12b479596f608b4a40/html5/thumbnails/15.jpg)
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](https://reader036.vdocument.in/reader036/viewer/2022081414/548b6a12b479596f608b4a40/html5/thumbnails/16.jpg)
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](https://reader036.vdocument.in/reader036/viewer/2022081414/548b6a12b479596f608b4a40/html5/thumbnails/17.jpg)
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](https://reader036.vdocument.in/reader036/viewer/2022081414/548b6a12b479596f608b4a40/html5/thumbnails/18.jpg)
Terminologies
18
Source Code: A program written in assembly or high-level language.
Object Code: The output of an assemble or compiler.