SWT in MPC5674F

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
2,811件の閲覧回数
rajiilangovan
Contributor II

hi friend,

          What is meant by Hard lock and Soft lock in Software Watchdog Timer. Kindly tell Where i have use it both the locks?

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

Hi,

If either the HLK or SLK bits in the SWT_MCR are set then the SWT_MCR, SWT_TO, SWT_WN, SWT_SK registers are read only.

Hard Lock :

Can be only cleared by reset.

It is widely used when you configure peripheral and you want to be sure that no changes are accidentally made during SW run-time.

Soft Lock :

Can be cleared by SW. Soft lock is cleared by writing the unlock sequence to the service register.

Can be used whenever you need to change value in secured registers during run-time.

Use of this feature is strongly application specific.

Peter

元の投稿で解決策を見る

0 件の賞賛
返信
4 返答(返信)
2,609件の閲覧回数
petervlna
NXP TechSupport
NXP TechSupport

Hi,

If either the HLK or SLK bits in the SWT_MCR are set then the SWT_MCR, SWT_TO, SWT_WN, SWT_SK registers are read only.

Hard Lock :

Can be only cleared by reset.

It is widely used when you configure peripheral and you want to be sure that no changes are accidentally made during SW run-time.

Soft Lock :

Can be cleared by SW. Soft lock is cleared by writing the unlock sequence to the service register.

Can be used whenever you need to change value in secured registers during run-time.

Use of this feature is strongly application specific.

Peter

0 件の賞賛
返信
2,608件の閲覧回数
rajiilangovan
Contributor II

hi,

       Thanks for your reply.i have one doubt. What is meant by unlock sequence? How can i write it? Is there any procedures to follow that unlock sequence?

0 件の賞賛
返信
2,608件の閲覧回数
petervlna
NXP TechSupport
NXP TechSupport

Hi Raji,

Try sometimes read the reference manual as the information you are asking are there.

Reference manual chapter 17.4 Functional Description:

The unlock sequence is a write of 0xC520 followed by a write of 0xD928 to the SWT_SR[WSC] field. There is no timing requirement between the two writes.

Peter

0 件の賞賛
返信
2,608件の閲覧回数
rajiilangovan
Contributor II

Thank you for your reply.i have another doubt.what is the difference  between software watchdog timer and MCU core watchdog timer?

0 件の賞賛
返信