| CPC G05B 19/4155 (2013.01) [G05B 2219/41329 (2013.01)] | 20 Claims |

|
1. A state machine motor controller interface, comprising:
an edge detector having a plurality of first inputs and a plurality of first outputs,
wherein each of the plurality of first inputs is adapted for coupling to a respective one of a plurality of position sensors whereby each of the plurality of position sensors indicates a different motor rotor angle range,
when a first input receives a sensor output from an associated position sensor, a state thereof is determined based upon a sensor output logic value, wherein each state is defined by a logic value stored in a register and compared with the sensor output logic value, and
wherein one of the plurality of first outputs provides the state and another one of the plurality of first outputs provides a state change pulse output;
a sequencer comprising
a state input coupled to the state output from the edge detector,
a state change pulse input coupled to the state change pulse output from the edge detector,
a valid state change event/interrupt output, and
a plurality of definition registers for defining expected states,
comparison logic for validating the state received from the edge detector with an associated one of the expected states,
a next expected state is updated if the received state is valid before an overflow output is received from a counter and a valid state change event/interrupt is generated, and if the received state is not valid, then until a next counter overflow condition the next expected state is not updated and a fault interrupt is generated;
the counter having a clock input coupled to a clock and a count value output,
wherein the counter increments a count value for a clock pulse received until a valid state pulse is received from the sequencer,
whereby the count value will be stored in a count register of the counter and the count value of the counter will be reset to zero, and
if the count value exceeds a maximum count then the overflow output will be generated.
|