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
This isn't a homework hot line. You should ask your instructor or teacher for assistance, that's their job. If you have code you want someone to look at, post it using PRE tags as instructed.
Doesn't look like a college assignment to me.