Hi People,
I have a pair of simple code for two ST Nucleo boards, one is set as I2C Master-transmitter and the other one is Slave-receiver. the codes are working fine together, and I have verified results both on oscilloscope and also on PC terminal with default I2C frequency (100KHz).
I tried to increase the I2C Frequency to 300KHz, with frequency() function. The problem arises when I try to use "i2c.frequency(300000)" for master, and "slave.frequency(300000)" for slave. Even with default 100000 value, the communication won't establish.
Am I missing something with frequency() function?
I appreciate any help with this.
I have a program that handles a lot of i2c accesses on a LPC1768. Today, I decided to modify the frequency by adding the line:
i2c.frequency(400000);
Now, the ic2 no longer works. I've tried lowering the frequency, even taking the new line of code out, then power cycling the mbed, but to no avail. It's still broken. Is the value of the i2c frequency non-volatile?
Any advice would be appreciated.
...kevin