Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

PSoC™ Creator & Designer Forum Discussions

YoIs_1298666
Level 5
Level 5
250 sign-ins 100 replies posted 100 sign-ins

Hello,

In a specific MiniProg3, it has been observed that the EZI2C communication between Bridge Control Panels has a large pause.

See below.

MiniProg3/1707CA000BE0:

YoIs_1298666_0-1630635553933.png

Other MiniProg3, MiniProg4 and KitProg often have the following pauses:

YoIs_1298666_1-1630635723803.png

What could be the cause?

My PC performance is below.

YoIs_1298666_2-1630635891246.png

YoIs_1298666_0-1630636238569.png

Best regards,

Yocchi

0 Likes
5 Replies
ncbs
Moderator
Moderator
Moderator
50 likes received 250 sign-ins 250 replies posted

Hi Yocchi-san [@YoIs_1298666],

Are there other interrupts involved in the project? EZI2C works on interrupts, and I believe that other high priority interrupts are causing the EZI2C to be stalled until they are completely addressed. 

You might want to prioritize EZI2C over interrupts.

Thanks and regards,
Nikhil

0 Likes

Hello Nikhil-san,

I don't think your point is correct.

The rationale is as follows.

1. Even if the priority of the EZI2C interrupt is given the highest priority, it does not change.

YoIs_1298666_0-1630887839564.png

2. If the EZI2C interrupt is Disable or has a low priority, the clock should be stretched when receiving the slave address. Unfortunately the clock is not stretched.

YoIs_1298666_1-1630888448041.png

I think it's a Windows 10 task scheduling issue.

Is it possible to raise the priority of task schedules in the Bridge Control Panel?

 

Best regards,

Ishii

0 Likes
ncbs
Moderator
Moderator
Moderator
50 likes received 250 sign-ins 250 replies posted

Hi @YoIs_1298666,

Can you share the project so that we can take a look at it?

Bridge control panel cannot be used for priority setting. 

Do you observe I2C communication taking place even when EZI2C interrupt is disabled? This behaviour is not expected. Are the I2C pins being accessed by some other peripherals?

 

Regards,
Nikhil

0 Likes

Hello Nikhil-san,

I have already uploaded it to CDC as sample code.

You can find the project from CDC code example. 

But, I am trying it with custom board of CY8C4147AZQ-S475 now. So, I am using MiniProg3.

https://community.cypress.com/t5/Code-Examples/Analog-sine-wave-with-CY8CKIT-149/td-p/133647

For additional information, when I connect and evaluate other MiniProg3, MiniProg4 and KitProg, I2C communication interruptions are roughly less than or equal to the following.

YoIs_1298666_0-1631067796170.png

Then, when I receive with TeraTerm using UART communication with the same MiniProg3, the communication is not interrupted as shown below.

YoIs_1298666_1-1631068143448.png

Best regards,

Ishii

0 Likes

Hello,

BCP seems to check the COM port on a regular basis. Isn't this the cause of the long interval for I2C master operation?

Best regards,

Yocchi

0 Likes