2014-11-26 01:43 AM
I have seen a lost of discussions about synchronized sampling of ADCs. But I haven't seen a single example for synchronized sampling of SDADCs anywhere. I am using stm32f373 MCU where I want to sample SDADC1 and SDADC2 simultaneously. From the reference manual
http://www.st.com/web/en/resource/technical/document/reference_manual/DM00041563.pdf
pg. 233), it is clear that such an operation is possible. It would be nice if someone can share the code for how to configure them. Should I use DMA for acheiving synchronization? #sdadc #stm32f373-sdadc2014-11-26 08:30 AM
But I haven't seen a single example for synchronized sampling of SDADCs anywhere.
In odd, but related news, I don't have any 373 boards... You'd presumably use a timer to synchronize them, and DMA to handle multiple samples.2014-11-27 12:26 AM
Hi clive1,
Thanks for the reply. I found an API in the library which I think synchronizes SDADC2 to triggering of SDAC1./**
* @brief Launches SDADC2/SDADC3 regular conversion synchronously with SDADC1.
* @note This feature is available only on SDADC2 and SDADC3.
* @param SDADCx: where x can be 2 or 3 to select the SDADC peripheral.
* When enabled, a regular conversion is launched at the same moment
* that a regular conversion is launched in SDADC1.
* When disabled, do not launch a regular conversion synchronously with SDADC1.
* @retval None
*/
void SDADC_RegularSynchroSDADC1(SDADC_TypeDef* SDADCx, FunctionalState NewState)