Other Parts Discussed in Thread: OMAPL138
Hi Team,
One of my customers is having issues with the McBsp.
Here below is the description of the phenomena that my customer sent:
I recently encountered a problem when using the C6424 chip with a CPU clock of 400MHz.
The problem was that when I used McBSP0 and McBSP1 for voice and CAS samples, I saw that the slots were not fixed in the TDM.
I am using the EDMA3 to transfer samples from a DMA buffer in the internal memory to the McBSP. The DMA buffer consists of lines where each line corresponds to a slot in the TDM.
I noticed that while the data was correct in the DMA buffers. It was shifted every few seconds in the TDM, so that slot0 was placed on slot1, slot1 was placed on slot2 …….slot N-1 was placed on slot0 and after some time there was another shift so slot0 on slot2, slot 1 on slot3…..slot N-2 on slot0 and slot N-1 on slot1 and so on.
I noticed the following quote from the C6424 errata:
2.1.13 McBSP: Maximum Frame Frequency May Not Be Possible When Word Length is 8-Bits
As described in the TMS320DM643x DMP Multichannel Buffered Serial Port (McBSP) Interface User's
Guide (literature number SPRU943), the maximum frame frequency (defined as the bit-clock frequency
divided by the number of bit clocks between frame sync signals) may not be possible when the word
length is 8-bits, depending on the clock divide value CLKGDV. The CPU or EDMA may not be able to
service serial port requests as frequently as every 8 bit clock. This situation can be resolved by allowing
additional space between words or choosing a slower bit clock (larger than CLKGDV value).
So I tried the using 2Mhz clock instead of the 8Mhz I was using by default and the problem disappeared. I also tried using non-consecutive slots: instead of using slot 0,1,2,3 I used slot 0,3,5,7 and this also solved the problem.
We only had this problem when using a CPU clock of 400MHz, using frequencies of 600MHz and 700MHz there were no such problem.
If possible I would like to know what are the exact limitations mentioned in the errata, or is there a better way to resolve this problem since allowing the additional space reduces the slots number from 128 to 64 and using the 2MHZ clock reduces the number of slots to 32.
BR,
Eran