SparkFun Forums 

Where electronics enthusiasts find answers.

Discussions on how to get your MSP JTAG programmer up and running.
By jayjay
#9935
Hello Guys

Does anyoen have a buffered UART/Serial driver for the MSP in C? I am just curious to look at the implementtaion.

Cheers
Jay
By powool
#10012
Google "bufferedUSART msp430", and you'll find it... it is freely available.

It has an interrupt handling bug in it, but should work as a starting point.

In the version of usart.c that I have, in the routine usart1Getch and usart0Getch - the interrupt case (ifdef block) needs to disable interrupts prior to modifying the buffer index and re-enable prior to return.
By jayjay
#10050
Thanks man, I will take a look at it. Cheers :-)