摘要 |
An electronic device includes a jack, a voltage processing unit, a measuring unit, a data transmission unit and a switching unit. The jack is adapted to receive a plug of an electronic accessory and has at least one first contact terminal and one second contact terminal. The voltage processing unit is adapted to detect whether a voltage is present at the second contact terminal when a second contact of the plug is in contact with the second contact terminal of the jack. The measuring unit is adapted to measure a parameter resulted from the contact of the first contact terminal of the jack with a first contact of the plug. The data transmission unit is adapted to transmit to or receive from the electronic accessory a data signal through the first contact terminal of the jack. The switching unit is adapted to selectively connect the first contact terminal of the jack electrically to the data transmission unit or the measuring unit according to whether the voltage is present or not.
|