EmbeddedRelated.com
Memfault Beyond the Launch

msp430 watchdog timer

Started by amber_ansari94 in MSP43019 years ago 3 replies

Hi All, I have described my problem in detail below. Any clues to resolve this issue will be appreciated. Iam working on an application that...

Hi All, I have described my problem in detail below. Any clues to resolve this issue will be appreciated. Iam working on an application that uses timer B interrupts which is set up to happen at 64hz. This interrupt resets the watchdog timer to go off in 1 sec. Since the timer B interrupt resets the watch dog timer every 64th of a second the watch dog never re-starts the program and th


Resetting Chip with invalid Watchdog

Started by Josh Adler in MSP43013 years ago 1 reply

I am trying to reset an F5435 by setting the watchdog with the command WDTCTL = 0x0000 to re-enter a boot loader from my main code. The...

I am trying to reset an F5435 by setting the watchdog with the command WDTCTL = 0x0000 to re-enter a boot loader from my main code. The chip restarts, but after restarting this way, certain functions do not work correctly, like repetitive flash writing (updating the main code from within the boot loader) locking up and/or jumping to 0x0000 (i don't know if it does this, but IAR debugger does ...


corrupted stack and watch dog functioning

Started by resiproc in MSP43021 years ago 24 replies

I have some problems with the watchdog function. The watch dog is initialized on 1 sec (WDTCTL=0x5A0C) clocked by the AClock, clocked by a...

I have some problems with the watchdog function. The watch dog is initialized on 1 sec (WDTCTL=0x5A0C) clocked by the AClock, clocked by a 32kHz crystal. (The program is executed at a speed of 6MHz, clocked by an external crystal) My program structure does not allow to reset the watchdog in the main loop. Therefore a 500ms timer ISR is implemented to take care of the periodical resets of the


Recovering the PC and SR after a watchdog timer reset

Started by Noah Treuhaft in MSP43020 years ago 6 replies

Anyone know how to recover the pre-interrupt values of the PC and SR after a system reset interrupt caused by expiry of the watchdog timer? I...

Anyone know how to recover the pre-interrupt values of the PC and SR after a system reset interrupt caused by expiry of the watchdog timer? I couldn't find any discussion of this in SLAU049D, so I did some experimentation with the hope that a system reset interrupt would push the PC and SR onto the stack, just as the maskable interrupts do. What I found is that the system reset interrupt d


How to obtain and save the return address inside an interrupt?

Started by "aag...@ieee.org [msp430]" in MSP4309 years ago 6 replies

I am using MSP430F2618 and the IAR Workbench (version 6.20). From time to time I get a watchdog reset. I think I can use the watchdog as a...

I am using MSP430F2618 and the IAR Workbench (version 6.20). From time to time I get a watchdog reset. I think I can use the watchdog as a timer, then have an interrupt when it times out. Inside the interrupt I would like to find the return address and maybe even save it in flash. If I could do this, I could find out where the problem is. Would you have suggestions as to how to find out the ...


Reset from C code

Started by Nick Price in MSP43013 years ago 7 replies

Hi Group. This might sound easy, but it's got me in knots. I want to be able to reset my MSP430F5419 by sending it a serial comms command....

Hi Group. This might sound easy, but it's got me in knots. I want to be able to reset my MSP430F5419 by sending it a serial comms command. I could let the watchdog timer timeout, but is there an easier way to call the RESET_VECTOR. I'm using CrossWorks 2.1.2. Cheers Nick ------------------------------------


PUC vs POR initial conditions

Started by Aaron Greer in MSP43016 years ago 1 reply

Does anyone know what the result of a PUC is (for MSP430F2012)? My CPU is resetting due to a watchdog reset (not a problem), but I'm not sure...

Does anyone know what the result of a PUC is (for MSP430F2012)? My CPU is resetting due to a watchdog reset (not a problem), but I'm not sure what state things should be in following the PUC. If anyone has information similiar to section 2.1.2 in the FUG regarding PUC, please reply. thanks, Aaron


MSP430F149 MCLK using 32kHz?

Started by Genevieve in MSP43016 years ago 1 reply

Hi everyone, Would like to know has anyone tried operating MCLK with only 32kHz xtal attached? From TI TimerA sample codes, it wrote there...

Hi everyone, Would like to know has anyone tried operating MCLK with only 32kHz xtal attached? From TI TimerA sample codes, it wrote there MCLK default uses DCO ~800kHz. However, when I try to trigger the Watchdog timer (WDT_MRST_32), I don't see it returning to the breakpoint I've set at the every beginning? Did I miss out anything? Please help. Thanks! :) Another qn, I'm trying to fin...


