Past exam question: Assignment 3, Q5(a)
Open in the Padhaiko appQuestion
A/D converter requires signal to start the conversion and indicates the completion of operation with the end of conversion signal.8255A PPI is interfaced with 8085 microprocessor at 80H. Microprocessor reads 8-bit output data of the ADC at port A and displays the same data to eight LEDs connected at port B of 8255A.state any assumptions made. a) Identify the address captured by the card.
Solution
Assumptions Made:
- The 8255A PPI is interfaced using I/O-mapped I/O (8-bit port addressing with ).
- Full 8-bit decoding is used for base address
80H(), while and connect to pins and of the 8255A. - Start of Conversion (SOC) is driven by (Port C Lower, active HIGH pulse) and End of Conversion (EOC) is monitored on (Port C Upper, active HIGH when conversion finishes).
Port Addresses Captured by the 8255A Card: Combining with :
| Binary Address | Register Selected | Hex Address | ||
|---|---|---|---|---|
1000 0000 | Port A (ADC 8-bit input) | 80H | ||
1000 0001 | Port B (8 LEDs output) | 81H | ||
1000 0010 | Port C (PC0 = SOC, PC7 = EOC) | 82H | ||
1000 0011 | Control Word Register (CWR) | 83H |
Answer:
With I/O-mapped base address 80H, the addresses captured by the 8255A card are:
- Port A:
80H - Port B:
81H - Port C:
82H - Control Word Register:
83H