Jump to content

rdp

Members
  • Content Count

    3
  • Joined

  • Last visited

  1. update: I (finally) found rtc_[ab].h and noticed that the RTC provides a 32 bit counter mode. My favorite solution would be to run the RTC continually in 32 bit mode and use a compare function to wake it from LPM3.5. I see that a calendar match will wake the processor, but is there a way to: run the RTC at 32678 Hz rather than at 1 Hz? (I think yes) set the comparison register directly as a 32 bit value rather than as year/month/day/hour/minute/second?
  2. (Context: I'm an experienced embedded systems engineer, just dipping my toe into MSP430-land. My target system is an MSP-EXP430FR5994 LaunchPad dev board.) General goal: How do I wake the processor N ticks in the future, where one tick is 1/32768 second and N can be as large as 2^15? My first thought was to use the RTC, but that appears to have a resolution of 1 second. My second thought was to use a timer module (e.g. TA1) and use its compare interrupt to wake the processor from LPM4. So my questions: Is there a better / alternative way to wake the processor N ticks in the future? Table 6-1 ("Operating Modes") states that a "COMP" event can wake the processor from LPM4. Does "COMP" refer to a compare interrupt from a timer? Is there a block diagram of the counter module(s) somewhere? I didn't see it in the processor-specific datasheet.
  3. I just received my MSP430 FR5994 LaunchPad kit and fired up my first project using CodeComposer v 10.1.0.00010. I'm underwhelemed and wondering if I'm going down the wrong path. Specifically, the compiler feels ancient. For example, for (int i=0; i<100; i++) { do_something_with(i); } won't compile, complaining that i is undefined. All modern compilers I know of support this. So with this construct: int i; for (i=0; i<100; i++) { do_something_with(i); } the compiler gives a "helpful" remark that "Detected loop counting up. Recommend loops count down as detecting zeros is easier". Yes, I used to write counting-down loop code slavishly, but stopped doing that when compilers started including great `for` loop optimization.. So is there a way to swap out cl430 compiler and use some version of gcc or other modern compiler? Or am I just using the wrong IDE?
×
×
  • Create New...