Hi,
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
PC @19200bps.
The problem is I should do it without 32KHz crystal.Does anybody has an idea about s/w UART.
Thankyou in advance..
Chakra,
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)
Dear Brandon,
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?
Best regards,
Andi
Andi,
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).
Best Regards,
Any ideas, yet? I'm still stuck.
Regards,
hello all,
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!
http://e2e.ti.com/support/microcontrollers/msp43016-bit_ultra-low_power_mcus/f/166/p/183636/836665.aspx#836665