Hello,
If the following lines are actually used (for either TPM clock source), this will actually disable the timer channel output.
TPMC0SC = 0B00101000;
TPMC0SC_ELS0B = 0; /* PTA0 pin reverts to GPIO */
Be aware that, by using a 60Hz external clock, the PWM frequency will be 60/100 = 0.6Hz. I am not sure if this is your intention.
If you actually need to synchronise the edge of the output waveform to a zero-crossing of the 60Hz waveform, this is a somewhat different problem, probably involving input capture and output compare operations, rather than PWM.
Regards,
Mac
Message Edited by bigmac on
2007-06-22 02:29 AM