Sunday, October 4, 2026

Interfacing Analog to Digital converter 8085 microprocessor | 8085 Lab Program

 Section: Hardware Interfacing Experiments

Aim: To write an assembly language program to convert an analog signal into a digital signal using an ADC interfacing.

Apparatus Required:

  • Microprocessor kit (8085) – 1
  • Power Supply (+5 V dc, +12 V dc) – 1
  • ADC Interface board – 1

Algorithm:

  1. Select the channel and latch the address.
  2. Send the start conversion pulse.
  3. Read EOC (End of Conversion) signal.
  4. If EOC = 1 continue, else go to step (3).
  5. Read the digital output.
  6. Store it in a memory location.

Program:

AddressLabelMnemonicsOperandComment
4100MVIA, 10HSelect channel
4102OUTC8Send through output port
4103MVIA, 18HLoad accumulator with value for ALE low
4105OUTC8Send through output port
4106MVIA, 01HStore the value to make SOC high in the accumulator
4108OUT00HSend through output port
4109XRAAIntroduce delay
410AXRAAIntroduce delay
410BXRAAIntroduce delay
410CMVIA, 00Store the value to make SOC low in the accumulator
410EOUTD0HSend through output port
410FL1IND8HRead the EOC signal from port & check for end of conversion
4110ANI01Mask bits
4112CPI01Compare with 01
4114JNZL1If conversion is not completed, read EOC signal again
4117INC0HRead data from port
4118STA4150HStore the data in memory location
411BHLTStop the program

Observation:

Analog Voltage (V)Digital Data on LED DisplayHex Code in Memory Location
5 V1111 1111FF
0 V0000 000000
2.5 V1000 000080

Result: Thus the ADC was interfaced with 8085 and the given analog inputs were converted into its digital equivalent.

Flowchart:

               +-----------------------------------+
               |               START               |
               +-----------------+-----------------+
                                 |
                                 v
               +-----------------------------------+
               |    SELECT THE CHANNEL AND LATCH   |
               +-----------------+-----------------+
                                 |
                                 v
               +-----------------------------------+
               |    SEND START CONVERSION PULSE    |
               +-----------------+-----------------+
                                 |
                                 v <-------------------+
                               /   \                   |
                             /  Is   \                 |
                           /  EOC = 1? \               |
                          <             >              |
                           \           /               |
                             \       /                 |
                               \   /                   |
                                 |                     |
                     +-----------+-----------+         |
                     |                       |         |
                    YES                      NO        |
                     |                       +---------+
                     v
       +-----------------------------------+
       |      READ THE DIGITAL OUTPUT      |
       +-----------------+-----------------+
                         |
                         v
       +-----------------------------------+
       |   STORE DIGITAL VALUE IN MEMORY   |
       |             LOCATION              |
       +-----------------+-----------------+
                         |
                         v
               +-------------------+
               |       STOP        |
               +-------------------+

Viva Questions:

  1. What is the name given to the time taken by the ADC from the active edge of SOC (start of conversion) pulse till the active edge of EOC (end of conversion) signal?
  2. What are the popular techniques that are used in the integration of ADC chips?
  3. What procedure/algorithm steps are involved in interfacing an ADC?
  4. Which of the following is an ADC IC?
    a) AD 7523 b) 74373 c) 74245 d) ICL7109
  5. What is the conversion delay in successive approximation of an ADC 0808/0809, and how many inputs can be connected at a time to an ADC integrated with successive approximation?
  6. For what application is the ADC 7109 (which uses Dual slope integration) used?
  7. Which phase is not a part of the total conversion cycle in dual-slope ADCs?
  8. Which phase contains a feedback loop in it?
    a) Auto zero phase b) Signal integrate phase c) Deintegrate phase d) None
  9. In the signal integrate phase, for what fixed period is the differential input voltage integrated?


For all 2026 published articles list: click here: 

…till the next post, bye-bye & take care