I2C Clock rate question on Teensy 3.5 and 3.6

Status
Not open for further replies.

smw97

New member
Hi,
I am using the i2c_t3 library(https://github.com/nox771/i2c_t3) and arduino code platform for the teensy 3.5 and teensy 3.6. I am trying to get I2C communication working between a Teensy 3.5 and a 3.6, the master being the 3.5 and the slave the 3.6. In the function Wire.begin(), you can set the I2C clock rate to values in KHz, I2C_RATE_100, I2C_RATE_2400, I2C_RATE_3000 and so on. I have my clock rate set to I2C_RATE_2400 on both teensy devices, which should be 2400kHz. When I measure the clock line waveform with an oscilloscope, I measure the clock at 1200kHz. Why is this? Shouldn't it be at 2400 MHz?

For the slave:
Wire.begin(I2C_SLAVE, 0x66, I2C_PINS_18_19, I2C_PULLUP_EXT, I2C_RATE_2400);

For the master:
Wire.begin(I2C_MASTER, 0x00, I2C_PINS_18_19, I2C_PULLUP_EXT, I2C_RATE_2400, I2C_OP_MODE_ISR);
 
Status
Not open for further replies.
Back
Top