I'm trying to draw a schematic that I need for selecting a single clock among four possible clock sources. I'd like to select the source using a simple 4 way mechanical switch.
The sources are:
- 22.5792MHz oscillator
- 24.576MHz oscillator
- external clock input (via BCN connector)
- the clock produced by ADAT receiver IC (AL1402)
Only one of these sources can be active at the same time. The two oscillators are divided by two before hitting the clock selector, only one frequency divider is employed since the two oscillator share the same input, so I'd like to enable the oscillators (using the EN pin) only when actually used. The external clock input (44.1KHz to 48KHz) is going to a PLL chip that multiply incoming frequency by 256. Another thing to note is that the 4th source (ADAT clock) is higher in level (0V/5V) so I'd need to bring it down to 0V-3.3V
What is the best way to implement this switching? My main idea was to use tri-state buffers or a multiplexer, but I am wondering if that would degrade the clock performance and if there are simpler/better ways to do this.
The output clock is the Master clock for audio I2S transmission.