Line 196... |
Line 196... |
196 |
|
196 |
|
197 |
TDC_init(); |
197 |
TDC_init(); |
198 |
delay_ms(50); |
198 |
delay_ms(50); |
199 |
TDC_start_cycle(); |
199 |
TDC_start_cycle(); |
200 |
While(!input(INTN_PIN)); // waiting for interrupt flag |
200 |
While(!input(INTN_PIN)); // waiting for interrupt flag |
201 |
|
- |
|
202 |
// STOP2 INPUT MUST BE PULLED HIGH - else GP2 does not respond to stop pulses! |
- |
|
203 |
|
201 |
|
204 |
//----------------------------------------------- Calculate and print output |
202 |
//----------------------------------------------- Calculate and print output |
205 |
|
203 |
|
206 |
printf("$TDC%s M2 ", VERSION); |
204 |
printf("$TDC%s M2 ", VERSION); |
207 |
for(i=1;i<=hits;i++) printf(" %4.6f", TDC_mrange2_get_time(i)); |
205 |
for(i=1;i<=hits;i++) printf(" %4.6f", TDC_mrange2_get_time(i)); |
208 |
printf("\r\n"); |
206 |
printf("\r\n"); |