Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
Hello,
I use I2C control TDA7541 and write data to chip.
code is below:
#include "mbed.h"
I2C i2c(p28, p27);
Serial pc(USBTX, USBRX);
DigitalOut myled1(LED1);
int main() {
pc.printf("Program Begin ...\n");
myled1=0;
char write_addr[2];
write_addr[0]=0x00; // register address
write_addr[1]=0x0B; // command
i2c.write(0xC4, write_addr , 2); // 0xC4 is chip address
myled1=1;
}
but when I execute the program ,it happen error.
*** assertion failed: timeout < 1000000, file src/i2c_api.c, line 54
Why ?
Please tell me how to do
Thanks
zhenjiang