How to use RXCTR and RFDF of DSPI for MPC5746C

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

How to use RXCTR and RFDF of DSPI for MPC5746C

跳至解决方案
908 次查看
fans
Contributor I

I saw the RXCTR is incremented after I push the data to PUSHR, but RXCTR decremented suddenly without reading POPR.At the same time, the RFDF equals 1.

The datasheet shows "the RXCTR is decremented every time the POPR is read and incremented every time data is transfered to the RX FIFO".So I can't understand why the RXCTR is decremented without reading POPR?

Why does RFDF equal 1 when RXCTR is 0 ? Does RFDF remain 1  before writing 1 to clear it or it cleard by clearing TCF?I think datasheet should show this mechanism.

标记 (1)
0 项奖励
回复
1 解答
777 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

maybe the RXFIFO is read by the debugger if the register window is opened.

RFDF is cleared by SW by writing 1 to it.

BR, Petr

在原帖中查看解决方案

0 项奖励
回复
1 回复
778 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

maybe the RXFIFO is read by the debugger if the register window is opened.

RFDF is cleared by SW by writing 1 to it.

BR, Petr

0 项奖励
回复