I'm going to interface Ultrasonic sensor hc-sr04 with PIC18F4520 to detect the obstacles (not to measure the distance). The sensor needs be triggered by a 10 micro-seconds pulse regularly. But the problem is when the pulses are generated by using timer or registers and send it to the sensor, the main program has to be paused until this being done. This slow down the main process.
Is there a any other way to generate 10uS pulse ?
If not how to manege this with the main program without compromising much time ?
Is there a any other way to generate 10uS pulse ?
If not how to manege this with the main program without compromising much time ?