1. sanjeev_1989

    Thread Starter New Member

    Sep 21, 2012
    2
    0
    sir i interface with analog to digital converter (5460) with 89c55wd. my code is compile in mcu8051ide simulator but in hardware not working. what I do?
    plz help. plz provide some code for ADC.
    adc pin 19, 23, 5 , 6 is connected with 89c55wd IC.
    my code
    start:
    acall conv
    acall read
    mov p0, a
    sjmp start

    conv:
    setb p1.2
    setb p1.1
    nop
    clr p1.1
    clr p1.2
    wait:
    jb into, wait
    ]ret
    read:
    setb p1.2
    setb p1.3
    mov a, p1
    clr p1.3
    clr p1.2
    ret
    end
     
Loading...