问答

汇集网友智慧,解决技术难题

21ic问答首页 - TMS320F280049C的I2C无限进入FIFOTX发送中断

The I2c tms320f280049C FIFO TI DSP

TMS320F280049C的I2C无限进入FIFOTX发送中断

Zamboo2022-08-03
在配置TMS320F280049C的I2C的FIFOTX中断后,将FIFO深度设置为16,使用中断传输数据,打开逻辑分析仪发现传输的数据有问题,200个数据只发送了16个数据,使用一个CNT变量记录进入FIFOTX中断的次数,发现进入次数达到了5位数,看了一下用户手册,下面是对FIFOTX LEVEL 位的描述:Transmit FIFO interrupt level.
These bits set the status level that will set the transmit interrupt flag.
When the TXFFST4-0 bits reach a value equal to or less than these
bits, the TXFFINT flag will be set. This will generate an interrupt if the
TXFFIENA bit is set. Because the I2C on this device has a 16-level
transmit FIFO, these bits cannot be configured for an interrupt of
more than 16 FIFO levels.
Reset type: SYSRSn


多次尝试都没有解决发送数据错误的问题,期待大佬们的回答!!
回答 +关注 5
775人浏览 0人回答问题 分享 举报
0 个回答

您需要登录后才可以回复 登录 | 注册