Reply To: Microsecond variable Delay in MikroC

Home Forums Microcontrollers PIC Microcontroller Microsecond variable Delay in MikroC Reply To: Microsecond variable Delay in MikroC

#11250

Prasad
Participant

This method is correct for some specified angles. Because delay_us(), can’t have a variable value. It should be fixed. But I want to rotate Servo in random angles. That angle comes from some¬†calculation.

So the delay is in between 1000us and 2000us.

ex

1300, 1850 or something.

How can I obtain that type of delay.

string(7) "9898001"