Other Parts Discussed in Thread: MSP430FR2000
Hi Team, seeking some inputs for a customer.
working with a TI microcontroller called msp430fr2433. I need a code, to be integrated with my own code, in order to run my code only once and hour. Basically I would need a “wake up” function, to turn on the microcontroller from a low power mode only through a long delay.
At the moment my code is not even needed, it can easily substitute the line of code about LED on/off and eventually, only when we know that the “long delay wake up function” works, we can substitute the line “led on off” with my actual code.
This microcontroller has different timers and different low power modes. I found many codes that call an interrupt function from within the main code which work. The problem is that these codes have a delay of max a second. I therefore understood that it’s possible to integrate to this type of code a software counter to make the delay longer. I would like to know if you think you can help me with this and if so, I would love to jump on a call asap to discuss further. Thank you very much in advance for letting me know
Thius example has the main code that puts the microcontroller in the low power mode (LPM0 in these case) and calls the interrupt function outside of main code which, when it runs, wakes the microcontroller up and executes the actual code (in these examples simply turning on the LED for demonstration purposes, which eventually I would like to substitute with my actual code).
https://dev.ti.com/tirex/explore/node?node=A__ANeJ8ixtppj0XK4f9yuyKw__msp430ware__IOGqZri__LATEST
The problem with this two code is that I can't delay further the sleep mode (LPM), in both cases the delay is short and can't elongated much. For this reason I think that the solution would be to integrate to this code, a software counter such as the one in the attached code (which unfortunately has been developed for another microcontroller MSP430FR2000). But I did try to adjust and integrate, unsuccessfully.
Thank you.
-Mark