??? 04/06/06 19:48 Read: times |
#113769 - At first glance... Responding to: ???'s previous message |
Timer 1 is used to measure the time between init pulse and the echo pulse, yet you ignore Timer1 overflows, a rather important piece of information. You need to count these and figure their value into your equation.
You have more RETurns than calls, so at the end of WAIT2 your program launches itself into the enchanted forest, unless there is more code you are not showing. This program will execute INTB only once, it should be called every time INIT is set, to allow for Polaroids blanking period. Make that call part of MAIN: Hal |
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 |