Mpi Tut-11: 8086 I/O Interfacing
Mpi Tut-11: 8086 I/O Interfacing
04/25/2023 2
ELECTRICAL ELECTRONICS COMMUNICATION INSTRUMENTATION
Interfacing with 8086
04/25/2023 3
04/25/2023 4
ELECTRICAL ELECTRONICS COMMUNICATION INSTRUMENTATION
Solution 1
• Write a program to do the following: Read data from Port A. If the data is
above 7FH, send a high value on PC7. Otherwise, make PC7 zero. Use the
Bit Set Reset (BSR) Mode of 8255.
Solution:
• The first step in solving this problem is to configure Port A to be an input
port and Port Cupper to be an output port (since a signal has to generated on
it), in mode 0.
• Even though we might be using a BSR mode, we must first ‘configure’ the
ports as input/output.
• The control word for this is 10010000 = 90H
Find the addresses of the control registers and the three counters.