Watchdog Timer as Source of Periodic Interrupts

Started by Bill Knight in LPC200015 years ago

I was hoping to use the LPC's watchdog timer as a source for periodic interrupts for a background timer. It appears however, that...

I was hoping to use the LPC's watchdog timer as a source for periodic interrupts for a background timer. It appears however, that once the WDINT bit is set in WDMOD, that it cannot be cleared. Has anyone found a way to use the WDT in as a periodic timer? If so, please l


WDT - interrupt problem

Started by klemen_dovrtel in LPC200012 years ago 9 replies

I am testing the WDT. I tred this (code below). Watchdog triggers IRQ interrupt, but after that, the program is just spinning in ISR. Any idea...

I am testing the WDT. I tred this (code below). Watchdog triggers IRQ interrupt, but after that, the program is just spinning in ISR. Any idea why - i cleared the interrupt flags? I also tred to feed the watchdog inside ISR, but no help. void WDT_interrupt( void ) { ISR_ENTRY(); /* blink led */ VICVectAddr = 0x00000000; // clear this interrupt from the VIC WDMOD &...


timer & watchdog togather

Started by rohan patil in LPC200014 years ago 1 reply

hi everybody i am using lpc2106 arm microcontroller. i am using iar kickstart board for jtag debugging. The timer interuppt &...

hi everybody i am using lpc2106 arm microcontroller. i am using iar kickstart board for jtag debugging. The timer interuppt & watchdog interrupts are configured to fiq( timer interrupt has highest priority assigned) while debugging with jtag my code is running perfectly(executing all interrupt functions) but when i use the same code


Unable to enter ISP after watchdog reset

Started by jcwren in LPC200012 years ago 3 replies

LPC2148, bootloader version 2.11. After a watchdog reset takes place, I am unable to enter ISP mode after setting the BSL jumpers, and pressing...

LPC2148, bootloader version 2.11. After a watchdog reset takes place, I am unable to enter ISP mode after setting the BSL jumpers, and pressing reset. The system heads straight into the application code, acting as if the jumper isn't present. If I cycle power, it works fine. I do not have a JTAG debugger attached. I am probably failing to set or clear a register that the ISP is checkin...


Re: Watchdog in LPC2000

Started by Nagaraju in LPC200012 years ago 2 replies

Hi nishant, my Watch dog timer problem is solved.Actually i was feeding the watchdog timer in the master while loop, duo to the occurance of...

Hi nishant, my Watch dog timer problem is solved.Actually i was feeding the watchdog timer in the master while loop, duo to the occurance of interrupts system was got to reset.I hve kept the watch dog timeout of 2sec.By disabling interrupts while feeding my system is malfunctioning.So i am feeding the watch dog timer in timer0 interrupt isr toutine which occures for every 1 msec which is havi...


LPC 13xx Deep Power Down

Started by rm_lucknow in LPC20006 years ago

I have been trying to get the LPC1343 in Deep Power Down, but the current is still staying around 10 mA. To investigate further, I set the system...

I have been trying to get the LPC1343 in Deep Power Down, but the current is still staying around 10 mA. To investigate further, I set the system clock on clockout pin. The systems stays active for around 3 seconds, running on IRC, and in deep power down for 5 secs using watchdog clock. I get IRC clock for 3 sec and Watchdog clock for 5 sec on the clockout pin. Should I be getting the clock in dee...


reliably detecting JTAG on powerup for 2132

Started by Kevin Lynch in LPC20009 years ago 3 replies

Hello - Is there a way to reliably detect the presence of JTAG on powerup that also works after a watchdog reset? On powerup, I want to...

Hello - Is there a way to reliably detect the presence of JTAG on powerup that also works after a watchdog reset? On powerup, I want to detect if the JTAG is present so that I dont enable the watchdog when the JTAG is present. The obvious thing would be to check bit 2 of PINSEL2. This mostly works - On pin reset, powerup or brownout, this bit is set when the JTAG is present and low o...


Does the LPC2106 need an external watchdog chip?

Started by smt5211 in LPC200014 years ago 2 replies

Hi, I was viewing the schematic for a LPC2106 based design (see http://www.mct.net/product/dil2106/schema.p df ). It...

Hi, I was viewing the schematic for a LPC2106 based design (see http://www.mct.net/product/dil2106/schema.p df ). It included a NPC303 external watchdog chip. Is this needed if we are not running our design of


Reset MCU

Started by Jason in LPC20008 years ago 9 replies

Hey this might seem like a silly question but how in the world can i reset a LPC2103 in code? Google doesnt seem to be my friend. The only thing i...

Hey this might seem like a silly question but how in the world can i reset a LPC2103 in code? Google doesnt seem to be my friend. The only thing i see is about the watchdog.. ------------------------------------


Re: Watchdog in LPC2000

Started by derbaier in LPC200012 years ago 1 reply

--- In l...@yahoogroups.com, "Nagaraju" wrote: > > Thanks Mr.Nishant and Mr.Derbaier, > I understood your reply, but when I have...

--- In l...@yahoogroups.com, "Nagaraju" wrote: > > Thanks Mr.Nishant and Mr.Derbaier, > I understood your reply, but when I have feeded the watch dog in > master while loop by disabling the all interrupts which i am using in the > following manner my system get initialized and once after the initialization > of INIT_WatchDog(), Display is not changing which depends


Forcing a reset

Started by kathy_wright_ca in LPC200011 years ago 1 reply

I know of two ways .. to put a small number on the watchdog timer and let it time out, or to use one of the output pins to supply a hardware...

I know of two ways .. to put a small number on the watchdog timer and let it time out, or to use one of the output pins to supply a hardware reset (preferably using an external hardware reset superviser). Are there any other options? Kathy ------------------------------------


Re: Watchdog in LPC2000

Started by Nagaraju in LPC200012 years ago

Thanks Mr.Nishant and Mr.Derbaier, I understood your reply, but when I have feeded the watch dog in master while loop by disabling the...

Thanks Mr.Nishant and Mr.Derbaier, I understood your reply, but when I have feeded the watch dog in master while loop by disabling the all interrupts which i am using in the following manner my system get initialized and once after the initialization of INIT_WatchDog(), Display is not changing which depends on the timer interrupt, communication is working which is interrupt based.I h...


Search for part -- replacement for LPC11C24

Started by skiddybird in LPC20007 years ago 14 replies

hi, everyone, Is there a kind of MCU that includes at least one on-chip CAN transceiver(like LPC11c24), plus the following features? 32-bit...

hi, everyone, Is there a kind of MCU that includes at least one on-chip CAN transceiver(like LPC11c24), plus the following features? 32-bit ARM7 architecture, 128K flash, 16k SRAM, two SPI interfaces, RTC, UART, IAP, watchdog. It would be best if it contains one ethernet port, and be able to run uclinux. ------------------------------------


power & sleep

Started by Steve Franks in LPC200013 years ago 2 replies

Hi all, I'm beginning to get curious about power-consumption on 2103 and 2148 series. It's unclear to me from the UM if the watchdog runs in...

Hi all, I'm beginning to get curious about power-consumption on 2103 and 2148 series. It's unclear to me from the UM if the watchdog runs in both idle and power down modes. It looks like it initialtes a 'real' reset, so it must be able to wake the part out of power down, but obviously only if it's clock is running. I've got some mote-stuff on AVR I'd like to try moving to LPC, but you r...


Using Watchdog with LPC2148

Started by Sutton Mehaffey in LPC20006 years ago 3 replies

I am using the WDT with our security system. Since you can not turn off the WDT once started until it expires, I have two instances where that...

I am using the WDT with our security system. Since you can not turn off the WDT once started until it expires, I have two instances where that it is an issue. #2 more so than #1. 1. When I turn the unit off (keyswitch), I go to Power Down mode where a software reset (caused by a Key ON) is the only source of a wakeup. I noticed that the WDT is not disabled, but does not cause a wake...


Masking the internal watchdog work (at all!!)

Started by Owen Mooney in LPC200015 years ago

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...

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) {


Reset without Exception?

Started by rjwal3 in LPC200015 years ago 5 replies

Does anyone have any ideas as to why my LPC2129 program can reset without any exceptions occuring??? I know that all of my...

Does anyone have any ideas as to why my LPC2129 program can reset without any exceptions occuring??? I know that all of my exception routines work because I have tested them all. IAP, FIQ and the watchdog have also been ruled out. Every once in a while the program will sim


Device Power Down and Reset Status Register in LPC2000

Started by mjianjun in LPC200011 years ago

Hi all, =20 Because I want to why system reset from software view like watchdog,pres= s reset button or power up.=20 =20 But I can't...

Hi all, =20 Because I want to why system reset from software view like watchdog,pres= s reset button or power up.=20 =20 But I can't find this kind of register like PRSR in LPC2292 datasheet. =20 Anybody knows about it? =20 Thanks John _________________________________________________________________ MSN =D6=D0=CE=C4=CD=F8=A3=AC=D7=EE=D0=C2=CA=B1=C9=D0=C9=FA=BB=EE=D7=CA=D1= ...


ISP access after watchdog timeout

Started by afolly_mil2 in LPC20009 years ago 4 replies

Hello, I have wondered whether it is : * a bug, * a feature, or * incompetence in my reading of the manual that is the cause of my...

Hello, I have wondered whether it is : * a bug, * a feature, or * incompetence in my reading of the manual that is the cause of my odd observations.... The picture: I have a custom LPC1765 board which runs lots of stuff successfully. (A cr_startup_lpc17.c file from Code Red Tech is used). I have a jumper on pin 2.10 so that I can program it using its ISP feature. It works. ...


IO pins during Reset

Started by jamesasteres in LPC200014 years ago 1 reply

Here's a question I don't think is in the databook. Do the IO pins toggle any while Reset is asserted active (low)? I have a...

Here's a question I don't think is in the databook. Do the IO pins toggle any while Reset is asserted active (low)? I have a hardware watchdog that does not like Reset active AND WDI pin toggling at the same time. James