Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

What happened if Multi-master and Single-master devices are connected with a I2C Bus?

Status
Not open for further replies.

muthukumar_ece2004

Member level 4
Joined
Apr 22, 2011
Messages
74
Helped
10
Reputation
20
Reaction score
9
Trophy points
1,288
Location
Chennai, India
Activity points
1,751
In our project, we have connected Battery Pack, Controller and Charger IC I2C lines together. This causing un-interrupted error (Data line pulled to Low). Controller is a Multi-master device, Charger IC is a slave device and Battery Pack is a Single-Master. Is this is the issue due to connection of Multi-master and Single-master in a single Bus?
 
Last edited:

Which one is pulling the line low? Can it be a bus collision error?
 

We could not able to predict the device which holds the line. Can you able to get the answer for your question from with the help of connection of multi and single Masters with a same bus.
 

I don't know what happens if both multi and single Masters share the same I2C bus. But a possible step towards the solution to your problem would be to try every combination to find out which device pulls the line low. Maybe disabling the pullup resistors one by one may reveal which one is failing when the line is pulled low.
 
  • Like
Reactions: FvM

    FvM

    Points: 2
    Helpful Answer Positive Rating
Battery Pack is a Single-Master
Sounds unlikely. A battery pack is usually an I2C slave, not master. Anyway, a master not pepared for multi-master operation must be expected to fail when it's connected to a bus with another master constroller.

I2C bus deadlock may also be caused by a slave after an unexpected sequence, e.g. from a wrongly behaving master. There's a suggested recovery sequence published by NXP to enforce a bus release in AN10216-1.
 

I2C bus deadlock may also be caused by a slave after an unexpected sequence, e.g. from a wrongly behaving master. There's a suggested recovery sequence published by NXP to enforce a bus release in AN10216-1.

yes FVM, we are facing deadlock problem. Once the bus behaves improperly, then the communication is failing by locking the bus by one of master or something. Thanks for the solution suggested by you. I will look in to the application note.

Sounds unlikely. A battery pack is usually an I2C slave, not master. Anyway, a master not pepared for multi-master operation must be expected to fail when it's connected to a bus with another master constroller.

We are using Smart Battery Pack (TI's gas gauge) which is specially designed for the TI charger IC. So all the parameters like Charging Voltage, current and temperature controlling options are managed by the Battery Pack. So that Charger IC act as slave whereas Battery Pack act as Master. Also the processor is not required to control/monitor the Battery Pack information since Battery Pack itself monitor and control the charger functions. we have some requirement to log the Battery Pack information, so that we are connecting this I2C bus with the processor.
 

You can't monitor an I2C bus by connecting another master. You have design a special monitoring software thats listens passively to the communication.
 

You can't monitor an I2C bus by connecting another master. You have design a special monitoring software thats listens passively to the communication.

FVM, i am not monitoring I2C Bus, monitoring Battery Pack parameters using I2C Bus.
 

I understood that monitoring means listening to the battery pack to charger communication. If you want to request data from the battery pack, which is a I2C master according to your informations, I assume that it's simply impossible. If the data sheet suggests otherwise, please tell the chip type or give a link to the datasheet.
 

FVM, Gas Gauge IC part number is bq20z75-v180. Here i am attaching the datasheet for your reference.
 

Attachments

  • bq20z75-v180.pdf
    537.5 KB · Views: 64

I don't think that bq20z75-V180 is a SMB/I2C bus master.
 

I don't think that bq20z75-V180 is a SMB/I2C bus master.

Following are the information given in the datasheet
"COMMUNICATIONS
The bq20z75-V180 uses SMBus v1.1 with Master Mode and package error checking (PEC) options per the SBS
specification
"
I don't know how you say this will not act as a Master. Please share your view.
 

Yes there are some words in the datasheets that might be understood as describing a master device. But I didn't see a single word describing actual master functionality.

Where did you find a description of the said M/S role of battery pack and charger IC? It's apparently not in the datasheet.
 

Yes Multi/Single master description is not available in the datasheet. But i got those information from TI Community forum in which we have posed as a query.

Battery Pack will lost arbitration if the Processor (Mulit-master) tries to communicate with the charger IC.

But anyway good information is we have solved this problem by reducing the I2C clock timing of the processor. So that, before Processor capturing the I2C bus (during power-on or reset), Battery Pack capture the I2C bus and communicates with the Charger IC. But the risk is again it may locked at any of intermediate operation. We hope it will not since the processor only used for reading the data from the Battery Pack.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top