Skip to main content
Associate II
Jul 2, 2024 10:08 AM UTC
Question

break implementation - ADC on stm32c031c6 using CubeMX

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.

    9 replies

    Andrew Neil
    Super User
    Jul 2, 2024 10:15 AM UTC

    @dee1 wrote:

     break for adc input 


    What do you mean by that ?

    A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
    dee1Author
    Associate II
    Jul 2, 2024 10:34 AM UTC

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

     

    dee1Author
    Associate II
    Jul 2, 2024 10:37 AM UTC

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

    waclawek.jan
    Super User
    Jul 2, 2024 12:03 PM UTC

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

    JW

    dee1Author
    Associate II
    Jul 3, 2024 6:15 AM UTC

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

     

    waclawek.jan
    Super User
    Jul 4, 2024 10:40 AM UTC

    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