Skip to main content
Visitor II
July 2, 2024
Question

break implementation - ADC on stm32c031c6 using CubeMX

  • July 2, 2024
  • 3 replies
  • 2334 views

please provide me the information about how to implement break for adc input, give me one example for break implementation in stm32c031c6 with mxcube configuration 

    This topic has been closed for replies.

    3 replies

    Super User
    July 2, 2024

    @dee1 wrote:

     break for adc input 


    What do you mean by that ?

    dee1Author
    Visitor II
    July 2, 2024

    how to give break input,or how to inactive/disable pwm output by using break function

     

    dee1Author
    Visitor II
    July 2, 2024

    i used complementary pwm channels of tim1,break implementation for those channels,how to configure in mxcube and HAL for that.

    Super User
    July 2, 2024

    In the 'C0 family, there's no hardware to generate Break in TIM1 from ADC input.

    JW

    dee1Author
    Visitor II
    July 3, 2024

    but for tim1 pwm generation channel break is there,i want for that how to use break

     

    Super User
    July 4, 2024

    I don't use the 'C0 family and I don't use CubeMX/Cube, but basically, you set up TIM1_BKIN pin (e.g. PA6) to the appropriate AF, and in TIM1_BDTR enable Break by setting the BKE bit. Optionally you can also change the polarity and add filtering, set up the output pins behaviour etc. in other bits of TIM1_BDTR - see description of that register in RM, and read functional description in Using the break function in the TIM chapter in RM.

    JW