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.

how to send data from uart0 and receive it on uart1

Other Parts Discussed in Thread: EK-TM4C123GXL

i am looking for how to send data from uart0 and receive it on uart1  or vice-versa 

and how to call interrupt when data is received on uart1 so that mcu will only procees the data receive from uart1

atleast suggest how t call interrupt on receiving data..

please suggest with a code example or any usefull link to it..

  • Are you aware that your opening, "Hey" is not especially well received by your (potential) helpers. It comes across as a "shout" and/or as desperate or needy - neither to your advantage.

    You request both "suggestion" AND complete code example - where have you looked - what efforts have you made?   And - how is "complete" judged/determined?
     
    Vendor's site is rich with (most likely) all that you seek - yet does require (some) effort - your part. (beyond a yelled, "HEY!")

  • Hi,

    MANISH RAJPUT said:
    atleast suggest how t call interrupt on receiving data..

    You have a nice example "how to call interrupt" in your Tiva/examples/boards/ek-tm4c123gxl/uart_echo/uart_echo.c. Use this as example first, compile/run/test - see how interrupts works (no specifically need to call it). When all things are clear, you may try to start another project based on this, (import it, not copy/paste) and add a similar interrupt for UART1. 

    Also you need to decide if both UARTs works at the same speed, either you need to process the received data from one UART before sending to the other...

    Petrei

  • sorry CB1 one for that hey