This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

realtime interrupt with 50us processing possible with s110?

I have a situation where I need a software PWM for several channels, which are multiplexed via a shift register.

The output loop needs to run at several kHz for this to work, but the processing only takes about 50us, which at about 8kHz puts it at a little below 50% processor use.

Can the softdevice be interrupted in this manner without breaking it, if I switch interrupt priorities? If I don't have the timer at highest priority, the softdevice interrupts for sometimes several ms, which means I lose at least 10s of cycles in the PWM, which is quite undesirable for the application.

Related