Split View: 전자회로 완전 가이드: 다이오드부터 연산증폭기까지
전자회로 완전 가이드: 다이오드부터 연산증폭기까지
전자회로 완전 가이드: 다이오드부터 연산증폭기까지
전기/전자공학의 핵심인 아날로그 전자회로를 체계적으로 정리합니다. 회로 이론 기초부터 시작해 반도체 소자, 증폭기 설계, 필터, 전원 공급 장치까지 실습 예제와 함께 다룹니다.
1. 회로 이론 기초
키르히호프의 법칙
키르히호프 전압 법칙 (KVL): 임의의 폐루프에서 전압의 대수합은 0입니다.
키르히호프 전류 법칙 (KCL): 임의의 노드에서 유입/유출 전류의 합은 0입니다.
import numpy as np
# KVL/KCL 노드 해석 예시
# 회로: V1=12V, R1=1kΩ, R2=2kΩ, R3=3kΩ
# 노드 전압법으로 V_node 계산
G = np.array([
[1/1e3 + 1/2e3, -1/2e3],
[-1/2e3, 1/2e3 + 1/3e3]
])
I = np.array([12/1e3, 0])
V = np.linalg.solve(G, I)
print(f"노드 전압: V1={V[0]:.3f}V, V2={V[1]:.3f}V")
테브난/노턴 등가 회로
임의의 선형 회로는 테브난 전압 와 테브난 저항 의 직렬 조합으로 단순화할 수 있습니다. 노턴 등가는 와 의 병렬 조합입니다.
최대 전력 전달: 부하 저항 일 때 최대 전력이 전달됩니다.
AC 회로와 페이저 분석
임피던스 표현:
- 저항:
- 인덕터:
- 커패시터:
전달 함수 (Transfer Function)와 보드 선도(Bode Plot)는 주파수 응답 분석의 핵심 도구입니다.
2. 다이오드 (Diode)
p-n 접합의 물리적 동작
p형 반도체(정공 다수 캐리어)와 n형 반도체(전자 다수 캐리어)가 접합하면 공핍층(Depletion Region)이 형성됩니다. 순방향 바이어스 시 공핍층이 좁아져 전류가 흐르고, 역방향 바이어스 시 공핍층이 넓어져 전류가 차단됩니다.
쇼클리 다이오드 방정식
여기서:
- : 역포화 전류 (약 A 수준)
- : 이상 인자 (이상적: 1, 실제: 1~2)
- : 열전압 (실온 25도에서 약 26 mV)
import numpy as np
import matplotlib.pyplot as plt
# 다이오드 I-V 특성 곡선
V = np.linspace(-0.5, 0.8, 1000)
IS = 1e-14 # 역포화 전류
n = 1.0 # 이상 인자
VT = 0.02585 # 열전압 (25도)
ID = IS * (np.exp(V / (n * VT)) - 1)
ID_clipped = np.clip(ID, -1e-12, 0.1) # 가시성을 위해 클리핑
plt.figure(figsize=(8, 5))
plt.plot(V, ID_clipped * 1000, 'b-', linewidth=2)
plt.axhline(y=0, color='k', linewidth=0.5)
plt.axvline(x=0, color='k', linewidth=0.5)
plt.xlabel('전압 V_D (V)')
plt.ylabel('전류 I_D (mA)')
plt.title('다이오드 I-V 특성 곡선')
plt.grid(True, alpha=0.3)
plt.xlim(-0.5, 0.8)
plt.ylim(-0.01, 0.1)
plt.show()
정류 회로
반파 정류: 다이오드 1개로 교류의 한 방향만 통과시킵니다. 출력 평균 전압은 입니다.
전파 정류 (브리지 정류): 4개의 다이오드로 교류의 양 방향을 정류합니다. 출력 평균 전압은 입니다.
제너 다이오드
역방향 항복 전압을 이용한 전압 기준 소자입니다. 제너 전압 에서 동작하며 간단한 전압 안정화 회로에 사용됩니다.
3. BJT 트랜지스터
구조와 동작 모드
BJT(Bipolar Junction Transistor)는 이미터(E), 베이스(B), 컬렉터(C) 세 단자로 구성됩니다.
| 동작 모드 | B-E 접합 | B-C 접합 | 용도 |
|---|---|---|---|
| 차단 (Cutoff) | 역방향 | 역방향 | 스위치 OFF |
| 활성 (Active) | 순방향 | 역방향 | 증폭기 |
| 포화 (Saturation) | 순방향 | 순방향 | 스위치 ON |
활성 영역에서:
DC 바이어스 설계
가장 안정적인 전압 분배기 바이어스 방식:
소신호 등가 회로 (하이브리드-π 모델)
핵심 파라미터:
- : 트랜스컨덕턴스
- : 입력 저항
- : 출력 저항 (Early 효과)
증폭기 구성 비교
| 구성 | 전압 이득 | 전류 이득 | 입력 임피던스 | 출력 임피던스 | 용도 |
|---|---|---|---|---|---|
| 공통 이미터 (CE) | 높음 (반전) | 높음 | 중간 | 중간 | 범용 증폭 |
| 공통 컬렉터 (CC) | ~1 | 높음 | 높음 | 낮음 | 버퍼, 임피던스 변환 |
| 공통 베이스 (CB) | 높음 | ~1 | 낮음 | 높음 | 고주파 증폭 |
공통 이미터 증폭기 전압 이득:
4. MOSFET
동작 원리와 영역
MOSFET(Metal-Oxide-Semiconductor FET)은 게이트(G), 드레인(D), 소스(S), 기판(B) 네 단자 소자입니다. n-채널 MOSFET 기준:
차단 영역: →
선형(오믹) 영역: ,
포화 영역:
소신호 파라미터
- : 트랜스컨덕턴스
- : 출력 저항
CMOS 인버터
디지털 논리의 기본 게이트. PMOS와 NMOS의 상보적 동작으로 정적 전력 소모가 거의 없습니다. 스위칭 에너지:
5. 연산증폭기 (Op-Amp)
이상적 Op-Amp 특성
| 파라미터 | 이상적 값 | 실제 값 예시 (LM741) |
|---|---|---|
| 개루프 이득 | 무한대 | ~200,000 |
| 입력 임피던스 | 무한대 | ~2 MΩ |
| 출력 임피던스 | 0 | ~75 Ω |
| 대역폭 | 무한대 | ~1 MHz (GBW) |
| CMRR | 무한대 | ~90 dB |
가상 단락 (Virtual Short): 부피드백 적용 시 두 입력 단자 전압이 동일 →
가상 개방 (Virtual Open): 이상적 입력 임피던스 무한대 → 입력 단자로 전류 유입 없음
기본 Op-Amp 회로
반전 증폭기:
비반전 증폭기:
차동 증폭기 (CMRR이 높을 때):
적분기 (밀러 적분기):
미분기:
import numpy as np
import matplotlib.pyplot as plt
# 반전 증폭기 주파수 응답 시뮬레이션
f = np.logspace(1, 7, 1000) # 10Hz ~ 10MHz
GBW = 1e6 # 1MHz 이득-대역폭 적
R1, Rf = 1e3, 10e3
Av_ideal = -Rf / R1 # 이상적 이득 = -10
# 개루프 이득 (단순 1차 모델)
A_open = GBW / (1j * f)
# 폐루프 이득
beta = R1 / (R1 + Rf)
Av_closed = A_open / (1 + A_open * beta)
plt.figure(figsize=(10, 6))
plt.subplot(2, 1, 1)
plt.semilogx(f, 20*np.log10(np.abs(Av_closed)), 'b-', linewidth=2, label='실제 이득')
plt.axhline(y=20*np.log10(abs(Av_ideal)), color='r', linestyle='--', label='이상적 이득 (20dB)')
plt.ylabel('이득 (dB)')
plt.title('반전 증폭기 주파수 응답 (GBW=1MHz, Av=-10)')
plt.legend()
plt.grid(True, alpha=0.3)
plt.subplot(2, 1, 2)
plt.semilogx(f, np.angle(Av_closed, deg=True), 'g-', linewidth=2)
plt.xlabel('주파수 (Hz)')
plt.ylabel('위상 (도)')
plt.grid(True, alpha=0.3)
plt.tight_layout()
plt.show()
슈미트 트리거 (Schmitt Trigger)
히스테리시스를 가진 비교기로 노이즈에 강합니다.
6. 전력 증폭기
급별 비교
| 급 | 도통각 | 이론 효율 | 특징 |
|---|---|---|---|
| A급 | 360도 | 50% | 최고 선형성, 낮은 효율 |
| B급 | 180도 | 78.5% | 교차 왜곡 발생 |
| AB급 | 180~360도 | 50~78.5% | B급 개선, 실용적 |
| C급 | 0~180도 | >78.5% | 고주파 RF 용도 |
| D급 | 스위칭 | ~95% | 오디오/전원 |
푸시풀 증폭기 (AB급)
NPN과 PNP 트랜지스터 쌍을 사용해 교류 신호의 양방향을 각각 증폭합니다. 교차 왜곡 최소화를 위해 약 0.6~0.7 V의 바이어스 전압을 인가합니다.
7. 피드백 (Feedback)
부피드백의 장점
- 이득 안정화: 소자 변동에 둔감
- 대역폭 확장:
- 왜곡 감소: 비선형 왜곡을 로 나눈 만큼 감소
- 임피던스 조정: 직렬 피드백→입력 임피던스 증가, 병렬 피드백→감소
안정성 분석
보드 선도에서 위상 여유(Phase Margin)와 이득 여유(Gain Margin)로 안정성을 판단합니다.
- 위상 여유 PM > 45도: 안정
- 이득 여유 GM > 6 dB: 안정
나이퀴스트 안정성 기준: 개루프 전달 함수의 나이퀴스트 선도가 (-1, j0) 점을 시계 방향으로 감싸지 않으면 안정합니다.
8. 능동 필터
버터워스 저역통과 필터
최대한 평탄한 통과대역 특성을 가집니다. n차 필터의 전달 함수 크기:
Sallen-Key 2차 저역통과 필터
두 개의 저항, 두 개의 커패시터, Op-Amp 1개로 구성합니다.
품질 인자 가 높을수록 공진 피크가 강해집니다. 버터워스 응답을 위해 을 사용합니다.
import numpy as np
import matplotlib.pyplot as plt
from scipy import signal
# 버터워스 3차 저역통과 필터 (fc = 1kHz)
fc = 1000 # Hz
order = 3
b, a = signal.butter(order, 2*np.pi*fc, btype='low', analog=True)
f = np.logspace(1, 5, 1000)
w = 2 * np.pi * f
_, H = signal.freqs(b, a, worN=w)
plt.figure(figsize=(10, 5))
plt.subplot(1, 2, 1)
plt.semilogx(f, 20*np.log10(np.abs(H)), 'b-', linewidth=2)
plt.axvline(x=fc, color='r', linestyle='--', label='차단 주파수')
plt.xlabel('주파수 (Hz)')
plt.ylabel('이득 (dB)')
plt.title('버터워스 3차 LPF')
plt.legend()
plt.grid(True, alpha=0.3)
plt.subplot(1, 2, 2)
plt.semilogx(f, np.angle(H, deg=True), 'g-', linewidth=2)
plt.axvline(x=fc, color='r', linestyle='--', label='차단 주파수')
plt.xlabel('주파수 (Hz)')
plt.ylabel('위상 (도)')
plt.title('위상 응답')
plt.legend()
plt.grid(True, alpha=0.3)
plt.tight_layout()
plt.show()
9. 전원 공급 장치 회로
선형 레귤레이터
7805 계열: 고정 5V 출력. 드롭아웃 전압 약 2V.
LM317 가변 레귤레이터:
스위칭 레귤레이터
Buck (강압형):
Boost (승압형):
Buck-Boost (반전형):
스위칭 레귤레이터의 효율은 85~95%로 선형 레귤레이터보다 훨씬 높습니다.
10. 센서와 인터페이스 회로
온도 센서 인터페이스
NTC 서미스터 (부온도 계수): 온도 증가 시 저항 감소.
계측 증폭기 (INA128 등):
높은 CMRR로 소신호 계측에 적합합니다.
ADC/DAC 인터페이스
ADC 핵심 파라미터:
- 분해능 (Resolution): n비트 ADC는 레벨
- SNR(dB) (이상적 n비트 ADC)
- 샘플링 주파수 (나이퀴스트 기준)
11. AI 하드웨어와 아날로그 회로
뉴로모픽 컴퓨팅의 아날로그 회로
딥러닝 추론을 하드웨어에서 효율적으로 수행하기 위해 아날로그 회로가 재조명받고 있습니다.
아날로그 곱셈-누산 (MAC) 연산: 가중치를 커패시터 전하나 전류 방향으로 표현하고, 옴의 법칙()으로 곱셈을 수행합니다. 메모리 내 연산(Processing-In-Memory)의 핵심입니다.
Flash ADC 기반 AI 가속기: 고속 다비트 ADC로 활성화 함수 출력을 디지털 변환 후 다음 레이어에 전달합니다.
배터리 전원 AI 추론의 전력 관리
엣지 AI 기기에서 소비 전력 최소화:
- 동적 전압/주파수 스케일링 (DVFS)
- 전력 게이팅 (Power Gating)
- 고효율 스위칭 레귤레이터 사용
- 아날로그-디지털 혼합 신호 설계로 ADC 비트 수 최적화
12. 퀴즈
Q1. 다이오드의 쇼클리 방정식에서 열전압(Vt)의 값은 실온(25도)에서 얼마인가?
정답: 약 26 mV (정확히는 25.85 mV)
설명: 열전압은 로 계산됩니다. 볼츠만 상수 J/K, 절대온도 K (25도), 전자 전하 C를 대입하면 약 26 mV가 됩니다. 이 값은 다이오드의 지수적 I-V 특성 분석에 핵심입니다.
Q2. 연산증폭기에서 가상 단락(Virtual Short) 개념이란 무엇인가?
정답: 부피드백이 적용된 이상적 Op-Amp에서 반전 입력과 비반전 입력의 전압이 동일하다고 가정하는 개념입니다.
설명: 실제로 두 단자가 전기적으로 연결된 것은 아니지만, 높은 개루프 이득(보통 100,000배 이상)과 부피드백으로 인해 두 입력의 전압 차이가 거의 0이 됩니다. 이 개념을 이용하면 반전/비반전 증폭기의 이득을 간단하게 계산할 수 있습니다.
Q3. 공통 이미터 BJT 증폭기에서 이미터 저항(Re)를 바이패스 커패시터 없이 사용했을 때 어떤 효과가 있는가?
정답: 전압 이득이 감소하지만, 안정성(바이어스 안정화)이 향상되고 입력 임피던스가 증가합니다.
설명: 이미터 저항에 바이패스 커패시터가 없으면 소신호 이득 공식은 가 됩니다. 항이 분모에 추가되어 이득이 줄지만, 온도나 소자 변화에 의한 이득 변동이 줄어들고 DC 바이어스가 안정화됩니다. 부피드백의 실제 적용 사례입니다.
Q4. Buck 컨버터에서 듀티 사이클이 0.4일 때 출력 전압은? (입력 12V)
정답: 4.8 V
설명: Buck 컨버터의 이상적 전압 변환 관계는 입니다. 듀티 사이클 D = 0.4, 입력 전압 12 V를 대입하면 V 가 됩니다. 듀티 사이클을 조절하여 출력 전압을 연속적으로 가변할 수 있는 것이 스위칭 레귤레이터의 장점입니다.
Q5. 버터워스 필터와 체비쇼프 필터의 차이점은?
정답: 버터워스 필터는 통과대역에서 최대 평탄 응답을 가지며, 체비쇼프 필터는 통과대역에서 리플을 허용하는 대신 더 가파른 롤오프 특성을 가집니다.
설명: 버터워스 필터는 통과대역 내 이득이 최대한 균일(Maximally Flat)하여 신호 왜곡이 적습니다. 체비쇼프 1형 필터는 통과대역 내 등리플(Equiripple) 특성을 가지며, 같은 차수에서 버터워스보다 훨씬 급격한 차단 특성을 보입니다. 응용에 따라 통과대역 평탄도와 롤오프 특성 간 트레이드오프를 선택해야 합니다.
참고 문헌
- Sedra & Smith - Microelectronic Circuits, 8th Edition (Oxford University Press)
- Razavi - Design of Analog CMOS Integrated Circuits, 2nd Edition (McGraw-Hill)
- Texas Instruments - Op Amp Applications Handbook (Free PDF, ti.com)
- Horowitz & Hill - The Art of Electronics, 3rd Edition (Cambridge University Press)
- LTspice - 무료 SPICE 시뮬레이터 (Analog Devices 제공, analog.com/ltspice)
- Falstad Circuit Simulator - 브라우저 기반 무료 회로 시뮬레이터 (falstad.com/circuit)
이 가이드는 전자회로 입문자부터 심화 학습자까지 활용할 수 있도록 설계되었습니다. SPICE 시뮬레이션과 Python 코드로 직접 회로를 검증해 보세요. Sedra & Smith 교재와 병행 학습하면 효과가 극대화됩니다.
Electronic Circuits Complete Guide: From Diodes to Op-Amps
Electronic Circuits Complete Guide: From Diodes to Op-Amps
Analog electronic circuits are at the heart of electrical engineering. This guide systematically covers circuit theory fundamentals, semiconductor devices, amplifier design, filters, and power supplies — all with practical examples and simulation code.
1. Circuit Theory Fundamentals
Kirchhoff's Laws
Kirchhoff's Voltage Law (KVL): The algebraic sum of all voltages around any closed loop is zero.
Kirchhoff's Current Law (KCL): The algebraic sum of all currents entering/leaving any node is zero.
import numpy as np
# Node voltage analysis using KCL
# Circuit: V1=12V, R1=1kOhm, R2=2kOhm, R3=3kOhm
# Conductance matrix (G) and current source vector (I)
G = np.array([
[1/1e3 + 1/2e3, -1/2e3],
[-1/2e3, 1/2e3 + 1/3e3]
])
I = np.array([12/1e3, 0])
V = np.linalg.solve(G, I)
print(f"Node voltages: V1={V[0]:.3f}V, V2={V[1]:.3f}V")
Thevenin and Norton Equivalent Circuits
Any linear circuit can be simplified into a Thevenin equivalent: a voltage source in series with a resistance . The Norton equivalent uses a current source in parallel with .
Maximum Power Transfer Theorem: Maximum power is delivered to a load when .
Superposition Principle
In a linear circuit with multiple independent sources, the response (voltage or current) at any element is the sum of responses due to each source acting alone (with all other sources replaced by their internal impedances).
AC Circuits and Phasor Analysis
Impedance representations:
- Resistor:
- Inductor:
- Capacitor:
The transfer function and Bode plots are essential tools for frequency response analysis. The magnitude response in dB is .
2. Diodes
Physics of the p-n Junction
When p-type semiconductor (majority carriers: holes) and n-type semiconductor (majority carriers: electrons) are joined, a depletion region forms at the junction. Under forward bias the depletion region narrows and current flows; under reverse bias the depletion region widens and current is blocked (except for a small reverse saturation current).
The built-in potential across the junction is typically 0.6–0.7 V for silicon at room temperature.
Shockley Diode Equation
where:
- : reverse saturation current (~ A for silicon)
- : ideality factor (ideal: 1, practical: 1–2)
- : thermal voltage (~26 mV at 25°C)
import numpy as np
import matplotlib.pyplot as plt
# Diode I-V characteristic
V = np.linspace(-0.5, 0.8, 1000)
IS = 1e-14 # Reverse saturation current
n = 1.0 # Ideality factor
VT = 0.02585 # Thermal voltage at 25 degC
ID = IS * (np.exp(V / (n * VT)) - 1)
ID_clipped = np.clip(ID, -1e-12, 0.1)
plt.figure(figsize=(8, 5))
plt.plot(V, ID_clipped * 1000, 'b-', linewidth=2)
plt.axhline(y=0, color='k', linewidth=0.5)
plt.axvline(x=0, color='k', linewidth=0.5)
plt.xlabel('Diode Voltage V_D (V)')
plt.ylabel('Diode Current I_D (mA)')
plt.title('Diode I-V Characteristic Curve')
plt.grid(True, alpha=0.3)
plt.xlim(-0.5, 0.8)
plt.ylim(-0.01, 0.1)
plt.show()
Rectifier Circuits
Half-wave rectifier: One diode passes only the positive half cycle. Average output voltage .
Full-wave bridge rectifier: Four diodes conduct on both half cycles. Average output voltage . The ripple frequency is twice the input frequency.
A smoothing capacitor reduces ripple voltage: .
Zener Diode
Operates in reverse breakdown at a well-defined Zener voltage . Used as a simple voltage reference or clamp.
Special Diodes
- LED (Light-Emitting Diode): Emits photons during forward conduction. Forward voltage typically 1.8–3.5 V depending on material.
- Photodiode: Generates current proportional to incident light; operated in reverse bias (photoconductive mode).
- Schottky Diode: Metal-semiconductor junction; very low forward voltage (~0.3 V) and fast switching.
3. BJT Transistors
Structure and Operating Modes
The BJT (Bipolar Junction Transistor) has three terminals: Emitter (E), Base (B), and Collector (C).
| Operating Mode | B-E Junction | B-C Junction | Application |
|---|---|---|---|
| Cutoff | Reverse | Reverse | Switch OFF |
| Active | Forward | Reverse | Amplifier |
| Saturation | Forward | Forward | Switch ON |
In the active region: , where is the DC current gain (typically 50–300).
Also:
DC Bias Design
The most stable bias configuration is the voltage divider bias:
The stability factor (where ) determines how well the Q-point resists temperature-induced changes in .
Small-Signal Hybrid-Pi Model
Key parameters derived at the Q-point:
- : transconductance
- : input resistance (base to emitter, small signal)
- : output resistance (Early effect, = Early voltage)
Amplifier Configuration Comparison
| Config | Voltage Gain | Current Gain | Input Z | Output Z | Use Case |
|---|---|---|---|---|---|
| CE | High (inverting) | High | Medium | Medium | General amplification |
| CC (Emitter Follower) | ~1 | High | High | Low | Buffer, impedance matching |
| CB | High | ~1 | Low | High | High-frequency, RF |
Common-emitter voltage gain (with bypass capacitor on ):
where .
4. MOSFET
Device Physics and Operating Regions
The MOSFET (Metal-Oxide-Semiconductor FET) has four terminals: Gate (G), Drain (D), Source (S), and Body (B). For an n-channel NMOS device:
Cutoff region: →
Linear (Ohmic) region: and
Saturation region:
The parameter is the process transconductance parameter.
Small-Signal Parameters
At a given bias point:
- : output resistance from channel-length modulation
CMOS Inverter
The complementary MOSFET (CMOS) inverter pairs one PMOS and one NMOS transistor. During static operation, one transistor is always off, giving near-zero static power dissipation. This makes CMOS the dominant technology for digital logic.
Switching energy per transition:
MOSFET Current Mirrors
Used for biasing in analog ICs. A basic current mirror forces the output current to mirror the reference current, assuming matched devices. The Wilson and cascode mirrors improve output impedance.
5. Operational Amplifiers (Op-Amp)
Ideal Op-Amp Properties
| Parameter | Ideal Value | Typical Value (LM741) |
|---|---|---|
| Open-loop gain | Infinity | ~200,000 |
| Input impedance | Infinity | ~2 MΩ |
| Output impedance | 0 | ~75 Ω |
| Bandwidth | Infinity | ~1 MHz (GBW) |
| CMRR | Infinity | ~90 dB |
| Slew rate | Infinity | 0.5 V/µs |
Virtual Short: With negative feedback, the differential input voltage approaches zero because and any tiny differential drives the output to reduce the difference. Therefore .
Virtual Open: Ideal input impedance is infinite, so no current flows into the input terminals.
Essential Op-Amp Circuits
Inverting amplifier:
Non-inverting amplifier:
Voltage follower (buffer):
Differential amplifier (with matched resistors and ):
Summing amplifier:
Integrator (Miller integrator):
Differentiator:
import numpy as np
import matplotlib.pyplot as plt
# Inverting amplifier frequency response simulation
f = np.logspace(1, 7, 1000) # 10 Hz to 10 MHz
GBW = 1e6 # 1 MHz gain-bandwidth product
R1, Rf = 1e3, 10e3 # Resistor values
Av_ideal = -Rf / R1 # Ideal gain = -10
# Open-loop gain (first-order model)
A_open = GBW / (1j * f)
# Closed-loop gain
beta = R1 / (R1 + Rf)
Av_closed = A_open / (1 + A_open * beta)
plt.figure(figsize=(10, 6))
plt.subplot(2, 1, 1)
plt.semilogx(f, 20*np.log10(np.abs(Av_closed)), 'b-', linewidth=2, label='Actual gain')
plt.axhline(y=20*np.log10(abs(Av_ideal)), color='r', linestyle='--', label='Ideal gain (20 dB)')
plt.ylabel('Gain (dB)')
plt.title('Inverting Amplifier Frequency Response (GBW=1MHz, Av=-10)')
plt.legend()
plt.grid(True, alpha=0.3)
plt.subplot(2, 1, 2)
plt.semilogx(f, np.angle(Av_closed, deg=True), 'g-', linewidth=2)
plt.xlabel('Frequency (Hz)')
plt.ylabel('Phase (degrees)')
plt.grid(True, alpha=0.3)
plt.tight_layout()
plt.show()
Schmitt Trigger
A comparator with positive feedback, providing hysteresis to eliminate noise-induced false triggering.
The hysteresis window is .
6. Power Amplifiers
Class Comparison
| Class | Conduction Angle | Theoretical Efficiency | Characteristics |
|---|---|---|---|
| A | 360° | 50% | Best linearity, low efficiency |
| B | 180° | 78.5% | Crossover distortion |
| AB | 180°–360° | 50–78.5% | Practical audio standard |
| C | 0°–180° | >78.5% | RF power amplifiers |
| D | Switching | ~95% | Audio, power conversion |
Push-Pull AB Class Amplifier
Pairs an NPN and PNP transistor to handle each half cycle. A bias voltage of 0.6–0.7 V applied between the bases eliminates the crossover distortion that plagues class B designs. The total harmonic distortion (THD) is significantly reduced compared to class B.
Class D Amplifier
Converts the input to a pulse-width modulated (PWM) signal using a comparator, switches power transistors, then reconstructs the audio with an LC low-pass filter. Efficiency exceeds 90%, making it ideal for battery-powered audio and motor drives.
7. Feedback
Benefits of Negative Feedback
- Gain stabilization: Closed-loop gain becomes independent of open-loop gain variations.
- Bandwidth extension:
- Distortion reduction: Nonlinear distortion is reduced by factor
- Impedance modification: Series feedback increases input impedance; shunt feedback decreases it.
Stability Analysis
Phase Margin (PM) and Gain Margin (GM) from the Bode plot:
- PM > 45°: Stable with good transient response (PM ~60° is typical target)
- GM > 6 dB: Stable
The Nyquist stability criterion states that the closed-loop system is stable if the Nyquist plot of the open-loop transfer function does not encircle the point clockwise.
Oscillators
When positive feedback is applied and the Barkhausen criterion is satisfied ( and or 360°), the circuit oscillates.
- Colpitts oscillator: Uses capacitive voltage divider in the feedback network.
- Hartley oscillator: Uses inductive voltage divider.
- Crystal oscillator: Exploits the piezoelectric resonance of a quartz crystal for high frequency stability.
8. Active Filters
Butterworth Low-Pass Filter
Provides the maximally flat magnitude response in the passband:
The roll-off is dB/decade beyond the cutoff frequency .
Sallen-Key Second-Order Low-Pass Filter
A popular active filter topology using two R's, two C's, and one op-amp:
For a Butterworth response: .
import numpy as np
import matplotlib.pyplot as plt
from scipy import signal
# 3rd-order Butterworth low-pass filter (fc = 1 kHz)
fc = 1000 # Hz
order = 3
b, a = signal.butter(order, 2*np.pi*fc, btype='low', analog=True)
f = np.logspace(1, 5, 1000)
w = 2 * np.pi * f
_, H = signal.freqs(b, a, worN=w)
plt.figure(figsize=(10, 5))
plt.subplot(1, 2, 1)
plt.semilogx(f, 20*np.log10(np.abs(H)), 'b-', linewidth=2)
plt.axvline(x=fc, color='r', linestyle='--', label='Cutoff frequency')
plt.xlabel('Frequency (Hz)')
plt.ylabel('Gain (dB)')
plt.title('3rd-Order Butterworth LPF')
plt.legend()
plt.grid(True, alpha=0.3)
plt.subplot(1, 2, 2)
plt.semilogx(f, np.angle(H, deg=True), 'g-', linewidth=2)
plt.axvline(x=fc, color='r', linestyle='--', label='Cutoff frequency')
plt.xlabel('Frequency (Hz)')
plt.ylabel('Phase (degrees)')
plt.title('Phase Response')
plt.legend()
plt.grid(True, alpha=0.3)
plt.tight_layout()
plt.show()
State Variable Filter
Implements low-pass, band-pass, and high-pass outputs simultaneously using three op-amps. Allows independent tuning of frequency and Q, making it ideal for parametric equalizers.
9. Power Supply Circuits
Linear Regulators
7805 fixed regulator: Output voltage 5 V, dropout voltage ~2 V, up to 1 A.
Efficiency: — poor when the input-output differential is large.
LM317 adjustable regulator:
Switching Regulators
Buck converter (step-down):
Boost converter (step-up):
Buck-boost converter (inverting):
Switching regulators achieve 85–95% efficiency because the switching transistor dissipates little power (it is either fully on or fully off). The trade-off is electromagnetic interference from switching noise.
Inductor selection:
10. Sensors and Interface Circuits
Temperature Sensor Interfaces
NTC thermistor (Negative Temperature Coefficient): Resistance decreases with temperature.
A Wheatstone bridge linearizes the output; a difference amplifier amplifies the bridge imbalance voltage.
Thermocouple: Generates a small voltage (Seebeck effect, ~10–50 µV/°C). Requires a cold-junction compensation IC and an instrumentation amplifier.
Instrumentation Amplifier (INA128 etc.)
High CMRR (>100 dB) makes it ideal for measuring small differential signals in the presence of large common-mode noise (e.g., ECG, strain gauge, bridge sensors).
ADC/DAC Interface
Key ADC parameters:
- Resolution: n-bit ADC quantizes into levels; LSB =
- SNR: dB (ideal n-bit ADC, full-scale sine wave)
- Sampling rate: Must satisfy (Nyquist criterion)
- Anti-aliasing filter: Low-pass filter before the ADC to remove frequencies above
SPI and I2C are the dominant serial interfaces for ADC/DAC chips in embedded systems.
11. AI Hardware and Analog Circuits
Analog Computing for Neural Networks
Deep learning inference in hardware has revived interest in analog circuits for their energy efficiency.
Analog multiply-accumulate (MAC) unit: The core operation in neural network inference. Using Ohm's law (), conductance encodes a weight and voltage encodes an input — multiplication is performed physically. An array of such cells (crossbar array) performs a full matrix-vector multiply in a single step.
Processing-In-Memory (PIM): Flash, SRAM, or ReRAM cells store weights in-place and perform multiplication inside the memory array, eliminating the von Neumann bottleneck of moving data between memory and processor.
Mixed-Signal Design in AI Chips
Modern AI accelerators (e.g., Google TPU, Apple Neural Engine) blend digital MAC arrays with:
- High-speed ADCs to convert analog outputs from crossbar arrays
- DACs for weight update in on-chip training
- Phase-locked loops (PLLs) for precise clock generation
- Low-dropout (LDO) regulators for supply noise isolation
Power Management for Edge AI
Battery-powered edge inference demands aggressive power optimization:
- DVFS (Dynamic Voltage and Frequency Scaling): Lower supply voltage reduces switching energy quadratically but also reduces speed.
- Power gating: Completely shut down unused compute blocks between inference calls.
- Quantization: Reducing weight precision from 32-bit float to 8-bit integer cuts memory bandwidth and power by 4×.
- Analog sub-threshold circuits: Operating MOSFETs in weak inversion achieves nW-level power for always-on keyword detection.
12. Quiz
Q1. What is the thermal voltage (Vt) of a diode at room temperature (25°C)?
Answer: Approximately 26 mV (more precisely 25.85 mV).
Explanation: The thermal voltage is given by . Substituting the Boltzmann constant J/K, absolute temperature K (25°C), and electron charge C gives approximately 26 mV. This value sets the scale of the exponential I-V characteristic and is fundamental to all small-signal diode and transistor analysis.
Q2. What is the "Virtual Short" concept in an op-amp circuit?
Answer: In an ideal op-amp with negative feedback, the voltages at the inverting and non-inverting input terminals are assumed to be equal.
Explanation: The two terminals are not physically shorted. However, because the open-loop gain is extremely large (often 100,000 or more), even a tiny differential input voltage would drive the output to the supply rail. Negative feedback continuously adjusts the output to keep the differential input near zero. This virtual short principle lets us easily analyze the gain of inverting and non-inverting amplifiers without solving complex circuit equations.
Q3. What happens when an emitter resistor (Re) is used in a common-emitter amplifier without a bypass capacitor?
Answer: The voltage gain decreases, but bias stability improves, input impedance increases, and distortion is reduced.
Explanation: Without a bypass capacitor, the small-signal gain becomes . The extra in the denominator reduces the gain but introduces negative feedback that stabilizes the Q-point against temperature and device variation. The input impedance seen at the base becomes , which can be much larger than alone. This is a direct application of emitter degeneration (series-series negative feedback).
Q4. A Buck converter has a duty cycle of 0.4 and an input voltage of 12 V. What is the output voltage?
Answer: 4.8 V
Explanation: The ideal voltage conversion ratio of a Buck converter is . With D = 0.4 and = 12 V: V. The duty cycle is controlled by the PWM controller in a feedback loop to regulate the output against load and line variations. The inductor and output capacitor form a low-pass filter that smooths the switched waveform.
Q5. What is the key difference between a Butterworth filter and a Chebyshev filter?
Answer: A Butterworth filter has a maximally flat passband (no ripple), while a Chebyshev filter allows equiripple in the passband in exchange for a steeper roll-off.
Explanation: Butterworth filters are designed so that the magnitude response is as flat as possible in the passband, which minimizes signal distortion. Chebyshev Type I filters exhibit equal-magnitude ripple throughout the passband, but for the same filter order achieve a much sharper transition from passband to stopband. The choice depends on the application: audio and measurement systems favor Butterworth for flat amplitude response, while communications and anti-aliasing filters often use Chebyshev or elliptic designs for steeper roll-off with the same component count.
References
- Sedra & Smith — Microelectronic Circuits, 8th Edition (Oxford University Press) — The definitive undergraduate textbook for analog electronics.
- Razavi — Design of Analog CMOS Integrated Circuits, 2nd Edition (McGraw-Hill) — Essential for IC design.
- Texas Instruments — Op Amp Applications Handbook (Free PDF at ti.com) — Comprehensive practical Op-Amp design reference.
- Horowitz & Hill — The Art of Electronics, 3rd Edition (Cambridge University Press) — Practical circuits bible.
- LTspice — Free SPICE simulator from Analog Devices (analog.com/ltspice) — Industry-standard tool for analog circuit simulation.
- Falstad Circuit Simulator — Browser-based free circuit simulator (falstad.com/circuit) — Great for quick visualization.
This guide covers the core topics of analog electronics as taught in a typical first or second-year electrical engineering curriculum. Work through the Python simulations, use LTspice to verify your designs, and pair this guide with Sedra & Smith for rigorous mathematical treatment.