Question: In an 8 0 8 6 microprocessor - based system, a simple input / output application is desired using an 8 2 5 5 chip,

In an 8086 microprocessor-based system, a simple input/output application is desired using an 8255 chip, placed at consecutive even addresses starting from address 60H (60H - PortA, 62H PortB, 64H - PortC, and 66H control register). For this purpose, two buttons are connected to the PortA0 and PortA1 terminals of the 8255, producing logical 0 when pressed and logical 1 when released. Four common anode 7-segment displays are to be driven by PortB and PortC. PortC terminals will be used for the selection of the 7-segment displays, while PortB terminals will serve as common data lines (PortB07-segment display a,..., PortB77-segment display h) for the 7-segment displays. All hardware connections related to the system have been made, and the project file is provided with the assignment. On the software side, a skeleton code defining the values to illuminate the common anode 7-segment display segments for numbers 0-9 at the data breakpoint is given in the project file.
Write assembly code that implements the following:
The system is controlled by two buttons (INCREASE and DECREASE) and consists of a counter with four 7-segment displays. When the system is powered on, the counter starts from 0000. The counter value increases by one each time the INCREASE button is pressed and decreases by one each time the DECREASE button is pressed. The counter counts in decimal places.STACK SEGMENT PARA STACK 'STACK'
DW 20 DUP(?)
STACK ENDS
DATA SEGMENT PARA 'DATA'
DIGITS DB 0C0H,0F9H,0A4H,0B0H,99H,92H,82H,0F8H,80H,98H
DATA ENDS
CODE SEGMENT PARA 'CODE'
ASSUME CS:CODE, DS:DATA, SS:STAK
START:
MOV AX, DATA
MOV DS, AX
; Write your code here
ENDLESS:
; Write your code here
JMP ENDLESS
CODE ENDS
END START That is the code diagram
 In an 8086 microprocessor-based system, a simple input/output application is desired

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!