cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC Creator & Designer Software

MeduH_46
Employee

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
JoMe_264151
Expert II

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
Esteemed Contributor

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

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