Updating SCTimer match register without stopping the timer

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

Updating SCTimer match register without stopping the timer

跳至解决方案
1,589 次查看
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,573 次查看
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,574 次查看
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,567 次查看
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 项奖励
回复