Académique Documents
Professionnel Documents
Culture Documents
RD
PC3 INTRA
2
PC7, PC6 I/O
RD
PC0 INTRB
1
PC3 I/O
STBA
IBFA
INTRA
RD
Example-4
In previous lecture, we discussed how an ADC0809 can be
interfaced with processor using 8255A chip programmed in mode 0.
The ADC can also be interfaced with the processor in interrupt I/O
mode using 8255A programmed in mode 1 (Strobed input mode).
The necessary hardware is shown in fig.9.14.
In this case also, the conversion is initiated by making SOC
pulse Low High Low. The processor enters into halt state and
waits for the conversion to be over. When the conversion is over,
EOC signal becomes high. This signal is differentiated and inverted
and connected to PC4. This signal acts as a strobe for PORT A.
+5V
Vref+ Vcc
PA7-PA0 D7-D0
PORT A
8 IN0 Vin
SOC ADD A
PC5 PC0
IBFA ALE ADD B
PORT C PC4
PC0 EOC ADD C
RST6.5 PC1
OE
GATE
TM1 OUT CLK
CLK Vref- GND
1.5 MHz
OE/ EOC
Differentiator
Output
Inverter Output
STBA
The flow chart for the data conversion process is shown in fig.9.16
START
Enable Interrupt
Halt