infineon4engineers Facebook

infineon@google+ Google+

infineon@linkedin linkedin

infineon4engi@twitter twitter

infineon@youtube youtube

+ Reply to Thread
Results 1 to 3 of 3

Thread: DAVE4 + I2C = Problem. (XMC2Go)

  1. #1
    Beginner Beginner persike will become famous soon enough
    Join Date
    Sep 2017
    Location
    Austria
    Posts
    35
    Points
    108.75

    DAVE4 + I2C = Problem. (XMC2Go)

    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:
    Click image for larger version

Name:	i2cbug.png
Views:	35
Size:	26.2 KB
ID:	3135

    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. #2

    Infineon Employee
    Infineon Employee
    jferreira will become famous soon enough
    Join Date
    Oct 2012
    Posts
    631
    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
    The views expressed here are my personal opinions, have not been reviewed or authorized by Infineon and do not necessarily represent the views of Infineon.

  3. #3
    Beginner Beginner persike will become famous soon enough
    Join Date
    Sep 2017
    Location
    Austria
    Posts
    35
    Points
    108.75
    Quote Originally Posted by jferreira View Post
    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()
    Click image for larger version

Name:	transmit all.png
Views:	12
Size:	68.5 KB
ID:	3137

    Zoom on I2C_Transmit()
    Click image for larger version

Name:	transmit zoom.png
Views:	13
Size:	76.2 KB
ID:	3138

    I2C_Init() and I2C_Receive()
    Click image for larger version

Name:	receive all.png
Views:	8
Size:	70.4 KB
ID:	3139

    Zoom on I2C_Receive()
    Click image for larger version

Name:	receive zoom.png
Views:	10
Size:	78.1 KB
ID:	3140

    Now WITHOUT I2C_Init() both lines stay HIGH:
    Click image for larger version

Name:	nothinghappens.png
Views:	6
Size:	67.3 KB
ID:	3141

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

+ Reply to Thread

Tags for this Thread

Disclaimer

All content and materials on this site are provided “as is“. Infineon makes no warranties or representations with regard to this content and these materials of any kind, whether express or implied, including without limitation, warranties or representations of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. No license, whether express or implied, is granted by Infineon. Use of the information on this site may require a license from a third party, or a license from Infineon.


Infineon accepts no liability for the content and materials on this site being accurate, complete or up- to-date or for the contents of external links. Infineon distances itself expressly from the contents of the linked pages, over the structure of which Infineon has no control.


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 Usage Terms of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Usage Terms of this site. Infineon reserves 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.