how to config ssc in slave mode(bclk=12.288MHz,LRCK=48KHz)?

Discussion around products based on ARM Cortex-A5 core.

Moderator: nferre

leo.ni
Posts: 52
Joined: Mon Jun 06, 2016 4:20 am

how to config ssc in slave mode(bclk=12.288MHz,LRCK=48KHz)?

Tue Sep 06, 2016 11:06 am

Hi,all.i use sama5d3-xplained board,i want to config ssc in slave mode,and input BCLK(12.288MHz) using external crystal,and LRCK(48KHz).i configure it as follow,when i send constant data example 0x55,Waveform jitter not correct.if reducing the BCLK to 10MHz about, wave is stable.Can someone help me? Thanks for your reply!

Code: Select all

    bitrat = 0; 
   SSC_Configure(  pSSC,
                    bitrate,  //0:slave not gen clk 1:gen clk
                    mclk 
                 );    
 
    tcmr.cks    = 2 ;   // 0:MCK 1:RK 2:TK
    rcmr.cks    = 1 ;   // 0:MCK 1:TK 2:RK  0-->1
    
    tcmr.cko    = 0 ;   // 0:input only 1:continus 2:only transfer
    rcmr.cko    = 0 ;   // 0:input only 1:continus 2:only transfer
    
    tcmr.cki    = 0;    // 0: falling egde send
    rcmr.cki    = 1;    // 1: rising edge lock  
    
    tcmr.start  = 4;    // 4: falling edge trigger for low left, 5: rising edge trigger for high left,
    rcmr.start  = 4;    //0:continuous 1:transmit 2:RF_LOW 3:RF_HIGH 4:RF_FAILLING
    					//5:RF_RISING 6:RF_LEVEL 7:RF_EDGE 8:CMP_0
    tcmr.sttdly = 1;
    rcmr.sttdly = 1;   
	
    tcmr.period = 0;  
    rcmr.period = 0;    
    
    tcmr.ckg    = 0 ;   
    rcmr.ckg    = 0 ;   
       
    tfmr.fsos   = 0 ;  
    rfmr.fsos   = 0 ;  
    
    tfmr.datnb  = slot_num-1;	//8channel
    rfmr.datnb  = slot_num-1;	//8channel 
    
    tfmr.datlen = slot_len-1;        //32bit
    rfmr.datlen = slot_len-1;	//32bit ;
    
    tfmr.fslen  = 0 ; 	
    rfmr.fslen  = 0 ; 
	       
    tfmr.fsedge = 1 ;
    rfmr.fsedge = 1 ;
          
    tfmr.msbf   = 1 ;
    rfmr.msbf   = 1 ;   

    tfmr.datdef = 0 ;
    tfmr.fsden  = 0 ;
    
    rfmr.loop   = 0 ; //0:normal 1:loop 
    
    SSC_ConfigureTransmitter( pSSC,  tcmr.value,  tfmr.value );
    SSC_DisableTransmitter( pSSC );
    SSC_ConfigureReceiver(  pSSC,  rcmr.value , rfmr.value );
    SSC_DisableReceiver( pSSC );    

Return to “SAMA5D Cortex-A5 MPU”

Who is online

Users browsing this forum: No registered users and 1 guest