SWT in MPC5674F

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

SWT in MPC5674F

跳至解决方案
3,213 次查看
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 解答
3,010 次查看
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 回复数
3,011 次查看
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 项奖励
回复
3,010 次查看
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 项奖励
回复
3,010 次查看
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 项奖励
回复
3,010 次查看
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 项奖励
回复