Updating SCTimer match register without stopping the timer

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Updating SCTimer match register without stopping the timer

Jump to solution
757 Views
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

Labels (2)
0 Kudos
1 Solution
741 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello awseiger,

Yes, please check the User Manual of your chip:

Alice_Yang_0-1619599604787.png

 

BR

Alice

 

View solution in original post

0 Kudos
2 Replies
742 Views
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 Kudos
735 Views
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 Kudos