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.

MSP430FR5969: UART Data get Corrupt

Part Number: MSP430FR5969
Other Parts Discussed in Thread: MAX3232E

Hi all,

I am using MSP430FR5969 with TRF7970 module for reading the NFC tag from NTAG213.

So here i am facing the problem of UART. i posted the problem in the wireless forum also but they suggested me to post the question here.

https://e2e.ti.com/support/wireless-connectivity/other-wireless/f/667/p/815832/3031844#3031844

so i am getting corrupted data from the UART and even though i am validating data also sometime i am facing the UART data corruption issue.

i am using RS232 for UART communication then also why i am getting errors ?

Thanks,

Anil.

  • Hi Anil,

    MSP430FR5969 doesn't support RS232, need level shift. Please use oscilloscope to monitor the signal in UART TXD/RXD. 

  • Hi Winter,

    in hardware level i used MAX3232E this IC to shift the levels. so i don't thinks so there is a problem to use this.

    and one more point is that i am getting result always but rarely i am getting data corruption.

    for ex: out of 6000 iteration of read data i am getting 40 error data which is data corruption 

    *g;1;04:17:75:FA:6D:4D:81;0000051300C;d63286c17ve3a309ade26c58a9bad23540ef1d7db244db37f8afc48dec0bf9f0;03-29-2019;0003000;0001361;<NUL><NUL><NUL><NUL>;35#

    *g;1;04:17:75:FA:6D:4D:81;0000051300C;d63286c172e3a309ade26c58a9bad23540ef1d7db244db37f8afc48dec0bf9f0;03-29-2019;0003000;0001361;<NUL><NUL><NUL><NUL>;79# 

    see this one.

    like wise only single character i am getting corrupted.

    what i need to do?

    Thanks,

    Anil.

  • Hi Anil,

    What's the frequency of BRCLK? And your Baud Rate? Please use the recommended settings in below table in User's Guide.

  • Hi Winter,

    this settings i used.

    My MCLK = 16MHz

    SMCLK = 8MHz

    ACLK = 10KHz

    Baud Rate = 9600 

    so i think so this settings are correct.

    Thanks,

    Anil.

  • Please use oscilloscope to monitor the signal to see if noise or disturbance on the RXD line.

  • yes i will check with DSO on RX pin.

    But in configuration above i am seeing one error value i kept.

    can yo u look that. -  UCA1MCTLW =  0x4911;  //0xBF;   here we need to configure the 0x4911 instead of 0xBF, am i right?

    because 8000000/9600 = 833.333... so for 0.33 there is a 0x49 value is there, see in the image itself.

    and later that 0x4911 came, so that 11 is for 

     so i will keep there 0x4911, is that all configuration correct? or other things also i need to check here or initialize?

    Can you please check from your side?

    Thanks,

    Anil.

  • Hi Winter,

    I connected FET to board and testing the software with above mentioned changes, then i am not getting any error. but as soon as i removed the FET from the board then it start getting corrupted data. 

    so can i say its power issue or ground issue?

    Because at another place with only PC i checked the same thing then i am not getting any error there. so i am saying this.

    Anil.

  • Hi Winter,

    I connected the External power to the NFC board and connected FET also. then i am getting correct results.

    So it may be the cause of power or ground issue. 

    And i changed the BRCLK value also. but after this change also with another Board power i am getting corrupted data.

    So for  now i have a doubt on ground or power so i will check first those things then i will post anything comes new.

    Thanks for your support.

    Anil.

**Attention** This is a public forum