Hi All,
I am working on a project where i need to communicate using i2c protocol. For this i need to set i2c frequency 20 Khz. So how can i calculate register value to set 20 KHz frequency or what would be the register value for 20Khz frequency?
As in the example project there three frequencies mentioned
#define TWI_FREQUENCY_FREQUENCY_K100 (0x01980000UL) /*!< 100 kbps */
#define TWI_FREQUENCY_FREQUENCY_K250 (0x04000000UL) /*!< 250 kbps */
#define TWI_FREQUENCY_FREQUENCY_K400 (0x06680000UL) /*!< 400 kbps (actual rate 410.256 kbps) */
So, it would be great help if you can set the frequency 20 Khz
platform: - Segger embedded studio
DK: NRF52832
SDK Version: - 16.0.0
Regards
Pradeep