- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello everyone
I am trying to use the generic library to interface with the TLI493D-W2BW 3D Hall Sensor from a TI microcontroller. I implemented the interface but the library fails to initialize the sensor which does not seem to respond to any I2C commands, e.g. it does not generate an ACK on the bus (see also attached image).
I have SDA and SCL pulled up via 1.2kOhm resistors to 3.3V and the /INT is pulled up via a 10kOhm resistor to 3.3V.
I verified that the calls to _POWER_ENABLE and _POWER_DISABLE pull the VDD line of the sensor to 3.3V (LED on) and 0V (LED off) respectively.
I'm not sure if I am missing something obvious here?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello and thanks for your reply.
I am still not quite sure what the problem was but I was able to interface with the sensor using the regular I2C interface described in the datasheet (without using the generic library).
Best
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @MMductance ,
Since you are using alternate application circuit with separated SCL and /INT pin, as given in Fig 6 of the Datasheet, the clock stretching is not enabled (described in Section 1.5 Application Circuit). You can try the default configuration by shorting the /INT with the SCL.
Check whether in your program you are enabling clock stretching and disabling /INT. If yes this should solve the problem.
Could you also try resetting the sensor once using the RESET sequence described in Section 2.3 of the User Manual.
Thanks and regards,
Yashraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello and thanks for your reply.
I am still not quite sure what the problem was but I was able to interface with the sensor using the regular I2C interface described in the datasheet (without using the generic library).
Best
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @MMductance ,
Good to know it is working. Did you do any other changes in configuration?
Thanks and regards,
Yashraj.