r/arduino • u/bruce2205 • 4d ago
lsdx, a LGT8F328P transceiver using DSU functions
lsdx is a standalone, single-chip HF SSB/CW transceiver built on the LGT8F328P (32 MHz LQFP48 Nano board). By exploiting the LGT8F328P's hardware DSP unit (uDSU FMACSS instructions) and 12-bit ADC, lsdx runs both a quadrature phasing SDR receiver and a polar Envelope Elimination and Restoration (EER) SSB exciter on an 8-bit microcontroller with only 2 KB of SRAM.
Key Features
- Dual-Mode DSP Engine (15.625 kSPS):
- Receive: 12-bit simultaneous I/Q sampling, digital DC-offset removal, I/Q gain & phase trim, 4th-order Butterworth biquad roofing filters (switchable 400 Hz CW, 2.2 kHz Narrow SSB, 2.8 kHz Wide SSB), 47-tap Hilbert transform, and fast digital AGC with noise-floor hold.
- Transmit (Polar EER): Automatic mic DC tracking, fast-attack/slow-release speech compressor & soft-knee limiter, 47-tap Hilbert analytic splitter, hardware
dsu_mag()/dsu_atan2()polar conversion, 125 kHz fast PWM envelope output (OC2B), and direct 40-bit phase/frequency modulation of an AD9850 DDS.
Dual Synthesizer Architecture:
- RX LO: Si5351A generating hardware quadrature (
CLK0/CLK190° phase offset) across 100 kHz – 30 MHz. - TX Exciter: AD9850 driven via direct-port bit-banging (~125 MHz reference clock), powered down automatically during RX.
- Non-Blocking UI & Persistence:
- Incremental 16×2 I2C character LCD driver (
PCF8574) with S-meter / TX envelope bargraph (updates 1 character per loop pass so audio DSP never stutters). - Built-in calibration menus for I/Q Gain, I/Q Phase, and Si5351 Crystal Offset, saved automatically to I2C FRAM
Putting the code up for anyone interested in cheap SDR but the filters an math library might be useful for music or motor control.
Will put some pics up when progress from breadboard to pcb.


