|
Hi, all The watchdog puzzled me for several days, why the watchdog doesn't reset after following initialization void watchdog_init(void) { AT91F_WDTC_CfgPMC(); AT91C_BASE_WDTC->WDTC_WDMR = AT91C_WDTC_WDV|AT91C_WDTC_WDD|AT91C_WDTC_WDRSTEN|AT91C_WDTC_WDIDLEHLT||AT91C_WDTC_WDDBGHLT; } but if I change "WDT_MR_Val EQU 0x00008000" to "0x3FFF2FFF" in "SAM.s", the watchdog is ok... I notice "The Watchdog Mode Register (WDT_MR) can be written only once. Only a processor reset resets it. Writing the WDT_MR register reloads the timer with the newly programmed mode parameters." but i'm not very clear about it, if WDT_MR can be written only once, what does reloads means??? hlps, thanks
|