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.

TMS320F28075: Serial Communication

Part Number: TMS320F28075


Hi teams:

I'm currently working on the Serial Communication for the device. I'm trying to use the sample codes for "Example_2807xSci_Echoback.c" as a basis. I've manage to send messages but the sample code seemed to be looping within this line:

while(SciaRegs.SCIFFRX.bit.RXFFST == 0) { }

I've tried inputting the characters from hyperterminal but the code doesn't seem to progress beyond this. I've tested that the sample code works without this line but obviously that is not the ideal (should wait for user input before processing the RX buffer).
Any comments on possible cause of the error? Also may I check if can use RXFFST to configured/specify the input data length(eg only input stream of x words will be accepted)

Best regards

K.K

  • hi Kk ,

    Which board are you running this example on ?

    Are the baudrate settings correctly done on the hyperterminal ?

    How are you connecting your PC to SCI module in DSP? 

    Are u sending only 1 char and then waiting for echo ? or multiple back to back ?

    Can you try changing the test to   : if(SciaRegs.SCIFFRX.bit.RXFFST  > 0) only then receive data ? 

    You cant use RXFFST to specify as its only to read status , you can use SciaRegs.SCIFFCT or SciaRegs.SCIFFRX.bit.RXFFIL to configure FIFOs and input lengths.

    Try looking at the sci_loopback_interrupts example it configures sending data stream.

    Regards.