Library conflicts nRF52840 Sense

Hello PJ,

is there anything to control the timers? In the past, in Assembler you had complete control of the 2 Microchip timers…

There is no difference between using multiple delayMicroseconds and using millis(). (unsigned long).

Just to clarify: I have to generate a servo pulse with a frequency of 125 Hz (8 ms for one complete pulse). The HIGH duration is calculated when the servo signal is LOW. During this LOW time, I measure the x and y values two times (3 ms separated), calculate the averages, and calculate the duration of the next HIGH duration.
So, I cannot use the Arduino servo library.

The problem is, that the calculations are OK, but on the scope I see that the HIGH and LOW durations now and then are exceeded for one to two ms, but not constantly…

Regards,

Wolfgang