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 5 additions and 1 deletions
Showing only changes of commit 347cd72a25 - Show all commits

View File

@ -39,5 +39,6 @@ internal enum AdcRegister : byte
THUNDERSCOPEHW_ADC_REG_INSEL12 = 0x3A, THUNDERSCOPEHW_ADC_REG_INSEL12 = 0x3A,
THUNDERSCOPEHW_ADC_REG_INSEL34 = 0x3B, THUNDERSCOPEHW_ADC_REG_INSEL34 = 0x3B,
THUNDERSCOPEHW_ADC_REG_LVDS_CNTRL = 0x53, THUNDERSCOPEHW_ADC_REG_LVDS_CNTRL = 0x53,
THUNDERSCOPEHW_ADC_REG_FS_CNTRL = 0x55 THUNDERSCOPEHW_ADC_REG_FS_CNTRL = 0x55,
THUNDERSCOPEHW_ADC_REG_RES_SEL = 0x53
} }

View File

@ -268,6 +268,9 @@ namespace TS.NET
//currentBoardState.ch_is_on[0] = true; //currentBoardState.ch_is_on[0] = true;
//_FIFO_WRITE(user_handle,currentBoardState.adc_chnum_clkdiv,sizeof(currentBoardState.adc_chnum_clkdiv)); //_FIFO_WRITE(user_handle,currentBoardState.adc_chnum_clkdiv,sizeof(currentBoardState.adc_chnum_clkdiv));
//Select 8-bit mode for HMCAD1520s
SetAdcRegister(AdcRegister.THUNDERSCOPEHW_ADC_REG_RES_SEL, 0x0000);
AdcPower(true); AdcPower(true);
//_FIFO_WRITE(user_handle,currentBoardState.adc_in_sel_12,sizeof(currentBoardState.adc_in_sel_12)); //_FIFO_WRITE(user_handle,currentBoardState.adc_in_sel_12,sizeof(currentBoardState.adc_in_sel_12));
//_FIFO_WRITE(user_handle,currentBoardState.adc_in_sel_34,sizeof(currentBoardState.adc_in_sel_34)); //_FIFO_WRITE(user_handle,currentBoardState.adc_in_sel_34,sizeof(currentBoardState.adc_in_sel_34));