PCA9541_7 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2015. All rights reserved.
Product data sheet Rev. 7.1 — 24 June 2015 10 of 42
NXP Semiconductors
PCA9541
2-to-1 I
2
C-bus master selector with interrupt logic and reset
The MYTEST and the NMYTEST bits cause the interrupt pins of the respective masters to
be activated for a ‘functional interrupt test’.
Remark: The regular way to proceed is that a master asks to take the control of the bus
by programming MYBUS and BUSON bits based on NMUYBUS and NBUSON values.
Nevertheless, the same master can also decide to give up the control of the bus and give
it to the other master. This is also done by programming the MYBUS and BUSON bits
based on NMYBUS and NBUSON values.
Remark: Any writes either to the Interrupt Enable Register or the Control Register cause
the respective register to be updated on the 9th clock cycle, that is, on the rising edge of
the acknowledge clock cycle.
Remark: The actual switch from one channel to another or the switching off of both the
channels happens on a STOP command that is sent by the master requesting the switch.
8.3.1 Register 0: Interrupt Enable (IE) register (B1:B0 = 00b)
This register allows a master to read and/or write (if needed) Mask options for its own
channel.
The Interrupt Enable register described below is identical for both the masters.
Nevertheless, there are physically 2 internal Interrupt Enable registers, one for each
upstream channel. When Master 0 reads/writes in this register, the internal Interrupt
Enable Register 0 will be accessed. When Master 1 reads/writes in this register, the
internal Interrupt Enable Register 1 will be accessed.
Table 5. Register 0 - Interrupt Enable (IE) register (B1:B0 = 00b) bit allocation
7 6 5 4 3 2 1 0
0 0 0 0 BUSLOSTMSK BUSOKMSK BUSINITMSK INTINMSK
Table 6. Register 0 - Interrupt Enable (IE) register bit description
Legend: * default value
Bit Symbol Access Value
[1]
Description
7:4 - R only 0* not used
3 BUSLOSTMSK R/W 0* An interrupt on INT
will be generated after the other master has been
disconnected.
1 An interrupt on INT
will not be generated after the other master has been
disconnected.
2 BUSOKMSK R/W 0* After connection is requested and Bus Initialization not requested
(BUSINIT = 0), an interrupt on INT
will be generated when a non-idle situation
has been detected on the downstream slave channel by the bus sensor at the
switching moment.
Remark: Channel switching is done automatically after the STOP command.
1 After connection is requested and Bus Initialization not requested
(BUSINIT = 0), an interrupt on INT
will not be generated when a non-idle
situation has been detected on the downstream slave channel by the bus
sensor at the switching moment (masked).
Remark: Channel switching is done automatically after the STOP command.
PCA9541_7 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2015. All rights reserved.
Product data sheet Rev. 7.1 — 24 June 2015 11 of 42
NXP Semiconductors
PCA9541
2-to-1 I
2
C-bus master selector with interrupt logic and reset
[1] Default values are the same for PCA9541/01 and PCA9541/03.
8.3.2 Register 1: Control Register (B1:B0 = 01b)
The Control Register described below is identical for both the masters. Nevertheless,
there are physically 2 internal Control Registers, one for each upstream channel. When
master 0 reads/writes in this register, the internal Control Register 0 will be accessed.
When master 1 reads/writes in this register, the internal Control Register 1 will be
accessed.
[1] Default values are the same for PCA9541/01 and PCA9541/03.
1 BUSINITMSK R/W 0* After connection is requested and Bus Initialization requested (BUSINIT = 1),
an interrupt on INT will be generated when the bus initialization is done.
Remark: Channel switching is done after bus initialization completed.
1 After connection is requested and Bus Initialization requested (BUSINIT = 1),
an interrupt on INT
will not be generated when the bus initialization is done
(masked).
Remark: Channel switching is done after bus initialization completed.
0 INTINMSK R/W 0* Interrupt on INT_IN will generate an interrupt on INT.
1 Interrupt on INT_IN
will not generate an interrupt on INT (masked)
Table 6. Register 0 - Interrupt Enable (IE) register bit description
…continued
Legend: * default value
Bit Symbol Access Value
[1]
Description
Table 7. Register 1 - Control Register (B1:B0 = 01b) bit allocation
7 6 5 4 3 2 1 0
NTESTON TESTON 0 BUSINIT NBUSON BUSON NMYBUS MYBUS
Table 8. Register 1 - Control Register (B1:B0 = 01b) bit description
Legend: * default value
Bit Symbol Access Value
[1]
Description
7 NTESTON R/W 0* A logic level HIGH to the INT
line of the other channel is sent (interrupt
cleared).
1 A logic level LOW to the INT
line of the other channel is sent (interrupt
generated).
6 TESTON R/W 0* A logic level HIGH to the INT
line is sent (interrupt cleared).
1 A logic level LOW to the INT
line is sent (interrupt generated).
5 - R only 0* not used
4 BUSINIT R/W 0* Bus initialization is not requested.
1 Bus initialization is requested.
3 NBUSON R only see
Table 11
NBUSON bit along with BUSON bit decides whether any upstream channel
is connected to the downstream channel or not. See Table 10
, Table 11, and
Table 12.
2BUSON R/Wsee
Table 11
BUSON bit along with the NBUSON bit decides whether any upstream
channel is connected to the downstream channel or not. See Table 10,
Table 11
, and Table 12.
1 NMYBUS R only see
Table 11
NMYBUS bit along with MYBUS bit decides which upstream channel is
connected to the downstream channel. See Table 9, Table 11, and Table 12.
0 MYBUS R/W see
Table 11
MYBUS bit along with the NMYBUS bit decides which upstream channel is
connected to the downstream channel. See Table 9, Table 11, and Table 12.
PCA9541_7 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2015. All rights reserved.
Product data sheet Rev. 7.1 — 24 June 2015 12 of 42
NXP Semiconductors
PCA9541
2-to-1 I
2
C-bus master selector with interrupt logic and reset
[1] MYBUS and NMYBUS is an exclusive-OR type function where:
Equal values (00b or 11b) means that the master reading its Control Register has control of the bus.
Different values (01b or 10b) means that the master reading its Control Register does not have control of
the bus.
[1] BUSON and NBUSON is an exclusive-OR type function where:
Equal values (00b or 11b) means that the connection between the upstream and the downstream channels
is off.
Different values (01b or 10b) means that the connection between the upstream and the downstream
channels is on.
Switch to the new channel is done when the master initiating the switch request sends a
STOP command to the PCA9541.
If either master wants to change the connection of the downstream channel, it needs to
write to its Control Register (Reg#01), and then send a STOP command because an
update of the connection to the downstream according to the values in the two internal
Control Registers happens only on a STOP command. Writing to one control register
followed by a STOP condition on the other master's channel will not cause an update to
the downstream connection.
When both masters request a switch to their own channel at the same time, the master
who last wrote to its Control Register before the PCA9541 receives a STOP command
wins the switching sequence. There is no arbitration performed.
The Auto Increment feature (AI = 1) allows to program the PCA9541 in 4 bytes:
Start
111A3A2A1A0 + 0 PCA9541 Address + Write
00010000 Select Reg#00 with AI = 1
Data Reg#00 Interrupt Enable Register data
Data Reg#01 Control Register data
Stop
Table 9. MYBUS and NMYBUS truth table
As a master reads its Control Register
NMYBUS
[1]
MYBUS
[1]
Slave channel
0 0 The master reading this combination has control of the bus.
1 0 The master reading this combination does not have control of the bus.
0 1 The master reading this combination does not have control of the bus.
1 1 The master reading this combination has control of the bus.
Table 10. BUSON and NBUSON truth table
NBUSON
[1]
BUSON
[1]
Slave channel
00off
10on
01on
11off

PCA9541D/03,112

Mfr. #:
Manufacturer:
NXP Semiconductors
Description:
IC I2C 2:1 SELECTOR 16SOIC
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union