XMC 4100 I2C IN Buffer Full(EEPROM writing Data)!!

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Not applicable
Hi,
I am working on XMC 4100., My intentend operation is to write some bytes in to EEPROM using I2C But after pushing a byte to IN Buffer it's already giving indiation of Buffer Full i.e TFULL bit in TRBSR is got Set.So how to clear Transmit buffer please list out the methodes to clear Transmit buffer.


Best Regards,
Irfan
0 Likes
1 Reply
chismo
Employee
Employee
First like received
Hello Irfan,

The minimum valid size of TxFIFO is 2 so it is strange if it is already full with a single byte write. Are there ongoing data transmit from the TxFIFO?

In any case, you can flush the TxFIFO through the following (x=USIC mode while y=channel no.):
USICx_CHy->TRBSCR |= 0x8000; //Flush TxFIFO
USICx_CHy->FMR = 0x2; //Clear TCSR.TDV and TE

Regards,
Min Wei
0 Likes