Hi,
I want to use the watchdog in reset mode by changing some things in the example file from Ti but something is missing in what I have done because nothing happens... If somebody could help me...Thank you
#include "DSP2833x_Device.h" // Headerfile Include File #include "DSP2833x_examples.h" // Examples Include File // Prototype statements for functions found within this file. interrupt void wakeint_isr(void); // Global variables for this example Uint32 WakeCount; Uint32 LoopCount; void main(void) { InitSysCtrl(); DINT; InitPieCtrl(); IER = 0x0000; IFR = 0x0000; InitPieVectTable(); /*EALLOW; // This is needed to write to EALLOW protected registers PieVectTable.WAKEINT = &wakeint_isr; EDIS; // This is needed to disable write to EALLOW protected registers*/ EALLOW; SysCtrlRegs.SCSR = 0x0000; EDIS; /*// Enable WAKEINT in the PIE: Group 1 interrupt 8 // Enable INT1 which is connected to WAKEINT: PieCtrlRegs.PIECTRL.bit.ENPIE = 1; // Enable the PIE block PieCtrlRegs.PIEIER1.bit.INTx8 = 1; // Enable PIE Group 1 INT8 IER |= M_INT1; // Enable CPU int1 EINT; // Enable Global Interrupts*/ // Reset the watchdog counter ServiceDog(); // Enable the watchdog EALLOW; SysCtrlRegs.WDCR = 0x0028; EDIS; // Step 6. IDLE loop. Just sit and loop forever (optional): for(;;){ LoopCount++; // Uncomment ServiceDog to just loop here // Comment ServiceDog to take the WAKEINT instead // ServiceDog(); } }