Nov 19, 2013
08:32 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Nov 19, 2013
08:32 AM
This generated by Dave code writes the Data in to the Transfer Buffer FIFO for I2C communication:
As one can see before writing in to the FIFO the polling of the TDV bit occures. But in this case the FIFO will never be loaded more then with one entry!
while(I2CRegs->TCSR & USIC_CH_TCSR_TDV_Msk)
{
;
}
I2CRegs->IN[0] = \
(((uint32_t)Data->TDF_Type << 😎 | Data->Data);
As one can see before writing in to the FIFO the polling of the TDV bit occures. But in this case the FIFO will never be loaded more then with one entry!
2 Replies
Not applicable
Nov 19, 2013
10:36 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Nov 19, 2013
10:36 PM
Hi Dmitry,
Are you using the older version I2C001 App?
The "I2C001_WirteDate()" defined in I2C001[1.0.26] is checking the TxFIFO:
Best regards,
Sophia
Are you using the older version I2C001 App?
The "I2C001_WirteDate()" defined in I2C001[1.0.26] is checking the TxFIFO:
if(USIC_IsTxFIFOfull(I2CRegs))
{
Result = (bool)FALSE;
}
else
{
I2CRegs->IN[0] = \
(((uint32_t)Data->Data1.TDF_Type << 😎 | Data->Data1.Data);
Result = (bool)TRUE;
Best regards,
Sophia
Nov 19, 2013
11:42 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Nov 19, 2013
11:42 PM
Thank you Sophia. I will check out the new realization of the App.