Resistance measuring circuit and electronic device provided with same
暂无分享,去创建一个
The invention relates to a resistance measuring circuit for measuring the resistance value of a sensor. The resistance measuring circuit includes a control unit for outputting a PWM signal and a sampling circuit connected between the control unit and the sensor; the PWM signal is processed by the sampling circuit and transmitted to the sensor; the sampling circuit is used for sampling the sensor with the received and processed PWM signal to generate a sampling signal and transmitting the sampling signal to the control unit; the control unit is also used for adjusting the duty cycle of the PWM signal, obtaining the real-time duty cycle of the PWM signal when the voltage value of the sampling signal reaches a threshold voltage as the duty cycle is adjusted, and calculating the resistance value of the sensor according to the real-time duty cycle and the threshold voltage. The invention also relates to an electronic device provided with the resistance measuring circuit.