Pulse generator using p89c51rd2

i give you pseudo code to follow..
sonarO connected to INT0 pin P3.2 not P1.0 to make things easier.


sonarO = 0; //make it o/p pin and o/p low on P3.2
sonarO = 1; //
5uS delay// or whatever u want to keep
sonarO = 0;// pulse complete L-H-L
//no delay required, prepare your controller for calculating time..
sonarO = 1;//make it i/p pin to read the pulse width
TMOD = 0x09; //Timer0, 16bit gate controlled(P3... Read Compelte post
Posted by ajay_bhargav on Fri Nov 06 2009, 04:06 pm

Use of Ultrasonic sensor for measuring distance........

we already have a complete thread dedicated to similar sensor from parallax Ping))
take a look at this thread. It has all the pseudo code and information on distance measurement sensor.
http://www.8051projects.net/t27437/8051-discussion-forum/pulse-generator-using-p89c51rd2.htm... Read Compelte post
Posted by ajay_bhargav on Thu Sep 13 2012, 10:09 am

Downloads

Comments

imobiliare
Sat Mar 25 2023, 09:02 pm
StevCXenlam
Sat Mar 25 2023, 02:32 pm
JacobRes
Sat Mar 25 2023, 01:26 pm
JulioTuh
Sat Mar 25 2023, 01:15 pm
Gustavotot
Sat Mar 25 2023, 10:04 am
ZarinPex
Sat Mar 25 2023, 07:33 am
GarryVency
Sat Mar 25 2023, 01:19 am
MoisesMus
Fri Mar 24 2023, 08:50 pm