This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Tiva TM4C123G UART transmission

Hello everybody, I am currently programming a Tiva C series, TM4C123GH6PM Evaluation Board from TI.

I need to send a relatively large amount of data to the virtual com of the PC. This board has an integrated virtual com feature (as soon as you plug the usb, and install the drivers, a virtual COM is generated).

I've configured the UART0 peripheral, and used the UARTprintf command, and it works properly.

But, as far as I know, this is only for strings/chars types. I need to send an array of 300 elements, made by 16-bit registers.

I've read about the UART, and the uDMA feature. I don't know if activating the DMA is necessary in this type of transfers, or if it's enough with a while loop. I've seen a lot of code-examples, and read the TI forum, but I'vve found nothing like what I need. In every example I saw, they just use the UART to echo what you sent from the PC.

Can anybody give me a hint on where to start?
I'm not asking for anybody to solve this for me, only perhaps to point me in the right direction.
Thanks a lot for taking the time to read this.
Kind regards

Martín

Parents
  • Per, thanks again. You've been most helpful.
    I'm still considering the use of "\r" or "\r\n". The thing is, I've got to pick up the data using a software. It's still to be seen which way is better for the software programmer.

    If I understand you correctly then... if I have a uint32_t data obtained by the ADC, and I use the UARTprintf() command, then the UART automatically converts the data to ASCII, and sends it in "8-bit packages"?

    Do I have to "re-ensamble" the data on the Rx side? I'm using hyperTerminal to monitor the serial port, and as far as I can tell, the data is arriving correctly.

    Regards.

    Martín

Reply
  • Per, thanks again. You've been most helpful.
    I'm still considering the use of "\r" or "\r\n". The thing is, I've got to pick up the data using a software. It's still to be seen which way is better for the software programmer.

    If I understand you correctly then... if I have a uint32_t data obtained by the ADC, and I use the UARTprintf() command, then the UART automatically converts the data to ASCII, and sends it in "8-bit packages"?

    Do I have to "re-ensamble" the data on the Rx side? I'm using hyperTerminal to monitor the serial port, and as far as I can tell, the data is arriving correctly.

    Regards.

    Martín

Children
No data