Binary and hexadecimal address mismatch for PCAL6524

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Binary and hexadecimal address mismatch for PCAL6524

Jump to solution
2,064 Views
sbah
Contributor I

Hi,

I am running on an issue on the I2C bus addresses for the PCAL6524. The address in binary does not match the address in hexadecimal. i.e: 0100000 should give us 0x20 but it is saying 0x40 in the chip datasheet (p7/70). Can you guys clarify on what is going on?

pcal6524.PNG

0 Kudos
Reply
1 Solution
2,051 Views
TomasVaverka
NXP TechSupport
NXP TechSupport

Hi,

The address in hexadecimal is actually the full 8-bit write slave address (R/W bit = 0).

PCAL6524 has fix value for A6 – A2 as “01000”, and programmable A1-A0 settings (depending on what is connected to ADDR pin).

If for example ADDR = VSS, then PCAL6524 uses 0x44 (“0100010” + “0”) for I2C write slave address, and 0x45 (“0100010” + “1”) for I2C read slave address.

If for example ADDR = VDD, then PCAL6524 uses 0x46 (“0100011” + “0”) for I2C write slave address, and 0x47 (“0100011” + “1”) for I2C read slave address.

BRs, Tomas

View solution in original post

0 Kudos
Reply
3 Replies
2,052 Views
TomasVaverka
NXP TechSupport
NXP TechSupport

Hi,

The address in hexadecimal is actually the full 8-bit write slave address (R/W bit = 0).

PCAL6524 has fix value for A6 – A2 as “01000”, and programmable A1-A0 settings (depending on what is connected to ADDR pin).

If for example ADDR = VSS, then PCAL6524 uses 0x44 (“0100010” + “0”) for I2C write slave address, and 0x45 (“0100010” + “1”) for I2C read slave address.

If for example ADDR = VDD, then PCAL6524 uses 0x46 (“0100011” + “0”) for I2C write slave address, and 0x47 (“0100011” + “1”) for I2C read slave address.

BRs, Tomas

0 Kudos
Reply
2,033 Views
sbah
Contributor I
Hi Thomas, thank you for the clarification.

However, there is only one ADDR pin. It does give A1 and A0 bits different values depending on what is connected to it: SCL, SDA, GND and VS.
0 Kudos
Reply
2,005 Views
TomasVaverka
NXP TechSupport
NXP TechSupport

Hi,

Yes, A1 and A0 are not HW address pins, which is quite common in other devices, but 2 bits whose value depends on the connection of the ADDR pin as shown in Table 4.

BR, Tomas

0 Kudos
Reply