Hi, I need to write a sketch that can deliver a one us pwm pulse every 200us at 5khz.
Could someone please help with how to work out the maths for setting the frequency to 5khz please?
Also is there a library available to set duty cycle by us rather than percentage?
This is to be used on an arduino UNO R3.
Many thanks Chris