The time between transit and interrupt handler is the main culprit here in your servo pulse width modulation. Sometimes the turn around time makes us wait more and it doesn't work in the end even though everything seems right. Happens with me all the time. Connected a
lipo battery once as a power supply and it never worked because of misconfiguration.
Good luck to you.
Bookmarks