Skip to content

add support for I2C repeated start, tested with MB85RC256V #78

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

Closed
wants to merge 1 commit into from
Closed

add support for I2C repeated start, tested with MB85RC256V #78

wants to merge 1 commit into from

Conversation

ladyada
Copy link
Contributor

@ladyada ladyada commented Dec 21, 2015

repeated start on the atsamd21 is a little interesting, instead of telling the i2c master to send a REPEATED_START (which you would think is the thing to do) you should send no command. then, next time the ADDR is set, it will automatically do the repeated start for you.

See table 27-12 in datasheet:
_If CMD 0x1 is issued, a repeated start will be issued followed by the transmission of the current address in ADDR.ADDR. If another address is desired, ADDR.ADDR must be written instead of the CMD bits. This will trigger a repeated start followed by transmission of the new address._

@ladyada
Copy link
Contributor Author

ladyada commented Dec 21, 2015

oops, already in #66 - well now you have 2 versions :D

@sandeepmistry
Copy link
Contributor

@ladyada no worries, would you mind trying out #66?

@ladyada
Copy link
Contributor Author

ladyada commented Dec 21, 2015

tried git@github.com:sandeepmistry/ArduinoCore-samd.git -b "wire-master-repeated-start" and it also works just fine with the MB85RC256V

@sandeepmistry
Copy link
Contributor

@ladyada great, thanks for trying it out!

@cmaglie
Copy link
Member

cmaglie commented Jan 13, 2016

Fixed with #66

@cmaglie cmaglie closed this Jan 13, 2016
boseji pushed a commit to go-ut/combined-ArduinoCore-samd that referenced this pull request May 30, 2020
This small change removes many of the warnings that are generated when compiling this core with warnings switched on.
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.

3 participants