Skip to main content

Posts

Showing posts with the label Microprocessor(8086)
Write a 8086 program to find the factorial of given number.
Write a 8086 program to find the factorial of given number.
Write a 8086 program to add two 8 bit nimbers. soln
Write a program to get input from an input device with address 30H and check the type of the number: odd or even, prime or composite and negative or positive. Assume that the output port 40H has 8 pins with 8 LEDs. Pin D0 for prime, pin D1 for composite, D2 for odd, D3 for even, D4 for positive and D5 for negative. Pins D6 and D7 are left unconnected. Turn on respective three LEDs depending upon the number.
Write a program to sort a series of data in descending order. Assume that the data series is stored at memory locations D000H to D009H. https://www.geeksforgeeks.org/8086-program-to-sort-an-integer-array-in-descending-order/
Clothes are normally hung outside to dry in the sun. There are possibilities of clothes being wet when there is a rainfall. The system as shown below is used to put clothes inside the house when there is a rain. The rain detector sends a high signal to the pin D0 of the input port 30H whenthere is rainfall. The microprocessor then rotates the string on which the clothes are hung. The string is rotated by sending a ‘10’ to pins D0 and D1 of the output port 40H to which a DC motor is connected. The string is rotated until the limit switch1 sends a high signal to pin D7 of the input port 30H. Also if the rainfall stops the cloth is send out by rotating the DC motor in the other direction. ‘01’ is to be send to pins D0 and D1 of output port 40H for this operation. The motor is rotated until the limit switch2 send a high signal to pin D6 of the input port 30H. Write a program for the proper operation of the system. soln 
A seven segment display is connected to output port 30H for an Intel 8086 based system. Write a program to convert the content of memory location C000H to seven segment display. Assume that the memory location contains any number from 0 to 9. If the number is greater than 9 all the LEDs of the display should be off. ( Hint: store the bit pattern for numbers from 0 to 9 in memory locations D000H-D009H and then the program should find the pattern according to the number in C000H and display that to output port 30H) soln
The figure below uses an 8086 based system to track the sun, and position the Solar Photovoltaic module in the direction of the sun. The solar module is attached to a DC motor and the sun is tracked by two light sensors at two sides of the solar photovoltaic module. If both the sensor sends ‘1’ the motor is to be stopped. If only sensor1 sends ‘1’ the motor is to be rotated in one direction and if only sensor2 sends ‘1’ the motor is to be rotated in the other direction. For a DC motor “10” at the supply pins rotates the motor in one direction and “01” rotates the motor in the other direction. As per the connection shown on the right, write a program for the proper operation of the system. soln