Hi Bilal,Hope these link | Microcontroller › 8051 › HC-SR04 with 8051 › Hi Bilal,Hope these link October 28, 2014 at 6:35 am #12326 AJISH ALFREDParticipant Hi Bilal, Hope these link helps http://www.instructables.com/id/Distance-measurement-and-obstacle-detection-using–1/step7/Loading-HEX-file-into-8051-p89v51rd2-/ http://homemaderobo.blogspot.in/2012/08/ultrasonic-sensor-interfacing-with-8051.html