AnsweredAssumed Answered

MKW30Z; SDK1.3; IAR 7.50; TPM PWM set duty cycle faster

Question asked by Lucian Firan on Nov 4, 2016
Latest reply on Dec 6, 2016 by Lucian Firan
KW40Z_Connectivity_Software_1.0.1 (KSDK_1.3.0)
I need to change a led PWM duty cycle over time. (for fade in/fade out)
Is there a faster way to change only the duty cycle to set the TPM channel ?
(usign only once TPM_DRV_PwmStart at initialization)

 

Something like:

 

TPM_DRV_SetEdgeAlignedPWMduty (uint32_t instance, uint8_t channel, uint8_t uDutyCyclePercent)

 

PwmStart seems to me a lot of code to do a simple change for duty cycle.

Outcomes