Hi all,
I have just recently been able to use the MSP430G2553 Launchpad and TI's example code to echo a preset 16-char data to the Terminal each time a button on the keyboard is pressed. However, I need to expand the UART communication to communicate to a (preferably C++) program where it can use the data as necessary. In essence, I need my software program to get the data from the MSP430 each time upon request and do this over and over in an infinite loop while doing other things as well based on that data.
I have found a lot of libraries online, but I cannot completely grasp how this relates to the MSP430, as my UART program for the launchpad actually waits for a RX flag and then sets the TX buffer 16 times in a row, and frankly, I do not know how the terminal is interacting with the launchpad to get it to display those 16 chars every time I push a button on the keyboard.
This library http://www.codeproject.com/Articles/992/Serial-library-for-C looks like a promising option. However, I do not understand how the C++ program is getting the MSP430 to send the data and at the right time. Does the TXIFG indicate when the MSP430 should start transferring? And does this C++ library somehow get the launchpad's TXIFG to go high?
In general though, if there is anyone who knows how to do this, specifically with MSP430, any example code, guides/websites, or advice would be extremely helpful.
Thanks,
Matt