Abstract:
A method for monitoring an electric motor employing a pulse-type rotational position sensor includes monitoring a signal output from the pulse-type rotational position sensor and a reference signal associated with a control signal for the electric motor. A position of a rotor of the electric motor coincident with the reference signal is determined based upon a nominal rotor position, a nominal rotational speed of the rotor and a time between the reference signal and a falling edge of the signal output from the pulse-type rotational position sensor. The electric motor is controlled based upon the position of the rotor.
Abstract:
A method of determining processor utilization includes: counting, via a first counter on a processor, a number of elapsed clock cycles while code is being executed; counting, via a second counter on a processor, a total number of free-running clock cycles; and dividing the number of clock cycles where code is being executed by the total number of free-running clock cycles to determine a CPU utilization.