4 ms·
Forgive my beginner question: What makes clock gating of SPI & I2S difficult? As an example component, here's a SPI mux by Maxim that has 8 separately-control
by jonmrodriguez 13y ago
Forgive my beginner question:
What makes clock gating of SPI & I2S difficult?
As an example component, here's a SPI mux by Maxim that has 8 separately-controlled SPST switches for <= $3.30 (probably much cheaper at scale). http://www.maximintegrated.com/datasheet/index.mvp/id/1281 http://www.maximintegrated.com/datasheet/index.mvp/id/1281 So, if you utilize this fully, you could clock-gate 8 separate SPI components for < $0.42 each, right?
Is a mux the wrong way to do it? What's the proper implementation?
- iyulaev 13y agoNothing. SPI and I2S is usually not implemented with free-running clocks anyway, the clock only runs when there's data on the interface. Sorry, grandparent.
- fnordfnordfnord 13y agoI think what the parent was referring to was that a lazy circuit designer might just never power off the mic, in order to avoid the characteristic "pop" sound associated with older audio equipment.
- simcop2387 13y agoThat'd gate the clock on the bus talking to the digital components, but there is also going to be a separate clock that the ADC will be using to keep track of sampling with less clock jitter. If you start gating that clock off you can end up with some unpredictable results when you start to read back after you turn it back on (unless the IC was built to expect it). This would all have to happen outside of SPI or I2S, which means more hardware and more cost, and probably a more expensive ADC. None of the ones I've seen (been wanting to play with a few) explicitly support doing that because they've got a clock multiplier internally that they use. The MUX you link to would likely allow them to disconnect the microphone easily, BUT it wouldn't prevent the noise on it's own in the first place. There'd likely still be a signal at 24MHZ that shows just blank audio, it'd be better for security of course but doesn't fix the leakage.