leo.martinez_oto 0 Posted January 12, 2012 Share Posted January 12, 2012 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! Quote Link to post Share on other sites
gwdeveloper 275 Posted January 13, 2012 Share Posted January 13, 2012 TI offers an I2C library for USCI devices like the G2553. http://www.ti.com/general/docs/litabsmultiplefilelist.tsp?literatureNumber=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/ Quote Link to post Share on other sites
leo.martinez_oto 0 Posted January 13, 2012 Author Share Posted January 13, 2012 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... Quote Link to post Share on other sites
gwdeveloper 275 Posted January 13, 2012 Share Posted January 13, 2012 Oops, I gave you the wrong link. I have a whole page of TI links. Master http://www.ti.com/general/docs/litabsmultiplefilelist.tsp?literatureNumber=slaa382 Slave http://www.ti.com/general/docs/litabsmultiplefilelist.tsp?literatureNumber=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. Quote Link to post Share on other sites
leo.martinez_oto 0 Posted January 13, 2012 Author Share Posted January 13, 2012 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... Quote Link to post Share on other sites
gwdeveloper 275 Posted January 13, 2012 Share Posted January 13, 2012 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. Quote Link to post Share on other sites
leo.martinez_oto 0 Posted January 13, 2012 Author Share Posted January 13, 2012 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. Quote Link to post Share on other sites
bluehash 1,581 Posted January 13, 2012 Share Posted January 13, 2012 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. Quote Link to post Share on other sites
leo.martinez_oto 0 Posted January 13, 2012 Author Share Posted January 13, 2012 Oh, sorry. I did not know where to post it. Won`t happen again. Quote Link to post Share on other sites
bluehash 1,581 Posted January 14, 2012 Share Posted January 14, 2012 It's alright. No need to apologize :thumbup: . We normally move a post to an appropriate sub-forum if it has been mis-posted. Quote Link to post Share on other sites
DavidUser 0 Posted January 22, 2015 Share Posted January 22, 2015 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/product/MSP430G2553/technicaldocuments Quote Link to post Share on other sites
petus 11 Posted January 24, 2015 Share Posted January 24, 2015 I wrote I2C library for MSP430F2132 http://chiptron.petus.cz/downloads.php?cat_id=3&download_id=6, but it similar as MSP430G2553 Quote Link to post Share on other sites
dylek 4 Posted February 2, 2015 Share Posted February 2, 2015 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. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.