SSC AT91RM9200 and LM4549

Hello all,

tried somebody use LM4549 codec connected to AT91RM9200 by SSC?

Dont much understand SSC, cos LM4549 is connected the way:

-BIT_CLK is connected to PB10 - RK1

-SYNC (input) is connected to PB11 - RF1

-SDOUT (input) is connected to PB8 - TD1

-SDIN (out) is connected to PB9 - RD1

But why is connected only control signals for receive? Also XIN from LM4549 is connected to PB27??

The LM4549 has TAG and 12 frames (20 bit), with contol and DAC data (ADC data.

Need I use PDC for transfers?

I have tried this code to write register, but no success:

//Pio output/input // configure pio as on board *AT91C_PIOB_ODR = AT91C_PB8_TD1 | AT91C_PB9_RD1 | AT91C_PB11_RF1 AT91C_PB10_RK1; //Enable clock for SSC1 AT91F_SSC1_CfgPMC(); //reset SCC and dissable RX TX *AT91C_SSC1_CR = AT91C_SSC_SWRST | AT91C_SSC_RXDIS | AT91C_SSC_TXDIS ; // diable ints *AT91C_SSC1_IDR = (unsigned int) -1; // clock divider not active *AT91C_SSC1_CMR = 0;

//rk pin is clock , rec/snd clock out none, data on falling edge, star on

*AT91C_SSC1_RCMR = AT91C_SSC_CKS_RK | AT91C_SSC_CKO_NONE | AT91C_SSC_CKI AT91C_SSC_START_TX | ((((12*16)/2)-1)
Reply to
Plesna
Loading thread data ...

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.