Jump to content
43oh

Recommended Posts

Hello,

I'm trying to set up the backchannel UART on the MSP430FR2355 launchpad so that it echoes back the characters I send it. I believe I've configured the UART on the msp430 correctly for 4800 baud. Please see the attached main.c.main.c.4800

When I try to send characters after opening a UART connection, I just see question marks. I'm stumped.

I'm using mspgcc, mspdebug, and linux for what it's worth.

 

Link to post
Share on other sites

This line in your code for sure gives an issue. If this already solve the problem - i have not tested

  // Initialize UART and set RX interrupt enable
  UCA1CTLW0 &= UCSWRST;

This will clear all bits except UCSWRST.


You would like to clear the UCSWRST bit but then you need to write

  UCA1CTLW0 &= ~UCSWRST;

 

 

Link to post
Share on other sites
  • 1 month later...

Thanks for catching that.

I wasn't able to get the backchannel UART working, but when I switched to using an external level shifter, it worked. 🤷‍♀️

I think I remember reading somewhere that the backchannel UART doesn't work outside of CCS, but I can't seem to find that thread.

Anyway, using extra hardware works.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...