AnsweredAssumed Answered

working with pwm channels - mc9s08sh32

Question asked by shany cohen on Nov 10, 2011
Latest reply on Nov 21, 2011 by Processor Expert


I'm working on MCU - mc9s08sh32 and I want to operate 3 pwm channels - PTA6_TPM2CH0, PTB5_TPM1CH1, PTA7_TPM2CH1.

My problem is with the first and last channels ( PTA6 + PTA7 ) - they have a shared counter (TPM2) and I don't really know how to control their pwm ratio. When I enable both of them - each with different pwm ratios - one of them is off and sometimes there is some pwm ratio but I don't know how to predict it.

Does anybody have an idea what to do?

Does anybody have a sample project with these pwm channels?