摘要 |
PROBLEM TO BE SOLVED: To provide a motor control device in which a calculation load to determine a rotor position is small.SOLUTION: A microcomputer calculates the time between edges 96G and 96H of a sensor input as an electric angle 180° time Tc for which the rotor rotates by 180° in electric angle. The sensor input is a rectangular signal obtained by digitalization of a sinusoidal signal based on variation of magnetic field due to the rotation of the rotor of the motor. The microcomputer divides the calculated electric angle 180° time Tc by a predetermined number of a power of 2 to obtain a time to calculate the thus-obtained time as a unit electric angle time Tu for which the rotor rotates at a unit electric angle which is beforehand obtained by dividing the electric angle 180° by the predetermined number, and starts to count every unit electric angle time Tu from the time when a new edge occurs in the sensor input. The angle obtained by multiplying the count value by the unit electric angle is set as the rotation position of the rotor based on the time at which the new edge occurs in the sensor input. |