infineon4engi@twitter infineon@linkedin infineon4engineers infineon@youtube
twitter Facebook Linkedin Youtube

+ Reply to Thread
Results 1 to 1 of 1

Thread: (DAVE 4) XMC 2Go - I2C APP - Requesting data from sensor

  1. #1
    Beginner Beginner persike will become famous soon enough
    Join Date
    Sep 2017

    (DAVE 4) XMC 2Go - I2C APP - Requesting data from sensor

    Hello guys,

    I'm trying to get information from a Infineon magnetic sensor using a XMC 2Go and DAVE 4.
    The I2C Transmitt function is working (reggarding the bug mentioned at the topic: and now I'm trying to find a way to use the Receive function because it's not exactly as I need.
    To receive data from this specific sensor (also a Infineon sensor), I should send the sensor address, desired register address and then the master is ready to receive data. I can do it using an Arduino by a bit bang i2C communication as shown in the picture:
    Click image for larger version

Name:	ardu.jpg
Views:	11
Size:	108.8 KB
ID:	3116

    When I try to receive data using DAVE 4 and XMC 2Go, I can't send the second information (desired register address) and then I start receiving data since the sensor address is sent, as shown in the picture:
    Click image for larger version

Name:	170914_081411.jpg
Views:	8
Size:	90.8 KB
ID:	3117

    I searched for a function to do that and tried to combine transmitt and receive functions but I'm not having success on it. The main code is attached.

    Does anybody have any idea on how can I do it?
    Last edited by persike; Sep 21st, 2017 at 11:02 PM.

+ Reply to Thread

Tags for this Thread


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.