The Wayback Machine - https://web.archive.org/web/20241004131545/https://www.geeksforgeeks.org/mpu-communication-in-computer-organization/
Open In App

MPU Communication in Computer Organization

Last Updated : 14 May, 2023
Summarize
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report
News Follow

MPU communicates with the outside world with the help of some external devices which are known as Input/Output devices. The MPU accepts the binary data from input devices such as keyboard and analog/digital converters and sends data to output devices such as printers and LEDs. For performing this task, MPU first need to identify the input/output devices. There are two different methods by which I/O devices can be identified: Using 8-bit address, and Using 16-bit address. These methods are described briefly in the following sections:

  1. I/Os with 8-bit addresses – This is also known as peripheral-mapped I/O or I/O-mapped-I/O. In this type of I/O, MPU uses eight address lines to identify an input or an output devices. This is an 8-bit numbering system for I/Os used in conjunction with the input and output instructions. This is also known as I/O space that is separate from the memory space which is 16-bit numbering system. The eight address lines have 2^8 combinations which is total 256 addresses; therefore MPU can identify 256 input devices and 256 output devices with addresses ranging from 00H to FFH. The input and output devices can be differentiated by using the control lines I/O Read and I/O Write. MPU uses I/O Read control signal for input devices and I/O Write control signal for output devices. The individual addresses of I/O Map is known as I/O port numbers. These I/O devices cannot be connected directly to the data bus or the address bus; all connections must be made through tri-state interfacing devices so they will enabled and connected to the buses only when the MPU chooses to communicate with them.
  2. I/Os with 16-bit addresses – This is also known as Memory-mapped I/O. In this type of I/O, MPU uses sixteen address lines to identify an input or an output devices; an I/O is connected as if it is a memory register. The MPU uses same control signal (Memory Read and Memory Write) and instructions as those of memory. In some microprocessors, such as the Motorola 6800, all I/Os have 16-bit addresses; I/Os and memory share the same memory map (64K). The steps in communicating with an I/O device are similar for both 8-bit and 16-bit addresses. The steps are summarized below:
    1. The MPU places an 8-bit address ( or 16-bit address) on the address bus, which is decoded by external decode logic.
    2. The MPU sends a control signal (I/O Read or I/O Write) and enables the I/O device.
    3. Data are transferred using the data bus.

Table: Comparison of 8-bit and 16-bit Address I/O Mapping

Features 8-bit I/O Mapping  16-bit I/O Mapping
Number of Address Lines  8  16
Total I/O Devices  256 65536
Address Range  00H to FFH  0000H to FFFFH
Control Signals  I/O Read and I/O Write  I/O Read and I/O Write
Interfacing Devices Required  Yes No
Memory and I/O Sharing  No Yes

 

Advantages:

Efficient data transfer: MPU communication can provide fast and efficient transfer of data between multiple devices in a computer system.
Scalability: MPU communication allows for easy scalability, as additional devices can be added to the system without affecting the performance of the existing devices.
Distributed processing: MPU communication allows for distributed processing, where different processors can work on different parts of a task simultaneously.
Reduced data loss: MPU communication can help to reduce the loss of data during transmission, as error-checking and correction mechanisms can be implemented.
 

Disadvantages:

Complexity: MPU communication can be complex to implement, as it requires the use of specialized hardware and software.
Latency: MPU communication can introduce latency or delay in data transmission, which can affect the overall performance of the system.
Compatibility : Different devices may use different communication protocols or standards, which can create compatibility issues when trying to communicate between them.
Security concerns: MPU communication can potentially pose security risks if data is intercepted or accessed by unauthorized parties.


Previous Article
Next Article

Similar Reads

