Hi,
I am working with the CC2530 on an application where I need to control the rotation of a motor. The motor has a hall sensor and as it rotates the hall sensor emits digital pulses from 90HZ to 180HZ. The hall sensor output is connected to one of the I/O ports of the CC2530. I need to count the pulses to figure out the rotation and movement of the motor. What is the best way to accomplish this in your experience? By using one of the hardware timers in input capture mode? Or by setting the input as a key and count each pulse with a callback function or an interrupt? Any suggestions are highly welcome!
Thanks in advance for your comments.
Federico