Trying to make sense of SAMD I2C datasheets

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

They have two formulas (see SAMD10 datasheet, for example):
fSCL = 1 / tLOW + tHIGH + tRISE
fSCL = fGCLK / (2 * (5 + BAUD) + fGCLK * tRISE)
Am I the only one who thinks that the second formula make no sense? Specifically, the tRISE part of it. Unless they mean two completely different "fSCL" things in two cases.

 

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

No way to delete the OP? Oh, well. Never mind then. I think I got it now. I just didn't think that they would dynamically adjust fSCL based on the actual tRISE. But I guess they are really doing that. In that case the second formula does make sense.

 

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

ezharkov wrote:
I think I got it now

So please mark that as the solution - see Tip #5 in my signature, below:

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...