Jump to content

MSP430 and CC110L communication

Recommended Posts

Hi, I am new to the forum, and hope I am doing this right.  If this question is in the wrong spot please let me know. 


I have two MSP430G2 launchpads and a CC110L AIR module booster pack.  My goal is to make a simple pushbutton toggle setup.  (ie push the button on one board, and toggle a GPIO on the other board.)  Eventually, I plan to turn this into a key fob with custom PCBs.  Low power consumption would be really good too.  I thought this would be a relatively easy project, but I am stuck.  I can't get the boards to communicate at all. 


I got the settings by choosing from the SMARTRF studio.  I planned to use an MSP430g2553 with USCI through the UCB0 interface as the SPI communication.  However, I keep getting hang-ups in different parts of the code, with some TXFIFO_UNDERFLOWS sometimes, and other times just a hang-up.  Currently, I didn't modify any of the boards and am using their built in connections.  I am not sure what anyone would want, but if someone would have a suggestion or example I would be very grateful.  Let me know if you would like anymore information from me.  I haven't even tried using a LPM yet and am already stuck.  I have spent hours reading the datasheets and just come away more confused every time.


The Launchpad also comes with an MSP430g2452 if the USI interface would be a better option than the USCI, but when I was doing research it seemed like the 2553 with the USCI was more popular.

Link to post
Share on other sites

There are several good examples here that probably will help. Several members have written of using "Larsie's LarsRF" library:  http://forum.43oh.com/topic/1433-anaren-ti-cc110l-rf-air-booster-pack/page-4#entry17770 . Try searching for "CC1101" as well as "Anaren"  (all compatible products). 


Energia has the AIR library with examples; I have tested them on the MSP430G2553 as well as the LM4F and MSP432 launchpads. 


If you use SMARTRF studio you need to adjust the base frequency to 27mhz for the A110LR09A modules (26Mhz is the default) The Energia library includes a set of working values:  https://github.com/energia/Energia/blob/master/hardware/lm4f/libraries/AIR430BoostUSAFCC/utility/A110LR09.c (it is a bit tedious to decypher).



Link to post
Share on other sites

Thanks for the reply BRey.  I really like the AIR library.  It is incredibly complete, and in the future extra buttons might be added to the key fob.  The library would make it really easy to change the communication power and type if I would need it later. 


I have never used a library like this.  It doesn't seem like it will necessarily work with the MSP430 launch pad?  Am I Missing something?  There is some Energia.h files and other files that don't seem like they will match with the Launchpad.


Do I have to use an Energia sketch to use this library.  I have been trying with a CCS project?

Link to post
Share on other sites

Update...I got it working.  The library really is pretty great.  I am going to attempt to add some of the LPM modes and change the radio setting tomorrow.  Also, I might try to get the receiver to be continually on, and always waiting for a message to be received.  the LPM can be woken up in an ISR.


Wish me luck! and thanks again for pointing me in the right direction.

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.

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...