Skip to main content
Visitor II
January 12, 2024
Question

Uart bulk data transfer

  • January 12, 2024
  • 2 replies
  • 1336 views

Hello

i need some help in transfering 24 bit 3 channel adc captured data via uart. SPI based ADC sampling rate is 4ksps i.e. I get dataready interrupt at every 256usec . The total bits per second would be then 4000x9x8 equals 288000.

Can anyone help me with how can i transfer this via uart? (MCU - stm32l476 at 48MHz)

Thanks in advance.

    This topic has been closed for replies.

    2 replies

    Technical Moderator
    January 25, 2024

    Hello @prsh ,

    I think these FAQs can help you:

    I hope this help you!

    Thank you.

    Kaouthar

     

    Graduate II
    January 25, 2024

    Data outflow rate would need to exceed in-flow with some margin.

    Perhaps best to use a DMA ping-pong method where you manage the HT and TC interrupts so you can light off a HAL_UART_TransmitDMA() for the IN-ACTIVE half of the ADC buffer

     

    Probably also want to think about how you might packetize this in a way that allows for synchronization and recovery at the receiving end.