The document provides an overview of the structure and operation of a microcomputer. It describes how a microcomputer consists of a central processing unit (CPU), memory, and input/output circuitry that are connected by address, data, and control buses. It then explains each of the main components in more detail, including how the CPU fetches and executes instructions from memory to control the other components through the buses.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
29 views24 pages
Lecture 2
The document provides an overview of the structure and operation of a microcomputer. It describes how a microcomputer consists of a central processing unit (CPU), memory, and input/output circuitry that are connected by address, data, and control buses. It then explains each of the main components in more detail, including how the CPU fetches and executes instructions from memory to control the other components through the buses.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 24
Overview of Microcomputer
Structure and Operation
Course Teacher:
Deboky Saha (DES)
Contractual Lecturer Department of Computer Science & Engineering BRAC University.
Course ID: CSE - 341
Course Title: Microprocessors Lecture References: Book: Microprocessors and Interfacing: Programming and Hardware, Author: Douglas V. Hall Lecture Materials: E4160: Introduction of Microprocessors.
2 CSE – 341 : Microprocessors
BRAC University Block Diagram of a Simple Microcomputer Components of Microcomputer: CPU Memory Input / Output circuitry System Buses: Address bus Data bus Control bus Address bus
ROM RAM I/O I/O
CPU interface devices
Data bus Control
bus
3 CSE – 341 : Microprocessors
BRAC University Overview of Microcomputer structure:
The major parts of a simple microcomputer are the central
processing unit or CPU, memory and input and output circuitry. These parts are connected by set of parallel lines called buses. These three buses are data bus, address bus and control bus. Microcomputers have been used for applications including data and word processing, electronic spreadsheets, professional presentation and graphics programs, communications and database management systems.
4 CSE – 341 : Microprocessors
BRAC University Microprocessor At the heart of the microprocessor-based computer system is the microprocessor integrated circuit. The microprocessor, sometimes referred to as the CPU (central processing unit), is the controlling element in a computer system. The microprocessor controls memory and I/O through a series of connections called buses. The buses select an I/O or memory device, transfer data between an I/O device or memory and the microprocessor, and control the I/O and memory system. Memory and I/O are controlled through instructions that are stored in the memory and executed my uP.
5 CSE – 341 : Microprocessors
BRAC University CPU - Central Processing Unit It controls the operation of computer The CPU fetches binary-coded instructions from memory Decodes the instructions into a series of simple actions Carries out these actions in a sequence of steps (Execute) Important components: IP (Instruction Pointer), General purpose registers and Control bus signal generating circuits
Pentium D dual core processors
6 CSE – 341 : Microprocessors
BRAC University Memory It stores the binary codes for the sequence of instructions and binary coded data. Example: ROM, RAM and Magnetic disks RAM can be read and written to anytime the CPU commands it, but ROM is pre-loaded with data and software that never changes, so the CPU can only read from it. ROM is typically used to store the computer's initial start-up instructions. In general, the contents of RAM are erased when the power to the computer is turned off, but ROM retains its data indefinitely. In a PC, the ROM contains a specialized program called the BIOS that orchestrates loading the computer's operating system from the hard disk drive into RAM whenever the computer is turned on or reset. 7 CSE – 341 : Microprocessors BRAC University I/O Unit Input/output (I/O), refers to the communication between an information processing system (such as a computer), and the outside world possibly a human, or another information processing system. Inputs are the signals or data received by the system, and outputs are the signals or data sent from it Devices that provide input or output to the computer are called peripherals like the keyboard and mouse, and output devices such as the display and printer Hard disk drives, floppy disk drives and optical disc drives serve as both input and output devices. Computer networking is another form of I/O. 8 CSE – 341 : Microprocessors BRAC University System Bus The microcomputer’s system bus contains three buses, address, data, and control bus When a memory or an I/O chip receives data from the microprocessor, it is called a WRITE operation, and data is written into a selected memory location or an I/O port (register). When a memory or an I/O chip sends data to the microprocessor, it is called a READ operation, and data is read from a selected memory location or an I/O port.
9 CSE – 341 : Microprocessors
BRAC University Address Bus It is a Unidirectional bus. Information transfer takes place from the MP to the memory or I/O elements. Typically 16, 20, 24, 32 or 36 bits long. On these lines the CPU sends out the address of the memory location or I/O port that is to be written to or read from The number of locations that the CPU can address is determined by the number of address lines For example : microprocessor with 32 address pins can generate 232 = 4,294,964,296 bytes
10 CSE – 341 : Microprocessors
BRAC University Data Bus It is a bidirectional bus Data can flow in both directions, that is, to or from the microprocessor. The size of the data bus varies from one microprocessor to another. Usually matches the word length of the microprocessor Usually a multiple of 8 We talk of 4-bit (nibble), 8-bit, 16-bit , 32-bit and 64-bit processors which refers to the normal word length of the microprocessor
11 CSE – 341 : Microprocessors
BRAC University Control Bus It consists of a number of signals that are used to synchronize operation of the individual microcomputer elements. It is unidirectional Consists of potentially many signals. Typically:- Read Write Could be single signal - Read/notWrite line Interrupt control Bus control signals for DMA (Direct Memory Access)
12 CSE – 341 : Microprocessors
BRAC University Bus Diagram
Address Bus
CPU Data Bus Memory
Control Bus
A D C B B B
Input/Output
13 CSE – 341 : Microprocessors
BRAC University Concept of Hexadecimal Hexadecimal numerals (using a base of 16) are widely used by computer system designers and programmers, as they provide a human-friendly representation of binary- coded values. Each hexadecimal digit represents four binary digits, also known as a nibble, which is half a byte. For example, a single byte can have values ranging from 00000000 to 11111111 in binary form, which can be conveniently represented as 00 to FF in hexadecimal.
14 CSE – 341 : Microprocessors
BRAC University Hexadecimal
15 CSE – 341 : Microprocessors
BRAC University Power Of 2
16 CSE – 341 : Microprocessors
BRAC University Fetching & Execution Cycles Fetching Cycles The fetch cycle takes the instruction required from memory, stores it in the instruction register, and moves the program counter on one so that it points to the next instruction. Execute cycle The actual actions which occur during the execute cycle of an instruction. depend on both the instruction itself and the addressing mode specified to be used to access the data that may be required.
17 CSE – 341 : Microprocessors
BRAC University Fetching an Instruction Step 1 Instruction Pointer (IP) or a program counter is register, that holds the address of the next instruction to be fetched.