Hi,
I'm trying to achieve a simple goal of reading/writing over I2C with rate of 3.4Mhz.
I'm using Arduino MKR Zero (Datasheet) and my slave I2C device is Microchip Power accumulator. (datasheet)
Wire.setClock(3400000); does not work and the maximum I see (using Logic) is 1.8Mhz.
What am I doing wrong?
EDIT:
I understand now that maybe I'll have to tweak the SAMD libraries in order to increase the clock rate.
I have trouble finding 1 simple example of how to do it.
any help?
If you get it going that speed I would expect it to be very unreliable. Those specifications are there for a reason and the part is guaranteed to meet that. Going outside the specification probably voids the warranty and what happens when the temperature changes?
Yes.
but it's not enough to make the arduino MCU work in 3.4Mhz.
I have a second project where I try to sample the PAC device using FTDI4222 USB to I2C bridge.
in this case - after setting bit and re initializing the lib with 3.4Mhz it works perfectly!