Hi
I would like to know how to configure a I2C speed. I am using 20M external crystal and CPU clock is 100M.
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi
I would like to know how to configure a I2C speed. I am using 20M external crystal and CPU clock is 100M.
Woo1,
Below function found in i2c.c driverlib can be used to
I2C_initMaster(uint32_t base, uint32_t sysclkHz, uint32_t bitRate,
I2C_DutyCycle dutyCycle);
Example:
I2C_initMaster(I2CA_BASE, DEVICE_SYSCLK_FREQ, 400000, I2C_DUTYCYCLE_33);
Here,
DEVICE_SYSCLK_FREQ is 100 MHz and
I2C speed is 400 KHz.
Regards,
Manoj
What is I2C_DUTYCYCLE_33
I2C_DUTYCYCLE_33 is defined I2C_DutyCycle enumerator. This is used to set the dutycycle for I2C SCL signal.
It can be either I2C_DUTYCYCLE_33 (or) I2C_DUTYCYCLE_50.

Regards,
Manoj