Updating SCTimer match register without stopping the timer

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

Updating SCTimer match register without stopping the timer

ソリューションへジャンプ
1,606件の閲覧回数
awseiger
Contributor I

I am implementing a multi-output PWM system, and I need to be able to update the PWM duty cycle of a single channel without disturbing other channels.

However, the SDK driver for the SCTimer stops the timer while changing the register match values. Commenting out the lines that are starting/stopping the SCTimer results in a hard fault.

awseiger_0-1619559315650.png

 

Am I correct that there is no way to update the match value of an SCTimer event while the timer is running?

Thanks,

Alex

ラベル(2)
0 件の賞賛
返信
1 解決策
1,590件の閲覧回数
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello awseiger,

Yes, please check the User Manual of your chip:

Alice_Yang_0-1619599604787.png

 

BR

Alice

 

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
1,591件の閲覧回数
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello awseiger,

Yes, please check the User Manual of your chip:

Alice_Yang_0-1619599604787.png

 

BR

Alice

 

0 件の賞賛
返信
1,584件の閲覧回数
awseiger
Contributor I

Thank you for the confirmation! The SCTimer is very different from the timers I'm used to, so I want to make sure I understand the limitations.

0 件の賞賛
返信