I am trying to stop a transmission via the I2S (by DAO - STOP) when there is no more data. My way is to set the irq fifo level to 0 and wait for interrupt, then set the flag. However when the level is zero and the flag (STOP) is set, it seems that the LPC1788's I2S controller discards data in serializer because the last data is not sent. To avoid this, I put another data, usually zero, to the TX FIFO and wait again.
Does anybody know a better solution how to detect "all data sent" ?
Thank you for any ideas