How to use RXCTR and RFDF of DSPI for MPC5746C

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to use RXCTR and RFDF of DSPI for MPC5746C

Jump to solution
934 Views
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.

0 Kudos
Reply
1 Solution
803 Views
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

View solution in original post

0 Kudos
Reply
1 Reply
804 Views
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 Kudos
Reply