2

On MCP34xx devices datasheet on page 2 it is written:

The I2 C address bits for the MCP3427 and MCP3428 are selected by using two external I 2 C address selection pins (Adr0 and Adr1). The user can configure the device to one of eight available addresses by connecting these two address selection pins to V DD, VSS or float.

Differentiating between high and low is straightforward, but how does it determine when the pins are floating?

Instant guess would be if they are neither at Vdd or Vss, but while floating they could be at any voltage including Vdd or, theoretically I suppose, Vss.

php_nub_qq
  • 880
  • 8
  • 24

1 Answers1

4

It is explained in the data sheet you linked.

It actually does not detect if the pin floats, that is a bit misleading.

It can just detect if the user has left the pin disconnected, i.e. "floating".

The chip applies half supply voltage to the address pins internally, and measures the voltage on the pins.

So depending on if pins have voltage of GND, VDD, or VDD/2, that is used to select the address.

Justme
  • 127,425
  • 3
  • 97
  • 261