POLLWAIT Issue
6sblackbelt
Posts: 5
in BASIC Stamp
I am using the POLLWAIT command to wait for a sensor response.
Code is attached below
It works erratically. Sometimes it waits for the sensor response other times it continued as if it received a high state.
I have scope on the pin. Scope shows low and program continues as if it received a high signal.
Please help...
Code is attached below
It works erratically. Sometimes it waits for the sensor response other times it continued as if it received a high state.
I have scope on the pin. Scope shows low and program continues as if it received a high signal.
Please help...
Comments
I would probably be better to include the schematics or a picture of your setup. Your sensor may need a pull down resistor. What is the part number of your sensor?
Thank you for the suggestion.
I had to put POLLMODE 0 after both POLLWAITs.
Now it is stable and waits for the Laser Receiver's interrupt signal.
Thank you again...