Skip to contentSkip to conversation

TI TMP421 chip address

lm-sensors Andre Prendel 3 participants 5 messages May 27, 2009

lore
Share & tools
lore
#0 lore raw

Hi Hans,

looking in the datasheet of the TMP421 sensor chip

http://focus.ti.com/docs/prod/folders/print/tmp421.html,

I saw the following addresses.

TMP421 100 11xx
TMP422 100 11xx
TMP423A 100 1100
TMP423B 100 1101

But the preliminary driver of your students uses 0x2a.

/* Addresses to scan */
static unsigned short normal_i2c[] = { 0x2a, I2C_CLIENT_END };

0x2a = 010 1010b, right?

Do I misunderstand something?

And what means the xx in the address of TMP421/422?

Thanks in advance,
Andre

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

#1 lore raw
Quoted 13 lines · Andre Prendel

Hi Hans,

looking in the datasheet of the TMP421 sensor chip

http://focus.ti.com/docs/prod/folders/print/tmp421.html,

I saw the following addresses.

TMP421 100 11xx
TMP422 100 11xx
TMP423A 100 1100
TMP423B 100 1101

Quoted 7 lines

But the preliminary driver of your students uses 0x2a.

  /* Addresses to scan */
  static unsigned short normal_i2c[] = { 0x2a, I2C_CLIENT_END };

0x2a = 010 1010b, right?

Right.

Quoted 1 line

Do I misunderstand something?

No, what my students did in there was wrong, they only put the address in there to which the sample I gave them is wired

The addresses to scan should be:
static unsigned short normal_i2c[] = { 0x1c, 0x1d, 0x1e, 0x1f,
0x2a, 0x4c, 0x4d, 0x4e, 0x4f, I2C_CLIENT_END };

But we better run those past Jean, to see if any of those are dangerous to scan by default, Jean ?

Quoted 1 line

And what means the xx in the address of TMP421/422?

This means that the address is configurable by hooking up the IC in different ways, see table 9 and 10 at page 17 of the data sheet.

Regards,

Hans

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

#2 lore raw
In reply to Andre Prendel
Quoted 35 lines · Hans de Goede
Quoted 13 lines · Andre Prendel

Hi Hans,

looking in the datasheet of the TMP421 sensor chip

http://focus.ti.com/docs/prod/folders/print/tmp421.html,

I saw the following addresses.

TMP421 100 11xx
TMP422 100 11xx
TMP423A 100 1100
TMP423B 100 1101

Quoted 7 lines

But the preliminary driver of your students uses 0x2a.

  /* Addresses to scan */
  static unsigned short normal_i2c[] = { 0x2a, I2C_CLIENT_END };

0x2a = 010 1010b, right?

Right.

Quoted 1 line

Do I misunderstand something?

No, what my students did in there was wrong, they only put the address in there to which the sample I gave them is wired

The addresses to scan should be:
static unsigned short normal_i2c[] = { 0x1c, 0x1d, 0x1e, 0x1f,
0x2a, 0x4c, 0x4d, 0x4e, 0x4f, I2C_CLIENT_END };

Quoted 8 lines

But we better run those past Jean, to see if any of those are dangerous to scan by default, Jean ?

Quoted 1 line

And what means the xx in the address of TMP421/422?

This means that the address is configurable by hooking up the IC in different ways, see table 9 and 10 at page 17 of the data sheet.

Thanks, I didn't see this so far. Now I understand :)

Quoted 4 lines

Regards,

Hans

Andre

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

#3 lore raw
In reply to Andre Prendel
Quoted 31 lines · Hans de Goede
Quoted 13 lines · Andre Prendel

Hi Hans,

looking in the datasheet of the TMP421 sensor chip

http://focus.ti.com/docs/prod/folders/print/tmp421.html,

I saw the following addresses.

TMP421 100 11xx
TMP422 100 11xx
TMP423A 100 1100
TMP423B 100 1101

Quoted 7 lines

