Skip to content

Correct I2C frequency calculation formula #287

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 25, 2018

Conversation

sandeepmistry
Copy link
Contributor

As discussed in #259.

Also alllow variant to override the default rise time in nanoseconds via define.

Allow variant to override the default rise time in nanoseconds via
define
@ArduinoBot
Copy link

✅ Build completed.

⬇️ Build URL: http://downloads.arduino.cc/PR/samd/package_samd-b181_index.json

ℹ️ To test this build:

  1. Open the Preferences of the Arduino IDE.
  2. Add the Build URL above in the Additional Boards Manager URLs field, and click OK.
  3. Open the Boards Manager (menu Tools->Board->Board Manager...)
  4. Install Arduino SAMD core - Pull Request Correct I2C frequency calculation formula #287
  5. Select one of the boards under SAMD Pull Request Correct I2C frequency calculation formula #287 in Tools->Board menu
  6. Compile/Upload as usual

@sandeepmistry
Copy link
Contributor Author

Hi @martinl1, @Adminius, @deladriere,

Could you please try out these changes and see if it addresses the discussion in issue #259. The rise time is based on the 4.7K pull up resistors all the Arduino.cc SAMD boards. Other variants can override the default value if needed.

@sandeepmistry
Copy link
Contributor Author

These changes were tested with a MKR Zero and MKR WAN1300, using a OLED display and ECC508 over the I2C bus. A Saleae logic analyzer was used to observe traffic on the I2C bus.

@sandeepmistry sandeepmistry merged commit b753095 into arduino:master Jan 25, 2018
@sandeepmistry sandeepmistry added this to the Release 1.6.18 milestone Jan 25, 2018
boseji pushed a commit to go-ut/combined-ArduinoCore-samd that referenced this pull request May 12, 2021
Fixes arduino#287

The warnings look like:
```
      Line 338 Char 37
      warning: 'void* memcpy(void*, const void*, size_t)' 
               writing to an object of type 'struct DmacDescriptor'
               with no trivial copy-assignment [-Wclass-memaccess]
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants