Rotation detection device, rotation detection method, and rotation detection program
A rotation detection device includes: a comparator configured to generate a digital signal that indicates a magnitude relationship between a voltage, which is output from a potentiometer in accordance with an amount of rotation of a rotating body, and a threshold voltage; and a controller configured to detect a number of complete turns of the rotating body based on transition edges of the digital signal. By this means, the number of complete turns of the rotating body can be detected through a simple process, so that the size of the rotation detection program can be reduced.
1 . A rotation detection device comprising:
a comparator configured to generate a digital signal that indicates a magnitude relationship between a voltage, which is output from a potentiometer in accordance with an amount of rotation of a rotating body, and a threshold voltage;
an analog-to-digital converter configured to convert the voltage output from the potentiometer into a digital value;
a controller configured to detect a number of complete turns of the rotating body based on transition edges of the digital signal, and, in conjunction therewith, detects the amount of rotation of the rotating body based on the digital value output from the analog-to-digital converter; and
a semiconductor chip including a first terminal and a second terminal that are configured to receive the voltage output from the potentiometer, the analog-to-digital converter, the comparator, and the controller,
wherein the analog-to-digital converter receives, from the first terminal, the voltage output from the potentiometer, and
wherein the comparator receives, from the second terminal, the voltage output from the potentiometer.