Skip to main content

realize a delay with 1 micro second accuracy

5 years ago

realize a delay with 1 micro second accuracy

Posted byyassin.bennaceur0 points 1 reply
0 upvotes

I am realizing a Direct Link 1 wire bidirectional communication with a sensor which is based on a time unit with 1 micro second accuracy. This means I have to set a PIN high and low for micro-seconds. Which function Should I use ? The timer_wait(us) in timer.h has no implementation and that is frustrating for me.

Any Help ?

5 years ago

RvA

Hi Yassin,

Timer0 can be used. Description of the API's of timer0 can be found in document <

Best regards, RvA