-
Notifications
You must be signed in to change notification settings - Fork 672
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
Implement I²C Clock Stretching on the Stellaris / Tiva C #336
Comments
The E2E forum suggested me to use
of the Tiva™ C Series TM4C123GH6PM Microcontroller Data Sheet (Rev. D).
Now, how to implement it on Energia, as the I²C bus is managed by interrupts, |
Here's the solution that I've tested on port I²C (3) of the Stellaris LM4F120 and Tiva C TM4C123 LaunchPads. Libraries to include with
This routine initialise the SCL pin. Not sure it is really useful.
This routine configures the SCL line as a standard output and sets it
This routine configures the SCL line back to normal. I tried another option but it didn't work.
Typical usage requires
Questions:
Thanks! |
Integration into Wire library was easier than expected. |
Slick! I like it. |
I removed the See 263e48c |
See #375 |
This issue was moved to energia/tivac-core#28 |
The I²C specifications (NXP, I²C-bus.org) allow the slave to set the SCL clock line low to make the master wait. This is called clock streching.
How to implement clock stretching on the Stellaris LM4F120 / Tiva C TM4C123?
For example, the
twi.h
library for the MSP430 includes two functions that are used this purpose:Thank you!
The text was updated successfully, but these errors were encountered: