Speed I2C 1Mhz

mikroC, mikroBasic and mikroPascal for PRO ARM® MCUs, supporting STM32, Tiva, Kinetis, & CEC devices
Post Reply
Author
Message
dquy05
Posts: 40
Joined: 20 Apr 2014 11:00

Speed I2C 1Mhz

#1 Post by dquy05 » 08 Feb 2021 04:37

Hi all !

I use STM32F4 i2C mode, I want speed to 1Mhz, Is there any way?
While : I2C1_Init_Advanced(400000, &_GPIO_MODULE_I2C1_PB67); // only 400 Khz
Because I want every 1us to finish reading 1 byte from encoder,

Regards !

User avatar
filip.grujcic
Posts: 822
Joined: 14 May 2018 08:34

Re: Speed I2C 1Mhz

#2 Post by filip.grujcic » 08 Feb 2021 12:04

Hello,

The I2C library does not support passing the 1MHz parameter for clock speed, therefore you will have to do it without the library (assuming it's possible).
I apologize for the inconvenience.

Regards,
Filip Grujcic

dquy05
Posts: 40
Joined: 20 Apr 2014 11:00

Re: Speed I2C 1Mhz

#3 Post by dquy05 » 08 Feb 2021 16:19

Thank Sir !
filip.grujcic wrote:
08 Feb 2021 12:04
Hello,

The I2C library does not support passing the 1MHz parameter for clock speed, therefore you will have to do it without the library (assuming it's possible).
I apologize for the inconvenience.

Regards,

Post Reply

Return to “ARM PRO Compilers”