在配置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
多次尝试都没有解决发送数据错误的问题,期待大佬们的回答!!
|
自定义指令集,自研内核架构,基于eclipse自研IDE,工具链,算法库。 根据自研QXS320F280049,做了600W和2KW数字电源方案,1.5KW电机方案,目前已在市场大量投产。 QXS320F290049应用于数字电源,光伏逆变器,充电桩,OBC,储能,变频器,伺服控制等 QXS320F2800137应用于三轮车、两轮车充电器OBC,小功率数字电源,模块电源,家电电机控制等 QXS320F28034应用于变频器 QXS320F28377D应用于电...