component library: configuring I2C data rate through parameters

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
MeduH_46
Employee
Employee
5 sign-ins 10 replies posted 5 replies posted

I am using I2C Master Fixed Funtion in my component library. I am unable to find a parameter type through which I can configure I2C data rate from my component. Is there any way to bring out the I2C data rate on to my component parameter ?

   

Regards,

   

Harsha

0 Likes
5 Replies
Anonymous
Not applicable

For fix function I2C master, the data rate is selected on the basic configuration page, there are only 4 speeds. With UDB I2C you can provide your own clock.

   

Do you mean that there is no API to set the data rate by S/W?

0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

That's right, there are no APIs to change the bitrate on-the-fly for I2C may it be fixed function or UDB.

   

 

   

Bob

0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

Looks like fixed function tied to BUS_CLK, and would be wacky to change

   

it to effect I2C rates.

   

 

   

UDB, you can use the API calls for the clk src to effect your own rates.

   

 

   

Regards, Dana.

0 Likes
MeduH_46
Employee
Employee
5 sign-ins 10 replies posted 5 replies posted

Yeah, kind of API. I am making a custom library component using I2C. When I import my custom component, I should be able to configure the data rate from my component level instead of opening the custom component library and configuring the basic I2C block.

0 Likes
Anonymous
Not applicable

Any results or example of anyone successfully implementing above suggestion " UDB, you can use the API calls for the clk src to effect your own rates."

0 Likes