Watchdog timer code for MPC5674F

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

Watchdog timer code for MPC5674F

1,489 次查看
rajiilangovan
Contributor II

Hi friend,

            Kindly give me the sample code for watchdog timer in  MPC5674F. And briefly explain the configurations of the watchdog timer in MPC5674F.

标签 (1)
0 项奖励
回复
1 回复

1,352 次查看
petervlna
NXP TechSupport
NXP TechSupport

Hi,

The default configuration of SWT is described in reference manual in Table 17-1. SWT Memory Map. In column Reset Value you can read the configuration for your SWT.

By default SWT is enabled and will generate a reset on a time-out.

There is no need for sample code as the SWT is by default enabled and it is really simple.

If you want to configure it, then this is application specific.

One last remark:

If you are writing to protected SWT registers make sure you didn't forget unlock them. But this is written for every protected register:

The SWT_MCR contains fields for configuring and controlling the SWT. This register is read only if either the SWT_MCR[HLK] or SWT_MCR[SLK] bits are set.

Peter

0 项奖励
回复