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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

ソリューションへジャンプ
710件の閲覧回数
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 解決策
591件の閲覧回数
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 返信
592件の閲覧回数
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 件の賞賛
返信