Other Parts Discussed in Thread: CCSTUDIO, ENERGYTRACE
Tool/software:
Hello,
I am undertaking a new project. Actually - it's not new, but I've learned after several failed attempts using a Raspberry Pi RP2040/RP2350 that this device "will not cut the mustard" :) From all that I've read about the MSP430, I feel this part has the ability to get the job done. However... I'm not a very experienced developer of micro-controller code, and I've wasted a lot of time on the Raspberry Pi; IOW I need some help as I'm unfamiliar with TI's tools, resources and coding in general. I have bought a 'MSP-EXP430G2ET', but am struggling to get beyond the intial "Hello World" app. So - that concludes the "introduction"; let me now get into the specific objective for this project.
As suggested by the title, I need the MSP430 to sleep for hours, days or even months at a stretch. I have read (somewhere) that this is "problematic" with the timers on most uC due to "clock drift". Based on this, I thought to use an accurate (battery-powered) Real Time Clock (RTC). I've tentatively selected either the DS3231 or the RV3028. Both are capable of <2 PPM drift, and both have an external 'INT' line that can (hopefully) be used as an external "wakeup"/time source for the MSP430.
So the scheme would be that the MSP430 code does the RTC "configuration" over I2C, then puts itself into a "deep" sleep waiting on the RTC's 'INT' line to go low, and wake it to do it's "normal" job (reading I2C sensors & setting GPIO lines accordingly).
I'm posting here asking for both "General" and "Specific" advice: The "General" advice would be (for example) what tools should I use - and whether or not my objective is even feasible. The specific advice would perhaps be in the form of applicable code samples, and any potential "Gotcha's" I should look out for.
So, that's it. Thanks in advance for any help you can offer.
~JM