But the preliminary driver of your students uses 0x2a.

  /* Addresses to scan */
  static unsigned short normal_i2c[] = { 0x2a, I2C_CLIENT_END };

0x2a = 010 1010b, right?

Right.

Quoted 1 line

Do I misunderstand something?

No, what my students did in there was wrong, they only put the address in there to which the sample I gave them is wired

Quoted 6 lines

The addresses to scan should be:
static unsigned short normal_i2c[] = { 0x1c, 0x1d, 0x1e, 0x1f,
0x2a, 0x4c, 0x4d, 0x4e, 0x4f, I2C_CLIENT_END };

But we better run those past Jean, to see if any of those are dangerous to scan by default, Jean ?

0x2a and 0x4c-0x4f are very popular addresses for hardware monitoring chips and can be scanned. 0x1c-0x1f is something new, sensors-detect doesn't even scan 0x1c-0x1e at the moment, only 0x1f is scanned (for the Maxim MAX6650/MAX6651.)

Where do the 0x1c-0x1f and 0x2a addresses come from? The possible addresses listed above by Andre were only 0x4c-0x4f.

On which systems are these chips found? If only on embedded systems and not on PC, the safe option would be to only scan 0x2a and 0x4c-0x4f. On embedded systems, probing won't be used anyway, so devices can be instantiated at any address, regardless of what the driver lists.

Please add detection of these chips to sensors-detect, for addresses 0x2a and 0x4c-0x4f, and add them to the wiki.

Signature · 6 lines
Jean Delvare

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
#4 lore raw
In reply to Andre Prendel
Quoted 36 lines · Jean Delvare
Quoted 28 lines · Hans de Goede
Quoted 13 lines · Andre Prendel

Hi Hans,

looking in the datasheet of the TMP421 sensor chip

http://focus.ti.com/docs/prod/folders/print/tmp421.html,

I saw the following addresses.

TMP421 100 11xx
TMP422 100 11xx
TMP423A 100 1100
TMP423B 100 1101

Quoted 7 lines

But the preliminary driver of your students uses 0x2a.

   /* Addresses to scan */
   static unsigned short normal_i2c[] = { 0x2a, I2C_CLIENT_END };

0x2a = 010 1010b, right?

Right.

Quoted 1 line

Do I misunderstand something?

No, what my students did in there was wrong, they only put the address in there to which the sample I gave them is wired

Quoted 6 lines

The addresses to scan should be:
static unsigned short normal_i2c[] = { 0x1c, 0x1d, 0x1e, 0x1f,

    0x2a, 0x4c, 0x4d, 0x4e, 0x4f, I2C_CLIENT_END };

But we better run those past Jean, to see if any of those are dangerous to scan by default, Jean ?

Quoted 6 lines

0x2a and 0x4c-0x4f are very popular addresses for hardware monitoring chips and can be scanned. 0x1c-0x1f is something new, sensors-detect doesn't even scan 0x1c-0x1e at the moment, only 0x1f is scanned (for the Maxim MAX6650/MAX6651.)

Where do the 0x1c-0x1f and 0x2a addresses come from?

From the data sheet, the tmp421 has 2 pins which can be 0, floating or 1
and by that combination it can be made to listen on a number of addresses including 0x1c-0x1f and 0x2a, the sample I was using (I'm mailing it to Andre) has both pins floating resulting in it listening on 0x2a, I can confirm atleast this part of the table from the datasheet checks out.

Quoted 4 lines

The possible
addresses listed above by Andre were only 0x4c-0x4f.

On which systems are these chips found?

Currently, none that I know of, I ordered samples for the tmp401/tmp411 (which was for an embedded system) and ordered those for the 421 too while I was at it.

Quoted 2 lines

If only on embedded systems and
not on PC, the safe option would be to only scan 0x2a and 0x4c-0x4f.

Ok, then lets do that.

Quoted 4 lines

On
embedded systems, probing won't be used anyway, so devices can be instantiated at any address, regardless of what the driver lists.

Ack.

Regards,

Hans

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors