2024-11-27 04:14 PM
Hi, I am trying to stream ADC data to ethernet RJ45 port along with synchronized timestamps. Currently I am trying to figure out the following problems:
1. How can we synchronize ADC data with timestamps? The STM32 tutorial uses DMA, which I assume directly put the ADC samples to the memory but guarantees no synchronization with timestamps.
2. How can we stream the data out through ethernet port? The H7 boards datasheet says the RJ45 port is connected with the MCU using "RMII interface" - however, I wasn't able to find anything related in the STM32 tutorial. Are there any existing libraries?
I am using an STM32H723ZG evaluation board. Thanks!
2024-11-27 08:05 PM
To synchronize ADC data with timestamps, you can use a timer interrupt alongside DMA. The timer can generate periodic interrupts that capture timestamps, and you can store both the ADC data and the timestamp in memory at the same time. This allows you to associate each ADC sample with a precise timestamp.