Add SW changes for Rev3 #246

Merged
AleksaBjelogrlic merged 3 commits from SW/Aleksa/Rev3_CLK_config into master 2023-04-04 01:58:44 +00:00
2 changed files with 4 additions and 4 deletions
Showing only changes of commit 4d206017a7 - Show all commits

View File

@ -38,7 +38,7 @@ internal enum AdcRegister : byte
THUNDERSCOPEHW_ADC_REG_GAIN_CFG = 0x33,
THUNDERSCOPEHW_ADC_REG_INSEL12 = 0x3A,
THUNDERSCOPEHW_ADC_REG_INSEL34 = 0x3B,
THUNDERSCOPEHW_ADC_REG_LVDS_CNTRL = 0x53,
THUNDERSCOPEHW_ADC_REG_FS_CNTRL = 0x55,
THUNDERSCOPEHW_ADC_REG_RES_SEL = 0x53
THUNDERSCOPEHW_ADC_REG_RES_SEL = 0x53,
THUNDERSCOPEHW_ADC_REG_LVDS_CNTRL = 0x42
}

View File

@ -325,7 +325,7 @@ namespace TS.NET
SetAdcRegister(AdcRegister.THUNDERSCOPEHW_ADC_REG_RESET, 0x0001);
// Power Down ADC
AdcPower(false);
// Set 8-bit mode (for HMCAD1520, won't do anything for HMCAD1511)
// LVDS Phase to 0deg to work with edge aligned receiver
SetAdcRegister(AdcRegister.THUNDERSCOPEHW_ADC_REG_LVDS_CNTRL, 0x0000);
// Invert channels
SetAdcRegister(AdcRegister.THUNDERSCOPEHW_ADC_REG_INVERT, 0x007F);
@ -342,7 +342,7 @@ namespace TS.NET
//currentBoardState.ch_is_on[0] = true;
//_FIFO_WRITE(user_handle,currentBoardState.adc_chnum_clkdiv,sizeof(currentBoardState.adc_chnum_clkdiv));
//Select 8-bit mode for HMCAD1520s
// Set 8-bit mode (for HMCAD1520, won't do anything for HMCAD1511)
SetAdcRegister(AdcRegister.THUNDERSCOPEHW_ADC_REG_RES_SEL, 0x0000);
AdcPower(true);