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.

LAUNCHXL-F28379D: How do i change the sampling rate of data packets being sent via UART/sci

Part Number: LAUNCHXL-F28379D
Other Parts Discussed in Thread: C2000WARE

Hi,

I am connecting the launchpad to another microcontroller. I'm currently sending a set of values continuously via SCI. I have declared pins 64 and 65 as Tx and Rx respectively. I can currently see data on the other microcontroller without any issues. However, the microcontroller has an sd card with it. When I try to save the data from C2000 to that SD card, I'm unable to do so and the reason is the speed at which the data is being sent via C2000's SCI. 

My Baud rate is 9600. I want to know how to reduce the sampling rate of the SCI. Can anyone help me with it? Which parameters should I change or look into to change it? How can I make that sampling rate exclusive for that particular protocol(SCI here)?

Also, if anyone can help me with the queries i posted in another post of mine, it would be great!

Here is that post:

e2e.ti.com/.../2865185

Thanks!

  • Please read the TRM chapter on SCI. There is an HBAUD and LBAUD registers which effect the baud rate. You can also use a driverlib API in C2000Ware to help with this.

    Regards,
    sal
  • I looked into it and i dont understand how the baud rates are calculated:

    SciaRegs.SCIHBAUD.all = 0x0000;
    SciaRegs.SCILBAUD.all = 0x0036;


    This is for 115200. If i change the lospcp registervalue, then the sampling rate changes as well.

    SCIHBAUD:0x0000->0b0000;
    SCILHBAUD:0x0036->0b0011 0110;

    If i want it slower, I cange the lspclk's lospcp register's value to 111(lspclk/16). However, the explanation for scihbaud's register doesnt correlate to this. Can you help me in understanding this?
  • Please read the SCI chapter of the TRM. We provide detailed documentation for just such questions.

    Also, please see the driverlib APIs in C2000Ware and the SCI examples in C2000Ware to help you get started.

    Let us know if you have any specific questions.

    Hope this helps,
    sal