← Về lộ trình học

GHI CHÉP 09 · WIRELESS LINK

Baseband → RF → antenna

Sau Bài 08, ta đã hiểu mapper tạo complex symbols. Nhưng antenna không phát một số phức trong RAM. Bài này theo representation từ digital complex samples tới analog baseband, real RF voltage/current và cuối cùng là electromagnetic fields.

BÀI TOÁN CẦN GIẢI

Giả sử DSP đang có buffer x[n]=I[n]+jQ[n]x[n]=I[n]+jQ[n]. Ta cần phân biệt rõ ba object: digital representation, analog electrical waveform và radiated field.

TỪ MEMORY TỚI KHÔNG GIAN
I[n]+jQ[n]I[n]+jQ[n]→DAC / reconstruction→I(t),Q(t)I(t),Q(t)→quadrature upconversion→RF filter + PA→antenna port→EM field

Đây là conceptual direct-conversion chain. Radio thực có thể dùng digital upconversion, RF DAC, IF stages hoặc architecture khác, nên đừng coi số lượng physical blocks trong hình là bắt buộc.

01 · MỖI STAGE DÙNG MỘT REPRESENTATION KHÁC

Complex sample là mathematical representation. RF port cuối cùng mang voltage/current thực theo thời gian.

Trong DSP ta viết x[n]=I[n]+jQ[n]x[n]=I[n]+jQ[n]. Hai coordinates giữ amplitude/phase information rất thuận tiện, nhưng chữ jj không có nghĩa hardware phải tạo một “imaginary voltage”. Physical I và Q paths, nếu architecture có chúng, đều là real electrical waveforms.

01 · DIGITALI[n], Q[n]I[n],\,Q[n]

Numbers trong DSP, indexed theo sample clock.

DAC + FILTER
02 · ANALOG BASEBANDI(t), Q(t)I(t),\,Q(t)

Real analog voltages/currents representing the complex envelope.

QUADRATURE UPCONVERSIONfcf_c
03 · REAL RFsRF(t)s_{\mathrm{RF}}(t)

Real passband waveform centered around RF carrier.

Representation đổi qua từng stage, nhưng information phải được bảo toàn trong wanted band. Bài này quan tâm chính xác việc information đi từ complex coordinates sang physical waveform như thế nào.

02 · DAC BIẾN SAMPLE VALUE THÀNH ANALOG WAVEFORM

DAC biến sequence theo sample clock thành một analog output; reconstruction filtering giữ wanted band và suppress images.

Với mỗi digital branch, samples tới theo rate fsf_s với spacing Ts=1/fsT_s=1/f_s. Một zero-order-hold model giúp hình dung output được giữ giữa các updates, nhưng converter thực có transfer function riêng và không bắt buộc đúng literal model đó.

Discrete-to-continuous conversion tạo spectral images liên quan tới sample rate. Reconstruction / anti-imaging filtering giúp giữ wanted analog band và suppress unwanted images. Vì vậy DAC không đồng nghĩa với “RF carrier generator”; carrier translation là một operation khác.

DIGITALI[n], Q[n]I[n],\,Q[n]

Các giá trị theo sample index.

→ DAC →
ANALOG BASEBANDI(t), Q(t)I(t),\,Q(t)

Hai tín hiệu điện analog quanh baseband.

→ FILTER →
WANTED BANDgiữ dải cần phát

Giảm spectral images và thành phần ngoài dải.

03 · I VÀ Q ĐIỀU KHIỂN HAI CARRIER VUÔNG PHA

Quadrature upconversion biến complex baseband thành một waveform RF thực.

Với convention e+j2πfcte^{+j2\pi f_ct}:

sRF(t)=Re⁡ ⁣{xbb(t)ej2πfct}s_{\mathrm{RF}}(t)=\operatorname{Re}\!\left\{x_{\mathrm{bb}}(t)e^{j2\pi f_ct}\right\}
sRF(t)=I(t)cos⁡(2πfct)−Q(t)sin⁡(2πfct)s_{\mathrm{RF}}(t)=I(t)\cos(2\pi f_ct)-Q(t)\sin(2\pi f_ct)

Nhánh I nhân với cosine. Nhánh Q nhân với sine lệch 90°. Sau đó hai nhánh được cộng lại. Kết quả s(t) là một giá trị thực theo thời gian, đúng loại waveform mà RF circuit và antenna có thể xử lý.

Với một complex tone xbb(t)=Aej(2πfbt+ϕ)x_{\mathrm{bb}}(t)=Ae^{j(2\pi f_bt+\phi)}, ideal upconversion cho:

sRF(t)=Acos⁡ ⁣(2π(fc+fb)t+ϕ)s_{\mathrm{RF}}(t)=A\cos\!\left(2\pi(f_c+f_b)t+\phi\right)

Đây là cách rất trực quan để đọc signed complex-baseband frequency:fb>0f_b>0 đi lên phía trên carrier, còn fb<0f_b<0 đi xuống phía dưới carrier.

04 · INTERACTIVE LAB

Mode 1 nhìn sample sequence đi qua DAC. Mode 2 nhìn signed baseband frequency được dịch lên quanh carrier.

DAC & reconstruction tách discrete samples, held analog output và wanted in-band waveform. Frequency translation dùng một complex tone để cho thấy negative/positive baseband offsets trở thành lower/upper RF offsets.

