**FPGAs/PLDs??**

# An introduction to analog circuit design Part 1: Transistors and Elementary Circuits

**Keywords:mixed-signal?
cmos?
mosfets?
**

Modern circuit design is a "mixed signal" endeavor thanks to the availability of sophisticated process technologies that make available bipolar and CMOS (Complementary Metal Oxide Semiconductor), power and signal, passive and active components on the same die. It is then up to the circuit designer's creativity and inclination to assemble these components into the analog and/or logic building blocks necessary to develop the intended system on a chip.

While the digitalization of traditional analog blocks continues, new analog blocks are invented all the time. Examples of new analog functions are charge-pump voltage regulators, MOSFETs, and LED drivers. A contemporary example of digital technology cutting deep into analog core functions is the digitalization of the frequency compensation in the control loop of switching regulators. In this case while the feat has been accomplished and it can indeed be exhilarating to move 'poles' and 'zeros' (see glossary) around with a mouse click it is not clear that the feature of digital frequency compensation, and its associated cost in silicon, is always justified. So while digital technology" circuits and processes- continues to gain ground, analog keeps reinventing itself and rebuilding around a central analog core of functions that is tough to crack: we don't expect to see the digitalization of an analog circuit like the band-gap voltage reference" namely a digital circuit taking the place of the current analog one - happening any time soon.

In this tutorial we will discuss a number of analog and digital, bipolar and CMOS circuits. It would be hopeless to try to report systematically all the building blocks for mixed-signal circuit design, or even only the main ones. Instead we will adopt the technique of "build as you go." With this in mind we will start from the single transistor and build up to some complex functions like linear and switching regulators that are at the core of power conversion and management.

**Part I: Analog Circuits**

In this section we will discuss some fundamental analog building blocks for power management. We will review quickly the main properties of the elementary components, the transistors, so that we can use them to build elementary circuits like current mirrors and buffer stages. We will then use these elements and circuits to generate the analog building blocks like operational amplifiers and voltage references. Finally we will combine these analog building blocks into functional circuits. Given the subject of this book, not surprisingly the functions we are interested in are voltage regulators, which are the center of power distribution and management. The process of assembling elementary electrical components into a fully functional electronic product " namely the system design of an electronic product- can all be implemented on a single die, leading to a monolithic single integrated circuit (IC) , or can be spread over many chips, for example a discrete power transistor chip and a controller IC assembled in a module. Modern circuit design, both at the discrete and IC levels, relies on a mix of bipolar and CMOS elements. Power management integrated circuits can now be built on mixed bipolar CMOS and DMOS processes if the level of performance and complexity justifies it.

System design will mix and match such ICs with external discrete components that will again range from bipolar to CMOS and DMOS with the selection generally being driven by cost first and performance second.

In the rest of this section we often draw bipolar circuits, but every circuit discussed has its counterpart in CMOS. By substituting the NPN with its CMOS dual, the N-Channel MOS transistor, and the PNP with its dual, the P-channel MOS, all the functions discussed in bipolar can be replicated in CMOS.

**NPN transistors**

The NPN transistor (figure 1) is the king of the traditional bipolar analog integrated circuits world. In fact in the most basic and most cost effective analog IC processes, the chip designer has at its disposal just that; a good NPN transistor. The rest, PNPs, resistors and capacitors are just by-products, a notch better than parasites. For intuitive, back-of-the-envelope type analysis, it is sufficient to model the transistor mostly in DC (Direct Current), keeping in mind that the bandwidth of such an element is finite.

When complexity, like small-signal AC (Alternate Current) behavior, is added to the model, computing simulations should be used since the math quickly becomes hopeless. In Figure 1 the NPN transistor is shown with its symbol (a) and its DC model (b). In this component the current flow enters the collector and base and exits the emitter. Simply stated, the transistor conducts a collector current IC which is a copy of the base current IB amplified by a factor of beta (). It follows that the emitter current IE is one plus beta times the base current. A typical value for the amplification factor is 100. NPNs have excellent dynamic performance, or bandwidth, measured by their cutoff frequency (fT); easily above 1GHz. With the current flow entering the emitter and exiting the collector and base.

**Figure 1. NPN Transistor (a) symbol and (b) model.**

__Click to Enlarge__

**PNP transistors**

The PNP transistor (fig 2.2) is complementary to the NPN, with the current flow entering the emitter and exiting the collector and base, the opposite of what happens in the NPN. Simplicity dictates that PNPs are a by-product of the NPN construction, hence they often have less beta current gain and are slower than NPNs. A typical value for their amplification factor is 50 and their cutoff frequency (f_{T}), is generally above 1MHz.

**Figure 2. PNP Transistor (a) symbol and (b) model.**

__Click to Enlarge__

**Trans-conductance**

