Hello support team,
I can’t set the I2C Bitrate to 400kHz. I see a Bitrate of 79kHz. In the community I see a similar question and because this, I use the Library 2.3, but with on effect.
I use “I2C3” and the colibri pins140=>I2C3_SCL and 142=>I2C3_SDA
example:
DWORD bitRate = 400000;
hI2C3_DIG = Imx7I2c_Init(L"I2C3");
bopen = Imx7I2c_Open(hI2C3_DIG);
if (bopen == FALSE)
return(INVALID_HANDLE_VALUE);
else
{
Imx7I2c_SetConfigInt(hI2C3_DIG, L"BitRateHz", bitRate, StoreVolatile);
Imx7I2c_SetConfigInt(hI2C3_DIG, L"SlaveAddr", I2C_DO301_MODUL, StoreVolatile);
Imx7I2c_SetConfigInt(hI2C3_DIG, L"RegisterAddrSize", 8, StoreVolatile);
}
Is there anything wrong or missing?
best regards
maha