I'm using tm4c123gh6pm to create a counter to count the number of pulses of a magnetic encoder attached with a dc motor for speed PID control. The encoder pulses' width and number vary with the motor speed (applied input voltage to the motor), so the needed clock for the counter is external .. What are the options I could use to make the counter? timer ?and what are the required configurations needed?
Regards,
Islam