cancel
Showing results for 
Search instead for 
Did you mean: 

Uart bulk data transfer

prsh
Associate II

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.

2 REPLIES 2
KDJEM.1
ST Employee

Hello @prsh ,

I think these FAQs can help you:

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.

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.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..