Rev 2181 Rev 2184
Line 342... Line 342...
342   342  
343 case 4: 343 case 4:
344 if (channel2 == 1) hit2=TDC_MRANGE1_HIT2_4CH1; else hit2=TDC_MRANGE1_HIT2_4CH2; 344 if (channel2 == 1) hit2=TDC_MRANGE1_HIT2_4CH1; else hit2=TDC_MRANGE1_HIT2_4CH2;
345 break; 345 break;
346 } 346 }
-   347
-   348 // hit2=TDC_MRANGE1_HIT2_START;
-   349 // hit1=TDC_MRANGE1_HIT1_1CH1;
347   350  
348 TDC_update_reg1(); // tell to ALU which shot period must be computed 351 TDC_update_reg1(); // tell to ALU which shot period must be computed
349 352
350 Delay_ms(50); // wait to computing of result 353 Delay_ms(50); // wait to computing of result
351 354
352 measurement=TDC_get_measurement(7&TDC_get_status()); // read computed value on pointer result register address 355 measurement=TDC_get_measurement(7&TDC_get_status()); // read computed value on pointer result register address
353 356
354 printf("\r\n%Lu\r\n", (7&TDC_get_status())); 357 printf("%Lu\r\n", (7&TDC_get_status()));
355 printf("%Lu\r\n", measurement); 358 printf("%Lu\r\n", measurement);
356   359  
357 switch (clkhsdiv) 360 switch (clkhsdiv)
358 { 361 {
359 case TDC_CLKHSDIV_1: 362 case TDC_CLKHSDIV_1: