Fix overflow and move to a different FB pin

With wider distance between RX and FB and better filtering (R-C-R) the
noise from the FB is greatly attenuated and we see less spurs.
This commit is contained in:
Jan Hamal Dvořák 2025-08-18 10:01:51 +02:00
parent 1e37f88483
commit 5f264e023d

View file

@ -25,7 +25,7 @@
#define CLK_SYS_HZ (320 * MHZ)
#define RX_PIN 10
#define FB_PIN 11
#define FB_PIN 6
#define PSU_PIN 23
#define PIO pio0
@ -56,7 +56,7 @@ static int frequency = INIT_FREQ;
static int sample_rate = INIT_SAMPLE_RATE;
#define BASE_GAIN (1 << 15)
#define ATTN_BITS 10
#define ATTN_BITS 12
#define DECIMATE 4
static int gain = BASE_GAIN / (CLK_SYS_HZ / INIT_SAMPLE_RATE);