This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

EK-TM4C123GXL: ADC doesn't work properly

Part Number: EK-TM4C123GXL

I am trying to sample an analog audio signal at 2kHz sampling rate using SysTick (to lower the rate). At the same time, I am driving a step motor using GPTM (Timer0A) at a rotational speed according to the frequency calculated and measured by AIN0. GPTM works fine and motor drives without any problem but calculated frequency is always zero. Interestingly, when I disable the subroutine that configures the GPTM, frequency calculator works fine. Used pins are given below. Thank you for your interest.

- Yavuz

 

AIN0 -> PE3 (reading)

Step Motor -> PB4 PE5 PB6 PB7 (output)

Power -> 3.3V, Vbus, GND (mic, motor)

  • I solved the problem. The board has two GND pins and I was using the same GND pin for the MIC module and step motor. Separating the GND pins solved my problem, now the board samples the data correctly. Still, I am wondering about the issue, what was the reason for that?

    -Yavuz