sir i want to connect 2 different outputs of IR sensor to ADC and then interface it with 89s51 microcontroller and then want to connect it to $ phase stepper motor.i want stepper motor to rotate for just 1 step up for 1st sensor and reverse for the 2nd input of ie sensor.can u plz suggest me the block diagram of the circuit and programming of microcontroller...i am using 12 mhz crystal for oscillatior..
Why do you ask this forum to supply circuit and source code for your school project?