| ??? 04/06/06 15:45 Read: times |
#113739 - 8052 with Polaroid Ultrasonic Sensor |
Hello everyone again! I just wanted to know if this setup is possible. I have an INIT line from the sensor that sends out the signal then when there is a reply, the echo line goes high... i tried to write a simple program in assembly that basically just takes the time it takes on a timer and display it on P1. Im not fully done with the code becuase i know in order to find the distance measured i must take in consideration that im using a 4MHZ crystal so each instruction is 3 micro seconds. The sensor travels at 1.78 m/s per foot, so im going to take the hex number i get from a timer and multiply it by 3/1.78 and that will give me the answer it feet. Anyway, i just wanted to know becuase my program isnt running proprtly.
http://people.morrisville.edu/~gonzal46/Basic_polariod_SC.jpg My code in assembly ________________________________________________________________
http://people.morrisville.edu/~gonzal46/Code.jpg |
| Topic | Author | Date |
| 8052 with Polaroid Ultrasonic Sensor | 01/01/70 00:00 | |
| confused | 01/01/70 00:00 | |
| it does | 01/01/70 00:00 | |
| ok well | 01/01/70 00:00 | |
| Problem? | 01/01/70 00:00 | |
| That's a fast sensor! | 01/01/70 00:00 | |
| Copy paste it in notepad | 01/01/70 00:00 | |
| sry wrong code | 01/01/70 00:00 | |
| And then formatted | 01/01/70 00:00 | |
| At first glance... | 01/01/70 00:00 | |
| im going to switch P3 and P1 | 01/01/70 00:00 | |
| Won't make any difference | 01/01/70 00:00 | |
| Read this | 01/01/70 00:00 | |
| Thanks | 01/01/70 00:00 | |
| code description | 01/01/70 00:00 | |
| thank you so much | 01/01/70 00:00 | |
better site | 01/01/70 00:00 |



