摘要 |
Disclosed embodiments include methods of controlling an encoder principle axis speed synchronization for controlling a motor, which may be executed by a microprocessor. In some embodiments, the microprocessor includes latching a count value to a specific memory at an input time of an encoder pulse signal when a control period is commenced and the encoder pulse signal is received, generating an output pulse using the count value latched to the specific memory, and mapping the output pulse to an output during a next control period. In some embodiments, an interval between encoder pulse signals is calculated using a count value at an input time of the encoder pulse signal and an encoder input speed is measured according to the interval therebetween so that an encoder speed may be exactly measured. |