Past exam question: Assignment 3, Q3(a)
Open in the Padhaiko appThe monitoring system takes input from four analog temperature sensors & records values in memory. If any of temperature exceeds , alarming circuit should be triggered and if temperature is further increased to , the cooling system should be started each of four sensor has their own alarming circuit and cooling circuit. Then a) Design system using 8255 PPI interface at F0H using I/O mapped I/O of 8085 microprocessors. Assume necessary components to fulfill your design.
Solution
I/O-Mapped Address Decoding at Base Address F0H: In 8085 I/O-mapped I/O, port addresses are 8 bits () and the signal is HIGH ().
- Base address .
- Connecting and to a 7-input NAND gate generates active-low for the 8255A.
- Lines select the internal 8255 registers:
- Port A ():
F0H - Port B ():
F1H - Port C ():
F2H - Control Word Register (CWR) ():
F3H
- Port A ():
Component Selection and 8255 Port Assignment:
- ADC: ADC0808 (8-bit SAR ADC with built-in 8-to-1 analog multiplexer). Connect the 4 temperature sensors (e.g., LM35 with signal conditioning) to analog channels ( tied to GND; and select channels 0–3).
- Port A (
F0H, Mode 0 Input): Reads the 8-bit digital output from the ADC0808. - Port B (
F1H, Mode 0 Output): Drives the 4 independent alarm circuits and 4 independent cooling circuits (via transistor/optocoupler/relay drivers):PB0–PB3: Alarm circuits 1–4 (active HIGH when ).PB4–PB7: Cooling circuits 1–4 (active HIGH when ).
- Port C (
F2H, Split Mode 0):- Port C Lower (
PC0–PC3, Output):PC0= ,PC1= (sensor 0–3 select),PC2=ALE&SOC(latch channel & start conversion). - Port C Upper (
PC4–PC7, Input):PC7=EOC(End of Conversion status from ADC0808).
- Port C Lower (
System Block & Interfacing Schematic:
8085 CPU 8255A PPI ADC0808
+-----------+ +-----------+ +---------+
| D0 - D7 |<=============>| D0 - D7 | | |
| A1, A0 |-------------->| A1, A0 | 8-bit Data | |
| A7..A2, |--[7-in NAND]->| CS' PA |<==================| D0 - D7 |
| IO/M' | | | | |
| RD' |-------------->| RD' PC0 |------------------>| ADD A |
| WR' |-------------->| WR' PC1 |------------------>| ADD B |
+-----------+ | PC2 |------------------>| ALE/SOC |
| PC7 |<------------------| EOC |
4 Alarm Drivers <-------| PB0 - PB3 | Temp Sensor 1->| IN0 |
(Sensors 1-4) | | Temp Sensor 2->| IN1 |
4 Cooling Drivers <-------| PB4 - PB7 | Temp Sensor 3->| IN2 |
(Sensors 1-4) +-----------+ Temp Sensor 4->| IN3 |
GND ----------->| ADD C |
Ext. Clock ---->| CLK |
+---------+The 8255 PPI is decoded at I/O-mapped addresses F0H (Port A), F1H (Port B), F2H (Port C), and F3H (CWR) using and . An ADC0808 multiplexes the four temperature sensors on –: Port A reads digitized temperatures, Port C Lower (PC0–PC2) drives channel select and ALE/SOC, Port C Upper (PC7) polls EOC, and Port B drives the four alarm circuits (PB0–PB3) and four cooling circuits (PB4–PB7) via isolation drivers.