Is there a way to trigger an interrupt that fires a different method from a UART IRQ?
I got some excellent advice on a previous question and have a new related question. I have a app that needs to run a control loop at a specific rate with something like a few percent jitter. For example, if the control loop is supposed to run every 0.01 seconds, it should run every 0.01 seconds plus or minus a 100 microseconds or so (maybe 200-300 microseconds). The control loop starts by querying a transducer for a pressure measurement over a UART. The response time of the instrument has near zero jitter so that isn't an issue. I receive the characters from the transducer in a UART IRQ and the message is terminated with a CR. As soon as I get the CR, I'd like to send the new value to the control loop calculation method. I can call the calculation method from the IRQ but that means the IRQ has to wait for the calculation method to finish before the IRQ finishes which doesn't seem like a good idea. Is there a way for the IRQ code to just trigger an IRQ which does the control loop calculation without having to wait for the calculation to finish?
