Skip to main content
Microstar
Associate III
December 19, 2018
Solved

STM32F0x2 RM file DAC trigger source makes confused

  • December 19, 2018
  • 3 replies
  • 2810 views

Can TIM7 set as trigger source?​

​​0690X000006CsRJQA0.png

0690X000006CsROQA0.png

This topic has been closed for replies.
Best answer by waclawek.jan

I would say, yes, you can, in models which have TIM7.

The smaller models' don't have TIM7 -  TIM7 is available only on STM32F07x and STM32F09x devices. The 'F051 was the first 'F0x IIRC, and the figure might have originated there.

JW

3 replies

Microstar
MicrostarAuthor
Associate III
December 19, 2018

DAC block diagram doesn't list TIM7.​

Tesla DeLorean
Guru
December 19, 2018

And how hard is it to actually try and test?

I'd also expect the library code to expose the list it can manage.

/** @defgroup DAC_trigger_selection DAC trigger selection
 * @{
 */
#if defined(STM32F051x8) || defined(STM32F058xx)
 
#define DAC_TRIGGER_NONE (0x00000000U) /*!< Conversion is automatic once the DAC1_DHRxxxx register
 has been loaded, and not by external trigger */
#define DAC_TRIGGER_T2_TRGO ((uint32_t)(DAC_CR_TSEL1_2 | DAC_CR_TEN1)) /*!< TIM2 TRGO selected as external conversion trigger for DAC channel */
#define DAC_TRIGGER_T3_TRGO ((uint32_t)(DAC_CR_TSEL1_0 | DAC_CR_TEN1)) /*!< TIM3 TRGO selected as external conversion trigger for DAC channel */
#define DAC_TRIGGER_T6_TRGO ((uint32_t)DAC_CR_TEN1) /*!< TIM6 TRGO selected as external conversion trigger for DAC channel */
#define DAC_TRIGGER_T15_TRGO ((uint32_t)(DAC_CR_TSEL1_1 | DAC_CR_TSEL1_0 | DAC_CR_TEN1)) /*!< TIM15 TRGO selected as external conversion trigger for DAC channel */
#define DAC_TRIGGER_EXT_IT9 ((uint32_t)(DAC_CR_TSEL1_2 | DAC_CR_TSEL1_1 | DAC_CR_TEN1)) /*!< EXTI Line9 event selected as external conversion trigger for DAC channel */
#define DAC_TRIGGER_SOFTWARE ((uint32_t)(DAC_CR_TSEL1 | DAC_CR_TEN1)) /*!< Conversion started by software trigger for DAC channel */
 
#endif /* STM32F051x8 || STM32F058xx */
 
#if defined(STM32F071xB) || defined(STM32F072xB) || defined(STM32F078xx) || \
 defined(STM32F091xC) || defined(STM32F098xx)
 
#define DAC_TRIGGER_NONE (0x00000000U) /*!< Conversion is automatic once the DAC1_DHRxxxx register
 has been loaded, and not by external trigger */
#define DAC_TRIGGER_T2_TRGO ((uint32_t)(DAC_CR_TSEL1_2 | DAC_CR_TEN1)) /*!< TIM2 TRGO selected as external conversion trigger for DAC channel */
#define DAC_TRIGGER_T3_TRGO ((uint32_t)(DAC_CR_TSEL1_0 | DAC_CR_TEN1)) /*!< TIM3 TRGO selected as external conversion trigger for DAC channel */
#define DAC_TRIGGER_T6_TRGO ((uint32_t)DAC_CR_TEN1) /*!< TIM6 TRGO selected as external conversion trigger for DAC channel */
#define DAC_TRIGGER_T7_TRGO ((uint32_t)(DAC_CR_TSEL1_1 | DAC_CR_TEN1)) /*!< TIM7 TRGO selected as external conversion trigger for DAC channel */
#define DAC_TRIGGER_T15_TRGO ((uint32_t)(DAC_CR_TSEL1_1 | DAC_CR_TSEL1_0 | DAC_CR_TEN1)) /*!< TIM15 TRGO selected as external conversion trigger for DAC channel */
#define DAC_TRIGGER_EXT_IT9 ((uint32_t)(DAC_CR_TSEL1_2 | DAC_CR_TSEL1_1 | DAC_CR_TEN1)) /*!< EXTI Line9 event selected as external conversion trigger for DAC channel */
#define DAC_TRIGGER_SOFTWARE ((uint32_t)(DAC_CR_TSEL1 | DAC_CR_TEN1)) /*!< Conversion started by software trigger for DAC channel */
 
#endif /* STM32F071xB || STM32F072xB || STM32F078xx || */
 /* STM32F091xC || STM32F098xx */

@Imen DAHMEN​  @Khouloud GARSI​ Inconsistent block diagram, from F051/F058 parts

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
Microstar
MicrostarAuthor
Associate III
December 20, 2018

Yes, library has shown the list.

Maybe I should help making the docs correct.

waclawek.jan
waclawek.janBest answer
Super User
December 19, 2018

I would say, yes, you can, in models which have TIM7.

The smaller models' don't have TIM7 -  TIM7 is available only on STM32F07x and STM32F09x devices. The 'F051 was the first 'F0x IIRC, and the figure might have originated there.

JW

ST Technical Moderator
December 19, 2018

Hello All,

In fact you are correct, the whole TIM7 is not present in the other series (not only the connection).

I raised this internally to the appropriate team for improvement.

Thank you for your help.

Kind Regards,

Imen

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks