This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

adc showing garbeg value

hi sir, i am trying to plot adc data register value in logic analyser , but while giving sine wave input to board stm32f103, i am unable to get sine wave in high frequency .it working fine at around 10hz .what might be the problem can u clarify?

Parents
  • Please read the posting notes and use PRE tags when posting code.

    I can barely decipher this. There is a whole mess of DMA, IRQ, and then you read the ADC1->DR with no attention to if the conversion is complete. Pick ONE method and apply it consistently.

    You need to get this out of your loop, it has no purpose being there
    SysTick_Config(SystemCoreClock / 100);

Reply
  • Please read the posting notes and use PRE tags when posting code.

    I can barely decipher this. There is a whole mess of DMA, IRQ, and then you read the ADC1->DR with no attention to if the conversion is complete. Pick ONE method and apply it consistently.

    You need to get this out of your loop, it has no purpose being there
    SysTick_Config(SystemCoreClock / 100);

Children
No data