Hey Abhijit,
Thanks for the quick reply. It gave me some focus on what to look for.
The only reference to Control registers concerning the Watchdog was the one below.
It wasn't very clear in this data sheet.
From the Data Sheet MCF52235RM.pdf Section 13-10..
CWRI
Core watchdog interrupt select.
0 If a time-out occurs, the CWT generates an interrupt to the processor core. The interrupt level for the CWT is
programmed in the interrupt control register 7 (ICR7) of INTC0.
Same code from me before but I hardcoded the ICR08 = 0x3F;
Here is what worked for me.......
MCF_SCM_CWCR = MCF_SCM_CWCR_CWE
| // Enable WDT
MCF_SCM_CWCR_CWT_2_23 |
MCF_SCM_CWCR_CWTA | // Enable Transfer Ack.
MCF_SCM_CWCR_CWTAVAL ;
MCF_INTC0_ICR08 |= 0x3F; //highest priority.
MCF_INTC0_IMRL &= ~( MCF_INTC_IMRL_INT_MASK8); //Watchdog Interrupt.