/programy/C/PIC/mereni/TDC/Pulzni_generator/main.c |
---|
35,12 → 35,7 |
output_low(STOP2); |
// Mode 1 |
/* |
delay_ms(50); |
output_low(START); |
output_low(STOP1); |
output_low(STOP2); |
while(!input(FIRE_DETECT)); |
output_high(START); // start of time measurement |
output_high(STOP2); |
50,8 → 45,8 |
output_low(STOP2); |
output_low(START); |
*/ |
// mode 2 |
/* |
output_high(STOP2); // Merime jenom jednim kanalem (druhy musi byt v H) |
while(!input(FIRE_DETECT)); |
70,5 → 65,7 |
output_high(STOP1); |
output_low(STOP1); |
*/ |
} |
} |