This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

HELP ME TO INTERFACE ADC WITH 8051 USING C CODE FOR 8-bit ADC

Iam trying to write c code for interfacing 8-bit ADC with 8051. The conditions are simple I NEED TWO O/P for example 09,0A,0D,AB,CD,DE,EF,FF, BE be my i/p to my 8051 IF I/P IS <CD O/P SHOULD BE AT P2^0=1 ELSE IF >CD O/P SHOULD BE P2^1=1.....................HELP ME PLEASE