Quantcast
Channel: MSP low-power microcontroller forum - Recent Threads
Viewing all articles
Browse latest Browse all 22218

MSP430F1611: RTC

$
0
0

Part Number:MSP430F1611

Dear all,

I am trying to interface TelosB with external device called smartmesh mote "www.linear.com/.../4330".

Here, the example they used for interfacing to the mote was MSP430fr4133 launch pad which is quite different from TelosB(msp430f1611).

Referring to the code, LCD functions are not concerned at initialising board can be done seperately with my existing code. 

The part I am stuck in with is this part of code:

void fsm_scheduleEvent(uint16_t delay, fsm_timer_callback cb) {
   
   // remember what function to call
   app_vars.fsmCb       = cb;
   
   // configure/start the RTC
   RTCCTL               =  0;
   RTCMOD               =  delay;                // delay (in 32kHz clock cycles)
   RTCCTL              |=  RTCIE;                // enable interrupts
   RTCCTL              |=  RTCPS_0;              // divider /1
   RTCCTL              |=  RTCSS_2;              // clock source is XT1CLK
   RTCCTL              |=  RTCSR;                // reset the RTC
}

Please correct me if I am wrong, but as far as I know for MSP430f1611, there is no RTC library available.

Could anyone direct me how to go about with this?

full code is attached in this post.

Thank you

Kind regards

(Please visit the site to view this file)


Viewing all articles
Browse latest Browse all 22218

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>