EmbeddedRelated.com

Using the watchdog (IAR)

Started by Darren Logan in MSP43018 years ago 2 replies

Hi, I'm wanting to setup the watchdog, in watchdog mode. My clock source is 3.68MHz and i'm using ACLK as the watchdog clock source. As a...

Hi, I'm wanting to setup the watchdog, in watchdog mode. My clock source is 3.68MHz and i'm using ACLK as the watchdog clock source. As a simple exercise, I do: WDTCTL = WDTPW + WDTSSEL + WDTCNTCL; while(1) { WDTCTL |= 8; // clear watchdog } but even in the while loop, the watchdog keeps triggering... why is the watchdog NOT being cleared in the loop???? Darren Logan


Help about watchdog reset !!

Started by skylooroo in MSP43018 years ago 4 replies

hi! everyone! I'm using watchdog reset of MSP430F122. Anyway, watchdog reset is not working. i tested . When i setting Watchdog registor...

hi! everyone! I'm using watchdog reset of MSP430F122. Anyway, watchdog reset is not working. i tested . When i setting Watchdog registor then system immediately reset. Watchdog reset time is determined. I want to use the 250msec or 500msec .but device is determined 64msec per 4MHZ crystal I want to seclect watchdog reset time. how can registor setting ? or do you have idea? and how ca...


Use of internal WATCHDOG for MSP430F2418

Started by ti2tt in MSP43015 years ago 24 replies

Hello Forum members, I am using MSP430F2418 with CrossStudio. I want to use internal watchdog of this controller. I have configured the...

Hello Forum members, I am using MSP430F2418 with CrossStudio. I want to use internal watchdog of this controller. I have configured the watchdog as WDTCTL = WDTPW + WDTHOLD; WDTCTL = WDT_ARST_1000; The refresh routine for watchdog counter consists as: WDTCTL = WDTPW + WDTCNTCL; With this configuration, I am getting a watchdog reset after certain intervals. Here I am using a XTAL ...


Watchdog Question

Started by matthewbuza1 in MSP43017 years ago 3 replies

Hey, I'm using a 1612 and i code in assembler. I'm trying to use the watchdog in watchdog mode. I run solar cells for power, and if my gps...

Hey, I'm using a 1612 and i code in assembler. I'm trying to use the watchdog in watchdog mode. I run solar cells for power, and if my gps does not have enough power it will get locked up in my code. I'm trying to set the watchdog for a 1000ms delay using the ACKL(32k). A one second delay will give me enough time to run through a routine. I'm hoping to set the watchdog throughout the ...


Variable in RAM that shall keep its value after watchdog reset

Started by cmaybisher in MSP43017 years ago 1 reply

Hi, I need to define a variable in ram that must keep its value after watchdog reset. I defined simply a unsigned long variable. I wrote a...

Hi, I need to define a variable in ram that must keep its value after watchdog reset. I defined simply a unsigned long variable. I wrote a value but after watchdog reset its value was different. I need to do it to check if I came to some software sentence from power up or from watchdog. I haven't possibility for doint it in EEPROM. Please, could somebody help me? Thanks. Clau...


Watchdog and PID

Started by acastel in MSP43020 years ago 8 replies

Hi I'm having problems with the watchdog in a C program. When I set the flags, the program reset and it doesn't go to main(). If I don't stop...

Hi I'm having problems with the watchdog in a C program. When I set the flags, the program reset and it doesn't go to main(). If I don't stop the watchdog, the program work fine, and if I stop the watchdog, the program work fine too. Can anyone help me? Another question.... Did someone make a PID algorithm in msp430f149? Thanks a lot!!! Anderson Castellar ____________________________


Re: Watchdog during flash operations

Started by "Robert J. Wilson" in MSP43018 years ago 1 reply

--- In m...@yahoogroups.com, "yuriz" wrote: > > All examples of flash operations in the msp430 user guide disable > watchdog for the...

--- In m...@yahoogroups.com, "yuriz" wrote: > > All examples of flash operations in the msp430 user guide disable > watchdog for the period of working with flash. Presumably, one can > avoid watchdog timer expiry by resetting the wd timer right before > each operation (assuming the wd expiry is reasonably long). Wouldn't > that have exactly the same effect ? Did you ever get


Reg:Watchdog Timer

Started by sundarixx_4 in MSP43016 years ago 5 replies

Hi all, I am new for MSP430F2370.i want to know why we are stooping watchdog timer in every application programming (like as i/o, uart...

Hi all, I am new for MSP430F2370.i want to know why we are stooping watchdog timer in every application programming (like as i/o, uart , etc). Please help me to clear my doubt Thanks and Regards, S.Soms


watchdog current consumption

Started by Felipe H in MSP43016 years ago 2 replies

Hi, does anyone knows how many current the watchdog module consumes when active and using ACKL (32.768khz)? I'm using...

Hi, does anyone knows how many current the watchdog module consumes when active and using ACKL (32.768khz)? I'm using msp430f148. Thanks Heuer


Debugging with external watchdog?

Started by aekalman in MSP43018 years ago 2 replies

Hi All. I'm wondering how people debug MSP430-based systems that have external watchdogs, e.g. one that will hit the MSP430 with an NMI if...

Hi All. I'm wondering how people debug MSP430-based systems that have external watchdogs, e.g. one that will hit the MSP430 with an NMI if the external watchdog (chip) isn't hit by the MSP430 within the watchdog timeout period. Is it feasible to single-step, etc? Do you need to have special "while debugging" code that differs from production code? Do people simply disable / dis


Re: status of RAM after PUC

Started by Aaron Greer in MSP43017 years ago 4 replies

Trust me, if I could think of a way to accomplish what I need to without the watchdog reset, I would. I'm doing a fairly complex design using a...

Trust me, if I could think of a way to accomplish what I need to without the watchdog reset, I would. I'm doing a fairly complex design using a pretty cut-rate part (F2012). The USI/I2C hardware pretty much sucks and it gets stuck periodically for various reasons. I use the watchdog to get unstuck. I'm using almost all of my available resources and this has been the most compact and reliable met...


Watchdog timer

Started by GM M in MSP43022 years ago 12 replies

Hello All, Once again i m caught up with a problem. Can anyone tell me how following line of code can stop the WatchDog timer?? WDTCTL=...

Hello All, Once again i m caught up with a problem. Can anyone tell me how following line of code can stop the WatchDog timer?? WDTCTL= WDTPW + WDTHOLD; plz reply as soon as possible as this is quite urgent,,, thankyou very much --------------------------------- Do you Yahoo!? New DSL Internet Access from SBC & Yahoo!


most efficient watchdog and supervisor

Started by Matthias Weingart in MSP43020 years ago 10 replies

For my application I was looking for a very low current reset chips - supervisor and watchdog with no external components and in a small case...

For my application I was looking for a very low current reset chips - supervisor and watchdog with no external components and in a small case (SO8 is too big). After searching at ti.com I only found the TPS3813 - with 10uA current consumption. Too much. But then I stumbled through my archive of this list and there was a suggestion: TI TPS3110K33 (2uA) - quite good. And there is the MAX686


Does updating the watchdog reset its settings?

Started by achillea88 in MSP43021 years ago 7 replies

Hello everyone, I want to have the 1000ms watchdog for my application, sourced from ACLK, so I have started it with this: WDTCTL =...

Hello everyone, I want to have the 1000ms watchdog for my application, sourced from ACLK, so I have started it with this: WDTCTL = WDT_ARST_1000; And then in my main processing loop, I update it as often as possible with WDTCTL = WDTPW + WDTCNTCL; However, in the debug session when I read the WDTCTL register, it does not retain the settings it previously had with the WDT_ARST_1000.


Re: MSP430 failing ESD tests

Started by David Peters in MSP43017 years ago 4 replies

FYI =96 We=92ve added an external watchdog IC. We can get the system to lo= ck up and the watchdog IC is pulling the reset line high/low, but...

FYI =96 We=92ve added an external watchdog IC. We can get the system to lo= ck up and the watchdog IC is pulling the reset line high/low, but the MSP430 neve= r seems to recover. I'm looking for other clues as to what might be going on= . What could keep the micro from starting up after the reset line is released= ? David Peters On 12/12/07, Michael Iverson


Watchdog interval timer problem

Started by "Robert J. Wilson" in MSP43018 years ago 7 replies

Hi folks, I need to use the Watchdog timer for the main polling loop, Timer A and B have other fuctions. Unfortuantely, I've not been able to...

Hi folks, I need to use the Watchdog timer for the main polling loop, Timer A and B have other fuctions. Unfortuantely, I've not been able to get it to function as an interval timer versus a Power on Reset trigger. The code gets considerably more complex if I have to overload the A/B timers. The debugger shows the timer vector is initialized in flash and we do get one, but only one, NMI ...


Watchdog timer issue

Started by Mohammad Afaneh in MSP43012 years ago 3 replies

Hi, We're running a program in a while loop and we believe we disable the Watchdog correctly in the beginning. The program runs correctly and...

Hi, We're running a program in a while loop and we believe we disable the Watchdog correctly in the beginning. The program runs correctly and never resets the CPU (by never I mean for at least 24 hours). However, when we go into a specific state and execute a specific block of code afterwards we get interrupted but it seems that it's stuck in the main loop. We're using mspgcc and mspdebu...


Stopping the watchdog to cause reset

Started by pjascol in MSP43020 years ago 2 replies

Hi Can anyone help me. I am using a button press to cause the wdog to reset my application. I use WDTCTL = WDT_ADLY_1000; IE1 |=...

Hi Can anyone help me. I am using a button press to cause the wdog to reset my application. I use WDTCTL = WDT_ADLY_1000; IE1 |= WDTIE; while(1); I dont relaod the wdog so the device resets. Then at initialisation I use WDTCTL = WDTPW + WDTHOLD; // Stop watchdog timer // Xtal related activity // Set the ACLK to use the 3.6864MHz Xtal BCSCTL1 |= XTS;


MSP430 WDT Application Problem?

Started by Tunahan in MSP43013 years ago

Hello everybody. I took this program from Davie's book for MSP430-1121STK as well Code: Listing 8.1: Program wdtest1.c to demonstrate the...

Hello everybody. I took this program from Davie's book for MSP430-1121STK as well Code: Listing 8.1: Program wdtest1.c to demonstrate the watchdog timer.=20 // wdtest1 .c - trival program to demonstrate watchdog time= r=20 // Olimex 1121 STK board , 32 KHz ACLK=20 // J H Davies , 2007 -05 -10; IAR Kickstart version 3.42 A=20 // ----------------------...


Interrupt /RTC overlap issue

Started by dbwright in MSP43019 years ago 6 replies

Hi Group, I have a project where I use timer A as an RTC, the watchdog timer as a general system watchdog and then timer B as a 16 hz sample...

Hi Group, I have a project where I use timer A as an RTC, the watchdog timer as a general system watchdog and then timer B as a 16 hz sample timer for the internal AD, plus USART0 and 1 in use as well. I have two configurations which seem to lose a second or add a second to my RTC. The WDT, Timer A, USART1 in SPI mode are common, with XT1=32768 Hz/6pF and XT2=7.3728MHz. Case 1: Common inter