Watchdog

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Watchdog

450 Views
akhilprasad
Contributor III

Am using MPC5604S controller. I connected an external oscillator of 4MHz. And the system clock i am using is 32 MHz. I want to enable the watchdog for a time period of 31.25ms. Please share a code for the same ASAP.

0 Kudos
1 Reply

341 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi,

the source clock is 128kHz osc:

pastedImage_1.png

To get 31.25ms:

31.25ms / (1/128kHz) = 4000

So, write SWT_TO = 4000;

Regards,

Lukas

0 Kudos