SAM3U SSC0 DMA not working

Discussion around product based on ARM Cortex M3 core.

Moderators: nferre, ncollot

Makk
Posts: 2
Joined: Sun May 12, 2013 12:44 pm

SAM3U SSC0 DMA not working

Fri May 17, 2013 3:58 pm

Hi,
I am trying to interface my sam3u with TLV320AIC3254 codec in DSP mode using the SSC0 peripheral without dma.
I am able to play some DTMF tones from an array that I created manually and its working fine except that there is some voice before the tones actually starts to play.
When I try to make loopback by reading from the ADC and sending the same read data to DAC, I dont get any voice. I am getting some data in the read register of the SSCo but the voice is not there.
Kindly give any suggestions to solve this problem.
My MCLK = 12.28Mhz....BITclk = 256Khz and WCLK = 8KHz.
My TCMR= AT91C_SSC_CKS_DIV |AT91C_SSC_CKO_CONTINOUS|AT91C_SSC_CKI|AT91C_SSC_START_FALL_RF|((((BITS_BY_SLOT*SLOT_BY_FRAME)/2)-1) <<24)

TFMR == (BITS_BY_SLOT-1) | AT91C_SSC_MSBF | (((SLOT_BY_FRAME-1)<<8) & AT91C_SSC_DATNB) | AT91C_SSC_FSOS_POSITIVE
|( 1<< 16)


RCMR = AT91C_SSC_CKS_TK | AT91C_SSC_CKO_CONTINOUS |
((1<<16) & AT91C_SSC_STTDLY) | (0x1 << 8) | AT91C_SSC_CKI

RCFR = AT91C_SSC_MSBF | (BITS_BY_SLOT-1)


Please let me know how I can use the DMA for TX and Rx

Return to “SAM3 Cortex-M3 MCU”

Who is online

Users browsing this forum: No registered users and 4 guests