Some Observations on MOSFETs

I have been working on a QRP CW transmitter which I’ve described in an earlier post. The output from the buffer amplifier stage is about 50 mW. My goal is to reach about 5 watts of power. To do so, I plan to use the ubiquitous IRF510 transistor to boost power levels. The IRF510 MOSFET is a type of field-effect transistor. It was developed in the 1970s by a semiconductor manufacturing company – International Rectifier. It was originally intended to be used in the automotive industry for turn-signal blinkers and headlight dimmers to replace clunky electromechanical switches and relays. It still continues to be quite popular (and cheap). It has found its way into the hands of amateur radio experimenters who use it at frequencies way beyond what this humble transistor was intended for!

The final power amplifier in my transmitter would be a class-C amplifier using the IRF510. Before connecting the IRF510 to my circuit, I decided to investigate its input characteristics. This would help me to decide how to drive it and meet my design goals. MOSFETs typically have a very high input impedance in DC circuits since the gate is electrically insulated. However, in AC circuits, things are a little more complicated.

MOSFET basics

The IRF510 is an N-channel enhancement mode MOSFET. A MOSFET consists of an insulated gate, the voltage of which determines the conductivity of the device. The ability to regulate the flow of electricity with the amount of applied voltage can be used for amplifying or switching electrical signals.

A thin oxide layer insulates the gate from the rest of the transistor body. When a positive voltage is applied at the gate, positively charged holes are pushed away from the gate-insulator/semiconductor interface creating a depletion layer. The depletion layer is filled with negative charge carriers. With sufficient gate voltage, the accumulation of electrons forms a conducting path between the source and drain terminals, enabling current flow. The width and conductivity of the channel can be modulated by the voltage applied to the gate. The threshold voltage, commonly abbreviated as Vth of a field-effect transistor (FET) is the minimum gate-to-source voltage (Vgs) that is needed to create a conducting path between the source and drain terminals.

Gate capacitance

The gate of the MOSFET is electrically insulated because of the oxide layer, which gives it a high input impedance. When a DC voltage is applied to the gate, no current flows through the gate. The insulating oxide layer is sandwiched between two conductive layers. However, whenever two conductors are separated by an insulating layer, there will be some capacitance. Oftentimes this parasitic capacitance is an unwanted side effect. In the case of MOSFETs, this implies that the gate won’t appear high impedance to an AC input signal since capacitors allow AC signals.

The transistor datasheet should mention the gate capacitance. For the IRF510, the datasheet states a gate capacitance of about 180 pF. This could also be measured in several ways.

Observing the depletion layer

We can measure the capacitance between the gate and source pins using an LCR meter. When measuring the capacitance, I noticed that this capacitance decreases when voltage is applied to the drain and source pins (Vds). I guess this is because of the formation of the depletion layer. As the depletion layer widens, the capacitance decreases.

Gate capacitance (Vds = 0)
Gate capacitance (Vds = 10V)

Analysis with a signal generator and oscilloscope

Gate capacitance could also be determined using AC analysis with a signal generator and oscilloscope. This method involves some math.

We connect a known resistor (R) in series with the gate to create a series RC circuit. Vs is the peak-to-peak from the signal generator, and Vc is the peak-to-peak voltage measured across the capacitor on the scope. The first equation is the formula for capacitive reactance since a capacitor behaves as a frequency-dependent resistor in an AC circuit. The second equation calculates the total impedance by taking the Pythagorean sum of R and Xc. You can read more about impedance in RLC circuits here. The third equation is Ohm’s law: V = IR. The voltage across the capacitor (Vc) is equal to the total current (Vs / Z) multiplied by the reactance of the capacitor (Xc). I derived the formula for capacitance from the first three equations. If you use this method, make sure you consider the output impedance of the signal generator in your calculations.

An interesting phenomenon

