pfalstad / circuitjs1

Electronic Circuit Simulator in the Browser
GNU General Public License v2.0
1.71k stars 286 forks source link

How can I make logic gates inside subcircuits use specific voltage level? #81

Open AgainPsychoX opened 6 months ago

AgainPsychoX commented 6 months ago

I set out to analog multiplexer 74HC4052 as I need it myself, and to address issue #76 by the way. In the datasheet, 74HC4052 recognizes HIGH for logic (aka VIH) depending on the VCC:

image

Is there a way to make logic gates inside subcircuits use specific voltage level?

For now it seems like I need to make multiple versions depending on (ideal) VCC I want to target. While it's trivial to me to edit the TXT file (replacing 5\n to 3.3V\n) , it's a bit annoying.

image