I have a very simple application using, the tpm module.
I'm reading 3 thermocouples to control 3 littles oven by the pwm generated from tpm module.
Everything works properly but I need to synchronize the beginning of the pwm with the zero crossing point from the net power.
I get this control, from an input pin selected as input capture.
The target is a FRDM-KL25Z board.
I don't understand how to synchronize it.
Is there anyone to explain me how to this synchronization ?