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.

TMS320F28069F: Save Data from Serial Port to Buffer or Array

Part Number: TMS320F28069F

Hello,

I have 100 data to read from SCI receiver of TMS320F28069F. Can I write the code below to save the data to buffer or array?

uint16 PositionMM[100];

uint16 num = 0;

PositionMM = SciaRegs.SCIRXBUF.all;

if(num<=100)

{

PositionML[num] = PositionMM;

num++;

}

Thanks,

Hao

  • Hao,

    Yes, you can read the SCIRXBUF register and copy the results into a buffer or array.  This typically would be done in an interrupt service routine (ISR).  You could also use the SCI 4-level deep FIFOs to batch the results before copying them.

    I hope this helps.  If this answers your question, please click the green "Verified Answer" button.  Thanks.

    - Ken

  • Hao,

    It's been a while since I have heard from you last. Therefore, I am assuming that my last reply resolved your issue and I will close this thread. If this isn’t the case, please reject this resolution or reply to this thread. If this thread locks, please make a new thread describing the current status of your issue. Thank you.

    - Ken