Is it possible to obtain pulses with a duration of 100 nanoseconds and with a period from 1 Hz to 100 kHz using PWM? I tried PWM2 and with decreasing frequency, the accuracy of the duty cycle decreased.
var freq = 100_000;
var duty = 0.01;
var PWM2 = PwmController.FromName(SC20260.Timer.Pwm.Controller2.Id);
var PWM2_4 = PWM2.OpenChannel(SC20260.Timer.Pwm.Controller2.PA3);
PWM2.SetDesiredFrequency(freq);
PWM2_4.SetActiveDutyCyclePercentage(duty);
PWM2_4.Start();