| CPC G06F 15/177 (2013.01) [G01R 31/007 (2013.01)] | 6 Claims |

|
1. A method for automatically detecting if a sensor coupled to an electronic computer, comprising:
a first step e1) consisting in that the electronic computer is switched off,
a second step e2), consisting of passing to a third step e3) when the electronic computer is activated,
the third step e3), consisting of comparing a voltage generated by the sensor coupled to terminals of the electronic computer with a reference voltage, in the event that the result of the comparison is positive, determining that the sensor is a voltage sensor and then passing to a fourth step e4), and in the event that the result of the comparison is negative, determining that the sensor is a current sensor and then passing to a fifth step e5),
the fourth step e4), consisting of selecting an impedance matched to the coupling of the voltage-source sensor to the terminals of the electronic computer, by activating a first transistor, a first pin thereof coupled to first a terminal of the terminals of the electronic computer, to short circuit a first resistor coupled to the first terminal of the terminals of the electronic computer and a second pin of the transistor, respectively,
the fifth step e5), consisting of selecting an impedance matched to the coupling of the current-source sensor to the terminals of the electronic computer, by deactivating the first transistor.
|