In addition to current gain, and bandwidth f_{T}, another important element of the transistor model is its trans-conductance gain gm, namely the amount of current in the emitter as a result of a voltage input in the base-emitter junction. The small signal transistor model in figs.2.1 and 2.2 shows that the base-emitter voltage of a transistor the infamous 0.7V roughly constant voltage is modulated by the resistance r_{E} where:

R_{E}= V_{T}/I_{E} [1]

V_{T} = k_{T}/q = 26mV at temperature ambient of 25C [2]

where K is the Boltzman constant, T is the temperature in degrees Kelvin, and q is equal to the electron charge in Coulombs.

It follows then that a small signal voltage V applied at the transistor base-emitter junction will act solely on the resistor r_{E} and develop a corresponding current dI.

dI = V/ r_{E}

dI/ V= gm= 1/ r_{E} [3]

Therefore, the trans-conductance gain gm is the exact inverse of r_{E}. Since we deal more easily with resistors than trans-conductors, we will continue to represent the trans-conductance gain with the resistor r_{E} explicitly drawn in the model or simply implied in the transistor symbol.

**Transistor as transfer-resistor**

A transistor with 1mA of emitter current will exhibit an emitter resistance of 26mV/1mA or 26 according to [2].

This, as any resistance in an emitter, produces an amplified resistance as seen from the base. In fact staying with this numeric example, an emitter current of 1mA, in addition to a 26mV drop in the emitter-base voltage, will produce a base current variation of approximately 10 A (1mA divided by an amplification of +1 or 101).

From the base vantage point a 26mV fluctuation in response to a base current fluctuation of 10 A is interpreted as a resistance of 26mV/10 A = 2.6K. Naturally such transfer of resistance from low in the emitter to high into the base is the property that gives the name transistor or transfer resistor to the electrical component.

**Transistor equations**

The voltage to current relation in a bipolar transistor follows a logarithmic law given by:

V_{be} = V_{T}*ln(I/Io) [4]

where V_{T} is the thermal voltage and Io is a characteristic current that depends on the specific process. This has some pretty interesting implications; for example, if the transistor from equation [4] carries a current x times higher, we can write:

V_{be}' = V_{T}*ln(x*I/Io) [5]

The increase in voltage from the factor of x increase in current will be:

V_{be}= V_{be}'-V_{be}= V_{T}*ln (x) = (kT/q)ln(x) [6]

Given that V_{T} = 26mV at ambient temperature, we see easily that doubling the current in a transistor (x = 2) will raise its V_{be} by 18mV (say from 700mV to 718mV) and a 10x increase in current will raise the V_{be} by 60mV. In gross approximation we can consider the V_{be} of a transistor constant around 0.7V, but to be more precise the V_{be} shifts logarithmically with the current.

The relative insensitivity of the transistor V_{be} to current variations is exploited in building current sources and voltage references.

Naturally the opposite is true for the current variation as a function of voltage. In fact if we invert the previous equation we have:

I = Io*exp(V_{be}/ V_{T}) [7]

Which shows that the current varies exponentially with the V_{be}. We already know that a variation of 18mV on the Vbe will double the current in the transistor. For a quick estimate of variations in current due to small voltage variations, we can linearize the exponential law and find that the current will vary at roughly 2%/mV. This strong dependence of current on the V_{be} explains why the transistor is normally driven with current, not voltage.

This also explains how difficult it is to deal with offsets, or small voltage variations between identical transistors. Two identical transistors biased at the same identical voltage will have their current mismatched with a 2% error if their V_{be} differs by just 1mV.

**MOS vs Bipolar transistors**

The dual of Bipolar NPN and PNP transistors in CMOS technology are the P-Channel and N-Channel MOS transistors in Figure 3a and 3b. The general function of the transistors is the same independently as their implementation but there are pros and cons to using both technologies. Generally speaking, the base, the emitter, and the collector of the bipolar transistor are analogous to the gate, source and drain of the MOS transistor, respectively. The bipolar transistors' main problem, which is not present in CMOS, is their need for a base current in order to function. Such current is a net transfer loss from emitter to collector. While the base current is small in small signal operation, in power applications, where the transistor is used as a switch, the base current necessary to keep the transistor on can be very high.

This high base current can lead to implementations with very poor efficiency. With the popularity of portable electronics and the need to extend battery life, it is no wonder that CMOS often tends to have the upper hand over bipolar technologies. The advantage of bipolar over CMOS that it has better trans-conductance gain and better matching, leading to better differential input gain stages and better voltage references. The best performance processes are mixed-mode BiCMOS (Bipolar and CMOS) or BCD (Bipolar CMOS and DMOS) processes in which the designer can use the best component for the task at hand.

**Figure 3. N-Channel MOS transistor (a) and P-Channel MOS transistor (b).**

__Click to Enlarge__

- **Reno Rossetti**

*Director of IC Group Strategy, Fairchild Semiconductor Inc.*

Related Articles | Editor's Choice |

Visit Asia Webinars to learn about the latest in technology and get practical design tips.