I put the FMSTR_Recorder in PWM reload interrupt service routine, and tested its runtime. When triggered, its runtime could be more than 50us at most!
PWM frequency is 10kHz and period is 100us, if Recorder function takes too much time, then it will infuence algorithm running in PWM reload interrupt very badly.
How could this problem be solved?
P.S. If I use only scope, its runtime still could be more than 25us, which is also not acceptable.