DIGITAL OBJECTI[n]I[n]discrete sample sequence
DAC OUTPUT MODELzero-order holdpiecewise-held analog level
RECONSTRUCTION TARGETI(t)I(t)wanted analog baseband
OTHER BRANCHQ[n]→Q(t)Q[n]\to Q(t)same idea on quadrature path
ONE BRANCH OF THE DAC PATHsamples → held output → reconstructed baseband
digital samplesillustrative DAC hold outputwanted in-band analog waveform

Đường smooth là reference cho wanted in-band waveform, không phải khẳng định một reconstruction filter thực sẽ tạo đúng đường này. Hardware filter chỉ cần giữ wanted band và suppress images đủ cho system requirement.

05 · UPCONVERSION LÀ DỊCH SPECTRUM LÊN QUANH CARRIER

Baseband dùng zero frequency làm reference; upconversion đổi reference đó sang carrier fcf_c.

Nếu complex baseband chứa offsets trong một interval quanh 0 Hz0\,\mathrm{Hz}, ideal multiplication bởi complex carrier dịch các offsets đó quanh fcf_c. Taking the real part tạo physical passband waveform và đồng thời real RF spectrum phải có conjugate symmetry quanh zero.

COMPLEX BASEBANDquanh 0 Hz0\,\mathrm{Hz}

DSP xử lý modulation và filtering ở frequency thấp tương đối.

dịch lên fcf_c →
RF PASSBANDquanh fcf_c

Cùng information structure, nay nằm trong RF band.

06 · UPCONVERSION XONG VẪN CHƯA PHẢI MỘT TRANSMITTER HOÀN CHỈNH

Wanted RF waveform còn phải đạt spectral, power và interface requirements trước antenna.

RF FILTER

Giữ wanted RF band

Upconverter, DAC/RF-DAC và nonlinear stages có thể để lại images, harmonics hoặc spurious products. RF filtering giúp suppress unwanted content ngoài wanted transmit band.

POWER AMPLIFIER

Tăng công suất phát

PA nâng RF waveform tới power level cần thiết. Nonlinearity có thể tạo in-band distortion và spectral regrowth, nên output power không thể tách rời linearity requirement.

RF NETWORK

Đưa power tới antenna

Matching network, switch, duplexer hoặc filter bank tùy architecture route power và tạo interface phù hợp giữa RF chain với antenna port.

07 · ANTENNA KHÔNG THỰC HIỆN MODULATION

Data đã nằm trong RF voltage/current tại feed; antenna tạo spatial electromagnetic fields từ current distribution của cấu trúc.

RF excitation ở feed tạo current/charge distribution trên antenna, từ đó hình thành radiated electric và magnetic fields. Geometry, impedance match, polarization và surrounding structure ảnh hưởng efficiency/pattern. Antenna không đọc bit labels và cũng không tự thực hiện QAM mapping.

RF PORTs(t)s(t)voltage/current có modulation
→
ANTENNAcurrent distributiongeometry + matching
→
SPACEEM wavelan truyền trong wireless channel

08 · IDEAL EQUATIONS CHE GIẤU CÁC RF IMPAIRMENTS

Real transmitter không tạo đúng tuyệt đối waveform mà DSP yêu cầu.

QUADRATURE IMBALANCEgain / phase mismatch

Hai quadrature paths không perfectly matched có thể tạo mirror-image leakage.

LO LEAKAGEcarrier-center spur

DC offset hoặc finite isolation có thể làm energy rò tại carrier center.

PA NONLINEARITYdistortion + spectral regrowth

Amplitude-dependent gain/phase làm received constellation và spectrum méo.

QUANTIZATION / CLOCKSfinite precision + jitter

DAC resolution và clock quality cũng giới hạn waveform fidelity.

Bài này không đi sâu calibration hay RF impairment compensation. Điều cần giữ là ideal complex-envelope equation là target model; hardware implementation luôn có error budget quanh target đó.

09 · RECEIVER ĐI NGƯỢC LẠI, NHƯNG KHÔNG PHẢI CHỈ ĐẢO MŨI TÊN

Antenna thu một RF waveform đã bị channel và noise làm thay đổi, rồi radio đưa nó trở lại I/QI/Q samples.

Antenna portreceived EM field excites RF voltage/current
→
Filter / LNAband selection + low-noise gain
→
DownconversionRF band → analog complex-envelope representation
→
ADCI[n], Q[n]I[n],\,Q[n] or architecture-equivalent digital samples
→
DSPsync, estimation, equalization, demapping, decoding

Đây là chỗ Bài 10 bắt đầu. Từ antenna phát tới antenna thu, waveform không còn là bản sao lý tưởng. Khoảng cách, vật cản và multipath tạo ra chính “wireless channel”.

10 · NỐI LẠI CÁC Ý

Một complex sample chỉ là điểm bắt đầu của chuỗi representation → conversion → RF → radiation.

  1. I/QI/Q samples: representation số của complex baseband.
  2. DAC / reconstruction: biến discrete representation thành wanted analog baseband band.
  3. Quadrature upconversion: Re⁡{xbbej2πfct}\operatorname{Re}\{x_{\mathrm{bb}}e^{j2\pi f_ct}\} tạo real RF waveform.
  4. Signed baseband frequency: positive/negative offsets map sang upper/lower offsets quanh carrier.
  5. RF filter + PA: enforce spectral/power requirements nhưng cũng có nonidealities.
  6. Antenna: RF excitation tạo current distribution và radiated electromagnetic fields.
  7. Receiver: chọn band, amplify, downconvert và digitize để trở lại DSP representation.