Variable delay with less than 1 ms

General discussion on mikroC.
Post Reply
Author
Message
grisu
Posts: 7
Joined: 24 Jun 2005 08:56

Variable delay with less than 1 ms

#1 Post by grisu » 29 Jun 2005 07:20

Hello again :)

I need to implement a variable delay time (like VDelay_ms ), but the range should go down to several microseconds (a function VDelay_us(unsigned int) if you like)

Doesn´t need to be very precise, but functional at a minimum of 20us..

I´ve looked through the implementation of VDelay_ms, but i don´t know the needed cycles for C - instructions..

Has anyone implemented something like this ? tips ?

Greetz
Chris

Post Reply

Return to “mikroC General”