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:
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!
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?
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.
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!
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.
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!
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?
Hi charlesxue,
Now, the HP_L has signal output, and the HP_R has not signal output, is it right for Single-ended output?
Hi Jack,
Yes. DA7218 headphone output support single-ended.
Could you help to double check the i2s input signal is stereo?
Thanks!