Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Thread

Masking the internal watchdog work (at all!!)

Masking the internal watchdog work (at all!!)

2004-06-14 by Owen Mooney

Well this is a relavant post isn't it?

I have tried the watch dog with the code following. It times out all 
right and just seems to hang the processor!!

I don't wnat an interrupt- I just want to reset the processor.

Any suggestions?

int main(void) {
  int i,j,k,p1,p2;
  char s[100];
  WDMOD=0;  // clear WDRTOF flag
  INIT_LED;
  RedLedOn();
  Delay (500000);
  RedLedOff();
  WDTC=3000000;
  WDMOD=3;
  WDFEED=0xAA;
  WDFEED=0x55;
//  __ARMLIB_enableIRQ();
//  debug_printf("Start_");
  for (i=0;;++i) {
//     debug_printf("%d %d\n",i,WDTV);
     GreenLedOn();
     Delay (500000);
     GreenLedOff();
     Delay (500000);
  }

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.