Articles added in Mathematics Lab | Cyber Lab is now open | Astronomy Lab is now open | VLSI Lab is now open | 120 SEO Tips article published | More exciting articles coming soon!




Interfacing ADC(Analog to Digital Converter)with 8051

  • The ADC 0808/0809 is the 8-bit analog to digital converter.

  • It has 8-channels IN0-IN7.

  • It has three address lines i.e. Pin A,B,C and ALE are used to select one of the analog channel of total 8 channels as shown below:

  • Interfacing ADC(Analog to Digital Convertor) with 8051

  • ADC 0808 has 3 control signals:
  • SOC [Start of conversion]: When High to low signal is appears to this pin of ADC, ADC then starts conversion. Interfacing ADC(Analog to Digital Convertor) with 8051

    EOC [End of conversion]: ADC sends this high EOC signal to Micro-Controller to indicate completion of conversion.
    OE [Output Enable]: When a high signal is applied to this pin, The output latch of ADC get enables and the converted data is then available to Micro-Controller.

  • The reference voltage determines the range of analog input voltage. For example: - If reference voltage is 5V then analog voltage range is from 0V-5V. If the reference voltage is 2.56V then the Analog signal range is from 0V-2.56V.

  • The frequency of clock signal applied determines the conversion speed.


  • Program

    LABEL
    OPCODE
    OPERAND
    COMMENT
     
     
     
     
     
    SOC
    EQU P2.6
     
     
    E0C
    EQU P2.5
     
     
    OE
    EQU P2.4
     
     
    ALE
    EQU P2.3
     
     
     
     
     
     
    ADDR_C
    EQU P2.2
     
     
    ADDR_B
    EQU P2.1
     
     
    ADDR_A
    EQU P2.0
     
     
     
     
     
     
    ORG
    0000H
     
     
    MOV
    P1,#0FFH
     
     
    SETB
    P2.5
     
     
    CLR
    SOC
     
     
    CLR
    OE
     
     
    CLR
    ALE
     
     
     
     
     
    AGAIN:
    CLR
    ADDR_C
     
     
    CLR
    ADDR_B
     
     
    CLR
    ADDR_B
     
     
     
     
     
     
    SETB
    SOC
     
     
    SETB
    ALE
     
     
    ACALL
    DELAY
     
     
    CLR
    SOC
     
     
    CLR
    ALE
     
     
     
     
     
    BACK:
    JB
    EOC BACK
     
    HERE:
    JNB
    EOC HERE
     
     
    SETB
    OE
     
     
    MOV
    A,P1
     
     
    ACALL
    CONVERSION
     
     
    ACALL
    DISPLAY
     
    AGAIN:
    SJMP
    AGAIN
     
     
     
     
     
     
     
     
     

    Interfacing Diagram

    Interfacing ADC(Analog to Digital Convertor) with 8051






    CACKLE comment system





    Programming Resources
    Computer Networking Fundamentals Android Application