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