<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; font-family: Calibri, sans-serif; font-size: 14px; color: rgb(0, 0, 0);"><div><div>For some reason STM32CubeMx doesn’t seem to like anything lower that 1000x the sample rate…</div><div><br></div><div><a href="https://www.dropbox.com/s/a22vmj9t1szljzr/Screenshot%202016-02-17%2018.50.11.png?dl=0">https://www.dropbox.com/s/a22vmj9t1szljzr/Screenshot%202016-02-17%2018.50.11.png?dl=0</a></div><div><br></div><div><a href="https://www.dropbox.com/s/mr0a1erzbs1tmo6/Screenshot%202016-02-17%2018.51.15.png?dl=0">https://www.dropbox.com/s/mr0a1erzbs1tmo6/Screenshot%202016-02-17%2018.51.15.png?dl=0</a></div><div><br></div><div><div id="MAC_OUTLOOK_SIGNATURE"><div>Rob Spencer</div><div>gmsn.co.uk</div><div>07590 267835</div><div><br></div><div><br></div><div><br></div></div></div></div><div><br></div><div>On 17/02/2016 18:14, "Synth-diy on behalf of Eric Brombaugh" <<a href="mailto:synth-diy-bounces@dropmix.xs4all.nl">synth-diy-bounces@dropmix.xs4all.nl</a> on behalf of <a href="mailto:ebrombaugh1@cox.net">ebrombaugh1@cox.net</a>> wrote:</div><div><br></div><blockquote id="MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style="BORDER-LEFT: #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;"><div>The I2S master clock output from the STM32 will only be present when the </div><div>I2S port is active. You need to have the peripheral fully configured and </div><div>DMA running before you see any traffic on the I2S signals.</div><div><br></div><div>I generally wait until after the I2S port is up and running before </div><div>trying to issue commands on the I2C control port. I'm not 100% certain </div><div>that this is necessary in all cases, but the WM8731 does some adaptive </div><div>configuration based on the command setup and the measurements it does of </div><div>the incoming I2S clock ratios, so it's best to have all the information </div><div>present when you command it.</div><div><br></div><div>The frequency and hence visibility of the MCK signal depends on what </div><div>oversampling ratio you've chosen. For a typical 48ksps sample rate with </div><div>a 256x oversample ratio the MCK should be about 12.288MHz which should </div><div>be well within your equipment's capability. You can run the codec at 64x </div><div>and 128x as well, so it's possible you could get an MCK of less than </div><div>20MHz even if you're running at 192ksps.</div><div><br></div><div>Eric</div><div><br></div><div>On 02/17/2016 11:00 AM, Rob Spencer wrote:</div><blockquote id="MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style="BORDER-LEFT: #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;"><div> I think I’m getting to the crux of the issue.</div><div><br></div><div> Am I right in thinking I2S MCK is only active when sending data across I2S? So if it’s in DMA mode, it will be active.</div><div><br></div><div> And without MCK or it’s own clock, the CODEC can’t ACK the I2C traffic?</div><div><br></div><div> I’m also working on the assumption that I can’t measure MCK as it’s over the 20MHz limit of my scope and logic analyser.</div><div><br></div></blockquote><div><br></div><div>_______________________________________________</div><div>Synth-diy mailing list</div><div><a href="mailto:Synth-diy@dropmix.xs4all.nl">Synth-diy@dropmix.xs4all.nl</a></div><div><a href="http://dropmix.xs4all.nl/mailman/listinfo/synth-diy">http://dropmix.xs4all.nl/mailman/listinfo/synth-diy</a></div><div><br></div></blockquote></body></html>