Hello, I used an external interrupt falling edge trigger to measure the number of square waves. The square wave frequency is 125khz and 8us per cycle. I found that the counting of square waves tends to be smaller when it exceeds 1000. What is the interrupt counting frequency of S32K144 pin? How to ensure that pin interruption triggers are not lost,
1.What is the interrupt counting frequency of S32K144 pin?
There is no such verification data, this can vary significantly on different clock configurations
2.You can control a GPIO port, set the port to output a fixed frequency and a specified number, and then connect the port to the input port.
3.For tasks such as measuring pulses, I generally recommend that users use the Input capture feature of FTM module.
try this demo, using FTM module to calculate PWM frequency.
please try the demo from the linker I provided earlier, maybe you missed something when you configuring you project.