Found 409 Articles for Microcontroller

8085 Program to do an operation on two numbers based on the contents of X

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

218 Views

Now let us see a program of Intel 8085 Microprocessor. In this program we will see how to do different operations based on choice.Problem Statement:Write 8085 Assembly language program to perform some operations on two 8-bit binary numbers base on choice.Discussion:In this program we are taking a choice. The choice value is stored at memory location 8000H (named as X). And the numbers are stored at location 8001H and 8002H. We are storing the result at location 8050H and 8051H.Here if the choice is 00H, then it will perform addition, for 01H, it will perform subtraction, and for 02H, it ... Read More

8085 Program to convert a 16-bit binary number to BCD

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

1K+ Views

Now let us see a program of Intel 8085 Microprocessor. In this program we will see how to convert 16-bit binary data to BCD data.Problem Statement:Write 8085 Assembly language program to convert 16-bit binary data to BCD data. The binary data is stored at location 8000H and 8001H.Discussion:This problem is solved by implementing 16-bit counter. We are storing the 16-bit number at first, then decreasing the numbers one by one, and increasing the decimal value by adjusting the decimal value. To increase the value, we can use the INR instruction, but INR instruction does not affect the carry flag. So ... Read More

8085 Program for subtraction of multi-Byte BCD numbers

Ankith Reddy
Updated on 30-Jun-2020 13:22:44

382 Views

Now let us see a program of Intel 8085 Microprocessor. In this program we will see how to subtract multi-Byte BCD numbers.Problem StatementWrite 8085 Assembly language program to subtract two multi-Byte BCD numbers.DiscussionThe numbers are stored into memory, and one additional information is stored. It will show us the Byte count of the multi-Byte BCD number. Here we are choosing 3-Byte BCD numbers. They are stored at location 8001H to 8003H, and another number is stored at location 8004H to 8006H. The location 8000H is holding the Byte count. In this case the Byte count is 03H.For the subtraction we ... Read More

8085 Program to simulate a real-time clock

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

2K+ Views

Now let us see a program of Intel 8085 Microprocessor. In this program we will see how to generate real time clock using 8085.Problem Statement:Write 8085 Assembly language program to simulate real-time clock.Discussion:In this program we are creating a real time clock using 8085MPU. Here we are generating 1s delay to update seconds. This clock is 24Hrs clock. We are initializing the clock from 00:00:00. To display the values into 7-segment display we have to use some Port ICs and correct configurations. In each 60 seconds the minute field is updated, and in each 60 minutes the hour field is ... Read More

8085 Program to alternately display 00 and FF in the data field

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

2K+ Views

Now let us see a program of Intel 8085 Microprocessor. In this program we will generate 00H and FFH alternatively.Problem Statement:Write 8085 Assembly language program to generate 00H and FFH alternatively.Discussion:The 00H and FFH are changed alternatively in each second. So we need one second delay. We have created delay subroutine to generate 1s delay.Note: Here for simplicity we are storing the numbers into memory. To show the numbers, we can use 7 – segment display and other display function for showing it into the display.Input:Here we are not providing any input.Flow Diagram:Program:AddressHEX CodesLabelsMnemonicsCommentsF000AFLOOPXRA AClear A registerF00132, 50, 80STA 8050HStore ... Read More

8085 Program to simulate decimal down counter

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

469 Views

Now let us see a program of Intel 8085 Microprocessor. In this program we will see how to simulate the decimal down counter.Problem Statement:Write 8085 Assembly language program to simulate decimal down counter.Discussion:In this section we are simulating the decimal down counter. Here the counter will count 100 decimal numbers from 99 to 0. All values will be updated in each 0.5 seconds. For decimal count we are using the DAA instruction.Note: Here for simplicity we are storing the numbers into memory. To simulate it like a counter we can use 7-segment display to show the numbersInput:Here we are not ... Read More

Generation of time delay in 8085

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

24K+ Views

In this section we will see how to generate the time delay using 8085 programs. The delay will be used in different places to simulate clocks, or counters or some other area.When the delay subroutine is executed, the microprocessor does not execute other tasks. For the delay we are using the instruction execution times. executing some instructions in a loop, the delay is generated. There are some methods of generating delays. These methods are as follows.Using NOP instructionsUsing 8-bit register as counterUsing 16-bit register pair as counter.Using NOT instructions:One of the main usage of NOP instruction is in delay generation. ... Read More

8085 Program to simulate decimal up counter

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

1K+ Views

Now let us see a program of Intel 8085 Microprocessor. In this program we will see how to simulate the decimal up counter.Problem Statement:Write 8085 Assembly language program to simulate decimal up counter.Discussion:In this section we are simulating the decimal up counter. Here the counter will count 100 decimal numbers from 0 to 99. All values will be updated in each 0.5 seconds. For decimal count we are using the DAA instruction.Note: Here for simplicity we are storing the numbers into memory. To simulate it like a counter we can use 7-segment display to show the numbersInput:Here we are not ... Read More

8085 Program to perform sorting using selection sort

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

2K+ Views

Now let us see a program of Intel 8085 Microprocessor. In this program we will see how to sort a sequence of numbers using selection sort.Problem Statement:Write 8085 Assembly language program to sort a given sequence using selection sort in ascending order. The numbers are stored at 8001H onwards. 8000H is holding the block size.Discussion:In the selection sorting technique, we will choose the minimum or the maximum term from a set of numbers. In this case we are considering the sorting in ascending order, so we are choosing the minimum number. By taking the minimum number, we are swapping it ... Read More

8085 Program to check for two out of five code

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

408 Views

Now let us see a program of Intel 8085 Microprocessor. This program will help us to check a given value is a valid 2 out of 5 code or not.Problem Statement:Write 8085 Assembly language program to check whether a given number is 2 out of five code or not. The number is stored at location 8000H.Discussion:The checking of two out of five code is simple. At first we have to check the higher order three bits are 0 or not. If they are 0, then we will check next five bits. If there are exactly two 1s in these 5-bits, ... Read More

Advertisements