MSP430F149 resets during code execution

Started by Mikael Bertelsen in MSP43014 years ago 7 replies

Hi all, I'm having a little problem with my MSP430F149 using both IAR and Code Composer. When running a simple program (shown below) my MSP...

Hi all, I'm having a little problem with my MSP430F149 using both IAR and Code Composer. When running a simple program (shown below) my MSP keeps resetting. I cannot see any changes in the SFR that could indicate anything, and my watchdog is on hold. My intention is to run a software RTC, mostly to play around with interrupts. When the interrupt on TimerA triggers, a counter (RTCCount) ...


Re: New poll for msp430

Started by Matthias Weingart in MSP43019 years ago 18 replies

On Wed, Dec 08, 2004 at 08:22:46AM +0200, Shaun Parsons wrote: > Am I the only one who would like another timer in the MSP430? > The MSP430...

On Wed, Dec 08, 2004 at 08:22:46AM +0200, Shaun Parsons wrote: > Am I the only one who would like another timer in the MSP430? > The MSP430 does have versatile timers, but there are only 2 + the watchdog. Yes, you have only two/three timers, but with software incrementing of the capture registers you can have something like 11 (slower) timers. But I also wished to have more timers


LMP mode and RTC

Started by Anonymous in MSP43019 years ago 3 replies

Hi All, Can anyone tell me if it's possible to put the mcu in sleep and wake up after my timerA0 has occured. Here's part of my code....

