A device for determining impedance at a data pin of a communication interface. In one embodiment, the device includes a current source configured to selectively inject a test current to the data pin. The device also includes a sensing circuit for sensing a first test voltage corresponding to a voltage at the data pin without the test current injected, and a second test voltage corresponding to another voltage at the data pin with the test current injected. The sensing circuit determines the impedance at the data pin based on the first test voltage and the second test voltage.