Dear all,
I am using the MCASP of OMAP-L137 to receive and transmit data from or to my codec(AK4620B). I chose the I2S protocol for my communication.
Now I am coding to directly read or write the XRBUF register of mcasp1.
My question is that the cpu can write the XRBUF only once. The second time , the XSTAT will tell me the XRBUF is written and full. I mean the XBUF is not automatically coped to XRSR as the document says :
"For transmit, the DSP services the McASP by writing data into the XBUF register, which is an alias of the XRBUF for transmit. The data automatically passes through the transmit format unit before actually reaching the XRBUF in the serializer. The data is then copied from XRBUF to XRSR, and shifted out from the AXR[n] synchronously to the serial clock."
What's more, the RBUF is always empty and can't read data from the AXRn pin I select.
I am confused. I programed the code by following the OMAP-L137-EVM‘s AIC3106's test code.