Hi
I want to check if a PMBus Transmission was successful.
The DSP is the Slave in FIFO Mode and I can not use Interrupts.
How is it possible to know if all data is send wihout using digital loopback mode?
A non working Code is:
if((NoBytesActualTx == NoBytes) && ( ! I2caRegs.I2CFFTX.bit.TXFFST) && ( ! I2caRegs.I2CSTR.bit.XSMT) && (I2caRegs.I2CSTR.bit.SCD)){
if (I2caRegs.I2CSTR.bit.NACK){ /*successful*/ }
else{ /*error*/ }}
It isnt working cause the XSMT Flag isnt cleared.
But what other Method can be used to check the Status of the I2CXSR Register?
Thanks
Mario