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.

Serial Communication Interface Issues

Other Parts Discussed in Thread: LAUNCHXL-TMS57004, HALCOGEN

So I'm using a LAUNCHXL-TMS57004 board and trying to get it to communicate with an external IMU over a serial line. To do this I'm using the SCI_RX and SCI_TX pins on the board and a TTL-RS232 converter to the IMU.

So far I've got it to the point where the Hercules seems to be transmitting perfectly, but I'm having trouble receiving. I don't see anything. The interesting part is if I disconnect the receiving wire from the Hercules and read from that line, it looks exactly like it should. This means the IMU is responding as it should. But, if I reconnect that wire to the SCI_RX pin on the board, that line immediately goes high, and just gets held high constantly.

This means to me that the Hercules is holding that pin high, and this is why it can't see any response data. However, I cannot figure out why this is happening.

I would think that the issue lies in the HALCoGen-generated code, but everything in there looks right, so perhaps we're missing something.

Could someone outline (in a fair amount of detail) every setting that should be set in the HALCoGen project (and in my code, perhaps?) to make sure this pin is not held high, and that I can receive properly on it?

The details of the SCI are: 115,200 bps baud rate, 1 start bit, 1 stop bit, no parity.

That should be all the information needed to solve this problem I believe, but I apologize if I've left anything out.

Thanks in advance.

  • Hello Jess,

    It seems that you the Rx pin is being driven high by the MCU. This means that either the pin pull is too strong for the external device to overcome or the pin is not configured correctly.

    When configuring SCI in Halcogen, there are three tabs under the SCI module tab. These should be "SCI Global", "SCI Data Format". and "SCI Port." The SCI Port tab configuration is shown below. Note that the Rx Pin should not have the DIR check box checked so that only the input buffer is enabled. You can also try to disable the pull by clicking on the PSL structure until both of the pulls are grayed out.

    Finally, if you continue to have trouble, I can have a look at the code if you can attach your zipped project to this thread.

  • The picture didn't come through. Here is the graphic referenced in the post above.