
Msp430 Serial Example
In reply to: Hi Crist! There are some things in your program you definitely should take care about: First using a variable that is changed during an interrupt should be declared as volatile because your compiler does not know that it's value can change suddenly during the normal program flow. This is your 'int i'.
You should also give it a value at program start because in line 24 of your code you are using i without knowing which value it is filled with. It may be 0 at startup, but it could also be something else between 1 and 65535. Your initialization of the UART seems to be OK at a first sight, but if you are using ACLK with the watch crystal - is it populated on your launchpad? Because as I remember it comes with the crystal not already soldered on the board. Then in line 22 you enable receive interrupts - that's OK. To be safe you could clear a erroneous set flag before enabling the interrupt, but normally there is no need to because it is '0' after start. In line 23 you also enable transmit interrupts - be careful!
The TX IFG is set after startup because the buffer is, of course, empty. Callus95 games download pc. If you now enable the GIE your program will immediately jump into the TX ISR. You normally don't want that. In your case it is better to clear the pending flag before enabling the interrupts. Really bad is your ISR for TX. Put a while loop in an ISR!
An example showing how to use the hardware UART on the MSP430G2553 to. Characters between a terminal on the computer and the MSP430 launchpad.
Put a delay-loop in an ISR! You have to completely rewrite your ISR. That is not how it works! OK, it is a little bit bad, that the code example I've posted from TI uses a while() in ISR. But remember - these small programs just show the one functionality it is used for and for that it is OK. If you know want to do more with your program - don't do it that way. But maybe for you as a beginner this is good to start and learn.
And now to the point why you are not receiving anything - you are using LPM3. I'm not sure, but is ACLK still active in LPM3? I have to look myself - I really don't know at the moment.
You should take a look in the documents of the controller, too. Maybe it is because there is no clock active. All content and materials on this site are provided 'as is'. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI. Content on this site may contain or be subject to specific guidelines or limitations on use.
All postings and use of the content on this site are subject to the of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

In this tutorial we design a system to read the RFID cards using MSP430 and RFID Reader. RFID stands for Radio Frequency Identification.
Each card has a unique ID and this makes it a perfect choice for many authentication applications, like in offices, shopping malls and in many other places where only the person with authorization card is allowed to enter inside. RFID is used in shopping malls to stop a theft from happening, where the product will be tagged with RFID chip and if anyone leaves the building with the RFID chip an alarm is raised automatically and so the theft is stopped. The RFID tag is designed as small as grain of sand. The RFID authentication systems are easy to design and are cheap in cost. Some schools and colleges nowadays use RFID as attendance register. Materials Required 1. MSP430 Launchpad 2.