DAVE4 + I2C = Problem. (XMC2Go)

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

cross mob
User13817
Level 3
Level 3
Hello guys, (I hope we get some Infineon reply this time).

It seems that DAVE4 has some problem with the I2C app. I'm using a XMC2Go and the communication works as expected on DAVE3.
On the other hand, DAVE4 should have some bug or any trick to use I2C protocol that is not mentioned on Help or Examples.

The problem is that the I2C needs to be re-inited before sending/receiving data to a Slave, as the following picture:
2827.attach

This is bad because it tooks about 9ms to re-init, which means a big waste of time everytime that is necessary to communicate.
Could somebody from Infineon give some help? Please.
0 Likes
2 Replies
jferreira
Employee
Employee
10 sign-ins 5 sign-ins First like received
Hi,

It should work also in DAVE4.
Did you check with a logic analyzer what is going on in the line?
Which kind of sensor are you trying to interface?

Regards,
Jesus
0 Likes
User13817
Level 3
Level 3
jferreira wrote:
Hi,

It should work also in DAVE4.
Did you check with a logic analyzer what is going on in the line?
Which kind of sensor are you trying to interface?

Regards,
Jesus


Hello Jesus, thanks for the reply.
Yes, I checked with an logic analyzer and nothing happens when I try to transmit/receive data without the I2C_Init(), both lines stays high.

You can see in the following pictures:

I2C_Init() and I2C_Transmit()
2829.attach

Zoom on I2C_Transmit()
2830.attach

I2C_Init() and I2C_Receive()
2831.attach

Zoom on I2C_Receive()
2832.attach

Now WITHOUT I2C_Init() both lines stay HIGH:
2833.attach

The sensor used is a magnetic sensor TLV493 (also Infineon one).
0 Likes