My ANT1M24LR16E does not seem to repond to my I2C commands.
After the Send7bitAddress it reponds with a NACK (SDA high on one SCL clock). This is the first time I'm writing to it. Any ideas on why it is not working?
/* Turn on M24LR16E */
/* Generate start condition */
//Wait until bus is free
/* Send device select+read/write cmd and wait for ACK */
I2C_Send7bitAddress(I2C1, 0xA6, I2C_Direction_Transmitter);
//0xA6 = 0b10100110. Page 18 datasheet
/* Send address byte. Wait until data has been received */
// Data to be written
/* Generate Stop condition */
/* Shut down M24LR16E */