Questions and discussions about the software that runs on the TD RF module itself.
dandavid3000
 
Posts: 22
Joined: Fri Oct 28, 2016 12:30 pm

Disable I2C

by dandavid3000 Wed May 31, 2017 1:21 pm

Hi,

I'd like to disable I2C in some situations. Is it the correct way to turn it off ?
Code: Select all
      
I2C_Enable(I2C0, false);
GPIO_PinModeSet(SDA_PORT, SDA_BIT, gpioModeDisabled, 0); //Disable SDA
GPIO_PinModeSet(SCL_PORT, SCL_BIT, gpioModeDisabled, 0); //Disable SCL
CMU_ClockEnable(cmuClock_I2C0, false);



Thank you,
Dan
User avatar
mstempin
 
Posts: 168
Joined: Thu May 07, 2015 9:24 am

Re: Disable I2C

by mstempin Fri Jun 02, 2017 7:22 am

Hi Dan,

By default, the I2C is not enabled, so there is nothing particular to do to disable it.

If you want to do so, you should remove the route of the I2C peripheral to the actual chip pins.
dandavid3000
 
Posts: 22
Joined: Fri Oct 28, 2016 12:30 pm

Re: Disable I2C

by dandavid3000 Thu Jun 08, 2017 10:15 am

Thank you mstempin :D
Return to Firmware

Who is online

Users browsing this forum: No registered users and 1 guest