ATMEL Start I2C driver for SMBus

Go To Last Post
3 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi all,

 

I am using ATMEL Start for programming an SAMD21J18A controller and want to set up an SMBus communication with a battery management system (the SAMD21 is the master).

When I looked into the User Guide of the "I2C Master asynchronous driver" I saw, that the SMBus is not supported.

 

My question is why (I do not see the reason for that) and can I use it anyways for the SMBus communication (i.e. with any special settings).

 

Thanks for your help!
Hanna

Last Edited: Tue. Dec 3, 2019 - 04:46 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0


I'm not familiar with the SAM parts, but the SMBus uses pull ups to 5v level, so any device connecting to the bus must tolerate this voltage level. 

From the SMBus spec:

Will the SAM parts work with 5.5v?

 

Jim

 

Click Link: Get Free Stock: Retire early! PM for strategy

share.robinhood.com/jamesc3274
get $5 free gold/silver https://www.onegold.com/join/713...

 

 

 

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I do not think that this has anything to do with it.

In the datasheet of the SAMD is explicitly mentioned, that the MCU is compatible with SMBus.

 

Only the driver provided by ATMEL Start is not!

I tried it anyways, and I can read and write to the BMS and the BMS returns the expected results, but at the same time it reports an unknown error code.

I guess that this has something to do with the timing.