While trying to determine the gate capacitance, I tried measuring the RC time constant by charging the gate capacitor through a known resistor. The RC time constant equals R x C (R is in ohms, C is in farads). The time constant is the time it takes for a capacitor to acquire 63.2% of the difference between its initial voltage charge and the voltage applied to it. When I tried measuring this, I noticed something unusual.

Miller effect

The graph doesn’t look like a typical capacitor charge graph. There is a region where it plateaus for a while before it resumes charging again.

This effect was first discovered in the 1920s by John Milton Miler when working with triode vacuum tube amplifiers. The parasitic capacitance between the grid and anode affected the performance of the triode amplifier. This effect is called “Miller effect”. According to Wikipedia:

“In electronics, the Miller effect accounts for the increase in the equivalent input capacitance of an inverting voltage amplifier due to amplification of the effect of capacitance between the input and output terminals.

Later on, we invented solid-state transistors that replaced vacuum tubes, but the Miller effect didn’t go away. There’s no getting around physics! To observe the Miller effect on a scope, I added a 10K resistor in series with the MOSFET’s gate. This resistor slows the charging time of the parasitic capacitors and allows us to see the Miller effect in all its glory.

Parasitic capacitance at the gate

In a MOSFET, there is parasitic capacitance between the gate and source (Cgs) and between the gate and drain (Cgd). There is also parasitic capacitance between the drain and the source, but we will ignore that for now. Initially, when there is no voltage at the gate, the Cgs capacitor is at 0V. The Cgd capacitor is charged to the supply voltage since the voltage at the drain is whatever the supply voltage is.

When the gate voltage rises, the Cgs capacitor charges until the MOSFET’s Vth threshold is reached. This is the voltage at which a channel is formed between the drain and the source. As the MOSFET switches on, the drain voltage drops, and eventually approaches the source voltage. When it drops, the Cgd capacitor sucks in current from the gate, preventing its voltage from rising. This is why we see the plateau in the graph. When the drain voltage settles, and the Cgd capacitor is fully saturated, the gate voltage continues rising.

How do we counter this effect? Of course, the higher the input drive current, the quicker it would pass the Miller plateau. There are other more complicated techniques to counter this effect. I don’t fully understand them yet.

The reality is that I can’t just drive the IRF510 with the 50 mW output from the buffer amplifier and expect 5 watts of output power. According to “Handiman’s guide to MOSFET amplifiers”, the input impedance is about 130 ohms at 7 MHz (40-meter band). To provide an 8 Vpp at that impedance, we’d require about a half-watt of drive. I would have to add another amplifier stage to drive the IRF510.

Archery and Electronics

I enjoy making conceptual connections across different disciplines. When I learned about “impedance matching” in electronics, I realized that this concept is not limited to the world of electronics. Impedance matching is an interesting and tricky topic in RF circuits. Since I practice archery, I’ll share an archery analogy of impedance matching that can help develop an intuitive understanding.

In archery, arrows are tuned to match the bow. Many factors determine a good match, but we will only focus on the weight of the arrow for our example. Suppose you shoot an arrow that weighs 26 grams (~400 grains) from a bow with a 40 lb draw weight. In archery terminology, we would say that the arrow is 10 GPP (grains per pound), since 400 / 40 = 10. The energy stored in the limbs of the bow would get transferred to this arrow. If you use a lighter arrow (< 10 GPP), the arrows will certainly fly faster. However, if it is too light, it won’t be able to effectively penetrate the target. You will also feel significant hand shock when shooting arrows that are too light for your bow. Shooting very light arrows could potentially damage the bow as it would be akin to dry firing. Now, think of the opposite case, where we shoot very heavy arrows (>10 GPP). Imagine shooting a thick branch! The arrow would be too slow to do any real damage to the target.

The beautiful Gera Fox Max bow with matching arrows

The ideal arrow weight is somewhere in between the two extremes. When the arrow is close to the ideal weight, it would carry the most energy. So, what are we doing when we are finding this ideal weight? In electronics, this is called impedance matching.

