Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > USB Controllers > Question about fx2lp i2c.

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



Question about fx2lp i2c.
Moderator:
RSKV

Post Reply
Follow this topic



Question about fx2lp i2c.

dv2 posted on 12 Dec 2012 6:53 AM PST
Top Contributor
74 Forum Posts

 

Hi.

i willing to make i2c working in fx2lp 56pin.

but i have somequestions.

 

1) Are there any configuration setting(such as DSCR.A51) for I2C work in HW?

 

2) may i just only use following functions for i2c work ? (declared in EZUSE.LIB)?

        EZUSB_InitI2C(); // Initialize I2C Bus

EZUSB_ReadI2C(I2C_Addr, length, buf);

EZUSB_WriteI2C(I2C_Addr, i, ee_str);

 

 

 

 

 




Re: Question about fx2lp i2c.

RSKV posted on 12 Dec 2012 08:28 AM PST
Cypress Employee
655 Forum Posts

Hi,

You don't have to do any other settings.

You can directly use the functions

bit I2CWrite(BYTE i2cAddr, WORD addr, BYTE write_dat) and

bit I2CRead(BYTE i2cAddr, WORD addr, BYTE *read_dat) which are present in the i2c_hw.c file.

 

If you need any technical help from Cypress related to I2C or any other block for that matter, please create a tech support case so that one of our engineer will help you in developing firmware or the application on the PC side. Also in debugging the firmware.

 

Thanks,

sai krishna.






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.