cancel
Showing results for 
Search instead for 
Did you mean: 

basic steps to use i2c pins as output pins

vijaykumarst
Associate
Posted on April 07, 2010 at 12:10

basic steps to use i2c pins as output pins

2 REPLIES 2
will2
Associate II
Posted on May 17, 2011 at 15:07

How about a little more info., such as:

What does that delay function look like?  Are you using one of the timers and an interrupt to establish a counter for your delay function?

What clock are you using to establish timing in your program (HSI, LSI, HSE)?  How do you have it set up?

Have you been able to step through this program in debug mode to verify that it's hitting your function calls?

The code you post above looks OK, but a little more info. might help solve the problem.

mozra272
Associate II
Posted on May 17, 2011 at 15:07

.ExternalClass9A9683AD668E453FB8A0B45A1246E2C8 p.MsoNormal, .ExternalClass9A9683AD668E453FB8A0B45A1246E2C8 li.MsoNormal, .ExternalClass9A9683AD668E453FB8A0B45A1246E2C8 div.MsoNormal {margin:0in;margin-bottom:.0001pt;font-size:12.0pt;font-family:'Times New Roman';} @page Section1 {size:8.5in 11.0in;margin:1.0in 1.25in 1.0in 1.25in;} .ExternalClass9A9683AD668E453FB8A0B45A1246E2C8 div.Section1 {page:Section1;}

Hi Kumar,

The I2C pins are configured as true open-drain I/O internally, (P-buffer and protection diode to VDD are not implemented) so is not possible to use them as output pins

As all peripherals are enabled by default can you please check to disable the I2C peripheral or add an external pull-up 4.7k on these I/O. Thanks to keep us informed 😉

Regards

mozra