Skip to content
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

I²C Clock Stretching Implementation for LM4F / TM4C #375

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

rei-vilo
Copy link
Member

I²C clock stretching implementation by pulling SCL line low

void TwoWire::pause()
{
// Standard output
GPIOPadConfigSet(g_uli2cBase[i2cModule], g_uli2cSCLPins[i2cModule], GPIO_STRENGTH_4MA, GPIO_PIN_TYPE_STD);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GPIO_STRENGTH_2MA works fine also.

@rei-vilo rei-vilo changed the title I²C Clock Stretching Implementation I²C Clock Stretching Implementation fro LM4F / TM4C May 7, 2014
@rei-vilo rei-vilo changed the title I²C Clock Stretching Implementation fro LM4F / TM4C I²C Clock Stretching Implementation for LM4F / TM4C May 7, 2014
@rei-vilo
Copy link
Member Author

rei-vilo commented Jun 2, 2014

Combining the clock-stretching related functions pause() and resume() with the fast mode and fast mode plus implementation #343 doesn't seem to work.

Configuration

  • Both master and slave are LaunchPad LM4F or TM4C.
  • Pull-up resistors of 10 kΩ.
  • No problem if master is an Arduino board interfaced with a logic level converter.

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.

1 participant