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.

MCU-PLUS-SDK-AM263X: High Baud Rate Configuration for UART

Part Number: MCU-PLUS-SDK-AM263X

Dear Team, 

I hope this message finds you well.

I'm setting 250k and 625k in the UART baud rate, I would like to know more about my following questions:

1.- Is this baud rates 250k and 625k are supported in the AMX2631?

2.- Where I can find a baud rate table to see the possible percentage of error related to these speeds configured? or see the crystal speed/clock recommended for the speeds of interest.

3. According to the Table 4-3045 in the document spruj42d (AM263x Register Addendum) the higher speed identify is 115200 bauds, in my case I need to use a higher speed, could you kindly provide a code example or technical guidance for use speeds of 250k or 625k in the UART?

Thanks for your comments and waiting for you.

Jesus Palomo.

  • Hi Jesus Palomo,

    1.- Is this baud rates 250k and 625k are supported in the AMX2631?
    2.- Where I can find a baud rate table to see the possible percentage of error related to these speeds configured? or see the crystal speed/clock recommended for the speeds of interest.

    You can find the supported baud rates and the error table in the TRM of AM263x (www.ti.com/.../spruj17f.pdf) section 13.1.4.4.8.1.2 Table 13-96. UART Baud Rate Settings (48-MHz Clock)

    You can try Using Baud rates 250k and 625k with the out of box applications. The syscfg auto code generator will show the actual achievable baud rate and error percentage.

    3. According to the Table 4-3045 in the document spruj42d (AM263x Register Addendum) the higher speed identify is 115200 bauds, in my case I need to use a higher speed, could you kindly provide a code example or technical guidance for use speeds of 250k or 625k in the UART?

    In the syscfg file of your application, you can go to UART, then type in the baud rate as "250000" and operation mode as 13x, it will give you the error rate and actual possible baud rate

    Then rebuild your application. Then load and run the example. I have tried the above baud rates on AM263x UART ECHO CALLBACK example. In CCS COM PORT for UART, set the baud rate as 250k and 625k and then test the example as mentioned here: software-dl.ti.com/.../EXAMPLES_DRIVERS_UART_ECHO_CALLBACK.html

    Regards,
    Shaunak

  • So, looks at 48Mhz the possible percentage of error is 2% for 250k and 625k.

    Do you know what Clock Frequency is recommended for 250k and 625k for possible error of 0%? 

    any recommendation or technical input will be appreciated. 

    Thx! : )

  • Hi Jesus Palomo,

    I tried 250k with operation mode = 16x and clock frequency as 192 Mhz, according to the syscfg tool there should be no error for 250k baud rate.

    But note that there was 1% error for 625k baud rate as shown in syscfg. For 625k baud rate:

    • At 48 Mhz & 13x, the error is expected to be ~2%
    • At 96 Mhz & 13x, the error is expected to be ~2%
    • At 96 Mhz & 16x, the error is expected to be ~4%
    • At 192Mhz & 16x, the error is expected to be ~1%
    • At 192Mhz & 13x, the error is expected to be ~2%

    At both the baud rates, the out of box examples worked. I would recommend trying out the example with the desired baud rates.

    Best Regards,
    Shaunak