Unable to change PWM Duty Cycle for More than One PWM Component

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Unable to change PWM Duty Cycle for More than One PWM Component

跳至解决方案
822 次查看
jayakrishnans
Contributor I

I am using MC56F8037 DSC Microcontroller for generating PWM . I was able to use the PWM component for generating PWM waveform after setting time period and initial pulse width

and I was able to change its Duty Cycle Using SetRatio16 Function. But on using more than one PWM component, Iam not able to change Duty Cycle and PWM Waveform generated is of

time period and initial pulse width set on initialisation. I require a minimum of 4 different PWM signals whose duty cycle varies dynamically.

标签 (1)
0 项奖励
回复
1 解答
703 次查看
TICS_Fiona
NXP Employee
NXP Employee

To get 4 different PWM signals, user just needs to add one PWMMC component, please see the below screenshot. The four PWM channels can be set with different duty cycle, but they must have the same period, because MC56F8037 only have one PWM module and one counter in it. The period is determined by CMOD register.

pwmmc.png

在原帖中查看解决方案

0 项奖励
回复
1 回复
704 次查看
TICS_Fiona
NXP Employee
NXP Employee

To get 4 different PWM signals, user just needs to add one PWMMC component, please see the below screenshot. The four PWM channels can be set with different duty cycle, but they must have the same period, because MC56F8037 only have one PWM module and one counter in it. The period is determined by CMOD register.

pwmmc.png

0 项奖励
回复