|
@@ -336,64 +336,67 @@ namespace RF_TRIO_PLL_ZIG
|
336
|
336
|
temp_val = data[(int)Bluecell_TypeIndex_t.PLL_3_5G_UL_H] << 8;
|
337
|
337
|
temp_val = ((temp_val | data[(int)Bluecell_TypeIndex_t.PLL_3_5G_UL_L]) / 10);
|
338
|
338
|
this.Invoke(new StringSend(numeric_Text_Set), numericUpDown_PLL_3_5G_UL, temp_val.ToString());
|
339
|
|
-
|
|
339
|
+ /***********************DAC A Sector**********************************/
|
340
|
340
|
temp_val = data[(int)Bluecell_TypeIndex_t.DAC_VCtrl_A_H] << 8;
|
341
|
341
|
temp_val = ((temp_val | data[(int)Bluecell_TypeIndex_t.DAC_VCtrl_A_L]) );
|
342
|
342
|
ret = (temp_val & 0x0FFF) * 4;
|
343
|
343
|
ret = ret / 4095;
|
344
|
|
- ret = Math.Round(Convert.ToDouble(ret), 1);
|
|
344
|
+ ret = Math.Round(Convert.ToDouble(ret), 2);
|
345
|
345
|
this.Invoke(new StringSend(numeric_Text_Set), numericUpDown_DAC_VoltCtrl_A, ret.ToString());
|
346
|
|
-
|
|
346
|
+ /***********************DAC B Sector**********************************/
|
347
|
347
|
temp_val = data[(int)Bluecell_TypeIndex_t.DAC_VCtrl_B_H] << 8;
|
348
|
348
|
temp_val = ((temp_val | data[(int)Bluecell_TypeIndex_t.DAC_VCtrl_B_L]) );
|
349
|
349
|
ret = (temp_val & 0x0FFF) * 4;
|
350
|
350
|
ret = ret / 4095;
|
351
|
|
- ret = Math.Round(Convert.ToDouble(ret), 1);
|
|
351
|
+ ret = Math.Round(Convert.ToDouble(ret), 2);
|
352
|
352
|
this.Invoke(new StringSend(numeric_Text_Set), numericUpDown_DAC_VoltCtrl_B, ret.ToString());
|
353
|
|
-
|
|
353
|
+ /***********************DAC C Sector**********************************/
|
354
|
354
|
temp_val = data[(int)Bluecell_TypeIndex_t.DAC_VCtrl_C_H] << 8;
|
355
|
355
|
temp_val = ((temp_val | data[(int)Bluecell_TypeIndex_t.DAC_VCtrl_C_L]) );
|
356
|
356
|
ret = (temp_val & 0x0FFF) * 4;
|
357
|
357
|
ret = ret / 4095;
|
358
|
|
- ret = Math.Round(Convert.ToDouble(ret ), 1);
|
|
358
|
+ ret = Math.Round(Convert.ToDouble(ret ), 2);
|
359
|
359
|
|
360
|
360
|
this.Invoke(new StringSend(numeric_Text_Set), numericUpDown_DAC_VoltCtrl_C, ret.ToString());
|
361
|
|
-
|
|
361
|
+ /***********************DAC D Sector**********************************/
|
362
|
362
|
temp_val = data[(int)Bluecell_TypeIndex_t.DAC_VCtrl_D_H] << 8;
|
363
|
363
|
temp_val = ((temp_val | data[(int)Bluecell_TypeIndex_t.DAC_VCtrl_D_L]) );
|
364
|
364
|
ret = (temp_val & 0x0FFF) * 4;
|
365
|
365
|
ret = ret / 4095;
|
366
|
|
- ret = Math.Round(Convert.ToDouble(ret), 1);
|
|
366
|
+ ret = Math.Round(Convert.ToDouble(ret), 2);
|
367
|
367
|
this.Invoke(new StringSend(numeric_Text_Set), numericUpDown_DAC_VoltCtrl_D, ret.ToString());
|
368
|
|
-
|
|
368
|
+ /***********************DAC E Sector**********************************/
|
369
|
369
|
temp_val = data[(int)Bluecell_TypeIndex_t.DAC_VCtrl_E_H] << 8;
|
370
|
370
|
temp_val = ((temp_val | data[(int)Bluecell_TypeIndex_t.DAC_VCtrl_E_L]) );
|
371
|
371
|
ret = (temp_val & 0x0FFF) * 4;
|
372
|
372
|
ret = ret / 4095;
|
373
|
|
- ret = Math.Round(Convert.ToDouble(ret), 1);
|
|
373
|
+ ret = Math.Round(Convert.ToDouble(ret), 2);
|
374
|
374
|
this.Invoke(new StringSend(numeric_Text_Set), numericUpDown_DAC_VoltCtrl_E, ret.ToString());
|
375
|
|
-
|
|
375
|
+ /***********************DAC F Sector**********************************/
|
376
|
376
|
temp_val = data[(int)Bluecell_TypeIndex_t.DAC_VCtrl_F_H] << 8;
|
377
|
377
|
temp_val = ((temp_val | data[(int)Bluecell_TypeIndex_t.DAC_VCtrl_F_L]) );
|
378
|
378
|
ret = (temp_val & 0x0FFF) * 4;
|
379
|
379
|
ret = ret / 4095;
|
380
|
|
- ret = Math.Round(Convert.ToDouble(ret), 1);
|
|
380
|
+ ret = Math.Round(Convert.ToDouble(ret), 2);
|
381
|
381
|
this.Invoke(new StringSend(numeric_Text_Set), numericUpDown_DAC_VoltCtrl_F, ret.ToString());
|
382
|
|
-
|
|
382
|
+ /***********************DAC G Sector**********************************/
|
383
|
383
|
temp_val = data[(int)Bluecell_TypeIndex_t.DAC_VCtrl_G_H] << 8;
|
384
|
384
|
temp_val = ((temp_val | data[(int)Bluecell_TypeIndex_t.DAC_VCtrl_G_L]) );
|
385
|
385
|
ret = (temp_val & 0x0FFF) * 4;
|
386
|
386
|
ret = ret / 4095;
|
387
|
|
- ret = Math.Round(Convert.ToDouble(ret), 1);
|
|
387
|
+ ret = Math.Round(Convert.ToDouble(ret), 2);
|
388
|
388
|
this.Invoke(new StringSend(numeric_Text_Set), numericUpDown_DAC_VoltCtrl_G, ret.ToString());
|
389
|
|
-
|
|
389
|
+ /***********************DAC H Sector**********************************/
|
390
|
390
|
temp_val = data[(int)Bluecell_TypeIndex_t.DAC_VCtrl_H_H] << 8;
|
391
|
391
|
temp_val = ((temp_val | data[(int)Bluecell_TypeIndex_t.DAC_VCtrl_H_L]) );
|
392
|
392
|
ret = (temp_val & 0x0FFF) * 4;
|
393
|
393
|
ret = ret / 4095;
|
394
|
|
- ret = Math.Round(Convert.ToDouble(ret), 1);
|
|
394
|
+ ret = Math.Round(Convert.ToDouble(ret), 2);
|
395
|
395
|
this.Invoke(new StringSend(numeric_Text_Set), numericUpDown_DAC_VoltCtrl_H, ret.ToString());
|
396
|
396
|
|
|
397
|
+
|
|
398
|
+
|
|
399
|
+
|
397
|
400
|
PictureBox pic_on;
|
398
|
401
|
PictureBox pic_off;
|
399
|
402
|
pic_on = pictureBox_PATH_1_8G_DL_ON;
|