cancel
Showing results for 
Search instead for 
Did you mean: 

STM8 Discovery wrong I2C format

jeff69xr7
Associate II
Posted on July 18, 2010 at 17:53

STM8 Discovery wrong I2C format

1 REPLY 1
jeff69xr7
Associate II
Posted on May 17, 2011 at 15:09

Tech support suggested that I use the EEROM example so I used the “I2C_EE_PageWrite� function from the EEPROM example and just changed the type from u16 to u8 and removed the line “//I2C_SendData((u8)(WriteAddr >> 8)); /* MSB */� so that I wouldn’t send a zero byte to the TDA chip with each sub address.

It works perfect, but I’m still not sure why since they both call the I2CSendData function from I2C.c

Jeff