Hello Mates,
i'm looking to migrate a simple project for the K118 to the STM32 micro but need some help with the capture architecture. I need to read four square waves from 0 to 3KHz. In the STM32 two 16 bit timers are chained and a 10MHz clock is fed to the timers. The rising edge makes a interrupt to read the capture value. In the K118 can a timer have 4 interrupt capture channels?
Greetings, Renan
Solved! Go to Solution.
Hello Renan,
Each FTM channel can be configured for input capture.
For more information, please take a look at the RM, Section 47.5.5 Input Capture Mode.
You can use SDK, this example shows use of FTM Input capture: ftm_signal_measurement_s32k118
Regards,
Daniel
Hello Renan,
Each FTM channel can be configured for input capture.
For more information, please take a look at the RM, Section 47.5.5 Input Capture Mode.
You can use SDK, this example shows use of FTM Input capture: ftm_signal_measurement_s32k118
Regards,
Daniel
Daniel,
I can't see how to chain the FTMs to make a 32 bit timer capture, could you please give me a hint?
Daniel,
how should I chain the FTM0 with FTM1 in K118 to make 32 bit ftm?
I'm looking to feed a 1MHz clock to FTM1 so it'll overflow every 65ms, I want this overflow to increment FTM1, should I do this externally or can I internally route it?
I believe Its fine to capture the FTM1 bits in software, so it would be set as a single counter only? Can I spare this timer and use another?