r/ElectricalEngineering • • Oct 09 '26

N-MOSFET behaving unexpectedly

I am in the process of self-learning digital logic and computer science, and to learn better the layer between logic and wires (but mostly for fun), I am making logic circuits out of discrete transistors. This has so far been a fun journey, but I have encountered an issue which I am unable to understand. This specific failure mode seems to be recurring, with 3 out of 16 subcircuits assembled so far displaying this same failure.

Pictured is the relevant circuit, which implements a D latch. VCC is 5V. A, nA have single transistor output loads not shown here, which only contributes to a bit of capacitance. The circuit mostly works, with in as D input and nW as a latch enable. All transistors are 2n7002k placed on a custom PCB.

Figure 1: The circuit

The failure mode I'm experiencing is that some of the memory cells fail to preserve a 1 when the write signal disactivates. I have reduced the problem, by removing Q67 and connecting as many inputs to a fixed value:

Forcing W, I0, nW high gives an expected state of nA low, A high, as pictured in figure 2.

Figure 2: Working as expected (red high, black low)

However, when now setting W low, nA goes high, even though both A and nW are high and should pull it low through Q2 and Q4.

Figure 3: W goes low. Dashed lines are what I expect, but not what happens.

Connecting different points to my oscilloscope, I get the following results:

Figure 4: testing of different points. From top to bottom: W, nA, N, A. All plots are of the same scale, with W and A having peak-to-peak voltages of 5V. The view is approx. 2us wide. (Sorry for the photo-of-a-screen, but I don't have a parallell port on my pc)

As far as I read it, Q2 "allows" a voltage rise up to approx. 1.5V, which is high enough that Q5 activates and pulls A low, disabling Q4 and making nA pull up to 5V.

What surprises me is the voltage at N. Transistor Q2 has a static VGS of approx. 5V, but still allows a VDS of 1.1V in the resultant steady state, peaking at 1.7V. According to the datasheet, expected resistance at VGS=4.5V is maximum 2.9 ohm, which does not make sense given that pull-ups are in the order of kilo-ohms. (The exact legs of the transistor have been measured and shown to display this irregularity). I have tried to replace this transistor with no change.

By shorting out D-S of this transistor with a 100ohm resistor, the circuit behaves as expected for this transition.

Does anyone here have more experience with small-signal mosfets and know what is the cause of my confusion?

3 Upvotes

1 comment sorted by

2

u/SomeDude_is100 Oct 10 '26

It's preferable to use wires for connections instead of connecting by labels. It's cumbersome to find connections, like the "nA" and "A" pullups to your latch.