|Published (Last):||16 April 2007|
|PDF File Size:||12.67 Mb|
|ePub File Size:||9.79 Mb|
|Price:||Free* [*Free Regsitration Required]|
Please note that only relevant registers and bits will be explained. Here we are using the default UART mode. It is recommended to put the USCI module in reset state before making any changes to the registers. Configuring the Baud rate MSP data sheet has an indepth description about configuring the baud rate for various modes. You can find the below table in the MSPx2xxx usermanual. The transmit and reception intterrupts have to be enabled in the IE2 register before they can be used.
Writing the Code One problem with writing code for communicating with two devices is that ,it is quite difficult to pin point the problem when something goes wrong. The problem could be with your code ,or the communication cable or the code running on the other device etc. In Loop back mode the output of the transmitter is internally connected to the input of the receiver,so what ever the MSP transmits is received back. In this example we are going to write simple communication program which uses the loop back mode and communicates at bps 8N1.
LED connected to P1.
Texas Instruments MSP430FG4618 Manuals & User Guides
Serial Communication using MSP430 UART(USCI_A)