
301
; ISR for INT0 for EOC from ADC.
ORG 0003H
ADC0: SETB P3.1 ; read ADC output
MOV A, P1 ; read converted data
MOV @R0, A ; save in buff er
INC R0 ; next storage area
CLR P3.1 ; disable read
CLR IE.0 ; disable ADC interrupt
RETI
REVIEW QUESTIONS
SUMMARY
DACs and ADCs are widely used in industries for various
data acquisition and control operations. In both the cases,
some ports are necessary for interfacing. ADCs need
external clock source and may be interfaced through
interrupt input or polling. As example cases, National
0808 DAC and 0809 ADC pin diagram, signal details and
interfacing are explained to generate ...