Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In this question it is proposed to continuously read the status of a 4 bits DIP switches ( binary numbers between 0 0 0 0

In this question it is proposed to continuously read the status of a 4 bits DIP switches (binary numbers between 0000 and 1001). The DIP switches is connected to the PPI 8255 PORTA (PA0, PA1, PA2 and PA3) and two seven segments display (Display 0 and Display 1)are connected to PORTC of the PPI 8255(PC0, PC1, PC3) using transcoder 74LS47 as shown in figure 1. For example, if the DIP switches combination is "1001"(ODD), the number "9" will be displayed on Display 1.
(a) Complete the following table and find the base address of the PPI 8255 and then the address of PORT A, PORT B, PORT C and CONTROL. Truth table of the IC 74LS138 is shown in Table 1.
\table[[,A15A14A13A12,A11A10A9A8,A7A6A5A4,A3,A2,A1,A0,ADDRESS],[PORT A,,,,,,,,],[PORT B,,,,,,,,],[PORT C,,,,,,,,],[CONTROL,,,,,,,,]]
(b) Find the appropriate control word (see Figure 2).
(c) Write the corresponding 8086 Assembly Language Program.
\table[[INPUTS,OUTPUTS],[?bar(G2A),?bar(G2B),G1,C,B,A,?bar(Y0),?bar(Y1),?bar(Y2),?bar(Y3),?bar(Y4),?bar(Y5),?bar(Y6),?bar(Y7),,],[1,,,,,,1,1,1,1,1,1,1,1,,],[,1,,,,,1,1,1,1,1,1,1,1,,],[,,0,,,,1,1,1,1,1,1,1,1,,],[0,0,1,0,0,0,0,1,1,1,1,1,1,1,,],[0,0,1,0,0,1,1,0,1,1,1,1,1,1,,],[0,0,1,0,1,0,1,1,0,1,1,1,1,1,,],[0,0,1,0,1,1,1,1,1,0,1,1,1,1,,],[0,0,1,1,0,0,1,1,1,1,0,1,1,1,,],[0,0,1,1,0,1,1,1,1,1,1,0,1,1,,],[0,0,1,1,1,0,1,1,1,1,1,1,0,1,,],[0,0,1,1,1,1,1,1,1,1,1,1,1,0,,]]
Table 1. Truth table of the IC 74LS138.
(please note this is 8086)
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Records And Database Management

Authors: Jeffrey R Stewart Ed D, Judith S Greene, Judith A Hickey

4th Edition

0070614741, 9780070614741

More Books

Students also viewed these Databases questions