Fix AIC NADC to 1

Fix 300-900MHz gain to 50
This commit is contained in:
DiSlord 2020-04-30 14:01:04 +03:00
parent a1bbee724c
commit 2f7f2a2473
2 changed files with 2 additions and 2 deletions

2
main.c
View file

@ -337,7 +337,7 @@ VNA_SHELL_FUNCTION(cmd_reset)
const uint8_t gain_table[][2] = { const uint8_t gain_table[][2] = {
{ 0, 0 }, // 1st: 0 ~ 300MHz { 0, 0 }, // 1st: 0 ~ 300MHz
{ 40, 40 }, // 2nd: 300 ~ 900MHz { 50, 50 }, // 2nd: 300 ~ 900MHz
{ 75, 75 }, // 3th: 900 ~ 1500MHz { 75, 75 }, // 3th: 900 ~ 1500MHz
{ 85, 85 }, // 4th: 1500 ~ 1800MHz { 85, 85 }, // 4th: 1500 ~ 1800MHz
{ 95, 95 }, // 5th: 2100 ~ 2400MHz { 95, 95 }, // 5th: 2100 ~ 2400MHz

View file

@ -165,7 +165,7 @@ static const uint8_t conf_data[] = {
0x3c, 0x01, // Set the DAC Mode to PRB_P1 0x3c, 0x01, // Set the DAC Mode to PRB_P1
0x25, 0x00, // DAC power up 0x25, 0x00, // DAC power up
0x12, 0x82, // Power up the NADC divider with value 2 0x12, 0x81, // Power up the NADC divider with value 1
0x13, 0x87, // Power up the MADC divider with value 7 0x13, 0x87, // Power up the MADC divider with value 7
0x14, 0x40, // ADC Oversampling (AOSR) set OSR of ADC to 64 0x14, 0x40, // ADC Oversampling (AOSR) set OSR of ADC to 64
0x3d, 0x01, // Select ADC PRB_R1 (AOSR = 64 (Use with PRB_R1 to PRB_R12, ADC Filter Type A or B)) 0x3d, 0x01, // Select ADC PRB_R1 (AOSR = 64 (Use with PRB_R1 to PRB_R12, ADC Filter Type A or B))