Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > USB Controllers > I2C bus CY_U3P_ERROR_LOST_ARBITRATION,

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



I2C bus CY_U3P_ERROR_LOST_ARBITRATION,
Moderator:
RSKV

Post Reply
Follow this topic



I2C bus CY_U3P_ERROR_LOST_ARBITRATION,

allenpeng posted on 11 Jul 2012 12:22 AM PST
Senior Member
12 Forum Posts

Hi,

I use the I2C bus to write the image sensor device, but sometimes the returned message of  CyU3PI2cTransmitBytes() is CY_U3P_ERROR_LOST_ARBITRATION. I have checked the I2C waveform with logic analyzer and the waveform looks good. I also checked the data of sensor register and it is correct.

Could anyone tell me what will cause this error ?

Thank you  in advance.

Note:

Error Rate: 2~5 times of total 255 commands

I2C bit rate: occur in any bit rate.

Device amount: 1

 




Re: I2C bus CY_U3P_ERROR_LOST_ARBITRATION,

Bob Marlowe posted on 11 Jul 2012 03:24 AM PST
Top Contributor
1466 Forum Posts

Arbitration is the process to solve the problem when two devices try to access the bus at the same time. If you have more than one master on the bus this may happen quite normally, one master will get the bus and the other will show up a lost arbitration.

An conflict needing arbitration is detected when the dataline should be High but the master sees a logical Low-level.

When there is only one master there it may happen that the master loses arbitration with a slave which imho would mean that the slave is not fast enough to release the data-line (or that the master too soon starts another request).

 

Bob



Re: I2C bus CY_U3P_ERROR_LOST_ARBITRATION,

allenpeng posted on 11 Jul 2012 08:12 PM PST
Senior Member
12 Forum Posts

Hi Bob,

Thanks for your detailed explanation. After I add some delays between two commands, this problem seems like fixed.

Thank you very much.

Allen



Re: I2C bus CY_U3P_ERROR_LOST_ARBITRATION,

Bob Marlowe posted on 12 Jul 2012 12:49 AM PST
Top Contributor
1466 Forum Posts

Great!!!! My first good deed for the day!

 

Bob






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.