89c52 output problem

Discussion in 'The Projects Forum' started by osamamaqbool, Jan 8, 2013.

  1. osamamaqbool

    Thread Starter New Member

    Jan 8, 2013
    1
    0
    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?
     
  2. debjit625

    Well-Known Member

    Apr 17, 2010
    790
    186
    Schematic or wiring of your circuit will help us to help you...normally PORT2 have internal pullups

    Good Luck
     
Loading...