Tx is sending small packets at about 50 Hz.
Rx acts on this data from LPM0, but the necessary loop action is quite slow (MIDI - only 31,250 Hz). Each new Rx data needs to exit this loop.
So I'd like to break out of this slow routine when a new packet is received. Thinking a While loop (testing a flag or int) would be great in each loop.
It's like driving and only opening your eyes for a moment, then adjusting your wheel. So when you open your eyes, you have a new target and need immediate correction.
Thanks,
John