UNIT 5: BIOMEDICAL ELECTRONICS (EC-604B)
I. FUNDAMENTALS OF BIOMEDICAL SCIENCE
A. Human Physiology Overview
-
Physiology: Study of the normal functions of living organisms and their parts.
-
Key Systems: Focus on Cardiovascular, Respiratory, Nervous, and Muscular systems as they generate measurable bio-potentials and are targets for therapeutic devices.
-
Homeostasis: The body's ability to maintain a stable internal environment (e.g., temperature, pH, blood glucose) via feedback control loops.
B. Cellular Structure and Function
-
Cell Membrane: Phospholipid bilayer with embedded proteins; controls ion movement, creating a Resting Membrane Potential.
-
Ion Channels: Allow selective passage of ions (Na⁺, K⁺, Cl⁻, Ca²⁺). Voltage-gated channels open/close in response to membrane potential changes.
-
Resting Potential (~ -70 mV): Established by Na⁺/K⁺ pump (active transport) and differential ion permeability (more K⁺ leaks out than Na⁺ leaks in).
-
Action Potential: A rapid, transient change in membrane potential.
-
Depolarization: Stimulus opens voltage-gated Na⁺ channels → Na⁺ influx → potential becomes positive.
-
Repolarization: Na⁺ channels inactivate, voltage-gated K⁺ channels open → K⁺ efflux → potential returns to negative.
-
Hyperpolarization: K⁺ channels stay open briefly → potential becomes more negative than resting.
-
Refractory Periods: Absolute (no new AP possible) and Relative (strong stimulus can trigger AP).
-
C. Bio-potentials: Resting Potential and Action Potential
-
Bio-potential: Electric potential generated by electrochemical activity in cells/tissues (e.g., ECG, EEG, EMG).
-
Source: Ionic current flow across cell membranes during Resting and Action Potentials.
-
Measurement: Requires electrodes to transduce ionic currents in the body to electronic currents in wires.
-
Propagation: In nerves/muscle, local currents from an AP depolarize adjacent regions, causing the AP to propagate.
[!TIP]
Exam Focus: Be able to draw and label the phases of an Action Potential graph (voltage vs. time) and correlate ion movement to each phase.
II. TRANSDUCERS AND SENSORS
A. Transducer Principles and Classification
-
Definition: A device that converts a physical quantity (non-electrical) into an electrical signal (or vice versa).
-
Classification:
-
By Energy Conversion: Active (generate own electricity, e.g., piezoelectric, thermocouple) vs. Passive (require external power, e.g., strain gauge, LVDT).
-
By Output: Analog vs. Digital.
-
By Application: Biomedical (temperature, pressure, flow, biosensors).
-
B. Piezoelectric Transducers
-
Principle: Piezoelectric Effect (direct): Certain crystals (Quartz, PZT) generate voltage when mechanically stressed.
- Converse Effect: Apply voltage → crystal deforms (used in actuators).
-
Applications: Ultrasound imaging (both transmitter & receiver), pressure sensors, accelerometers, flow meters.
-
Equivalent Circuit: A voltage source (charge generator) in series with a capacitor (crystal capacitance) and parallel with a resistor (leakage).
C. Selection Criteria for Biomedical Transducers
-
Sensitivity & Accuracy: Minimum detectable change and closeness to true value.
-
Linearity: Proportional output over measurement range.
-
Frequency Response: Ability to faithfully follow dynamic inputs.
-
Size & Shape: Must be minimally invasive and biocompatible.
-
Stability & Drift: Output should not change over time with constant input.
-
Reliability & Cost.
D. Specific Sensors: Temperature, Pressure, Flow
-
Temperature:
-
Thermocouple (Active, Seebeck effect): Two dissimilar metals → mV output.
-
RTD (Resistance Temperature Detector) (Passive): Pt wire, resistance ∝ T.
-
Thermistor (Passive): Semiconductor, resistance ∝ 1/T (high sensitivity).
-
-
Pressure:
-
Strain Gauge (Passive): Bonded to diaphragm; pressure → strain → ΔR → ΔV (Wheatstone bridge).
-
Capacitive: Pressure changes distance between capacitor plates → ΔC.
-
Piezoelectric: Dynamic pressure only.
-
-
Flow:
-
Differential Pressure (Orifice plate, Venturi): Flow ∝ √ΔP.
-
Electromagnetic (Faraday's law): Conductive fluid moving in magnetic field → induced voltage.
-
Ultrasonic (Doppler/Transit-time): Measures flow velocity.
-
[!TIP]
Common Pitfall: Confusing active vs. passive transducers. Remember: active transducers generate their own signal (like a battery), passive ones modulate an external power source.
III. ELECTRODES AND BIO-POTENTIAL RECORDING
A. Electrode Theory
-
Half-cell Potential: Electrochemical potential difference between a metal electrode and its electrolyte solution. Causes DC offset in recordings.
-
Polarization: Non-uniform ion distribution near electrode-skin interface due to current flow. Increases with current, causes non-linear response.
-
Impedance (Z): Opposition to AC current flow. $$\displaystyle Z = R + jX $$. Low, stable impedance is crucial for good signal quality. Electrode-Electrolyte Interface contributes polarization impedance (capacitive).
-
Skin Preparation: Abrasion and cleaning reduce contact impedance and motion artifacts.
B. Types of Electrodes
| Type | Description | Typical Use |
|---|---|---|
| Surface | Metal plate/Ag/AgCl with conductive gel. | ECG, EEG (non-invasive) |
| Needle | Hypodermic needle, insulated except tip. | EMG, deep EEG (invasive) |
| Micro | Very small (μm), for single-unit recording. | Neuroscience research |
| pH | Glass membrane sensitive to H⁺ ions. | Gastric pH monitoring |
| Ion-Selective | Membrane permeable to specific ion (K⁺, Ca²⁺). | Blood electrolyte monitoring |
| Bio-potential | Ag/AgCl is standard (low polarization, stable). | General purpose |
C. ECG: Leads, Frequency Bands, Clinical Interpretation
-
Leads: View heart's electrical activity from different angles.
-
Standard Limb Leads (I, II, III): Bipolar.
-
Augmented Limb Leads (aVR, aVL, aVF): Unipolar.
-
Precordial Leads (V1-V6): Unipolar, chest placement.
-
-
Frequency Bands: 0.05 Hz – 100 Hz.
-
P-wave (atrial depolarization): ~0.1 mV, 0.08-0.11 s.
-
QRS Complex (ventricular depolarization): ~1 mV, 0.06-0.10 s.
-
T-wave (ventricular repolarization): ~0.5 mV.
-
U-wave (possible repolarization of Purkinje fibers): often absent.
-
-
Clinical Interpretation: Rate, rhythm, axis, intervals (PR, QTc), segments (ST), morphology.
D. EEG: Frequency Bands and Associated Conditions
| Band | Frequency (Hz) | Normal State / Associated Conditions |
|---|---|---|
| Delta (δ) | 0.5 - 4 | Deep sleep (adults), infants, brain injury |
| Theta (θ) | 4 - 8 | Drowsiness, sleep, meditation, some pathologies |
| Alpha (α) | 8 - 13 | Relaxed, eyes closed (occipital lobe) |
| Beta (β) | 13 - 30 | Active thinking, anxiety, alertness |
| Gamma (γ) | >30 | Cognitive processing, perception |
E. EMG and Other Bio-potentials
-
EMG (Electromyogram): Records electrical activity of skeletal muscles.
-
Frequency: 10 Hz - 10 kHz.
-
Waveforms: Motor Unit Action Potentials (MUAPs). Analysis used for neuromuscular disorders.
-
-
EOG (Electrooculogram): Corneal-retinal potential (~60-100 µV) tracks eye movement.
-
ERG (Electroretinogram): Retina's response to light.
-
ENG (Electronystagmogram): Records eye movements for vestibular assessment.
IV. CARDIOVASCULAR SYSTEM MEASUREMENTS
A. Blood Pressure Measurement Techniques
-
Auscultatory (Korotkoff):
-
Cuff inflated > systolic pressure → occludes brachial artery.
-
Deflate slowly. First sound = Systolic BP. Disappearance = Diastolic BP.
-
Uses stethoscope and sphygmomanometer.
-
-
Oscillometric:
-
Pressure transducer in cuff detects oscillations in cuff pressure during deflation.
-
Maximum oscillation amplitude ≈ Mean Arterial Pressure (MAP). Algorithms determine SBP/DBP.
-
Basis for automated BP monitors.
-
B. Heart Sounds: Phonocardiography
-
S1 ("Lub"): AV valve closure → start of systole.
-
S2 ("Dub"): Semilunar valve closure → start of diastole.
-
S3: Ventricular filling (can be normal in youth, pathological in adults).
-
S4: Atrial contraction (pathological, "atrial gallop").
-
Phonocardiogram: Microphone on chest records heart sounds. Used to detect murmurs, extra sounds, timing.
C. Heart Rate Monitoring
-
From ECG: Count R-R intervals. Most accurate.
-
From Pulse (PPG): Count peaks in photoplethysmogram waveform.
-
From Pulse Pressure: Invasive arterial line waveform.
-
Telemetry: Wireless transmission of ECG for ambulatory monitoring.
D. Photoplethysmography (PPG)
-
Principle: Photoplethysmography detects blood volume changes in microvascular bed.
-
Transmissive: Light source and detector on opposite sides (e.g., finger tip, ear lobe).
-
Reflective: Both on same side (e.g., forehead, wrist).
-
-
Operation: LED light (red/IR) illuminates tissue. Photodetector measures reflected/transmitted light. Systole → more blood → less light detected. Diastole → less blood → more light detected. AC component = pulsatile blood flow.
-
Applications: Pulse Oximetry (SpO₂), heart rate, vascular assessment, respiration (chest impedance).
[!TIP]
Key Link: PPG is the fundamental principle behind pulse oximeters. SpO₂ is calculated from the ratio of pulsatile components at two different wavelengths (e.g., 660nm red & 940nm IR) using the Beer-Lambert law.
V. RESPIRATORY AND GAS ANALYSIS
A. Spirometry: Principles and Photo Spirometer
-
Principle: Measures volume and flow of air during breathing.
-
Key Parameters:
-
Tidal Volume (TV): Normal breath volume.
-
Vital Capacity (VC): Max exhale after max inhale.
-
Forced Expiratory Volume (FEV1): Volume exhaled in first second of forced exhale.
-
Peak Expiratory Flow (PEF).
-
-
Photo Spirometer: Uses a rotating vane/paddle with slots. A light source and photodetector count pulses as vane spins. Pulse rate ∝ airflow velocity. Integration gives volume.
B. Oxygen Measurement
-
Partial Pressure (PO₂):
-
Clark Electrode (Polarographic): Platinum cathode, Ag/AgCl anode, KCl electrolyte, O₂-permeable membrane.
-
Operation: Applied voltage (-0.6 to -0.8V) reduces O₂ at cathode → current ∝ PO₂.
-
Used in: Blood gas analyzers (arterial blood sample).
-
-
Pulse Oximetry (SpO₂):
-
Uses PPG at two wavelengths (Red ~660nm, IR ~940nm).
-
Principle: Hb and HbO₂ have different absorption spectra.
-
Calculation: $$\displaystyle SpO_2 = \frac{AC_{IR}/DC_{IR}}{AC_{Red}/DC_{Red}} $$ (Ratio of ratios). Calibrated empirically.
-
Limitations: Motion artifact, low perfusion, dyshemoglobins (COHb, MetHb).
-
C. Carbon Dioxide Measurement (Capnography)
-
Principle: Measures CO₂ concentration in respiratory gases.
-
Mainstream Sensor: Infrared (IR) absorption cell placed directly in airway. CO₂ absorbs IR at 4.3 µm. Beer-Lambert law: Absorption ∝ CO₂ concentration.
-
Sidestream Sensor: Sample pump draws gas from airway to remote IR sensor.
-
Output: Capnogram – waveform of CO₂ vs. time during breath cycle.
-
Phase I: Dead space (no CO₂).
-
Phase II: Transition (mixed dead space & alveolar gas).
-
Phase III: Alveolar plateau (CO₂ from alveoli). Slope indicates ventilation-perfusion mismatch.
-
Phase IV: Inhalation (CO₂ drops to zero).
-
-
End-Tidal CO₂ (EtCO₂): CO₂ value at end of Phase III. Estimates arterial PaCO₂.
VI. THERAPEUTIC MEDICAL EQUIPMENT
A. Defibrillators
-
Function: Deliver a controlled, high-energy electric shock to depolarize a critical mass of myocardial cells, terminating fibrillation (VF/VT) and allowing the SA node to regain control.
-
Types:
-
DC Defibrillator (Modern): Capacitor charged to high voltage (200-360J), discharged as brief (5-10 ms) monophasic or biphasic pulse. Biphasic is more effective, less damaging.
-
AC Defibrillator (Obsolete): 50/60 Hz AC for 0.1-0.5s. More myocardial damage.
-
Implantable (ICD): Senses VT/VF, delivers shock automatically or on command.
-
B. Pacemakers
-
Function: Provide electrical stimuli to initiate or regulate heartbeats when intrinsic conduction is inadequate (bradycardia, heart block).
-
Types:
-
Temporary: External generator, transvenous/epicardial leads. Used post-MI, surgery.
-
Permanent: Implanted pulse generator (IPG) in pectoral pocket, leads transvenous to heart.
-
Rate-Responsive (R): Sensors (activity, respiration, QT interval) adjust rate to metabolic demand.
-
-
Modes (NBG Code): e.g., VVI (Ventricle paced, Ventricle sensed, Inhibited response). DDD (Dual chamber, both paced/sensed).
C. Heart-Lung Machine (Cardiopulmonary Bypass)
-
Function: Temporarily take over heart and lung function during open-heart surgery.
-
Components:
-
Venous Cannula: Drains deoxygenated blood.
-
Reservoir (Blood Trap): Collects blood.
-
Pump (Roller/ Centrifugal): Propels blood.
-
Oxygenator: Bubble (old) or Membrane (modern). Adds O₂, removes CO₂.
-
Heat Exchanger: Controls blood temperature (hypothermia).
-
Arterial Filter: Removes particles/air bubbles.
-
Arterial Cannula: Returns oxygenated blood to aorta.
-
-
System is heparinized to prevent clotting.
D. Hemodialysis Machines and Dialyzers
-
Purpose: Remove waste (urea, creatinine) and excess fluid from blood in renal failure.
-
Dialyzer (Artificial Kidney): Contains thousands of semi-permeable hollow fibers.
-
Blood flows through fibers (lumen).
-
Dialysate flows outside fibers (counter-current flow).
-
-
Principles:
-
Diffusion: Solutes move across membrane down concentration gradient (urea from blood → dialysate).
-
Ultrafiltration: Pressure gradient forces water out (controlled removal of excess fluid).
-
-
Machine Functions: Blood pump, anticoagulant pump, pressure monitors, air trap, conductivity/temperature monitor for dialysate.
VII. MEDICAL IMAGING AND DIAGNOSTIC TOOLS
A. Magnetic Resonance Imaging (MRI)
-
Principle: Nuclear Magnetic Resonance (NMR) of hydrogen nuclei (¹H) in water/fat.
-
Strong Static Magnetic Field (B₀): Aligns nuclear spins.
-
Radiofrequency (RF) Pulse: At Larmor frequency ($$\displaystyle f = \gamma B_0 $$), tips magnetization into transverse plane.
-
Signal Reception: Precessing transverse magnetization induces voltage in receiver coil as it relaxes.
-
Spatial Encoding: Gradient magnets (Gx, Gy, Gz) vary B₀ linearly with position → different Larmor frequencies → Fourier Transform reconstructs image.
-
-
Image Contrast: T1 (spin-lattice, fat bright), T2 (spin-spin, fluid bright), Proton Density.
-
Safety:
-
Static Field: Projectile risk, implanted device (pacemaker) malfunction.
-
Time-Varying Gradients: Peripheral nerve stimulation.
-
RF Field: Heating (SAR - Specific Absorption Rate).
-
B. Endoscopy
-
Definition: Visual examination of internal organs using a flexible/rigid tube with a light source and lens system.
-
Types:
-
Rigid: Metal tubes (e.g., cystoscopy, laparoscopy). High image quality.
-
Flexible Fiberoptic: Glass fibers transmit light (illumination bundle) and image (imaging bundle). Video Endoscope: CCD/CMOS at tip, cable transmits video signal.
-
-
Working Principle: Light source → illuminates cavity → reflected light → objective lens → fiber bundle → eyepiece or camera. Channels for suction, biopsy, air/water insufflation.
C. Thermography
-
Principle: Detects and records infrared radiation (7-14 µm) emitted by body surface. Temperature differences indicate altered blood flow/metabolism.
-
Applications: Breast cancer screening (detecting hypervascular tumors), vascular disorders (DVT, Raynaud's), inflammation, neuromusculoskeletal disorders.
-
Types: Passive (detects natural IR emission) vs. Active (applies external stimulus, e.g., cold stress).
VIII. BIOMETRIC AND TELEMETRY SYSTEMS
A. Bio-telemetry
-
Definition: Wireless transmission of biological signals from a moving/remote subject to a monitoring station.
-
System Architecture: Sensor/Transducer → Signal Conditioner (amp, filter) → Modulator (FSK, PSK) → RF Transmitter → Antenna → RF Receiver → Demodulator → Display/Recorder.
-
Types:
-
Wireless (Radio): Most common. VHF/UHF bands.
-
Ultrasonic: For short-range, in-water applications.
-
Implantable: Tiny, low-power, inductively coupled or RF.
-
-
Advantages: Patient mobility, continuous monitoring, remote locations.
-
Disadvantages: Limited bandwidth, interference, security/privacy concerns, battery life (implantable).
B. Biometric Systems in Healthcare
-
Purpose: Identification and authentication of patients/staff, access control, linking medical records.
-
Modalities:
-
Fingerprint: Pattern of ridges/valleys. Mature, low cost, but can be worn/injured.
-
Iris: Highly unique, stable pattern. High accuracy, non-contact.
-
Face: Convenient but less unique, affected by expression/lighting.
-
Vein Pattern (finger/ palm): Subdermal, highly secure, hard to forge.
-
Voice: Convenient, but affected by noise/health.
-
C. Remote Patient Monitoring (RPM) Systems
-
Components: Wearable/implantable sensors → Body Area Network (BAN) (Bluetooth, Zigbee) → Smartphone/Gateway → Cloud/Server → Clinician dashboard.
-
Applications: Chronic disease management (diabetes, hypertension, CHF), post-discharge monitoring, elderly care.
-
Challenges: Data security, interoperability, false alarms, patient compliance.
IX. EMBEDDED SYSTEMS FOR BIOMEDICAL APPLICATIONS
A. Microcontroller Architectures: Overview
| Architecture | Key Features | Typical Use in Biomedicine |
|---|---|---|
| 8051 | 8-bit, CISC, Harvard (separate code/data memory), 4 I/O ports, 2 timers, UART. | Simple, low-cost devices (pulse oximeter, glucometer). |
| 8096 | 16-bit, CISC, Harvard-like (separate memory spaces), 10-bit ADC, PWM, high-speed I/O. | More complex data acquisition (ECG, EEG), motor control. |
| ARM (Cortex-M) | 32-bit, RISC, Thumb-2 ISA, low power, rich peripherals. | Advanced portable monitors, wearable sensors, imaging front-end. |
| DSP | Optimized for MAC operations, Harvard, circular buffers, zero-overhead looping. | Real-time signal processing (ECG/EEG filtering, ultrasound beamforming). |
| PIC | 8/16/32-bit, RISC, wide range, simple instruction set. | General-purpose biomedical instrumentation. |
B. 8051 Microcontroller (Detailed)
-
Internal Structure:
-
CPU: 8-bit, ALU, PSW (Program Status Word).
-
Memory: 4KB ROM/EPROM (code), 128B RAM (data). Separate address spaces (Harvard).
-
I/O Ports: P0-P3, 8-bit each, multi-function (P0/2: address/data bus).
-
Timers/Counters: Timer0, Timer1 (16-bit). Modes: 0 (13-bit), 1 (16-bit), 2 (8-bit auto-reload), 3 (split).
-
Serial Port: Full-duplex UART. Modes:
-
Mode 0: Synchronous, 8-bit shift register (used with shift registers).
-
Mode 1: 8-bit UART, baud rate from Timer1 overflow. Most common.
-
Mode 2: 9-bit UART, baud rate fixed (f_osc/64 or /32). Multiprocessor communication.
-
Mode 3: 9-bit UART, baud rate from Timer1. Like Mode 2 but variable baud.
-
-
Interrupts: External (INT0, INT1), Timer0, Timer1, Serial.
-
C. 8096 Microcontroller (Detailed)
-
Functional Block Diagram:
-
16-bit CPU: ALU, 8x8→16-bit multiplier, 16-bit divider.
-
Memory: 8-bit ROM/EPROM (code), 16-bit RAM (data). Separate buses.
-
I/O Ports: 8-bit (Port 0), 4-bit (Port 1), 8-bit (Port 2 - multiplexed address/data).
-
High-Speed I/O (HSI): 4-pin, can timestamp external events (µs resolution).
-
High-Speed Output (HSO): 6-pin, can generate precise timing events (PWM, triggers).
-
ADC: 10-bit, 8-channel multiplexed.
-
Timers: Timer1 (16-bit, internal), Timer2 (16-bit, external).
-
Serial Port: Similar to 8051 but with baud rate generator.
-
-
Addressing Modes:
-
Register Direct:
LD R1, R2 -
Immediate:
LD R1, #05H -
Indirect:
LD R1, @R2(R2 holds address) -
Indexed:
LD R1, 0200H[R2](Effective addr = 0200H + R2) -
Relative: For jumps/calls.
-
-
Control/Status Registers: I/O Control/Status (IOS), Timer Control/Status (TCS), Interrupt Priority/Control (IPC).
-
Superiority over 8051: 16-bit data path, built-in ADC/HSI/HSO, faster, better for real-time control and data acquisition.
D. Embedded System: Definition & Characteristics
-
Definition: A dedicated computer system designed for a specific function within a larger mechanical/electrical system, often with real-time constraints.
-
Characteristics:
- Single-functioned, tightly constrained (cost, power, size), reactive (real-time), often in safety-critical environments.
-
Quality Attributes:
- Reliability (MTBF), Availability, Safety (no harm), Security, Usability, Maintainability.
E. Embedded vs General-Purpose Computing
| Feature | Embedded System | General-Purpose Computer |
|---|---|---|
| Purpose | Dedicated, specific task | General, user-defined tasks |
| Hardware | Customized, ASICs/SoCs | Standardized, modular (PC) |
| Software | Firmware, often no OS or RTOS | General OS (Windows, Linux) |
| Constraints | Tight (cost, power, size, real-time) | Loose (performance, cost) |
| Development | Cross-compilation, hardware-aware | Native development |
| User Interface | Often none or minimal (buttons, LEDs) | Rich (GUI, keyboard, mouse) |
F. Design Metrics of Embedded Systems
-
Cost (NRE/Unit): Non-Recurring Engineering cost vs. per-unit cost.
-
Performance: Execution speed (MIPS), throughput, latency.
-
Power: Average/peak power consumption (critical for battery/portable).
-
Size/Weight: Physical constraints (implantable, wearable).
-
Reliability/Safety: Failure rate, safety integrity level (SIL).
-
Time-to-Market: Development cycle length.
-
Maintainability/Upgradability: Ease of field updates.
G. Processor Types
-
General-Purpose Processor (GPP): Flexible, run various software (e.g., ARM Cortex-A, x86). Used in complex systems with OS.
-
Application-Specific Processor (ASP): GPP core + custom hardware accelerators (e.g., ARM with NEON, GPU). Balance flexibility and performance.
-
Single-Purpose Processor (Hardwired): Fixed-function logic (ASIC/FPGA). Maximum performance/power efficiency for one task (e.g., FIR filter, JPEG encoder).
H. Instruction Set Architectures
-
CISC (Complex Instruction Set Computer): Many, complex instructions (e.g., x86, 8096). Aim: reduce program size. Cons: variable cycle count, complex decoding.
-
RISC (Reduced Instruction Set Computer): Few, simple, fixed-length instructions (e.g., ARM, MIPS, PIC). Aim: single-cycle execution, pipelining. Pros: high clock speed, efficient compiler use.
-
Von Neumann Architecture: Single memory for code & data, single bus. Simpler, but bottleneck (von Neumann bottleneck).
-
Harvard Architecture: Separate memories and buses for code and data. Allows simultaneous fetch of instruction and data. True Harvard (separate physical memories) vs. Modified Harvard (separate caches, unified main memory - common in modern MCUs like ARM Cortex-M).
I. Interfacing Biomedical Sensors and Actuators
-
ADC (Analog-to-Digital Converter): Sensor (analog) → MCU (digital).
-
Types: Successive Approximation (SAR - common in MCUs), Delta-Sigma (high res), Dual-slope (noise rejection).
-
Key Specs: Resolution (bits), sampling rate, input range, accuracy.
-
-
DAC (Digital-to-Analog Converter): MCU → Actuator (e.g., programmable gain amp, motor driver).
- Types: R-2R ladder (binary weighted), PWM with filter (simple, low cost).
-
Stepper Motor: Digital control → precise angular movement. Interface via driver IC (e.g., ULN2003) from MCU I/O pins.
-
Display Devices: LCD (character/graphical, parallel/SPI/I2C), LED (7-segment, bar graph), OLED.
J. Serial Communication
-
RS-232 Standard: Asynchronous, point-to-point. Voltage levels: ±3 to ±15V (mark=-3V to -15V, space=+3V to +15V).
-
Handshaking Signals:
-
RTS (Request To Send): DTE → DCE, "I have data to send".
-
CTS (Clear To Send): DCE → DTE, "You may send data".
-
DTR/DSR: Data Terminal/Set Ready (general ready status).
-
DCD: Data Carrier Detect (modem connection).
-
-
8051 Serial Modes (See III.B). Mode 1 is most used for standard UART communication with PC/other devices.
K. Interrupt Systems
-
Interrupt: Event that causes CPU to suspend current task, execute Interrupt Service Routine (ISR), then return.
-
Interrupt Controller: Manages multiple interrupt sources, prioritization, and masking (e.g., 8259 PIC in x86 systems, integrated in modern MCUs).
-
Types:
-
Hardware: External pin (INT0, INT1), internal peripherals (ADC done, timer overflow).
-
Software:
TRAP(non-maskable),RST(reset),INT(maskable).
-
-
Priority: Determines which ISR executes when multiple interrupts pending. Can be hardware (fixed priority) or software (programmable).
L. Watchdog Timer (WDT)
-
Operation: Independent timer that must be periodically reset (kicked) by software. If software hangs (fails to reset), WDT times out and generates a system reset.
-
Timing Diagram:
Software runs normally -> Periodic "kick" (write to WDT register) -> Timer reset. Software hangs -> No kick -> Timer counts to max -> Reset signal -> System restart. -
Role in Reliability: Recovers from transient faults (software bugs, EMI, power glitches). Critical for safety-critical biomedical devices (infusion pumps, ventilators).
M. Keyboard Controllers (e.g., 8279)
-
Function: Offloads key scanning and debouncing from main CPU.
-
Scanning Methods:
-
Matrix Scan: Rows driven low one-by-one, columns read. Detects key press location.
-
2-Key Rollover: Can detect 2 keys pressed simultaneously.
-
N-Key Rollover: Can detect any number of keys.
-
-
Debouncing: Mechanical keys bounce for ~5-20ms. Controller either counts scans until stable or uses timer.
-
Modes of Operation:
-
Scanned Display Mode: Drives display (7-segment) and scans keyboard.
-
Sensor Switch Mode: For sensor inputs (limit switches).
-
N. Memory Mapping and Organization
-
Memory Mapping: Assigning memory addresses to specific physical devices (ROM, RAM, I/O ports, peripherals).
-
Memory-Mapped I/O: I/O registers appear in same address space as memory. Use
MOVinstructions. -
I/O-Mapped (Port-Mapped): Separate address space, use
IN/OUTinstructions.
-
-
Organization: Linear (simple), Bank Switching (extend address space), Segmented (x86 real mode).
-
In 8096: Separate Code Space (0000H-FFFFH) and Data Space (0000H-FFFFH). Uses PS (Program Status) bit to select.
O. Real-Time Clock (RTC)
-
Function: Maintains accurate time/date, often with battery backup (CMOS RAM).
-
Components: Crystal oscillator (32.768 kHz), divider chain (2¹⁵ = 32768 Hz → 1 Hz), registers for sec/min/hr/day/date/month/year.
-
Applications in Biomedicine:
-
Timestamping patient data (ECG, lab results).
-
Scheduling tasks (drug delivery, periodic measurements).
-
Time-based alarming.
-
Power management (sleep/wake cycles).
-
-
Interface: Typically I²C or SPI to MCU.
X. POWER ELECTRONICS IN MEDICAL DEVICES
A. Power Semiconductor Devices
1. Power MOSFET
-
Structure: Metal-Oxide-Semiconductor FET. Vertical structure (high voltage/current). N-channel enhancement mode most common.
-
V-I Characteristics:
-
Cutoff: $$\displaystyle V_{GS} < V_{GS(th)} $$, $$\displaystyle I_D ≈ 0 $$.
-
Triode/Ohmic: $$\displaystyle V_{GS} > V_{GS(th)} $$, $$\displaystyle V_{DS} < V_{GS}-V_{th} $$. $$\displaystyle I_D ∝ (V_{GS}-V_{th})^2 $$.
-
Saturation: $$\displaystyle V_{GS} > V_{th} $$, $$\displaystyle V_{DS} ≥ V_{GS}-V_{th} $$. $$\displaystyle I_D $$ nearly constant.
-
-
Switching: Voltage-controlled (high input impedance, low drive power). Fast switching (ns). Gate charge $$\displaystyle Q_g $$ determines drive requirement.
-
Applications: Switch-mode power supplies (SMPS), DC-DC converters, motor drives (low voltage).
2. IGBT (Insulated-Gate Bipolar Transistor)
-
Structure: Combines MOSFET input (gate) with BJT output (low saturation voltage).
-
V-I Characteristics: Similar to MOSFET control (voltage-driven), but output I-V like BJT (low $$\displaystyle V_{CE(sat)} $$).
-
Advantage: Low conduction loss (like BJT) + easy gate drive (like MOSFET). Trade-off: Tail current during turn-off slows switching.
-
Applications: Medium-power inverters (1-100 kW), AC motor drives, welding power supplies.
3. Thyristor (SCR)
-
Structure: Four-layer (PNPN), three terminals (Anode, Cathode, Gate).
-
Static Characteristics:
-
Forward Blocking: $$\displaystyle V_A > V_C $$, $$\displaystyle I_G=0 $$, $$\displaystyle V_{AK} < V_{BO} $$ (breakover voltage).
-
Forward Conducting: Triggered by $$\displaystyle I_G $$ or $$\displaystyle V_{AK} > V_{BO} $$. Once on, $$\displaystyle V_{AK} ≈ 1-2V $$. Latches until $$\displaystyle I_A < I_H $$ (holding current).
-
Reverse Blocking: Blocks reverse voltage (like diode).
-
-
Dynamic Characteristics:
-
Turn-on Time ($$\displaystyle t_{on} $$): Delay ($$\displaystyle t_d $$) + rise ($$\displaystyle t_r $$).
-
Turn-off Time ($$\displaystyle t_{off} $$): Reverse recovery ($$\displaystyle t_{rr} $$) + fall ($$\displaystyle t_f $$) + storage ($$\displaystyle t_s $$). Critical for high-frequency operation.
-
-
Turning-on Methods:
-
Forward Voltage: $$\displaystyle V_{AK} > V_{BO} $$ (not practical).
-
Gate Triggering: Positive $$\displaystyle I_G $$ (most common).
-
dV/dt Triggering: Rapid voltage rise (undesired, needs snubber).
-
Temperature: High temp reduces $$\displaystyle V_{BO} $$.
-
Light Triggering (LASCR): Light to gate junction.
-
4. Power Diodes
-
Standard Power Diode: High current/voltage, slow reverse recovery ($$\displaystyle t_{rr} $$ ~ µs). Used in rectifiers, freewheeling diodes.
-
Fast Recovery Diode: Gold doping or platinum creates recombination centers → $$\displaystyle t_{rr} $$ reduced to 0.1-1 µs. Used in high-frequency switching (SMPS, inverters).
-
Schottky Diode: Metal-semiconductor junction. No minority carrier storage → very fast ($$\displaystyle t_{rr} ≈ 0 $$), low forward drop (~0.3V). But low reverse voltage rating (<200V), high reverse leakage. Used in low-voltage SMPS.
-
DIAC (Diode for Alternating Current): Two-terminal, bidirectional trigger diode. Conducts when breakover voltage $$\displaystyle V_{BO} $$ exceeded in either direction. Used to trigger TRIACs in light dimmers, AC motor speed control.
B. DC-DC Converters (Choppers)
-
Basic Topology: Switch (MOSFET/IGBT) + diode + inductor + capacitor.
-
Buck (Step-down): $$\displaystyle V_o = D V_{in} $$ (D = duty cycle). Inductor current continuous if $$\displaystyle D > \frac{V_o}{V_{in}} $$? Actually, for continuous conduction mode (CCM), $$\displaystyle L > \frac{(1-D)R}{2f} $$.
-
Boost (Step-up): $$\displaystyle V_o = \frac{V_{in}}{1-D} $$. Inductor current always continuous in CCM.
-
Buck-Boost: $$\displaystyle V_o = -\frac{D}{1-D} V_{in} $$ (inverted polarity). Can step up or down.
-
Flyback (Isolated): Uses coupled inductor (transformer). Stores energy in primary during switch-on, releases to secondary during switch-off. Provides isolation. $$\displaystyle V_o = \frac{N_s}{N_p} \frac{D}{1-D} V_{in} $$.
C. AC-DC Converters (Rectifiers)
-
Half-wave: $$\displaystyle V_{avg} = \frac{V_m}{\pi} $$, $$\displaystyle V_{rms} = \frac{V_m}{2} $$ (R load). Poor efficiency, high ripple.
-
Full-wave (Center-tap): $$\displaystyle V_{avg} = \frac{2V_m}{\pi} $$, $$\displaystyle V_{rms} = \frac{V_m}{\sqrt{2}} $$. Need center-tapped transformer.
-
Bridge (Full-wave): $$\displaystyle V_{avg} = \frac{2V_m}{\pi} $$ (no center-tap). Most common.
-
Phase-Controlled (Thyristor):
-
Single-phase Half-wave: $$\displaystyle V_{avg} = \frac{V_m}{2\pi} (1 + \cos \alpha) $$.
-
Single-phase Full-wave (Bridge): $$\displaystyle V_{avg} = \frac{2V_m}{\pi} \cos \alpha $$.
-
Three-phase Full-wave (Bridge): $$\displaystyle V_{avg} = \frac{3\sqrt{6}}{\pi} V_{LL} \cos \alpha = 1.654 V_{LL} \cos \alpha $$.
-
$\alpha$ = firing angle (delay from natural commutation). $\alpha$ ↑ → $$\displaystyle V_{avg} $$ ↓.
-
-
RMS Output Voltage: For single-phase full-wave controlled: $$\displaystyle V_{rms} = V_m \sqrt{\frac{1}{2\pi} \int_\alpha^{\pi+\alpha} \sin^2 \theta d\theta} $$.
[!EXAMPLE]
Problem: Single-phase full-wave half-controlled rectifier (2 SCRs, 2 diodes), $$\displaystyle V_m=300V $$, $$\displaystyle \alpha=30^\circ $$. Find $$\displaystyle V_{rms} $$.
Solution: Output waveform identical to full-wave controlled for positive half, but negative half is full negative sine (since diodes conduct). $$\displaystyle V_{rms} = \sqrt{\frac{1}{2\pi} \left[ \int_{30^\circ}^{180^\circ} (V_m \sin \theta)^2 d\theta + \int_{180^\circ}^{210^\circ} 0 d\theta + \int_{210^\circ}^{360^\circ} (V_m \sin \theta)^2 d\theta \right]} $$. Due to symmetry, simplifies to $$\displaystyle V_{rms} = V_m \sqrt{\frac{1}{\pi} \int_{30^\circ}^{180^\circ} \sin^2 \theta d\theta} $$. Calculate: $$\displaystyle \int \sin^2 \theta d\theta = \frac{\theta}{2} - \frac{\sin 2\theta}{4} $$. Evaluate → $$\displaystyle V_{rms} \approx 239.5 V $$.
D. DC-AC Converters (Inverters)
-
Single-phase Bridge:
-
Operation: Switch pairs (T1,T4) and (T2,T3) turned on alternately. Output $$\displaystyle v_o = V_{dc} $$ (T1,T4 on) or $$\displaystyle -V_{dc} $$ (T2,T3 on).
-
Waveforms: Square wave (fundamental $$\displaystyle V_1 = \frac{4V_{dc}}{\pi} $$). Rich in odd harmonics (3rd, 5th...).
-
-
Three-phase Bridge:
-
180° Mode: Each device conducts 180°. Output phase voltages are quasi-square waves, line-to-line voltage is 6-step waveform.
-
120° Mode: Each device conducts 120°. Less common.
-
Output Line Voltage RMS: $$\displaystyle V_{LL,rms} = \sqrt{\frac{2}{3}} V_{dc} $$ (for 180° mode).
-
-
PWM Inverters:
-
Principle: High-frequency switching (carrier) compared to reference sine wave. Modulates pulse widths to approximate sine.
-
Single-phase: 4 switches (H-bridge). Sinusoidal PWM (SPWM): Compare sine (fundamental) with triangular carrier. Switching frequency $$\displaystyle f_c >> f_{fund} $$.
-
Advantages: Harmonic reduction (fundamental amplitude controllable, harmonics shifted to high frequency → easy filtering). Input voltage variation does not affect output voltage magnitude (via modulation index).
-
-
Resonant Inverters: Use LC tank circuit. Switches turn on/off at zero current (ZCS) or zero voltage (ZVS) → low switching loss. Used in high-frequency applications (induction heating, fluorescent lighting).
-
Harmonics and Reduction:
-
Problem: Harmonics cause torque ripple (motors), heating, EMI.
-
Techniques:
-
PWM: Shifts harmonics to carrier frequency.
-
Multi-level Inverters (NPC, Flying Capacitor): More voltage levels → output voltage staircase → lower harmonic distortion.
-
Output Filters: LC filters to attenuate specific harmonics (e.g., 5th, 7th).
-
-
E. AC Voltage Controllers
-
On-Off Control (Cycloconverter-like): Full cycles of AC applied or skipped. Low output RMS voltage. High harmonic content, poor power factor. Used for heaters.
-
Phase Control (Most Common): Delay firing angle $\alpha$ within each half-cycle. Controls conduction angle.
-
Single-phase with R Load: $$\displaystyle V_{rms} = V_s \sqrt{\frac{1}{\pi} \int_\alpha^{\pi} \sin^2 \theta d\theta} = V_s \sqrt{\frac{1}{2} \left(1 - \frac{\alpha}{\pi} + \frac{\sin 2\alpha}{2\pi} \right)} $$.
-
With RL Load (Inductive): Current lags voltage. Must consider commutation overlap (if using SCRs) and minimum firing angle $$\displaystyle \alpha_{min} > \phi $$ ($$\displaystyle \phi = \tan^{-1}(\omega L/R) $$) to ensure current continuous and SCRs turn off. Extinction angle $\beta$ (when current reaches zero). $$\displaystyle \alpha + \beta = \pi $$ for R load, $$\displaystyle \alpha + \beta > \pi $$ for RL.
-
Waveforms: Voltage chopped, current continuous for high L/R.
-
F. Cycloconverters
-
Principle: Direct AC-AC conversion without DC link. Output frequency $$\displaystyle f_o < f_{in} $$ (typically). Uses phase-controlled converters in reverse (AC to DC) and in forward (DC to AC) cyclically.
-
Single-phase to Single-phase:
-
Mid-point: Two anti-parallel thyristor bridges (positive/negative group). Each bridge conducts for half output cycle. Firing angles $$\displaystyle \alpha_P $$ (positive) and $$\displaystyle \alpha_N $$ (negative) controlled to synthesize sine.
-
Bridge-type: Single bridge, switches polarity via firing sequence.
-
-
Three-phase to Single-phase: More common for high-power low-speed drives (e.g., cement mill, ship propulsion).
-
Applications: Large AC motor drives (synchronous or squirrel-cage induction) requiring low speed, high torque.
-
Advantages: No intermediate DC link, regenerative capability, high power density.
-
Limitations: Complex control, low output frequency (<1/3 input frequency), poor input power factor, high harmonic content.
G. Series and Parallel Operation of Thyristors
-
Series Operation (for high voltage):
-
Challenge: Unequal voltage sharing due to different reverse recovery charges ($$\displaystyle Q_{rr} $$) during turn-off. Static (leakage current mismatch) and Dynamic (switching transient imbalance).
-
Equalization:
-
Static: Connect resistors in parallel with each SCR.
-
Dynamic: Connect RC snubber (R small, C large) across each SCR. Provides equal $dV/dt$ and shares transient voltage.
-
-
-
Parallel Operation (for high current):
-
Challenge: Unequal current sharing due to different on-state voltages ($$\displaystyle V_{TM} $$).
-
Equalization: Connect small resistors ($$\displaystyle R_m $$) in series with each SCR. Or use current-transformer feedback circuits.
-
Thermal Coupling: Mount SCRs on same heat sink to ensure equal temperature.
-
H. Harmonics in Inverters & Reduction
-
Importance of Reduction: Cause heating (core/copper loss), torque ripple in motors, interference with communication/control, resonance with system capacitance.
-
Reduction Techniques:
-
Pulse Width Modulation (PWM): Primary method. Shifts dominant harmonics to high frequency (near switching frequency) where they are easily filtered.
-
Multi-level Inverters: Output voltage has more levels (e.g., 3-level NPC) → waveform closer to sine → lower THD.
-
Harmonic Filters: Passive (LC tuned to specific harmonic), Active (inject opposite phase harmonic), Hybrid.
-
Selective Harmonic Elimination (SHE): Solve nonlinear equations to choose switching angles that eliminate specific lower harmonics (e.g., 5th, 7th).
-
I. Transformer Tap Changers
-
Purpose: Regulate secondary voltage of a transformer under varying load/input voltage.
-
Off-Circuit (OCTC): Transformer de-energized. Manual or motorized. Used for major adjustments (e.g., substation).
-
On-Load Tap Changer (OLTC): Changes taps while energized and carrying load.
-
Principle: Make-before-break transition using selector switches and diverter switches (often using resistors or inductors for current transition).
-
Operation: New tap selected via selector (no current), then diverter switches connect, briefly paralleling old and new taps (current flows through transition impedance), then old tap disconnected.
-
Applications: Power distribution transformers, autotransformers in substations, furnace transformers.
-
J. Commutation Techniques
-
Commutation: Process of turning OFF a thyristor by reducing its anode current below holding current $$\displaystyle I_H $$.
-
Natural (Line) Commutation: Occurs in AC circuits. Current naturally goes to zero each half-cycle. SCR turns off automatically. Used in phase-controlled rectifiers, AC voltage controllers.
-
Forced Commutation: Required in DC circuits (inverters, DC choppers). External circuit forces current to zero.
-
External Pulse (Class A, B, C): Apply negative voltage/current pulse from auxiliary source.
-
Resonant (Class D, E): Use LC circuit to create oscillating current that reverses through main SCR. Self-commutation (load commutation) if load is resonant (e.g., series resonant inverter).
-
Complementary (Class F): Use another SCR in parallel with opposite polarity to divert current.
-
XI. SIGNAL CONDITIONING AND PROCESSING
A. Biomedical Amplifiers
-
Requirements: High Common-Mode Rejection Ratio (CMRR) (>80-100 dB) to reject 50/60 Hz interference, high input impedance (>1 MΩ) to avoid loading, low noise, safety isolation.
-
Instrumentation Amplifier (IA):
-
Topology: Three-op-amp. First stage: two buffers (high Z) → differential amp (high CMRR, gain set by single resistor).
-
Advantages: High CMRR, high input impedance, easy gain setting.
-
Used in: ECG, EEG front-ends.
-
-
Isolation Amplifier:
-
Purpose: Provide galvanic isolation (typically 1-5 kV) between patient and mains-powered equipment for electrical safety.
-
Techniques: Optical couplers (LED + photodiode), Transformers (AC-coupled), Capacitive coupling.
-
Integrated ICs: Often include IA + isolation barrier in one package (e.g., ISO124).
-
-
Input Protection: Current-limiting resistors (100 kΩ - 1 MΩ), clamping diodes (to supply rails), fuses (for high voltage/current faults).
B. Noise Reduction and Filtering
-
Noise Sources: External (50/60 Hz mains, EM interference), Internal (thermal, shot, flicker).
-
Analog Filters:
-
Low-pass: Remove high-frequency noise. Cutoff $$\displaystyle f_c $$ set above signal bandwidth. Butterworth (flat passband), Chebyshev (sharp roll-off, ripple).
-
High-pass: Remove baseline wander (ECG), DC offset. $$\displaystyle f_c $$ ~0.05 Hz.
-
Notch (Band-stop): Reject specific interference (50/60 Hz). Twin-T or active notch.
-
-
Digital Filtering (after ADC):
-
FIR (Finite Impulse Response): Always stable, linear phase. Implemented with convolution.
-
IIR (Infinite Impulse Response): More efficient (fewer coefficients), non-linear phase, can be unstable. Analog filter mimic (Butterworth, Chebyshev).
-
Applications: ECG baseline wander removal (high-pass), EMG noise reduction (low-pass), powerline interference (notch).
-
C. Digital Signal Processing (DSP) for Biomedical Signals
-
Role: Extract features, remove artifacts, compress data, classify patterns (e.g., arrhythmia detection, sleep stage scoring).
-
Special Features of DSP Processors:
-
Harvard Architecture (separate program/data buses) → parallel instruction fetch and data access.
-
MAC Unit: Single-cycle Multiply-Accumulate (core for FIR/IIR, FFT).
-
Zero-Overhead Looping: Hardware loop counters.
-
Circular Buffering: For delay lines, FIFOs.
-
Special Addressing Modes: Bit-reversed (FFT), modulo (circular buffers).
-
-
Applications:
-
ECG: QRS detection (filtering, differentiation, thresholding), HRV analysis (FFT, time-domain).
-
EEG: Frequency band power (FFT, wavelet), artifact removal (ICA), spike detection.
-
Imaging: Beamforming (ultrasound), reconstruction (MRI, CT), enhancement.
-
XII. SYSTEM RELIABILITY, SAFETY, AND STANDARDS
A. Watchdog Timers and System Reset Mechanisms
-
Watchdog Timer (WDT): As detailed in IX.L. Essential for recovering from software lock-ups.
-
Reset Mechanisms:
-
Power-On Reset (POR): Ensures clean start at power-up.
-
Brown-Out Reset (BOR): Detects voltage droop below safe level, resets.
-
External Reset: Manual push-button.
-
Windowed WDT: Must be reset within a specific time window (not too early, not too late) → detects both hang and looping errors.
-
B. Electrical Safety in Medical Equipment
-
Hazards: Electric shock (microshock <100 µA, macroshock >1 mA), ** burns**, explosion (in flammable atmosphere).
-
Isolation Techniques:
-
Protective Earth (PE): Safety ground for chassis.
-
Double Insulation: Basic + supplementary insulation (no PE required, Class II equipment).
-
Isolated Power Supplies: Transformer with reinforced insulation. Patient Isolator: Opto-isolator or transformer for patient-connected signals.
-
** creepage/clearance distances**: Increased spacing on PCB.
-
-
Leakage Current Limits (IEC 60601-1):
-
Normal Condition: < 100 µA (patient-connected parts).
-
Single Fault Condition: < 500 µA (for direct cardiac application, limits are even lower, e.g., 10 µA).
-
Types: Earth leakage (to protective earth), Enclosure leakage (to chassis), Patient leakage (to patient).
-
C. Medical Device Standards: IEC 60601
-
General Standard: "Medical electrical equipment - Part 1: General requirements for basic safety and essential performance."
-
Key Aspects:
-
Classification: Class I (protective earth), Class II (double insulation), Class III (intrinsically safe, no harmful currents).
-
Parts: Collateral Standards (e.g., IEC 60601-1-2: EMC), Particular Standards (e.g., IEC 60601-2-XX for specific devices like ECG, MRI).
-
Risk Management: Process-based (ISO 14971).
-
Usability Engineering: IEC 62366.
-
Software Lifecycle: IEC 62304.
-
-
Essential Performance: Functions critical to safety, not just basic safety (e.g., defibrillator energy delivery, ventilator pressure limits).
[!TIP]
Exam Focus: Know the three classes of medical equipment protection and typical leakage current limits for patient-connected parts. Understand the purpose of isolation and CMRR in biomedical amplifiers.