sinara-hw / Urukul

4 channel 1GS/s DDS (AD9910 or AD9912 variant)
14 stars 8 forks source link

phase lock application/flexible clocking #37

Closed jordens closed 4 years ago

jordens commented 5 years ago

Follow what transpires in sinara-hw/mirny#10 (through sinara-hw/mirny#22) (MMCX for VCXO tuning and jumper to choose between the first stage mux and the second stage mux, even though that PFD frequency only works for AD9912)

hartytp commented 4 years ago

At a minimum, (space permitting) I think we should add a DNPd MMCX along with a pads for an RCRC filter/attenuator to allow external tuning of the VCXO. Probably also best to add a diode to protect from negative voltages (e.g. I want to use the +-10V stabilizer DAC to tune the VCO).

However, I'm not sure how useful that will be in practice since ground loops will likely lead to lots of spurs on the output. Low frequency noise can be rejected by the feedback, but anything at kHz will make it through largely unattenuated in most applications.

So, again layout/space permitting, what about adding a unity-gain inamp here? Since we don't have a negative rail we'll make it single supply. Copy the EMI filter/protection (minus the CMC) from Sampler and choose a fixed-gain low noise InAmp that can run rail-rail from a single supply. Then have an attenuator + RC filter afterwards to match 0->10V into the VCXO with limited noise BW.

If we had a negative rail we could consider making it work with the full +-10V stabilizer output range, but we don't and it's not worth adding one just for this.

@gkasprow what do you think?

gkasprow commented 4 years ago

Some OAs (i.e. LM358) work with inputs below GND, the gain would need to be <0.1 so it should be possible with a single supply. The oscillator tuning is usually referenced to 1/2 Vcc which makes it even simpler for diff amplifier configuration.

hartytp commented 4 years ago

Sounds good. Let's go for something like that then.

gkasprow commented 4 years ago

what about such circuit? obraz

gkasprow commented 4 years ago

version with opamp bypass obraz

gkasprow commented 4 years ago

let's make the opamp and MCX DNP by default

hartytp commented 4 years ago

@gkasprow what about the flexible clock routing (0R jumpers to select whether each channel is driven by the output of the first or second mux?) is it too late to sneak that in?

hartytp commented 4 years ago

@gkasprow as a basic circuit that looks like it should work (I’ll double check the resistor values later). I’d expect poor cmrr from that diff amp. Iirc there are some InAmps that can take inputs beyond their supply range which would do the job beautifully don’t have a pn to hand right now. A resistor ladder to make a precision differential input divider would also do the job I guess.

Nit picks:

Both of those are low priorities. Would be nice to do something to improve the CMMR if we can but the current implementation should still be useful as is.

marmeladapk commented 4 years ago

@hartytp We're sending this project to manufacturer right now, without including your nit picks since you said that they're low priority. (and right now we have the last chance to swap production files).

jordens commented 4 years ago

@marmeladapk I pointed out specifically yesterday that the clocking jumpers should not be omitted...

hartytp commented 4 years ago

Closing and breaking out into two separate issues for clarity...