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.

CCS/EK-TM4C1294XL: EK-TM4C1294XL, How to get 10MHZ UART Commuincation speed

Part Number: EK-TM4C1294XL
Other Parts Discussed in Thread: TM4C1294NCPDT

Tool/software: Code Composer Studio

Hi

from the data sheet of TM4C1294NCPDT MCU, you have mentioned that a Programmable baud-rate generator allowing speeds up to 7.5 Mbps for regular speed (divide by 16) and 15 Mbps for high speed (divide by 8) 

and I want to use 10 MHZ commuination speed to read / write data from another MCU, is it possible using the UART and how to excute it in CCS.

BR

Hani

  • Assuming that you have configured the device to run at 120 MHz and you are using the system clock as the UART clock source (which is the default), just use the TivaWare function:

        UARTConfigSetExpClk(UART0_BASE, 120000000, 10000000,
                                (UART_CONFIG_WLEN_8 | UART_CONFIG_STOP_ONE |
                                        UART_CONFIG_PAR_NONE));
    

  • Hello Bob

    Thanks for your response but Usually the baudRate is mentioned as Byte per Second, so should I use 1250000 as a baudRate (=10,000,000MHZ  / 8)?

    so the new configuration will be 

    UARTConfigSetExpClk(UART0_BASE, 120000000, 1250000 ,
                                (UART_CONFIG_WLEN_8 | UART_CONFIG_STOP_ONE |
                                        UART_CONFIG_PAR_NONE));

    is this OK?

    Hani

  • Hani Ahmed said:
    Thanks for your response but Usually the baudRate is mentioned as Byte per Second,

    Baud rate is never given as bytes per second.

    Also, don't confuse baud rate with bit rate.

    Bit rate is the number of bits transmitted in a given unit time.

    Baud rate is the number of symbols transmitted in a given unit time.

    In the simple case where the symbol is a bit, the two rates are the same. This is the case of your microcontroller's UART. The wire toggles between two different voltages to indicate whether the symbol is a 0 or a 1.

    To support increased data rates, multiple data bits can be encoded into one symbol. So consider the next simplest case, where you want to send two data bits in one symbol time. This is represented by four voltage levels on the wire.