Uart bulk data transfer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-01-11 05:35 PM
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.
- Labels:
-
STM32L4 Series
-
UART-USART
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-01-25 05:11 AM
Hello @prsh ,
I think these FAQs can help you:
-
ADC interleaved mode (1/2): How to improve ADC sampling rate
- ADC interleaved mode (2/2): Hands-On STM32CubeIDE project
I hope this help you!
Thank you.
Kaouthar
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-01-25 10:01 AM
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.
Up vote any posts that you find helpful, it shows what's working..