⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.xmece.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
10 posts / 0 new
Last post
Jack Lin
Offline
Last seen:1 week 2 days ago
Joined:2020-10-02 14:49
DA7218 HP no sound

We are using STM32F412RET with DA7218.
STM32F412RET output 19.2MHz to DA7218 MCLK.
1)Set MIC1_P single-ended input and the signal come from MIC input.
2)Now the I2S DATA of DA7218 has signal output.
3)But the HP_L and HP_R no sound,it always low level.

The sch and the register setting file is attached.

请帮助检查错了。任何指导be appreciated.

My E-mail islyp238@qq.com

Thank you!

Device:
charlesxue1122
Offline
Last seen:1 week 5 days ago
Staff
Joined:2019-12-23 05:48
Hi Jack,

Hi Jack,

Could you tell me the MCLK frequency you used?

If 12.288MHz used with DA7218 as i2s slave device, you can refer this script for HP_OUT enable.

Thanks!

Attachment:
Jack Lin
Offline
Last seen:1 week 2 days ago
Joined:2020-10-02 14:49
Hi Charlesxue,

Hi Charlesxue,

Thanks for your reply. Due to the limitation of the platform, it is impossible to output 12.288M MCLK to da7218,

But it can output 19.2M MCLK to da7218, So follow your attachment, I should set 0x91 to 0x03, is it right?

Jack Lin
Offline
Last seen:1 week 2 days ago
Joined:2020-10-02 14:49
I follow your attachment,and

I follow your attachment,and set output 18.432M MCLK to DA7218, because 18.432=(384*sample rate)=384*48K.

But it still no sound from HP.

charlesxue1122
Offline
Last seen:1 week 5 days ago
Staff
Joined:2019-12-23 05:48
Hi Jack,

Hi Jack,

Could you provide i2s format information of platform?

If you could not use 12.288MHz,you need to add configuration in PLL inside of DA7218

Thanks!

Jack Lin
Offline
Last seen:1 week 2 days ago
Joined:2020-10-02 14:49
I set 0x91 to 0x53, PLL

I set 0x91 to 0x53, PLL normal, PLL INDIV= 10-20MHz

set 0x90 to 0x81, Master mode (BCLK/WCLK outputs).

But the HP still no sound.

Attachment is DA7218 master I2S mode.

Attachment:
charlesxue1122
Offline
Last seen:1 week 5 days ago
Staff
Joined:2019-12-23 05:48
Hi Jack,

Hi Jack,

Let me share the DA7218 SmartCanvas GUI tool with you.

You could get it in this link

https://support.dialog-semiconductor.com/pmic-audio/device/da7218?qt-pmi...

Thanks!

Jack Lin
Offline
Last seen:1 week 2 days ago
Joined:2020-10-02 14:49
Hi charlesxue,

Hi charlesxue,

Thank you for providing GUI tool。

May I ask you two questions.

1、If I just want to generate the DA7218 registers setting via the GUI tool, should I need use the Atmel SAM3U USB module?

2、I adjust some registers via GUI tool, But why are all registers reset to default when I click save all registers button?

Jack Lin
Offline
Last seen:1 week 2 days ago
Joined:2020-10-02 14:49
Hi charlesxue,

Hi charlesxue,

Now, the HP_L has signal output, and the HP_R has not signal output, is it right for Single-ended output?

charlesxue1122
Offline
Last seen:1 week 5 days ago
Staff
Joined:2019-12-23 05:48
Hi Jack,

Hi Jack,

Yes. DA7218 headphone output support single-ended.

Could you help to double check the i2s input signal is stereo?

Thanks!