This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
I am attempting to set up a UART interface between an ez430-rf2500 (access point) and an msp430f5438a. I want to send an array of characters from the transmit pin of the ez430 to a receive pin of the msp430f5438a. I've been working on this for days now and can't seem to get it to work. The register I've chosen for the msp430 is USCI_A0. Tx and Rx are P3.4 and P3.5, respectively. It is interrupt driven, and interrupts are occurring when they should but the data received only ever seems to be values such as FF or FE. I connected the ez430 to a debugging device and determined that it is indeed sending the correct data. This leads me to believe it is an issue on the MSP430 side of things, and not the ez430 side. Any thoughts?
Here is my code to initialize the msp430 register USCI_A0, and the ISR that should be receiving the data
init:
Thanks for any help you can lend me, I'm at a loss and this project is due very soon.
Have you verified (with a scope probe, etc) that the data coming to the MSP430 is of the correct data rate and bit timing?
Also, generally it is recommended that you use the Async UART in oversampling mode (i.e. BITCLK = 16 * baud_rate). There are control bits to enable this, and your BRG values need to be adjusted accordingly ( BRG1=0x00, BRG0=0x34 ).
Thanks for the response!
The data being sent has been verified with a scope. We are fairly sure that it isn't a transmitting error on the eZ430 side of things. After scavenging through the datasheet, we found the oversampling mode you mentioned and initialized things that way. Whenever we set the UCOS16 bit to set the device to oversample, we no longer receive any interrupts.
**Attention** This is a public forum