Add SW changes for Rev3 #246
@ -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
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user