Hi All, Can anyone tell me if it's possible to put the mcu in sleep and wake up after my timerA0 has occured. Here's part of my code. But the MCU never wakes shows me the time what am I missing?? int main(void) { // Stop watchdog. WDTCTL = WDTPW + WDTHOLD; _DINT(); rtcInit(); PCD8544_init(); _EINT(); PCD8544_gotoxy(0,0); printf("It's a clo


Low Current Supervisor IC for MSP430?

Started by Rolf F. in MSP43020 years ago 2 replies

Hi, i'm looking for a supervisor IC with a watchdog timer and a threshold voltage of 2.25 or 2.20 V. I could only find the TPS3820-25 but...

Hi, i'm looking for a supervisor IC with a watchdog timer and a threshold voltage of 2.25 or 2.20 V. I could only find the TPS3820-25 but that IC has 15 uA typ. which would increase the current consumption 5 - 10 times! Which other supervisor ICs do consume much less current? Regards Rolf F.


Power on Reset

Started by Brian C. Lane in MSP43021 years ago 12 replies

I've just read the archives and it appears that the power on reset circuit in the MSP430F149 is useless for brownout detection, even with the...

I've just read the archives and it appears that the power on reset circuit in the MSP430F149 is useless for brownout detection, even with the watchdog enabled? What I'm seeing is that unless I put a load on the 3.3v regulator to make sure it drops to 0v the msp430 doesn't reset properly. I expected that in the case where power dropped, but didn't go below 0.4, and came back up that the


How to do a real reset ?

Started by crandel_z in MSP43014 years ago 10 replies

Hi, I write a program that allow to update the flash program. After that I need to do a reset. I try to use watchdog and to call to 0x3100 to...

Hi, I write a program that allow to update the flash program. After that I need to do a reset. I try to use watchdog and to call to 0x3100 to do the reset. But they not do a real reset, they do like a restart. Some registers are not initialized. There are another way to do a reset ? Thanks Crandel pd: I use MSP430F2618 ------------------------------------


call delay_ms

Started by msp430 nascimento in MSP43017 years ago 2 replies

I need that someone help me. I started to programmer msp this week in C using IAR. But I already problems with my first program. #include...

I need that someone help me. I started to programmer msp this week in C using IAR. But I already problems with my first program. #include "msp430x20x3.h" void delay_ms(void); void main(void) { WDTCTL = WDTPW + WDTHOLD; // Stop watchdog timer //P1DIR |= 0x01; // Set P1.0 to output direction for (;;) { volatile unsigned short int i;...


2 PWM output signal on 2013

Started by ulrich_probst in MSP43017 years ago 7 replies

Hi all, I need 2 PWM output signals and the second must have a programmable delay. The first signal can be generated by timerA -ok. For the...

Hi all, I need 2 PWM output signals and the second must have a programmable delay. The first signal can be generated by timerA -ok. For the second one a additional timer is needed wich can started from TimerA but the watchdog is to slow and a high interrupt frequency would be. Has anyone a solution? I think that is a common problem. Thanks a lot. Ulrich.


Clock problem

Started by "Breno T. Minzon" in MSP43017 years ago 5 replies

Hi everyone!!! I'm begining using msp430. I need to count pulses of a quadracture encoder and show in a lcd 16x4. My counter is OK, my...

Hi everyone!!! I'm begining using msp430. I need to count pulses of a quadracture encoder and show in a lcd 16x4. My counter is OK, my LCD functions are ok. But the program only runs 1 time. I think my clock isn't correct. PLease help me. I need to use DCO 16Mhz, without any aditional crystal. int main( void ) { unsigned char i; // Stop watchdog timer WDTCTL = WDT...


Get Last Reset Reason

Started by "Ohad Gal (Eltav)" in MSP43017 years ago 1 reply

Hello, Suppose during operation, my MSP430F2272 gets a reset, how can I know the following: 1. Program counter before the reset 2. Reason...

Hello, Suppose during operation, my MSP430F2272 gets a reset, how can I know the following: 1. Program counter before the reset 2. Reason of the last reset (Watchdog, flash violation, memory overflow, stack overflow, division by zero, etc.) I noticed that a reset is actually an interrupt as any other (#define RESET_VECTOR (15 * 2u) /* 0xFFFE Reset [Highest Priority] */) bu...


147 POR Problems

Started by christocoetzee2003 in MSP43019 years ago 5 replies

Hi We use a '147 MSP controlling a front panel (LCD and Keypad). There is also Blackfin DSP on this carrier card (CC). Another module...

Hi We use a '147 MSP controlling a front panel (LCD and Keypad). There is also Blackfin DSP on this carrier card (CC). Another module plugs onto the CC which has a `147 MSP (doing power monitoring and watchdog control) and a TI C64 DSP. We sometimes found that the MSP's (mostly the one on the CC) `latch- up', i.e. it does not startup and not even a RESET gets it out of that state?


Software delay

Started by Pravin in MSP43020 years ago 3 replies

Hi friends, I am new to MSP ,have been working on other controllers using assembly launguage. I have a doubt, I want a delay of 1 sec wherein...

Hi friends, I am new to MSP ,have been working on other controllers using assembly launguage. I have a doubt, I want a delay of 1 sec wherein i am toggling the LED connected to P6.3 i write a simple routine in C using ICC [code] void main(void) { WDTCTL = WDTPW + WDTHOLD; // Stop watchdog timer P6DIR |= 0x08; // Set P6.3 to output direction for (;;) { volatile unsigned int i; ...



Memfault Beyond the Launch