Hi,Arno,
If your zero-crossing circuit can generate two rising edges in one AC cycle, no problem to use FTM hardware triggering solution. For the K60, the FTM hardware triggering pins are predefined. Pls refer to section 3.8.2.6 FTM Hardware Triggers in reference manual of K60. I copy it here:
assume that you use FTM0 module, the only FTM0 hardware triggering pin is FTM0_FLT0 pin, which is multiplexed with PTB3 or PTD6, in other words, if you use the solution, the zero-crossing signal has to be connected to PTB3 or PTD6.
BR
XiangJun Rong
3.8.2.6 FTM Hardware Triggers
The FTM synchronization hardware triggers are connected in the chip as follows:
FTM0 hardware trigger 0 = CMP0 Output or FTM1 Match (when enabled in the
FTM1 External Trigger (EXTTRIG) register)
• FTM0 hardware trigger 1 = PDB channel 1 Trigger Output or FTM2 Match (when
enabled in the FTM2 External Trigger (EXTTRIG) register)
• FTM0 hardware trigger 2 = FTM0_FLT0 pin
• FTM1 hardware trigger 0 = CMP0 Output
• FTM1 hardware trigger 1 = CMP1 Output
• FTM1 hardware trigger 2 = FTM1_FLT0 pin
• FTM2 hardware trigger 0 = CMP0 Output
• FTM2 hardware trigger 1 = CMP2 Output
• FTM2 hardware trigger 2 = FTM2_FLT0 pin
For the triggers with more than one option, the SOPT4 register in the SIM module
controls the selection.