Skip to main content
Graduate II
June 7, 2024
Question

adc channel connectivity

  • June 7, 2024
  • 2 replies
  • 2833 views

I am using ADC channel with DMA to get linear hall sensor data ,its giving bur after some time adc pin not working.

but same code working with another board, what can be problem.

    This topic has been closed for replies.

    2 replies

    Technical Moderator
    June 7, 2024

    Hello,

    First, this statement is not clear :"its giving bur after some time adc pin not working."

    Second please provide more details: what do you mean by is not working? wrong conversion value? giving always 0? what is the MCU part number? is it an ST board or custom board?

    PiyooshAuthor
    Graduate II
    June 13, 2024

    @mƎALLEm wrote:

    Hello,

    First, this statement is not clear :"its giving bur after some time adc pin not working."

    Second please provide more details: what do you mean by is not working? wrong conversion value? giving always 0? what is the MCU part number? is it an ST board or custom board?


    I am using STM32F103C8T6 chip on my pcb,Initially  ADC value was increasing and decreasing between their resolution value (0-4095) according to input but after multiple uses it`s giving 0 or 4095 on same configuration.The input is a linear hall sensor which is directly connected to ADC1 and also i am using DMA function with pin. One more thing that when i am using these pins like simple GPIO_output its working properly.

    Technical Moderator
    June 13, 2024

    but after multiple uses it`s giving 0 or 4095 on same configuration. The input is a linear hall sensor which is directly connected to ADC1 and also i am using DMA function with pin.

    Did you measure the voltage on the sensor output? Are you sure it's an issue on the MCU side and not on the sensor side?

    Graduate
    June 7, 2024

    If the board stopped measuring on the ADC and does not measure even after power ON-OFF, while another does, the IO pin of the MCU has probably been destroyed. The cause may be an ESD discharge or exceeding the maximum allowed voltage on the pin.

    PiyooshAuthor
    Graduate II
    June 13, 2024

    @ONadr.1 wrote:

    If the board stopped measuring on the ADC and does not measure even after power ON-OFF, while another does, the IO pin of the MCU has probably been destroyed. The cause may be an ESD discharge or exceeding the maximum allowed voltage on the pin.


    okay, is there any chance to destroyed only adc functionally due to high signal variation? if yes which part of adc will destroy?

    Graduate
    June 13, 2024

    For example analog multiplexer, ADC input buffer.

    Have you tried the pin functionality as a digital input? Have you tried the ADC on a different pin? Have you tried the ADC to measure the internal reference voltage? These tests might specify what the problem is, but if it is found, the MCU will be partially inoperable anyway.