AnsweredAssumed Answered

VDK, Ezkit-BF533 and TDM

Question asked by Dferreira on Apr 16, 2013
Latest reply on Apr 22, 2013 by Prashant

Hi staff,

I am working in a TDM mode talkthrough  VDK example to ezkit bf533.

Based on the provided example (in I2S mode) I changed the configs:

 

// Sport0 receive configuration

*pSPORT0_RCR1 = RFSR | LRFS | RCKFE;   // Ext. CLK, Ext. Frame sync, MSB first, Active Low

*pSPORT0_RCR2 = SLEN_16 | RSFSE | xse; // 16-bit data, Stereo frame sync enable

To:

*pSPORT0_RCR1 = RFSR; // External CLK, External Frame sync, MSB first

*pSPORT0_RCR2 = SLEN_16; // 16-bit data

*pSPORT0_MRCS0 = 0x000000FF; // Enable MCM 8 receive channels

 

And,

// Sport0 transmit configuration

                    *pSPORT0_TCR1 = TFSR | LTFS | TCKFE;   // Ext. CLK, Ext. Frame sync, MSB first, Active Low

                    *pSPORT0_TCR2 = SLEN_16 | TSFSE | xse; // 16-bit data, Stereo frame sync enable

To:

*pSPORT0_TCR1 = TFSR; // External CLK, External Frame sync, MSB first

*pSPORT0_TCR2 = SLEN_16; // 16-bit data

*pSPORT0_MTCS0 = 0x000000FF; // Enable MCM 8 transmit channels

 

And i also add in the end of AD1836::Open :

 

// Set MCM configuration register and enable MCM mode

          *pSPORT0_MCMC1 = 0x0000;

          *pSPORT0_MCMC2 = 0x101c;

 

 

But I'm with some problems...

The interrupt isn't called.. I think DMA is not receiving samples...

 

thanks

Outcomes