I2C->MTDR = 0x1 << 8;// | (ack ? 0 : 1);
while (!(I2C->MSR & (1 << 1)));
// Wait until data is received
byt = (uint8_t)(I2C->MRDR & 0xff);
Hi
I sent you the bare-metal example lpi2c_test1 via private message.
By the way, we recommend using Real-Time Drivers (RTD) instead of bare-metal.
Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "ACCEPT AS SOLUTION" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------