89c52 output problem

Thread Starter

osamamaqbool

Joined Jan 8, 2013
1
I was interfacing 89c52 with SR-04 ultrasonic sensor. For a particular range of distance, I wanted P2^0 to be 1. It gives an output of 0.5 instead of 5V. 0 when the conditions are false, and 0.5 when the conditions are true. Any help?
 
Top