Jump to content

  • Log In with Google      Sign In   
  • Create Account

Please use your email id to login! See this post for logging in. Post here for support.


Photo

C library for MSP430G2553


  • Please log in to reply
12 replies to this topic

#1 leo.martinez_oto

leo.martinez_oto

    Member

  • Members
  • PipPip
  • 10 posts

Posted 12 January 2012 - 11:01 PM

Hello, I am working with MSP430G2553 and i was wondering if there any library to this microcontroller. I have seen the code examples and the registers are modified to do something. I am thinking like high level programming. For instance, libraries for i2c or adc would be ideal for me.

Thanks!

#2 gwdeveloper

gwdeveloper

    Level 3

  • Members
  • 580 posts


Posted 13 January 2012 - 12:21 PM

TI offers an I2C library for USCI devices like the G2553. http://www.ti.com/ge...Number=slaa368a

The ADC doesn't get much simpler than TI's examples but you can check with the EasyMSP library offered by MattTheGeek. There's a dedicated sub-forum on here as well the source link http://code.google.com/p/easymsp/

#3 leo.martinez_oto

leo.martinez_oto

    Member

  • Members
  • PipPip
  • 10 posts

Posted 13 January 2012 - 12:28 PM

Thanks, but that link is for USI i2c and not for USCI i2c...
Maybe it is more helpful working with the registers like the examples...

#4 gwdeveloper

gwdeveloper

    Level 3

  • Members
  • 580 posts


Posted 13 January 2012 - 12:36 PM

Oops, I gave you the wrong link. I have a whole page of TI links.

Master
http://www.ti.com/ge...eNumber=slaa382
Slave
http://www.ti.com/ge...eNumber=slaa383

It is pretty easy once you learn what they all do. Nothing wrong with using a library here and there though. For my I2C code, I rolled my own built from the examples TI provided. The libraries just didn't meet all of my needs.

#5 leo.martinez_oto

leo.martinez_oto

    Member

  • Members
  • PipPip
  • 10 posts

Posted 13 January 2012 - 12:45 PM

What do tou mean with all your needs? Which are the disadvantages of using this library?

Is there any general library? I have seen MSP430Ware, but i am not sure if it is for my G2553...

#6 gwdeveloper

gwdeveloper

    Level 3

  • Members
  • 580 posts


Posted 13 January 2012 - 01:08 PM

Not any real disadvantages, it's jut a basic library to show usage functions for I2C on USCI. I needed some different functions and buffers for transferring data within my application. So, I progressed from the library to the examples to rolling my own.

I don't think there is a general library. MSP430Ware is TI's new driver library built into CCS. It only fully covers the 5x and 6x devices right now. It does include all of the examples for the full lineup though.

If you're looking to make the Launchpad like an Arduino with the higher level functions provided in the IDE, there are few projects going on. EasyMSP seems to be the most up to date. MSPhere and Friendly Launchpad are two others. Not sure of the current development on those.

#7 leo.martinez_oto

leo.martinez_oto

    Member

  • Members
  • PipPip
  • 10 posts

Posted 13 January 2012 - 04:12 PM

Thanks. Because I have a MSP430G2553 and i do not want to have unstable results I will read the official documentation and, with the examples given by TI, I will develop my own program. I guess this is the best solution. Regards.

#8 bluehash

bluehash

    Site Admin

  • Administrators
  • 5,953 posts

Posted 13 January 2012 - 04:31 PM

Hello Leo, welcome to the forums.
Please refrain from posting the same question in multiple sub-forums. Looks like your question has been answered here.

43oh - MSP430, TivaC, ARM-Sitara and C2000 Discussion, News, Projects and Hacks

 

 


#9 leo.martinez_oto

leo.martinez_oto

    Member

  • Members
  • PipPip
  • 10 posts

Posted 13 January 2012 - 05:16 PM

Oh, sorry. I did not know where to post it. Won`t happen again.

#10 bluehash

bluehash

    Site Admin

  • Administrators
  • 5,953 posts

Posted 14 January 2012 - 12:22 AM

It's alright. No need to apologize :thumbup: . We normally move a post to an appropriate sub-forum if it has been mis-posted.

43oh - MSP430, TivaC, ARM-Sitara and C2000 Discussion, News, Projects and Hacks

 

 


#11 DavidUser

DavidUser

    Noob Class

  • Members
  • 3 posts

Posted 22 January 2015 - 08:55 PM

I try use this library, but this it's suitable for msp430g2553 device, i do some corrections to work with the msp430g2553, like the SCL SDA pins and port configuration, but persists doesn't working.

The msp430g2553 have a Errata Datasheet with big inssures on USCI module I2C Mode, my unique option is read this Errada and try correct the library to msp430g2553 device.

If someone have this knowledge please help us.

 

MSP430G2553 Technical Documents:

http://www.ti.com/pr...hnicaldocuments



#12 petus

petus

    Member

  • Members
  • PipPip
  • 24 posts
  • LocationCzech Republic

Posted 24 January 2015 - 09:25 AM

I wrote I2C library for MSP430F2132 http://chiptron.petu...3&download_id=6, but it similar as MSP430G2553



#13 dylek

dylek

    Noob Class

  • Members
  • 4 posts

Posted 02 February 2015 - 07:02 AM

Hello, I am working with MSP430G2553 and i was wondering if there any library to this microcontroller. I have seen the code examples and the registers are modified to do something. I am thinking like high level programming. For instance, libraries for i2c or adc would be ideal for me.

Thanks!

 

If you are not in big hurry and you can wait about one week more.

I have written 2 libraries for I2C on MSP430G2553.

- one using hardware USCI so lines SDA and SCL are fixed

- second is fully software I2C so you can use it on any MSP430G2553 ports

  or if you need more than one I2C protocols

The delay is because I have a lot of work in this week, but in next I will post them on my WIKI. 


Looking for libraries and tips for MSP430, please visit my WIKI: https://daniel.duchna.pl

 

-------------------------------------------------------

Come get some! (Duke Nukem)

-------------------------------------------------------





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users