Hi,
According to the datasheet of DA7212 Page 62, there is no need of MCLK when DA7212 is interfaced with the processor in slave mode. I have interfaced ard-audio-da7212 board with my Arduino MKRZERO. Arduino MKRZERO is capable of generating the required I2S signals like BCLK,WCLK and DATOUT. My question is do I have to provide MCLK to ard-audio-da7212 from MKRZERO?
当做,
Niradat.
Device:
亲爱的Niradat,
Sorry for the late to response. The DA7212 datasheet of mine seems that have some difference with yours.
Could you send yours to me to check the description. I need check the PLL clock soucrec is from MCLK or BLCK.
许多Thanks!
BR
Charles
Hi,
Attached herewith is the datasheet of DA7212 that I have.
Regards,
Niradat
Hi Niradat,
Attached is a new one. You can take the section "13.25 Clock modes" as reference. Pls pay attention for Pll mode configuration.
Thanks!
Hi Charles,
Thanks for sharing the updated Datasheet of DA7212. Using the datasheet I have written the follwing code on Arduino MKRZERO. In this code the MKRZERO is playing a 16-bit Stereo WAV file and I can listen it on my ARD-AUDIO-DA7212 Audio Shield. But it seems that DA7212 suddenly goes in sleep state and the audio stops. Although MKRZERO is playing the Audio. Furthermore the Audio from DA7212 Module is not Stereo. Kindly help in this regard.
Best Regards,
涅盘。
Hi Niradat,
If you have decieded to configure DA7212 as slave mode, could you provide the frequency of MCLK/BCLK/WS sent from your Arduino MKRZERO?
I can find some sample code for you.
Thanks!
Hi Charles,
是的,我想要配置DA7212slave mode. Regarding the clock outputs from Arduino MKRZERO, there are only three outputs from MKRZERO namely BCLK, WS and DOUT with their respective frequency BCLK= 1.4112 MHz and WS=44.1KHz. MCLK is not output from MKRZERO.
BCLK= 44.1 kHz × 16 × 2 = 1.4112 MHz
Regards,
Niradat.
Hi Niradat,
Pls refer the code attached.
Thanks!
Thanks a lot Charles