In the context of RF transmitters, we are trying to maximize the energy going into the antenna. This can only happen if the impedances are matched. If there is a mismatch, there will be power loss and energy will be reflected. In extreme cases, the reflected energy could damage the transmitting circuit (similar to dry firing a bow).

This is easy to understand with a simple resistive circuit:

In the above circuit, power transfer would be optimal when Zₛ equals Zₗ. This can be verified with simple math. If we make Zₗ < Zₛ, the current (I) would certainly increase. However, the voltage across the load would drop. Similarly, if we made Zₗ > Zₛ, the voltage across the load would increase, but at the cost of current. So, optimal power (V*I) would be transferred when Zₛ = Zₗ. 

Matching source and load impedance is not always desirable in electronics. For example, if we were designing a “stiff” voltage source that provides a steady voltage, we would want the source impedance (Zₛ) to be significantly lower than the load impedance (Zₗ). Otherwise, the load overload the voltage source and pull the voltage down. However, when driving a speaker from an amplifier, or when sending radio waves with an antenna, we want optimal power transfer. In these cases, impedance matching is desirable.

Waves in the Ether

I’ve always been fascinated by electronics and radio waves. It’s something we take for granted these days. But think about it – you can push electrons back and forth in a wire, and the effects of this swashing could be sensed thousands of miles away. Isn’t that magical? I didn’t study electronics in college – my major was CS. We learned how to write code and design algorithms. I learned electronics through self-education and experimentation. I feel that this style of learning is often better than a formal education. You can take things at your own pace and be driven by your curiosity and passion. My interest in electronics began with me trying to control things in my house with my computer (see my old blog). One of my first projects was connecting an LED to my computer’s parallel port. Later on I figured out how to connect all kinds of things, such as a floppy drive camera pannerRC cars, etc.

I watched a documentary that left a strong impression – “Shock and Awe: The Story of Electricity” (by Jim Al-Khalili). This film inspired me to learn more about electronics and go beyond controlling LEDs and relays. Soon, I became obsessed with radio circuits. My first transmitter/receiver was a primitive spark-gap transmitter and coherer receiver that I built. My interest in radios eventually pushed me to get an amateur radio license (callsign N6ASD) in 2015.

Spark-gap transmitter
Coherer receiver

The person who has inspired me the most in my electronics journey is Frank Harris (K0IYE). He is the author of the book “From Crystal Sets to SSB”. I couldn’t put this book down once I began reading it. His approach and passion for learning were something I could relate to. It wasn’t long before I contacted the author. After exchanging emails for about a year, I met him in person when I visited Colorado in 2017. For me, it was like a dream come true to meet my electronics hero in real life! He showed me his basement lab, with all his radios and electronics creations. Over the years, we’ve stayed in touch and Frank continues to inspire me. If you read Frank’s book, you will find my name mentioned in a few places (particularly in the sections about regenerative receivers and homebrew electrolytic capacitors).

Meeting Frank Harris (K0IYE)

In 2020, I moved from San Francisco to Bangalore. Many things changed in my life, and electronics took a backseat. I focussed my time on other non-technical hobbies. Fast forward to 2023, I found myself back in the world of electronics. My wife (Aditi) encouraged me to set up a little workstation in a corner of my apartment. Having a space in your house/apartment dedicated to something you enjoy is important, and makes it easier to pursue your hobby.

Oil lamps and electronics – a great combination!

These days, I am building a 40-meter QRP (low power) transmitter from Frank’s book (chapter 6). The circuit consists of multiple stages – the oscillator, buffer amplifier, driver, and final power amplifier. So far, I have completed the first two stages – the oscillator and buffer amplifier. I don’t have the transistors that Frank is using in his circuit in the final stages. So, I plan to design my own driver/power amplifier stages. I’m planning to use transistors that are readily available in India.

The joy of successful oscillations

Stay tuned for updates!