- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, Sir,
1. Does CY7C65211A support "I2C - Repeart Start" ?
2. and how to generate the “repeated START” with the CY7C65211A?
could you please provide sample code?
https://www.i2c-bus.org/repeated-start-condition/
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Ivan,
CY7C65211A supports repeated start condition.
Kindly let us know which OS you are using.
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Ivan,
CY7C65211A supports repeated start condition.
Kindly let us know which OS you are using.
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, Meghavi,
The OS is Linux (kernel 4.12, 4.19 and 5.4).
BR
Ivan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, Meghavi,
1. How to how to generate the “repeated START” with the CY7C65211A?
2. how to configure CY7C65211A to “Mode = I2C and Protocol = Vendor / CDC” and “PID = 0x0004”.
i can't select"Protocol to CDC" when "Mode is I2C" by USB-Serial configuration utility.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, Meghavi,
I am try to generate the “repeated START”.
i don't know why it has big time gap (74ms) between write packet and read pack.
Is it correct "repeated START” ?
//Initialize the CY_I2C_DATA_CONFIG variable
cyI2CDataConfig.isStopBit = false;
cyDatabuffer.length = 2;
rStatus = CyI2cWrite (cyHandle, &cyI2CDataConfig, &cyDatabuffer, 5000);
if (rStatus != CY_SUCCESS){
printf ("CyI2cWrite Failed ...retrying %d \n", rStatus);
return rStatus;
}
//Initialize the CY_I2C_DATA_CONFIG variable
cyI2CDataConfig.isStopBit = true;
cyI2CDataConfig.isNakBit = true;
intError = 0;
memset (bufferRead, 0, 64);
rStatus = CyI2cRead (cyHandle, &cyI2CDataConfig, &cyDatabuffer, 5000);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Apologies for the delay in my response.
Yes, this seems correct. After the write operation, the read operation began without the STOP condition.
Also, can you share screenshots from USB configuration utility when you are trying to configure in CDC.
Regards,
Mallika