lpc1768 and uda1380 question,please help me....

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

lpc1768 and uda1380 question,please help me....

500 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by pasta on Sat Jun 11 11:00:54 MST 2011
hi all:
i used lpc1768 to connect uda1380 by i2s and i2c,i2c works fine,but i2s works not good, sounds is noise not music(play mp3 file bitrate  96K,128K,192K,320K).please help me. thank you all.
HW setting:
lpc1768           uda1380
TX_MCLK       SYSCLK
I2STX_CLK     BCKI
I2STX_WS       WSI
I2STX_SDA     DATAI

SW setting:
lpc1768:
MCLK = PCLK *(x/y) /2 = 36MHz *(143/228) / 2 = 11289421(256*44100)
BCLK = MCLK / 8 = 1411177 (2*16*44100)
ws_halfperiod = 16 bits(0-15)

uda1380:
reg00H: enable Decimator clock, enable FSDAC clock,
               enable interpolator clock,DAC clock select SYSCLK
               Dividers for system clock input:256fs

reg02H: disable WSPLL, enable headphone driver, enable DAC,
               enable BIAS

reg13H: disable master mute, disable channel 2 mute,
               disable channel 1 mute
others register are default value.

1.MCLK,BCLK and ws_halfperiod setting are correct?
2.uda1380 setting are correct?
3.my mp3 file is head file,ex: const char MP3[] = {0xff,0xfb,0x92,0x04,....};
   file size is 60KB,is it can played?
4.Anything else should pay attention to it?

my english is bed :(,sorry,please help , thank you all:)
0 Kudos
4 Replies

325 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Prakash on Sun Apr 22 08:47:48 MST 2012
I am trying to play wave file which is 48Khz sampling rate, 16 bit and mono
channel.
I am new to Audio Codec. So it might be low level questions:)

I am little bit confuse with SYSTCLK of UDA1380, is it need external clk or I
have to connect TX_MCLK to SYSTCLK of UDA1380?

I am referring schematic of RDB1768V2

http://support.code-red-tech.com/CodeRedWiki/RDB1768V2Support?action=AttachFile&do=get&target=rdb176...

and CoiNel LPC1768 H

http://coineltech.com/shop/product_info.php/cPath/5_8/products_id/15

And referring code from following link,

http://ics.nxp.com/support/documents/microcontrollers/zip/an11085.zip

Made the connection as per schematic. But it fails to 'I2C_MasterTransferData'.

int32_t UDA1380_SetRegister(UDA1380_Registers reg, uint32_t value)
{
    I2C_data_transfer[0] = reg;
    I2C_data_transfer[1] = (uint8_t)((value >> 8) & 0xFF);
    I2C_data_transfer[2] = (uint8_t)(value & 0xFF);
    if (I2C_MasterTransferData(I2CDEV_M, &transferMCfg, I2C_TRANSFER_POLLING)== SUCCESS)
    {
        return(value);
    }
    else
    {
        return(~value);
    }
}


Is it depending on SYSTCLK?
In my application I don't need speex and audio recording. Only trying to play wave file.

Kindly help me to solve this issue.

Thanks
0 Kudos

325 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by ardzi88 on Tue Aug 30 01:07:00 MST 2011
Hi pasta, can you email to me on [email]ardzi88@interia.pl[/email]
0 Kudos

325 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by ardzi88 on Mon Aug 29 07:19:17 MST 2011
Hi,
I have a problem with i2s in LPC1769. The clock is generated not correctly (I used examples from CMSIS) so I want to ask you for help because I see that you did it and it works. Could you help me in configuration of clock, could you for example send me me the files where i2s is configured?
Can you email to me on [email]ardzi88@interia.pl[/email] ?
0 Kudos

325 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by NXP_Europe on Fri Jul 08 05:13:45 MST 2011
Have you had a look at Code Red’s UDA1380 example? http://support.code-red-tech.com/CodeRedWiki/RDB1768cmsisExampleProjects?action=AttachFile&do=get&ta...
 
What kind of MP3 decryption do you use?
0 Kudos