2010-04-07 03:10 AM
basic steps to use i2c pins as output pins
2011-05-17 06:07 AM
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.2011-05-17 06:07 AM
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