Skip to content

Added function setClock on bus I2C #21

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 7 commits into from
Closed

Added function setClock on bus I2C #21

wants to merge 7 commits into from

Conversation

PaoloP74
Copy link
Contributor

Tested 100kHz and 400kHz speed on external EEPROM 24LC256 with extEEPROM library (https://github.com/PaoloP74/extEEPROM)
It should be tested with other devices.

PaoloP74 added 4 commits July 7, 2015 18:25
Sam M0 support only 100kHz and 400kHz I2C frequency clock.
@cmaglie
Copy link
Member

cmaglie commented Aug 27, 2015

@PaoloP74 why you set the clock only for 100k and 400k?

is sercom->initMasterWIRE(baudrate); working only for these speeds?

@cmaglie cmaglie self-assigned this Aug 27, 2015
@PaoloP74
Copy link
Contributor Author

No.
On datasheet (http://www.atmel.com/Images/Atmel-42181-SAM-D21_Datasheet.pdf) page 511+, master and slave I2C bus support 4 speed:
Standard-mode: 100khz
Fast-mode: 400khz
Fast-mode Plus: up to 1Mhz
High-speed mode: up to 3.4Mhz.
But the most used are 100kHz and 400kHz. I do not know device that go faster.

Conflicts:
	libraries/Wire/Wire.cpp
	libraries/Wire/Wire.h
peekNextDigit() return a int value.
Char type cause warnings:
> Stream.cpp:167:10: warning: comparison is always false due to limited
range of data type [-Wtype-limits]
@PaoloP74 PaoloP74 closed this Sep 20, 2015
bxparks pushed a commit to bxparks/ArduinoCore-samd that referenced this pull request Jun 1, 2023
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