Found 557 Articles for Microprocessor

I/O-mapped I/O in 8085 Microprocessor

Nancy Den
Updated on 30-Jul-2019 22:30:25

4K+ Views

Generally, a processor like 8085, to address one I/O port by sending out 8-bit port address and IO/M* = 1. For example, let us say, the chip select pin of an I/O port chip is activated when 8-bit address = F0H, IO/M* = 1, and RD* = 0. This is shown in the following fig.Such I/O ports, which are addressed by the processor by sending out IO/M* as logic 1 are called I/O-mapped I/O ports.An Input Output port is generally addressed by 8085 Processor by releasing the port address of 8-bit and IO/M* = 1. An example to be cited ... Read More

8255 microprocessor operating modes

George John
Updated on 14-Sep-2023 21:04:57

36K+ Views

The 8255 is a general purpose programmable IO device. It is designed to interface the CPU with some external devices like ADC, DAC, keyboard etc. We can program the device according to the given condition.There are three 8-bit bi-directional IO ports. The Port-A, Port-B, and Port-C. These ports are assigned as input or output port.The block diagram of 8255 is like this:There are two different modes of 8255. These modes are:Bit Set Reset (BSR) ModeInput/ Output ModeBit Set Reset (BSR) ModeThis mode is used to set or reset the bits of the Port-C only. For BSR mode always D7 will ... Read More

8086 program to transfer a block of bytes by using string instruction

Chandu yadav
Updated on 30-Jul-2019 22:30:25

7K+ Views

In this program we will see how to transfer a block from one location to another location.Problem StatementWrite 8086 Assembly language program to transfer a block from one memory section to another memory section. The numbers are stored at memory offset 501 onwards. The block size is stored at memory offset 500.DiscussionHere we are initially setting up the source index register with the source of data blocks, then set the destination index register to store into another block. Then set the Data segment register and Extra Segment register to 0000H. By using MOVSB instruction, the entire block is transferred from ... Read More

Memory-mapped I/O in 8085 Microprocessor

Nancy Den
Updated on 30-Jul-2019 22:30:25

8K+ Views

It is possible to address an I/O port as if it were a memory location. For example, let us say, the chip select pin of an I/O port chip is activated when address = FFF0H, IO/M* = 0, and RD* = 0. This is shown in the following fig.In this case, the I/O port chip is selected when the 8085 is thinking that it is addressing memory location FFF0H for a read operation. Note that 8085 thinks that it is addressing a memory location because it has sent out IO/M* as a logic 0. But in reality, an input port ... Read More

8086 program to transfer a block of 4 bytes by using string instructions

Arjun Thakur
Updated on 30-Jul-2019 22:30:25

896 Views

In this program we will see how to transfer a 4-byte block from one location to another location.Problem StatementWrite 8086 Assembly language program to transfer a four-byte block from one memory section to another memory section. The numbers are stored at memory offset 500 – 503.DiscussionHere we are initially setting up the source index register with the source of data blocks, then set the destination index register to store into another block. Then set the Data segment register and Extra Segment register to 0000H. By using MOVSB instruction, the entire block is transferred from one location to another. As the ... Read More

8086 program for selection sort

Ankith Reddy
Updated on 30-Jul-2019 22:30:25

1K+ Views

In this program we will see how to sort array elements in ascending order by using selection sort.Problem StatementWrite 8086 Assembly language program to sort the elements in a given array using selection sort technique. The array is started from memory offset 501. The size of the series is stored at memory offset 500.DiscussionIn the selection sort technique, in each phase we are taking the smallest number from the array, swap the smallest element with the first element inside the array. Then move to second position, and check for second highest number form the second position to the end of ... Read More

8086 program to sort an integer array in ascending order

George John
Updated on 30-Jul-2019 22:30:25

15K+ Views

In this program we will see how to sort array elements in ascending order.Problem StatementWrite 8086 Assembly language program to sort the elements in a given array, which is starts from memory offset 501. The size of the series is stored at memory offset 500.DiscussionHere we are sorting the number in bubble sorting technique. In this sorting technique there will be n passes for n different numbers. In ith pass the ith largest element will be placed at the end. This is comparison based sort. We taking two consecutive numbers, compare them, and then swap them if the numbers are ... Read More

8086 program to find the min value in a given array

Chandu yadav
Updated on 30-Jul-2019 22:30:25

4K+ Views

In this program we will see how to find the minimum number in a given array.Problem StatementWrite 8086 Assembly language program to find the minimum number in a given array, which is starts from memory offset 501. The size of the series is stored at memory offset 500. Store the minimum number at memory offset 600.DiscussionAt first we are taking the size of the array from memory offset 500. Then using that size, we are initializing the counter to read and check all the numbers. We are taking the first number into AL, then check each number and compare it ... Read More

8086 program to determine largest number in an array of n numbers

Arjun Thakur
Updated on 30-Jul-2019 22:30:25

9K+ Views

In this program we will see how to find the largest number in a given array.Problem StatementWrite 8086 Assembly language program to find the largest number in a given array, which is starts from memory offset 501. The size of the series is stored at memory offset 500. Store the largest number at memory offset 600.DiscussionAt first we are taking the size of the array from memory offset 500. Then using that size, we are initializing the counter to read and check all the numbers. We are taking the first number into AL, then check each number and compare it ... Read More

Addressing of I/O Ports in 8085 Microprocessor

Krantik Chavan
Updated on 30-Jul-2019 22:30:25

7K+ Views

The Central Processing Unit and the main memory are always very accurate and fast as compared with electromechanical input or output devices like printers, etc. Here in this case it is essential for us that the data lines of the computer are not engaged for a long time during communication process with input/output devices. Else the overall speed of the computer system drastically falls below. So the Input Output devices gets connected to a computer through the Input Output ports. Two Instructions are fetched which are called as IN and OUT where there are 256 Input Ports and 256 Output ... Read More

Advertisements