I am using SAM3x8E on an arduino due to output sound data through SSC. The sound data is stored in an int16 buffer with 12270 elements . I was able to play the entire audio on speaker using the SSC interface to DAC . (This makes it sure that the DAC is configuration is correct )
Now I am trying to use the DMAC (Channel 0) to transfer the sound from memory to the SSC peripheral. But now I am getting only partial sound (Only 4078 elements from the buffer are played through the speaker).
My DMAC configurations are as follows :
> Single Buffer Transfer
> Hardware Handshaking with destination SSC Peripheral
> DMAC Channel Descriptor Register is set to zero.
> Buffer Transfer size is set to number of elements in the buffer = 12270
Is there any limit to the number of elements that can be transferred using a single buffer transfer?
(I am using asf libraries on Atmel Studio 6)