SMBus Battery address


I am trying to talk to a typical smart laptop battery from a 68hc12DJ64 processor on the I2C bus using the SMBus protocol. We just need to collect simple "how much charge is in there" data from the batter. The problem is that I dont know what is the address of the battery? Searched the internet and read through all the SMBus. I2c, motorola, battery specs but could not find any reference for finding battery address.

I am obviously missing something big time. Can someone tell me where to find the battery address?

Also, if you have talked to a battery using a 68hc12 before, can you share your experience.

Thanks Nihar

Reply to
Loading thread data ...

The information you are looking for is in Appendix C of the SMBus Spec (SMBus20.pdf ).


Reply to
Not Really Me

"Nihar" schrieb im Newsbeitrag news:

Did you try to scan the bus by sending for x = 2 to 252 step 2

DeviceFound = AcknowledgeReceived next and see which devices are responding?

There are tools out with this kind of scanning built-in.

formatting link

Another alternative is to trace the bus as such when the battery is hooked to the laptop.

Best regards Roland

Reply to
Roland Zitzke

Thanks! I did not expect such a fast reply! Yes it does say, 0001 011. The battery I am using is only compliant till v1.1. I believe the address would still remain the same. Also, what if there are more than one batteries?

thanks Nihar

Reply to

If their is more than 1 battery They all have the same address. You must use more than 1 Bus, or make a selector also in the smbus spec.

Reply to
Neil Kurzman

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.