I have searched high and low and I can’t find what I am looking for.
My goal is to fire an event on a sub millisecond level (in the region of every 20 MICROseconds!)
Is this even possible does anyone know?
The timer or Thread.Sleep only gets me to 1ms, I have seen Output Compare but this can only change a pin status and not fire an event/interrupt, or have I missed something on these?
I have found Thread.SpinWait in the normal DNFW but I guess this will just put the processor into a flat spin until finished. (that and it’s not implemented in the DNMFW!)
I know the DNMFW is not real time and that is fine for this I just need to get as close to 20uS as possible. .
My last real option is to put the processor into a While(true) loop with a ‘tick’ test but this is just messy and has lot of problems IMHO…
Thanks in advance and if I have been having a ‘blokey’ look a link to the correct page would be very, very welcome!