Академический Документы
Профессиональный Документы
Культура Документы
Course Outline
Introduction to microprocessors.
Intel 8086 microprocessor: Architecture, addressing modes, instruction sets, assembly language programming, system design and interrupt. Interfacing: Programmable peripheral interface, programmable timer, serial communication interface, programmable interrupt controller, direct memory access, keyboard and display interface. Introduction to micro-controllers.
EECE 407 Microprocessor and Interfacing Shuvro Chowdhury, Lecturer, Dept. of EEE, BUET
Marks Distribution
Category Attendance Class test (best 3 will be counted) Term final exam Total Total marks 4 30 20 3 = 60 Percentage (%) 10 20
210 300
70 100
Grade Distribution
Marks (%) 80 - 100 75 - 79 70 - 74 65 - 69 60 - 64 55 - 59 50 - 54 45 - 49 40 - 44 < 40
EECE 407 Microprocessor and Interfacing
Grade Point 4.00 3.75 3.50 3.25 3.00 2.75 2.50 2.25 2.00 0.00
Reference Books
Text Books: 1. Digital Computer Electronics Albert P. Malvino and Jerald A. Brown (3rd Edition) 2. Assembly Language Programming and Organization of the IBM PC Ytha Yu and Charles Marut 3. Microprocessor and Interfacing Programming and Hardware Douglas V. Hall Reference Books: 1. Microprocessors and Microcomputer-Based System Design Mohammed Rafiquzzaman (2nd edition) 2. The Intel Microprocessors Barry B. Brey (6th Edition) 3. The 8051 Microcontroller and Embedded Systems M. A. Mazidi, J. G. Mazidi, R. D. McKinlay
EECE 407 Microprocessor and Interfacing Shuvro Chowdhury, Lecturer, Dept. of EEE, BUET
Input Devices
Control Unit
Central Processing Unit (CPU)
Output Devices
10
11
12
Microprocessor
A silicon chip that contains a CPU. In the world of personal computers, the terms microprocessor and CPU are used interchangeably. At the heart of all personal computers and most workstations sits a microprocessor. Microprocessors also control the logic of almost all digital devices, from clock radios to fuelinjection systems for automobiles.
13
Microprocessor
is a semiconductor device consisting of electronic logic circuits manufactured by using various fabrication schemes capable of performing computing functions capable of transporting data/information is a programmable device the programmer selects instruction from the list and determines the sequence of execution for a given task. can be divided into 3 segments: Arithmetic and Logic Unit Register Unit Control Unit
EECE 407 Microprocessor and Interfacing Shuvro Chowdhury, Lecturer, Dept. of EEE, BUET
14
15
Control Unit
CPU Components
Generates control signals which are necessary for execution of an instruction. Connect registers to the bus. Controls the data flow between CPU and peripherals (including memory). Provides status, control & timing signals required for the operation of memory and I/O devices to the system. Acts as a brain of computer system All actions of the control unit are associated with the decoding and executions of instructions (fetch and execute cycles).
EECE 407 Microprocessor and Interfacing Shuvro Chowdhury, Lecturer, Dept. of EEE, BUET
16
Registers
CPU Components
17
CPU Components
18
Functions
ALU performs the following arithmetic & logical operations: Addition Subtraction Logical AND Logical OR Logical EXCLUSIVE OR Complement(logical NOT) Increment (add 1) Decrement (subtract 1) Left shift, Rotate Left, Rotate right Clear etc.
19
Introduction
SAP 1
Architecture
CLR CLK CP EP
SAP 1
4
Program Counter
Input and MAR 4 4 16 x 8 RAM Instruction Register 4 Controller/ Sequencer 12
CON = CPEPLMCELIEILAEASUEULBLO
8 8
Accumulator
LA CLK EA
CLK LM
8
4 8 8 8 8 8 4 Adder/ Subtractor B Register
SU EU
CE
LB CLK
Output Register
LO CLK
8
Binary Display
W BUS
22
Architecture
SAP 1
23
Program Counter
SAP 1 Architecture
A part of control unit. 4-bit up counter, counts from 0000 to 1111. The program for the computer is stored at the beginning of the memory with the first instruction at binary address 0000. Its job is to send to the memory address of the next instruction to be fetched and executed. Program counter is reset to 0000 before each computer run. At the beginning it sends address 0000 to memory. Then the counter is incremented to 0001. When the first instruction is fetched and executed, it sends address 0001. And the process continues.
EECE 407 Microprocessor and Interfacing Shuvro Chowdhury, Lecturer, Dept. of EEE, BUET
24
Input ad MAR
SAP 1 Architecture
Contains address and data switch registers. Address and data switch registers are part of input unit. These registers allow programmer to send 4 bit address and 8 bit data bits to RAM. MAR (Memory Address Register) is a part of memory unit. During a computer the addresses of program counter are latched into it. These latched addresses are fed to RAM when a read operation is performed.
EECE 407 Microprocessor and Interfacing Shuvro Chowdhury, Lecturer, Dept. of EEE, BUET
25
SAP 1 Architecture
Part of memory unit. 16 byte static TTL RAM. Can be programmed by means of address and data switches. Receives address from MAR and places the stored content of on the W bus.
26
Instruction Register
SAP 1 Architecture
Part of control unit. To fetch an instruction from the memory the computer does a memory read operation. This places the contents of the addressed memory location on to W bus. At the same time the IR is set up for load on the next positive clock edge. The contents of IR are divided into two nibbles. The upper nibble is two state and goes to controller/sequence. The lower nibble is three state output that is read onto the W bus when needed.
EECE 407 Microprocessor and Interfacing Shuvro Chowdhury, Lecturer, Dept. of EEE, BUET
27
Controller/Sequencer
SAP 1 Architecture
Brain of the control unit. Before each computer run, C/S sends clear signal to reset program counter and IR. Sends clock signal to all buffer registers to synchronize the operation of the computer. The output of C/S is a 12 bit word known as Control Word (CON) contains signals those controls the rest of the computer. These 12 bit signal constitutes what is called control bus.
EECE 407 Microprocessor and Interfacing Shuvro Chowdhury, Lecturer, Dept. of EEE, BUET
28
45