I am handling SAI audio interface on imx6. There is a SAI Transmit FIFO reg (TFR) with WFP and RFP pointers for transmit data channel. At what condition WFP and RFP pointers are reset to 0?
In the reference manual WFP is incremented after each valid write to TDR. Does the WFP is incremented until max value 2^6?
Br,
Linas
I understand what is written in the sect.42.3.2.2. But I am interested in I2Sx_TFRn and I2Sx_RFRn registers which store read/write pointers. Is it possible to calculate fill level of transmit and receive buffers using these pointer values?
please refer to sect.42.3.5.2 FIFO pointers
>Is it possible to calculate fill level of transmit and receive buffers using these pointer values?
I am afraid no
Best regards
igor
Hi Linas
please refer to sect.42.3.2.2 FIFO reset i.MX6UL and description
of register RMI2Sx_TCSR[FR] FIFO Reset.
http://cache.freescale.com/files/32bit/doc/ref_manual/IMX6ULRM.pdf
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------