Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > PSoC® Software > component library: configuring I2C data rate through parameters

Bookmark and Share
Cypress Developer CommunityTM
Forums | Videos | Blogs | Training | Rewards Program | Community Components



component library: configuring I2C data rate through parameters
Moderator:
JFMD

Post Reply
Follow this topic



component library: configuring I2C data rate through parameters

MEDU posted on 08 Aug 2012 10:13 PM PST
Cypress Employee
4 Forum Posts

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




Re: component library: configuring I2C data rate through parameters

H L posted on 08 Aug 2012 12:25 AM PST
Top Contributor
679 Forum Posts

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?



Re: component library: configuring I2C data rate through parameters

Bob Marlowe posted on 08 Aug 2012 01:42 AM PST
Top Contributor
1768 Forum Posts

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

 

Bob



Re: component library: configuring I2C data rate through parameters

danaaknight posted on 08 Aug 2012 04:31 AM PST
Top Contributor
1773 Forum Posts

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.



Re: component library: configuring I2C data rate through parameters

MEDU posted on 08 Aug 2012 05:29 AM PST
Cypress Employee
4 Forum Posts

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.






ALL CONTENT AND MATERIALS ON THIS SITE ARE PROVIDED "AS IS". CYPRESS SEMICONDUCTOR AND ITS RESPECTIVE SUPPLIERS MAKE NO REPRESENTATIONS ABOUT THE SUITABILITY OF THESE MATERIALS FOR ANY PURPOSE AND DISCLAIM ALL WARRANTIES AND CONDITIONS WITH REGARD TO THESE MATERIALS, INCLUDING BUT NOT LIMITED TO, ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT OF ANY THIRD PARTY INTELLECTUAL PROPERTY RIGHT. NO LICENSE, EITHER EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, IS GRANTED BY CYPRESS SEMICONDUCTOR. USE OF THE INFORMATION ON THIS SITE MAY REQUIRE A LICENSE FROM A THIRD PARTY, OR A LICENSE FROM CYPRESS SEMICONDUCTOR.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms and Conditions of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms and Conditions of this site. Cypress Semiconductor and its suppliers reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Spec No: None; Sunset Owner: GRAA; Secondary Owner: RAIK; Sunset Date: 01/01/20