I'm implementing an i2c bitbang library for the TMS570LS04x. This device doesn't have i2c peripherals.
I'm using Vincent Himpe's framework.
I am testing the framework with the Fuel Tank Boosterpack charge monitoring IC bq27510.
Communication is failing. When sending the i2c address out, I don't get an ACK back (expecting data pin to get pulled low by the slave, but that doesn't hapen.
I have attached my source files, and screenprints from logic analyser.
For those of you that have spare time and i2c knowledge, it would be great if you could have a look at my code and help me further on my path.
My HALCoGen project has just enabled the GPIO library and all others disabled; no settings on any other tab.
Code:
My code fails on line 96 of sys_main.c.
In the call to i2c_write(), the code does not ack in file vh.c, line 223.