Microcontroller › 8051 › In what form signal is given to AT89c51 mc’s input › it should not be if (sense2=
April 3, 2015 at 6:57 pm
#12747
Ashutosh Bhatt
Participant
it should not be
if (sense2==1 && sense1!=1)
but
if ((sense2=='1') && (sense1!='1'))
also these two pins must be configured as input by
P1 = 0x03;