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.

TM4C129XNCZAD: How to print one integer data using UART in serial Terminal

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

Hi,

I am working on TM4C129XNZAD, I want to print one integer data or some packet of data using UART code with Serial Terminal. can you please tell me what is the function to print the data. and please share me come related code. Please anyone help me on this.

Thanks.

  • Hi,

      The API to use is UARTCharPut. See below. There re a few examples that you can reference in TivaWare library. See below paths. 

    C:\ti\TivaWare_C_Series-2.2.0.295\examples\boards\ek-tm4c1294xl\uart_echo

    C:\ti\TivaWare_C_Series-2.2.0.295\examples\peripherals\uart\uart_loopback.c

    C:\ti\TivaWare_C_Series-2.2.0.295\examples\peripherals\uart\uart_polled.c

    You can also use UARTprintf - an utility function similar to printf that can format and prints to the terminal window using UART. Take a look at the simple hello example and see how it is done. As a matter of fact, many of the TivaWare examples use UARTprintf function to print to the terminal window. 

    C:\ti\TivaWare_C_Series-2.2.0.295\examples\boards\ek-tm4c1294xl\hello