Hi All,
I am trying to use McBSP2 for rendering audio samples to the TPS65950 audio codec module. I am trying to enable DMA for that.
What is the size of transmit buffer in McBSP2? Spec says that it has 4Kbytes audio buffer and 1Kbytes Transmit buffer.
I need to configure the Transmit threshold value in MCBSPLP_THRSH2 register for a hardware synchronized DMA transfer. Spec says that as long as the XB(Transmit Buffer) free locations level is above or equal to the THRSH2_REG value + 1, the DMA request will be asserted. After transferring the configured THRSH2_REG value + 1 number of words, the transmit DMA request will be de-asserted and reasserted as soon as the conditions are met again.
Assuming Transmit buffer is 4Kbytes , Planning to set Threshold Value as 256 Words(1Kbytes). When the free locations in 4Kbytes buffer goes beyond 1Kbytes DMA is automatically triggered.
Expecting Help on this
Regards
Jack