7
mirror of https://github.com/EEVengers/ThunderScope.git synced 2025-04-03 05:16:33 +00:00

Changed LVDS Phase to work with new SERDES

This commit is contained in:
Aleksa Bjelogrlic 2023-03-06 22:37:16 -05:00
parent d5a5c09ccc
commit 4d206017a7
2 changed files with 4 additions and 4 deletions
Software/TS.NET/source/TS.NET/Hardware

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);