Skip to main content
Visitor II
December 28, 2016
Question

How can start and stop ADC function without using HAL library

  • December 28, 2016
  • 2 replies
  • 1338 views
Posted on December 28, 2016 at 04:46

hi, i working on ADC of stm32f0 by using HAL library . for reading value of ADC i have to start and stop   ADC.

but the adc start function 'HAL_ADC_Start(&hadc);' and stop function'HAL_ADC_Stop(&hadc);'

take execution time. Due to this

execution time delay is generated. So overcome this delay there are any specific

register that can set/reset . so less time for execution.

i am new in stm32f0.

thank you

please help me   

    This topic has been closed for replies.

    2 replies

    Technical Moderator
    December 28, 2016
    Posted on December 28, 2016 at 11:07

    Hello

    Patil.Kalpesh

    ,

    Try to use the LL (Low Layer) drivers instead of HAL.

    This could solve your delay issue.

    Regards,

    Khouloud.

    December 28, 2016
    Posted on December 28, 2016 at 16:51

    thank you

    Graduate II
    December 28, 2016
    Posted on December 28, 2016 at 17:06

    The Reference Manual is where you'd want to look for a complete description of registers and bits, it's important to review to provide some context for what the code does, or can be done.

    December 29, 2016
    Posted on December 29, 2016 at 13:11

    thank you . my problem is solved .

    Visitor II
    April 28, 2024

    Hi kalpeshpatil

    Could you tell me how you solved this problem because I'm facing a similar issue?