adc0808 with at89c51

Discussion in 'Embedded Systems and Microcontrollers' started by akshaykadam.100, Jul 22, 2011.

  1. akshaykadam.100

    Thread Starter New Member

    Jul 22, 2011
    I hav interfaced adc 0808 to at89c51
    so for this i hv connected SOC signal to P3.0 and EOC signal to P3.1.
    So my question is that how should i operate my port 3 whether as an input or as an output. Because i hv wrote my program in assembly language directly without making port 3 as an input or output.

    SETB P3.0
    JB P3.1, L2
    CLR P3.0
    CLR P3.1
    MOV PORT1, A [Data is present in port 1 and i hv configured port 1 as an input already plz do help me.]