Hi, I'm trying to comunicate with an external EEPROM like PCF8582 with the uC LPC1115, but I've to understand a thing: When I use the function I2CEngine(), how can I know when the transmission has finished and if all goes well? Thanks.
Sorry it goes on state 0x20 and it's correct.
LPC_I2C->CONSET = I2CONSET_STO; /* Set Stop flag */ LPC_I2C->CONCLR = I2CONCLR_SIC; /* Clear SI flag */ while( LPC_I2C->CONSET & I2CONSET_STO );
This is my I2CStop() function, it's possible that if I'm in while loop to wait the Stop condition all system does not respond? (No interrupt).