Differences between Computer Architecture and Computer Organization
It is very important for any person who is interested or has a leaning towards computer science or anybody who has to work with computers to understand the difference between computer architecture and computer organization. What needs to be understood is that although these two concepts are interconnected they are different, one deals with the smal
5 min read
Computer Organization | Basic Computer Instructions
Computer organization refers to the way in which the components of a computer system are organized and interconnected to perform specific tasks. One of the most fundamental aspects of computer organization is the set of basic computer instructions that the system can execute. Basic Computer InstructionsBasic computer instructions are the elementary
7 min read
Performance of Computer in Computer Organization
In computer organization, performance refers to the speed and efficiency at which a computer system can execute tasks and process data. A high-performing computer system is one that can perform tasks quickly and efficiently while minimizing the amount of time and resources required to complete these tasks. The performance of a computer system depen
6 min read
Computer Organization | Amdahl's law and its proof
It is named after computer scientist Gene Amdahl( a computer architect from IBM and Amdahl corporation) and was presented at the AFIPS Spring Joint Computer Conference in 1967. It is also known as Amdahl's argument. It is a formula that gives the theoretical speedup in latency of the execution of a task at a fixed workload that can be expected of a
6 min read
Computer Organization | Micro-Operation
In computer central processing units, micro-operations (also known as micro-ops) are the functional or atomic, operations of a processor. These are low level instructions used in some designs to implement complex machine instructions. They generally perform operations on data stored in one or more registers. They transfer data between registers or
3 min read
Computer Organization | Different Instruction Cycles
Introduction : Prerequisite - Execution, Stages and Throughput Registers Involved In Each Instruction Cycle: Memory address registers(MAR) : It is connected to the address lines of the system bus. It specifies the address in memory for a read or write operation.Memory Buffer Register(MBR) : It is connected to the data lines of the system bus. It co
11 min read
Computer Organization | Asynchronous input output synchronization
Introduction : Asynchronous input/output (I/O) synchronization is a technique used in computer organization to manage the transfer of data between the central processing unit (CPU) and external devices. In asynchronous I/O synchronization, data transfer occurs at an unpredictable rate, with no fixed timing or synchronization between the CPU and ext
7 min read
Purpose of an Interrupt in Computer Organization
Interrupt is the mechanism by which modules like I/O or memory may interrupt the normal processing by CPU. It may be either clicking a mouse, dragging a cursor, printing a document etc the case where interrupt is getting generated. Why we require Interrupt? External devices are comparatively slower than CPU. So if there is no interrupt CPU would wa
2 min read
Peripherals Devices in Computer Organization
Generally peripheral devices, however, are not essential for the computer to perform its basic tasks, they can be thought of as an enhancement to the user's experience. A peripheral device is a device that is connected to a computer system but is not part of the core computer system architecture. Generally, more people use the term peripheral more
4 min read
Data Manipulation Instructions in Computer Organization
Data Manipulation Instructions Data manipulation instructions perform operations on data and provide computational capabilities for the computer. The data manipulation instructions in a typical computer are usually divided into three basic types as follows. Arithmetic instructionsLogical and bit manipulation instructionsShift instructions Let's dis
3 min read
Control Logic Gates in Computer Organization
Control Logic Gates is the hardware component of a basic computer. It comprises some inputs and outputs. The diagram given below is related to the hardwired control organization. The diagram below consists of the instruction register which has three parts: the I bit (15), the operation code (12, 13, 14), and bits 0 through 11. The symbols as D0 to
2 min read
Stack Frame in Computer Organization
Stack Frame :Stack is one of the segments of application memory that is used to store the local variables, function calls of the function. Whenever there is a function call in our program the memory to the local variables and other function calls or subroutines get stored in the stack frame. Each function gets its own stack frame in the stack segme
3 min read
Memory Stack Organization in Computer Architecture
A stack is a storage device in which the information or item stored last is retrieved first. Basically, a computer system follows a memory stack organization, and here we will look at how it works. A portion of memory is assigned to a stack operation to implement the stack in the CPU. Here the processor register is used as a Stack Pointer (SP). The
4 min read
Synchronous Data Transfer in Computer Organization
In Synchronous Data Transfer, the sending and receiving units are enabled with the same clock signal. It is possible between two units when each of them knows the behaviour of the other. The master performs a sequence of instructions for data transfer in a predefined order. All these actions are synchronized with the common clock. The master is des
4 min read
Computer Organization and Architecture | Pipelining | Set 3 (Types and Stalling)
Please see Set 1 for Execution, Stages and Performance (Throughput) and Set 2 for Dependencies and Data Hazard. Types of pipeline Uniform delay pipeline In this type of pipeline, all the stages will take same time to complete an operation. In uniform delay pipeline, Cycle Time (Tp) = Stage Delay If buffers are included between the stages then, Cycl
3 min read
Computer Organization and Architecture | Pipelining | Set 2 (Dependencies and Data Hazard)
Please see Set 1 for Execution, Stages and Performance (Throughput) and Set 3 for Types of Pipeline and Stalling. Dependencies in a pipelined processor There are mainly three types of dependencies possible in a pipelined processor. These are : 1) Structural Dependency 2) Control Dependency 3) Data Dependency These dependencies may introduce stalls
6 min read
Computer Organization | Hardwired v/s Micro-programmed Control Unit
Introduction : In computer architecture, the control unit is responsible for directing the flow of data and instructions within the CPU. There are two main approaches to implementing a control unit: hardwired and micro-programmed. A hardwired control unit is a control unit that uses a fixed set of logic gates and circuits to execute instructions. T
5 min read
BUS Arbitration in Computer Organization
Introduction : In a computer system, multiple devices, such as the CPU, memory, and I/O controllers, are connected to a common communication pathway, known as a bus. In order to transfer data between these devices, they need to have access to the bus. Bus arbitration is the process of resolving conflicts that arise when multiple devices attempt to
7 min read
Cache Memory in Computer Organization
Cache memory is a small, high-speed storage area in a computer. The cache is a smaller and faster memory that stores copies of the data from frequently used main memory locations. There are various independent caches in a CPU, which store instructions and data. The most important use of cache memory is that it is used to reduce the average time to
9 min read
Computer Organization and Architecture | Pipelining | Set 1 (Execution, Stages and Throughput)
Pipelining is a technique used in modern processors to improve performance by executing multiple instructions simultaneously. It breaks down the execution of instructions into several stages, where each stage completes a part of the instruction. These stages can overlap, allowing the processor to work on different instructions at various stages of
9 min read
RISC and CISC in Computer Organization
RISC is the way to make hardware simpler whereas CISC is the single instruction that handles multiple work. In this article, we are going to discuss RISC and CISC in detail as well as the Difference between RISC and CISC, Let's proceed with RISC first. Reduced Instruction Set Architecture (RISC) The main idea behind this is to simplify hardware by
5 min read
Computer Organization | Instruction Formats (Zero, One, Two and Three Address Instruction)
In computer organization, instruction formats refer to the way instructions are encoded and represented in machine language. There are several types of instruction formats, including zero, one, two, and three-address instructions. Each type of instruction format has its own advantages and disadvantages in terms of code size, execution time, and fle
11 min read
Computer Organization | Booth's Algorithm
Booth algorithm gives a procedure for multiplying binary integers in signed 2’s complement representation in efficient way, i.e., less number of additions/subtractions required. It operates on the fact that strings of 0’s in the multiplier require no addition but just shifting and a string of 1’s in the multiplier from bit weight 2^k to weight 2^m
7 min read
Communication channel between CPU and IOP
There is a communication channel between IOP and CPU to perform task which come under computer architecture. This channel explains the commands executed by IOP and CPU while performing some programs. The CPU do not executes the instructions but it assigns the task of initiating operations, the instructions are executed by IOP. I/O transfer is instr
2 min read
Asynchronous Communication Interface
The block diagram of the asynchronous communication interface is shown above. It functions both as a transmitter and receiver. Parts of the Interface : The interface is initialized by the help of control bit loaded into the control register. The transmitter register accepts the data byte from CPU through data bus which is then transferred to shift
2 min read
I2C Communication Protocol
I2C stands for Inter-Integrated Circuit. It is a bus interface connection protocol incorporated into devices for serial communication. It was originally designed by Philips Semiconductor in 1982. Recently, it is a widely used protocol for short-distance communication. It is also known as Two Wired Interface(TWI). Working of I2C Communication Protoc
4 min read
Serial vs Parallel Communication in Microprocessor
The Serial and Parallel communication processes play an important role in microprocessor. In Serial Communication in Microprocessor the data transmission takes place in serial way and In Parallel Communication in microprocessor the data transmission takes place in a single clock pulse. In this article, we are going to discuss the Serial vs Parallel
6 min read
Difference between Near Field Communication (NFC) and Radio Frequency Identification (RFID)
NFC and RFID are the two wireless technology platforms which are mostly used for data transfer, tracking, and identifying objects. Although they are both communication tools that rely on radio waves, they are different in terms of range, application and operation. To better know which of the two is more ideal for you, this article will expand on th
5 min read
Introduction of Stack based CPU Organization
The computers which use Stack-based CPU Organization are based on a data structure called a stack. The stack is a list of data words. It uses the Last In First Out (LIFO) access method which is the most popular access method in most of the CPU. A register is used to store the address of the topmost element of the stack which is known as Stack point
3 min read
Bus organization of 8085 microprocessor
Introduction : The bus organization of the 8085 microprocessor is the way in which the microprocessor communicates with other devices in a computer system. The 8085 microprocessor has a 16-bit address bus, an 8-bit data bus, and various control signals that are used to manage data transfer and other operations. The address bus is used to specify th
9 min read