Gast
#2225662
Hallo,
in meinem Projekt habe ich eine RTC(I2C, funktioniert) und einen
Ladecontroller von TI(SM Bus, antwortet nur auf die Adresse, dann nicht
mehr).
Ich habe die Kommunikation auf dem Bus mal im Screenshot dargestellt.
Die Funktionen des Compilers sind wie folgt deklariert:
*unsigned char i2c_start(void)*
issues a START condition.
Returns 1 if bus is free or 0 if the I2C bus is busy.
*void i2c_stop(void)*
issues a STOP condition.
*unsigned char i2c_read(unsigned char ack)*
reads a byte from the bus.
The ack parameter specifies if an acknowledgement is to be issued after
the byte was read.
Set ack to 0 for no acknowledgement or 1 for acknowledgement.
*unsigned char i2c_write(unsigned char data)*
writes the byte data to the bus.
Returns 1 if the slave acknowledges or 0 if not.
Hat wer von euch einen Tipp, woran das liegen könnte?
Bzw. einen alternativ-Code zum Testen...
