I am new to MSP430,I need to implement a software UART in MSP430F2xx ,
the MSP430 will be in low power mode (LPM3 or LPM4) ,and I need to communicate with the
The problem is I should do it without 32KHz crystal.Does anybody has an idea about s/w UART.
Thankyou in advance..
We actually have a code example that implements a software UART using the Timer_A. Please see the follwing zip file from www.MSP430.com for several different examples: http://www.ti.com/lit/zip/slac011 (namely, see msp430x11x1_ta_uart19200_01.c)
Since I'm working on a sw-uart for my MSP430F149 for some time (without any success), I tried to run the example program you suggested. It seems to work for single characters, but if you send two or more chars to the sw-uart, it echos only every second char.
Btw its the same problem with the Timer_A UART Library (http://www.ti.com/litv/zip/slaa307a).
Do you have an idea why it's not working?
What baud rate are you trying to acheive? If its different than 2400 how are you altering the code?
Also what is your intermediate circuitry being used between MSP and the PC? There is a good reference design using the MAX232 chip here: http://www.softbaugh.com/downloads/DIR169_Sch_v1_3.pdf
As an FYI the F149 does have a hardware USART module which can do this in hardware. Is this an option for you?
Thank you for answering this fast!
I tried to achieve a baudrate of 19200. Since I use an 8MHz quarz I had to alter the constants for the Bittime = 416 and Bittime_5 = 208 (tried to change it a little up and downwards, still the same result). I also include the right headerfile for the F149.
For level conversion I already use an ST232ABN.
I'm using the F149 for development purposes only (because i have an evaluation board for this type), the sw-uart will be finally implemented on an F1232 (I need two uarts).
Any ideas, yet? I'm still stuck.
I am using CC430F5137 (EM-CC430F5137-900) board with MSP- 430FET430UIF debugger for my "C" application in CCSv5 in windows 7 . I could able to check the single byte being sent through UART on the hyperterminal & received byte on PC when i use cc430x513x_uscia0_uart_04.c . Now i need to program for cc430 receive file through UART and check the received text file which is sent through UART on the PC. would you please help me with the API for CC430 UART ?
thanks for your time.
aparna vegendlaI am using CC430F5137 (EM-CC430F5137-900) board with MSP- 430FET430UIF debugger for my "C" application in CCSv5 in windows 7 . I could able to check the single byte being sent through UART on the hyperterminal & received byte on PC when i use cc430x513x_uscia0_uart_04.c . Now i need to program for cc430 receive file through UART and check the received text file which is sent through UART on the PC. would you please help me with the API for CC430 UART ?
This thread is about emulating the function of a UART purely in software - it is not about using the hardware UART!
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. 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 respect to these materials. 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.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.