Hi,
I am using the TAS1020B part for I2S to USB converter (4 - Channel Microphone array). I have modifed the example firmware that is avaiable in the TAS DVK (FW_8). I am trying to sample audio at a 32/16khz frequency with the Wolfson Audio Codec 's that i have interfaced setup as I2S master. The problem i am facing is that irrespective of the fact that i set the Endpoint packet size to 512 or 256, the TAS will always respond with 256 or sometimes 264 bytes of data to all ISOC IN requests for Audio Data. This results in missgin whole portions of data. The example firmware that i modifes had setup the ISOC USB buffers as a circular buffer and with its size equal to the Max Endpoint packet size. I am using all the ROM functions that are there in the example firmware and have only modifed the CLK dividers, DMA registers and the C port registers according to the needs of my applicaiton. Here are the registers i have changed along with thier values
/* Initialising Codec port and DMA of TAS
DMATSH1 = 0xC0; // 4 BYTEs per time slot
DMATSL1 = 0x0F; // Slots 0 ,1,2 3
DMACTL1 = 0x0A; // In EP2 from C-port
DMACTL1 |= 0x80; // enable EP2 from C-port
// disable C-port
GLOBCTL &= ~CODEC_PORT_ENABLE;
// Configure the C-port
CPTCNF1 = 0x0C; // I2S mode4 , 2 time slots per frame
CPTCNF2 = 0xED; // 32-bit per time slot
CPTCNF3 = 0xAC; // byte inverse & 1clk delay
CPTCNF3 = 0xAF; // byte inverse & 1clk delay & CSCLK and CYNSC are inputs
CPTCNF4 = 0x05; // SCLK = MCLK/6 12 /6 = 2 MHZ, I2S SCLK = 2 MHZ, Sampling Rate SCLK/ 64 = 2MHZ/ 64 = 32 KHZ
// Enable C-port
GLOBCTL |= CODEC_PORT_ENABLE;
Apart from this i have modified the descriptos according to my needs, but they enumerate properly and i have no issues with that.
I AM NOT ABLE TO TRANSFER ANYTHING MORE THAN 256 BYTES OF DATA FOR EVERY IN REQUEST FROM THE HOST. CAN SOMEONE PLEASE LET ME KNOW IF I NEED TO DOUBLE CHECK ANYTHING ON THE WAY USB BUFFERS HAVE BEEN CONFIGURED. ANY SUGGESSTION ON HOW TO GET AROUDN THIS ISSUE WILL BE HELPFUL. Please let me knwo if you need any more information .
thanks,
Praveen Kumar
Microsoft IEB