Not applicable
Sep 30, 2015
05:53 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sep 30, 2015
05:53 AM
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
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
1 Reply
Oct 01, 2015
03:53 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Oct 01, 2015
03:53 AM
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
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