Hi,
we will be designing a speed sensing algorithm for our motor control that uses zero crossings generated by a sine wave from a Permanent Magnet Alternator (PMA). Because of the need to detect speed from zero to near 12000 RPM, we need to use two different methods to estimate speed.
My question: if we use an NHET pin in “capture” mode to determine the time between zero-crossings, can we also read the state of the pin at low speed, where we count the number of zero crossings in a fixed time period?
In other words, we need to be able to read this pin as a general purpose input at the same time it is operating as a sort of QEP encoder. (So reading the state of the pin asynchronously would be possible, and would not affect the timer result).
Can this be done?