The embodiment of the invention provides resistance value or
capacitance value measuring method and device. The resistance value measuring device comprises an
integrated circuit (IC) and a charging and discharging circuit, wherein the IC comprises a
timer and an I / O (input / output) port with a break detection function, and the IC is used for acquiring the timing result of the
timer and generating the resistance value of a
resistor to be measured according to the timing result; the charging and discharging circuit is formed by connecting the
resistor to be measured and a
capacitor in series, one end of the charging and discharging circuit is coupled with the I / O port of the IC, and the other end of the charging and discharging circuit is grounded; the IC charges the
capacitor through the I / O port and the
resistor to be measured, and when the
capacitor is in a charging saturation state, the IC controls the
timer to begin timing, triggers the capacitor for executing the discharging process and starts the break detection function of the I / O port; and when the I / O port detects that the
voltage value of the capacitor reaches the threshold value of break of trigger
voltage in the discharging process of the capacitor, the I / O port is used for sending a break
signal to the IC to trigger the IC for controlling the timer to stop timing. The device realizes the measurement of the resistance value with lowest hardware cost.