Watchdog timer code for MPC5674F

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

Watchdog timer code for MPC5674F

1,114件の閲覧回数
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 返信

977件の閲覧回数
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 件の賞賛
返信