2
\$\begingroup\$

Design problem.

While going through the solution of the above problem i noticed something like below.

enter image description here

Address of port A becomes 11100000. Can't get that. I am confused why it's not 01100000. Thank you!!

\$\endgroup\$
1
  • 1
    \$\begingroup\$ You are getting hung up on a typo. The value was written correctly in four other places, including the HEX value immediately following the binary number with the typo. Stuff sometimes happens. Look at the bigger picture. \$\endgroup\$ Commented Feb 17, 2018 at 14:21

1 Answer 1

3
\$\begingroup\$

You are asking about the high 3 address lines, which are the 3 input bits to the 3 to 8 line decoder. All 8 possible combinations of A5-A7 (same as A13-A15 in this case) cause one of the 8 outputs to be asserted. It takes 011 to assert the output that drives the chip select of the 8255.

The schematic is sloppily written in that the outputs of the decoder aren't labeled. From context, we can guess that the outputs are 0 to 7 top to bottom. This means the output that drives chip select is 3, so the inputs to the decoder need to be 011 to enable it.

The part you highlighted by putting a box around is obviously just a mistake. Clearly, the binary value is meant to be 0110 0000. Note that the HEX representation of the same value is correct (60h). Again, it's just a typo.

\$\endgroup\$
1
  • \$\begingroup\$ Made ma laugh after realizing that. Haha. Thank you sir!! \$\endgroup\$ Commented Feb 17, 2018 at 15:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.