Jump to content
agaelema

Timeout Library for MSP43x

Recommended Posts

I am developing a timeout / soft timer library for the MSP43x and would like to share it with you.

It's still in the initial version, but all the functions are working. I'm developing and testing on MSP430F6736, but it worked fine on launchpad EXP430F5529LP.

The library uses a timer to periodically generate ticks. In the base version developed by Felipe Lavratti, the timer-tick occur every 1us through a 32-bit timer (ARM Cotex). To avoid overloading the CPU I modified the code to accept longer time intervals and also functions to automatically calculate the Capture / Compare value of the timer.

I also tried to isolate the timer configuration in a separate file, so in the future it would allow to select from more than one timer source or different devices, perhaps with compatibility with the old Value Line uCs.

How the objective is not to give a perfect time base in us, I'm using ticks of 100us (10kHz) and works very well.

The library has delay, getTime, and Timeout functions, the latter two of which are interesting for managing tasks without holding down processing like a normal delay.

The example using the EXP430F5529LP use delay_Ms function to toggle 4 times both leds, geTime_ms() to toggle LED1 every 234ms and timeoutCheck_ms() to toggle LED2 every 1s.

Feel free to leave your opinions and contribute to the project
- Github of project

Thank you.

timeout_example_01.png

Share this post


Link to post
Share on other sites

Hi,

I think not because there are is no launchpad using the MSP430F6736, this device is for a specific niche.

The Energia project focus on devices used on common development board, like the Arduino project.

But you can use the DriverLib to facilitate the programming of the device.

Share this post


Link to post
Share on other sites

Do I need to use Code composer studio for programming the MSP430F6736 or can I use energia to program it?

if yes, what steps do I need to follow?

 

Thank you.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...