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 microprocessorbased system, a simple inputoutput application is desired using an chip, placed at consecutive even addresses starting from address H H PortA, H PortB, H PortC, and H control register For this purpose, two buttons are connected to the PortA and PortA terminals of the producing logical when pressed and logical when released. Four common anode segment displays are to be driven by PortB and PortC. PortC terminals will be used for the selection of the segment displays, while PortB terminals will serve as common data lines PortBsegment display a PortBsegment display h for the 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 segment display segments for numbers 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 segment displays. When the system is powered on the counter starts from 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 DUP
STACK ENDS
DATA SEGMENT PARA 'DATA'
DIGITS DB CHFHAHBHHHHFHHH
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
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
