Showing posts with label analog switch. Show all posts
Showing posts with label analog switch. Show all posts

Monday, April 1, 2024

Testing bus mixer

I've spent between 50 and 100 hours laying out the voicecard mainboard lately, but finally I had some time to test the bus mixer.

Everything works as it should:

- 16 switches

- 12 VCAs

- Summing on both wet and dry busses

- Summing of wet AND dry


The only thing to worry about is the switching noise. I get huge peaks (>5V when switching. Some are more prominent than others, so not entirely sure what it is caused by. The peaks are there even when the switch has a 0V input on both channels:

Here is a sceenshot of summing two multiple 5V inputs (the output from the VCAs is 4.5V btw...)


Oh - and I had an initial scare, it looked like we had some capacitance somewhere, and serious crosstalk between busses. Turns out the logic probe ground lead had disconnected itself so the output showed the average of whatever it measured:





Monday, August 7, 2023

CMOS switches and current switching

After my previous post where I discovered that Douglas Self has some examples where he's switching mixer inputs at the op amp virtual ground, and after talking to the guy on Reddit that made me discover the CH446Q (ARabidSquid, Architeuthis Flux on Tindie), I decided to test it in practice.

I hooked up a DG418 on a breadboard, and used an 78L05 and 79L05 to get a +/-5V supply for the DG418.

I then used a TL072 op amp with +/-12V supplies, with one op amp to buffer the input from the function generator and the second to "sum" (just invert really) the output from the switch, with a 47k negative feedback resistor. 

Version of circuit where input resistor is before the switch



I could now experiment with having the op amp input resistor BEFORE the switch (placing the switch at the virtual ground) or AFTER the switch

An initial test with a 10Vpp (+/-5V) signal showed that it worked in both configurations.

Resistor after the switch, 10Vpp

Resistor before the switch, 10Vpp




I then placed a 20Vpp signal on the version with the resistor after the switch. As expected, the switch clips the signal since it sees the full 20Vpp, but exactly how it clips is interesting. Measured at the input pin (i.e. the output of the buffer), the INPUT is clipped - the top is at 9.16V and the bottom at -5.85. I didn't expect it to be asymmetrical.

Resistor after the switch, 20Vpp. Output (and input) clips


Next up, I moved the resistor to before the input. The switch should now see no voltage swing (though a current passes through, +/-0.2mV at its peaks). This also worked as expected, the output is also 20Vpp (though inverted because of the op amp configuration).

Resistor before switch, 20Vpp passes nicely



This looked very promising. Next up was turning the switch OFF. 

Again, for the 10Vpp signal, it worked as it should for both variations.

Switch off, 10Vpp



I then tried cranking up the signal for the variation with the resistor before the switch, but then "disaster" struck: Once the input signal got higher than the DG418's supplies, it started leaking! With a 13Vpp input, it blocked everything up to 10Vpp. The remaining, however, was passed through, giving the output small "bumps"! 

Resistor before switch, switch off, 13Vpp. Anything above approx 5.1V is passed, giving funny little bumps on the output.



When showing the result to ARabidSquid, he confirmed that this was how CMOS operate, it cannot block anything higher than it's supply voltages.

After seeing this result, I remembered that I read something similar yesterday - someone posted about a similar issue, where a current input made the switch leak when it was turned on. Someone suggested using an SPDT (or two switches in a crosspoint switch) to sink the current. This could be an option, to use a separate bus to sink all input signals that are not in use. However, I think I'd rather stay within the operating limits and keep my signals at 16Vpp max.

Sunday, August 6, 2023

Mix bus and channel muting

I'm designing a variation of my pre filter mixer using the CH446Q 8x16 crosspoint switch, and while doing so I started wondering if having the switch after the mix input resistor was a good thing or not. 

Douglas Self to the rescue, seems that switching directly to the virtual ground of the mixer summer is the way to go.

From "Self on Audio" by Douglas Self - Figure A seems to be the way to do things which is what I've done in my new design.

My mixer


Tuesday, April 12, 2022

DG/Vishay-switcher

I always wonder what switch does what, so here it is:

Vishay also have switches with the DG3xx prefix (and others)


8p:

DG417: SPST normally closed

DG418: SPST normally open

Dg419: SPDT 


16p:

DG401: 2 x SPST in DIL16

DG403: 2 x SPDT

Dg405: 2 x linked SPST

Dg408: 1:8 mux

DG409: 2 x Linked 1:4 mux

DG411: 4 switches, normally closed

DG412: 4 switches, normally open

DG413: 4 switches, 2 pos and 2 neg logic, May be used as SPDT/DPDT


NB: Max +/-8V men kan funke med single supply opp til 16v:

Dg4051: 1:8 mux

Dg4052: 2 x linked 1:4 mux

Dg4053: 3 x spdt 


28p wide

Dg406: 1:16 mux

Dg407: 2 x Linked 1:8 mux


Dg445 - quad spst - what’s The catch?


Per the 12th of April 2022 I have:

2 x DG403 (dual SPDT)

2 x DG408 (1:8)

1 x DG409 (2 x 1:4)

5 x DG412 (4 x SPST)

1 x DG418 (SPST normally open)

8 x DG419 (SPDT)


Update

I ordered 306 Harris DG413 from Digikey as they were the cheapest I could find (around NOK 8.5). I also ordered 45 DG408 from Farnell, not as cheap, and will order 100 Intersil DG412 from Rs components (around NOK 8.5 too).


Sunday, April 10, 2022

Analog switches and V logic

A quick note on the DG series analog switches:

I've successfully run at least one of these with a V_l (logic level voltage) of 15V while controlling the chip from a 5V MCU.

As I considered doing this for all switches (but with 3.3v logic level), I did a quick search that turned up these three posts:

"How do I connect the DG403 logic supply (VL) pin?"

"switches - VL input on analog switch"

"Analog Switch switching voltage (DG412)"

They don't give the exact same answer though. The Renesas one says to use a 5V supply (even for 3.3v logic), derived from the 15V using a resistor voltage divider with high value resistors.

Now, they may not be talking about the same chip as the DG series are produced by a variety of suppliers, but at least it sort of validates just using a voltage divider.

The stack exchange post starts talking about excessive current draw. 

The modwiggler post suggests using zener diodes or a resistor divider connected to an emitter follower. 

For now, I'll stick with V_l = 5V but I'll test doing it with a resistor divider.