cancel
Showing results for 
Search instead for 
Did you mean: 

SDADC2 synchronization with SDADC1

rizwin
Associate II
Posted on November 26, 2014 at 10:43

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-sdadc
2 REPLIES 2
Posted on November 26, 2014 at 17:30

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.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
rizwin
Associate II
Posted on November 27, 2014 at 09:26

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)