Found 558 Articles for Microprocessor

Program to add the contents of N word locations in 8085 Microprocessor

Arnab Chakraborty
Updated on 09-Oct-2019 07:10:00

268 Views

Here we will see one 8085 Microprocessor program. This program will add the contents of N word locations.Problem Statement −Write an 8085 Assembly language program to add N 16-bit numbers stored into memoryDiscussion −The 16-bit numbers are stored into memory location 8001H onwards. The value of N is stored at location 8000H. After addition, the result will be stored at location 8050H onwards.In 8085 we have few number of registers. So we are storing the count into memory, when we need to update it, we will fetch it from memory, update it and then again store it into memory.Here the 16-bit numbers ... Read More

Program to perform selection sort in descending order in 8085 Microprocessor

Arnab Chakraborty
Updated on 09-Oct-2019 07:07:59

181 Views

Here we will see one 8085 Microprocessor program. This program will sort a sequence of numbers in reverse order using selection sort technique.Problem Statement −Write an 8085 Assembly language program to sort a given sequence using selection sort in descending 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 descending order, so we are choosing the maximum number. By taking the maximum number, we are swapping it with the ... Read More

Program to perform selection sort in ascending order in 8085 Microprocessor

Arnab Chakraborty
Updated on 09-Oct-2019 07:04:27

210 Views

Here we will see one 8085 Microprocessor program. In this program we will see how to sort a sequence of numbers using selection sort.Problem Statement −Write an 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 with ... Read More

Program to perform bubble sort based on choice in 8085 Microprocessor

Arnab Chakraborty
Updated on 09-Oct-2019 07:00:44

164 Views

Here we will see one 8085 microprocessor program that will help to arrange the numbers in ascending or descending order based on our choice. Sort using bubble sort technique.Problem Statement −Write an 8085 Assembly language program to perform bubble sorting operation on a set of data, and arrange them into ascending or descending order based on choice.Discussion −In this program we are arranging some numbers into ascending or descending order based on some choice. We are storing the choice at location A000H. If the choice value is 00H, then data will be sorted in ascending order, otherwise it will be sorted in ... Read More

Program to perform bubble sort in ascending order in 8085 Microprocessor

Arnab Chakraborty
Updated on 09-Oct-2019 06:57:41

327 Views

Here we will see one 8085 program to arrange a block of numbers in ascending order.Problem Statement −Write an 8085 program to sort numbers in ascending order where n number of numbers are stored in consecutive memory locations starting from 8041H and the value of n is available in memory location 8040H (Using BUBBLE sort).Discussion −In this program we will arrange the numbers in bubble sorting technique. In this sorting technique, it will be executed in different pass. In each pass the largest number is stored at the end of the list. Here we are taking the numbers from location 8041H to ... Read More

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

Arnab Chakraborty
Updated on 09-Oct-2019 06:55:46

309 Views

Here we will see one 8085 program. This program will perform different operations on BCD numbers based on choice.Problem Statement −Write an 8085 Assembly language program to perform some operations on two 8-bit BCD numbers base on our choice.Discussion −In this program we are taking a choice. The choice value is stored at memory location 8000H (named as X). And the BCD 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 will do ... Read More

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

Arnab Chakraborty
Updated on 09-Oct-2019 06:52:47

414 Views

Here we will see one 8085 Microprocessor program. This program will be used to convert 16-bit binary data to BCD data.Problem Statement −Write an 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 here we are ... Read More

Program for subtraction of multi-byte BCD numbers in 8085 Microprocessor

Arnab Chakraborty
Updated on 09-Oct-2019 06:45:11

304 Views

Here we will see one program that can perform subtraction for multi-byte BCD numbers using 8085 microprocessor.Problem Statement −Write an 8085 Assembly language program to subtract two multi-byte BCD numbers.Discussion −The 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 are using the 10’s ... Read More

Program to simulate a real-time clock in 8085 Microprocessor

Arnab Chakraborty
Updated on 05-Oct-2019 07:15:31

409 Views

Here we will see one interesting problem. We will see how to simulate one real-time clock using 8085 microprocessor.Problem Statement −Write an 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 updated. For decimal update, ... Read More

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

Arnab Chakraborty
Updated on 05-Oct-2019 07:29:21

379 Views

Here we will see one 8085 microprocessor program. This program will generate 00H and FFH alternatively.Problem Statement − Write an 8085 Assembly language program that can 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.InputHere we are not providing any input.Flow DiagramProgramAddressHEX CodesLabelsMnemonicsCommentsF000AFLOOPXRA AClear A registerF00132, 50, 80 STA 8050H  Store 00H ... Read More

Advertisements