Hard Fault in SC Timer

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

Hard Fault in SC Timer

ソリューションへジャンプ
1,194件の閲覧回数
hemanthvasista
Contributor IV

Hello ,

I am using the LPC54628 (OM13098 board). I am using PWM using the SCTimer.

I am able create custom PWM waveform using "SCTIMER_CreateAndScheduleEvent"

I intent to change the duty cycle/period based on condition in the system.

When I try to update the MATCH register, I get a hard fault.

I have stopped the counter by setting "HALT_L" in CONFIG register before updating MATCH value.

Are there any other condition need to checked/updated before updating MATCH register

I suspect some condition which is not allowing to write to MATCH register.

regards,

Hemanth

ラベル(1)
タグ(3)
0 件の賞賛
1 解決策
1,142件の閲覧回数
hemanthvasista
Contributor IV

In my use-case, I am using 2 16-bit counters.

The problem was both 2 counter need to stopped during updation of MATCH register.

元の投稿で解決策を見る

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

Hello Hermanth,

In the SDK there's a function called SCTIMER_UpdatePwmDutycycle, this function can be used to update the duty cycle and it's the correct process to follow to modify the configurations from the SCTimer.

I will suggest checking this function to understand how to change the period as well.

Best Regards,

Alexis Andalon

0 件の賞賛
1,143件の閲覧回数
hemanthvasista
Contributor IV

In my use-case, I am using 2 16-bit counters.

The problem was both 2 counter need to stopped during updation of MATCH register.

0 件の賞賛