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)