interfacing ADC0804 to 89c51

Discussion in 'Embedded Systems and Microcontrollers' started by kachung30, Mar 13, 2010.

  1. kachung30

    Thread Starter New Member

    Feb 3, 2010
    6
    0
    light sensors >ADC 0804 > 89C51> 8LED.
    How to display the result into 8 LEDs and the program is in assembly language.
    Thank you.
     
  2. retched

    AAC Fanatic!

    Dec 5, 2009
    5,201
    312
    Are the 8 led's in a bar graph configuration?

    Or do you want the LEDs ALL lit, but dim with the LDRs input?
     
  3. kachung30

    Thread Starter New Member

    Feb 3, 2010
    6
    0
    at89c51 port 2.0-2.7 is output LED.the number of LED will light when light intensity increase.
     
    Last edited: Mar 14, 2010
  4. Arm_n_Legs

    Active Member

    Mar 7, 2007
    183
    10
    Read the parallel data from the ADC0804 depending on which port you have connected it to (example, MOV A,P1). Then output to Port 2 (example MOV P2,A).
     
Loading...