Hi I have a problem with I2C: I cant make it send 1st byte(addr) properly (10%-20% of the time)
my init:
I2C1->TIMINGR= 0xB0420F13; //p942 p917 XTAL=48MHZ
I2C1->MY_I2C->TIMEOUTR= 0x0000900A; //p943
I2C1->CR1=1;
no irq are involved (yet)
then I'm trying to start a frame (slave not connected- still- I would like I2C to send 1st byte)
I2C1->CR2=0x000300AB; //addr=0xAB
I2C1->CR2=0x000320AB; // "START"
the ST does send a 1st byte (SCL baud ok)- BUT its SDA pin sends a 0x00 instead of 0xAB - for about 10%-20% of the times. (from scope)
Ive tryed to put some delays between commands, clear all prev errors, looked at the addr reg. NOTHING makes the problem go away
thanks
Yona
