Sep 25, 2017
12:54 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sep 25, 2017
12:54 AM
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:
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.
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:
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.
2 Replies
Sep 25, 2017
01:11 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sep 25, 2017
01:11 AM
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
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
Sep 25, 2017
04:09 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sep 25, 2017
04:09 AM
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()
Zoom on I2C_Transmit()
I2C_Init() and I2C_Receive()
Zoom on I2C_Receive()
Now WITHOUT I2C_Init() both lines stay HIGH:
The sensor used is a magnetic sensor TLV493 (also Infineon one).