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.

TMS320F28388D: SCI RX interrupt is not working

Part Number: TMS320F28388D
Other Parts Discussed in Thread: C2000WARE

Hi Team,

Its regarding SCI communication in TMS320F28388. I want to receive multiple bytes of data using SCI interrupt method. I have tried that with "echoback" example. But "echoback" example is not providing any ISR based operation and its receiving only first byte of data even though I am sending multiple bytes of data. Then I have tried with interrupt example and that's also not working for multiple data bytes reception. Using interrupt example, its receiving number of bytes as per the FIFO depth configuration.

Can you suggest me which code I have refer to receive multiple data bytes using interrupt based method. Please suggest changes in the code to do this (UART configuration, FIFO configuration. etc.).

Regards

Dipin

  • Hi Dipin,

    The interrupt example "C:\ti\c2000\C2000Ware_4_01_00_00\driverlib\f2838x\examples\c28x\sci\sci_ex2_loopback_interrupts.c"  should work with multiple data bytes. Please run this example unmodified.

    Regards,

    Vince

  • This example using SCI_readCharArray() function to read the data. For this function to work, we need to know the number of bytes to read (data length). But in my case, we are not sure about the data length. It can be 1 to 512 bytes of data. So for reading that, we need to change the function right. Ca you please clear my doubt here.

    Regards

    Dipin

  • Hi Dipin,

    Please use a char array length of 1. This will trigger regardless of data length.

    Regards,

    Vince