Patent attributes
A detection circuit includes: a control signal updating circuit configured to update a digital control signal for controlling drive of a sensor based on a clock having a predetermined frequency; a digital to analog converter configured to convert the digital control signal output from the control signal updating circuit to an analog control signal for driving the sensor; a comparator configured to compare a voltage level of a detection signal from the sensor which changes depending on the analog control signal with a reference voltage having a predetermined voltage level to output a comparison result signal; and a counter configured to count to measure a time period depending on the detection signal based on the comparison result signal output from the comparator and a clock having a predetermined frequency.