PCA9541A All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2014. All rights reserved.
Product data sheet Rev. 5 — 24 April 2014 7 of 45
NXP Semiconductors
PCA9541A
2-to-1 I
2
C-bus master selector with interrupt logic and reset
The last bit of the slave address defines the operation to be performed. When set to
logic 1 a read is selected, while logic 0 selects a write operation.
Remark: Reserved I
2
C-bus addresses must be used with caution since they can interfere
with:
‘reserved for future use’ I
2
C-bus addresses (1111 1XX)
slave devices that use the 10-bit addressing scheme (1111 0XX)
7.2 Command Code
Following the successful acknowledgement of the slave address, the bus master sends a
byte to the PCA9541A, which is stored in the Command Code register.
The 2 LSBs are used as a pointer to determine which register is accessed.
If the auto-increment flag is set (AI = 1), the two least significant bits of the Command
Code are automatically incremented after a byte has been read or written. This allows the
user to program the registers sequentially or to read them sequentially.
During a read operation, the contents of these bits will roll over to 00b after the last
allowed register is accessed (10b).
During a write operation, the PCA9541A acknowledges bytes sent to the IE and
CONTROL registers, but does not acknowledge a byte sent to the Interrupt Status
Register since it is a read-only register. The 2 LSBs of the Command Code do not roll
over to 00b but stay at 10b.
Only the 2 least significant bits are affected by the AI flag.
Unused bits must be programmed with zeros. Any command code (write operation)
different from ‘000AI 0000’, ‘000AI 0001’, and ‘000AI 0010’ are not acknowledged. At
power-up, this register defaults to all zeros.
Each system master controls its own set of registers, however they can also read specific
bits from the other system master.
Fig 6. Command Code
Table 4. Command Code register
B1 B0 Register name Type Register function
0 0 IE R/W interrupt enable
0 1 CONTROL R/W control switch
1 0 ISTAT R only interrupt status
1 1 not allowed
002aab391
0 0 0 AI 0 0 B1 B0
register number
auto-increment
PCA9541A All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2014. All rights reserved.
Product data sheet Rev. 5 — 24 April 2014 8 of 45
NXP Semiconductors
PCA9541A
2-to-1 I
2
C-bus master selector with interrupt logic and reset
7.3 Interrupt Enable and Control registers description
When a master seeks control of the bus by connecting its I
2
C-bus channel to the
PCA9541A downstream channel, it has to write to the CONTROL register (Reg#01).
Bits MYBUS and BUSON allow the master to take control of the bus.
The MYBUS and the NMYBUS bits determine which master has control of the bus.
Table 9
explains which master gets control of the bus and how. There is no arbitration.
Any master can take control of the bus when it wants regardless of whether the other
master is using it or not.
The BUSON and the NBUSON bits determine whether the upstream bus is connected or
disconnected to/from the downstream bus. Table 10
explains when the upstream bus is
connected or disconnected.
Internally, the state machine does the following:
If the combination of the BUSON and the NBUSON bits causes the upstream to be
disconnected from the downstream bus, then that is done. So in this case, the values
of the MYBUS and the NMYBUS do not matter.
If a master was connected to the downstream bus prior to the disconnect, then an
interrupt is sent on the respective interrupt output in an attempt to let that master know
that it is no longer connected to the downstream bus. This is indicated by setting the
BUSLOST bit in the Interrupt Status Register.
If the combination of the BUSON and the NBUSON bits causes a master to be
connected to the downstream bus and if there is no change in the BUSON bits since
when the disconnect took effect, then the master requesting the bus is connected to
the downstream bus. If it requests a bus initialization sequence, then it is performed.
If there is no change in the combination of the BUSON and the NBUSON bits and a
new master wants the bus, then the downstream bus is disconnected from the old
master that was using it and the new master gets control of it. Again, the bus
initialization if requested is done. The appropriate interrupt signals are generated.
After a master has sent the bus control request:
1. The previous master is disconnected from the I
2
C-bus. An interrupt to the previous
master is sent through its INT
line to let it know that it lost control of the bus.
BUSLOST bit in the Interrupt Status Register is set. This interrupt can be masked by
setting the BUSLOSTMSK bit to logic 1.
Fig 7. Internal register map
PCA9541A All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2014. All rights reserved.
Product data sheet Rev. 5 — 24 April 2014 9 of 45
NXP Semiconductors
PCA9541A
2-to-1 I
2
C-bus master selector with interrupt logic and reset
2. A built-in bus initialization/recovery function can take temporary control of the
downstream channel to initialize the bus before making the actual switch to the new
bus master. This function is activated by setting the BUSINIT to logic 1 by the master
during the same write sequence as the one programming MYBUS and BUSON bits.
When activated and whether the bus was previously idle or not:
a. 9 clock pulses are sent on the SCL_SLAVE.
b. SDA_SLAVE line is released (HIGH) when the clock pulses are sent to
SCL_SLAVE. This is equivalent to sending 8 data bits and a not acknowledge.
c. Finally a STOP condition is sent to the downstream slave channel.
This sequence completes any read transaction which was previously in process and
the downstream slave configured as a slave-transmitter should release the SDA line
because the PCA9541A did not acknowledge the last byte.
3. When the initialization has been requested and completed, the PCA9541A sends an
interrupt to the new master through its INT
line and connects the new master to the
downstream channel. BUSINIT bit in the Interrupt Status Register is set. The switch
operation occurs after the master asking the bus control has sent a STOP
command. This interrupt can be masked by setting the BUSINITMSK bit to logic 1.
4. When the bus initialization/recovery function has not been requested (BUSINIT = 0),
the PCA9541A connects the new master to the slave downstream channel. The
switch operation occurs after the master asking the bus control has sent a
STOP command. If the built-in bus sensor function detects a non-idle condition in the
downstream slave channel at the switching time, PCA9541A sends an interrupt to the
new master through its INT
line. BUSOK bit in the Interrupt Status Register is set. This
means that a STOP condition has not been detected in the previous bus
communication and that an external bus recovery/initialization must be performed. If
an idle condition has been detected at the switching time, no interrupt is sent. This
interrupt can be masked by setting the BUSOKMSK bit to logic 1.
Interrupt status can be read. See Section 7.4 “
Interrupt Status registers for more
information.
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 ninth 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.

PCA9541APW/03,118

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