Subversion Repositories svnkaklik

Rev

Rev 870 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 870 Rev 882
Line 33... Line 33...
33
      output_low(START);
33
      output_low(START);
34
      output_low(STOP1);
34
      output_low(STOP1);
35
      output_low(STOP2);
35
      output_low(STOP2);
36
 
36
 
37
// Mode 1
37
// Mode 1
38
/*      
-
 
39
      delay_ms(50);
-
 
40
      output_low(START);
38
      while(!input(FIRE_DETECT));            
41
      output_low(STOP1);
-
 
42
      output_low(STOP2);
-
 
43
            
-
 
44
      output_high(START);     // start of time measurement
39
      output_high(START);     // start of time measurement
45
 
40
 
46
      output_high(STOP2);
41
      output_high(STOP2);
47
      output_high(STOP1);
42
      output_high(STOP1);
48
 
43
 
49
      output_low(STOP1);
44
      output_low(STOP1);
50
      output_low(STOP2);
45
      output_low(STOP2);
51
      output_low(START);
46
      output_low(START);
52
 
47
 
53
*/
-
 
54
// mode 2
48
// mode 2
-
 
49
/*      
55
 
50
 
56
      output_high(STOP2);  // Merime jenom jednim kanalem (druhy musi byt v H)
51
      output_high(STOP2);  // Merime jenom jednim kanalem (druhy musi byt v H)
57
      while(!input(FIRE_DETECT));
52
      while(!input(FIRE_DETECT));
58
 
53
 
59
      output_high(START);
54
      output_high(START);
Line 68... Line 63...
68
      output_low(STOP1);
63
      output_low(STOP1);
69
      delay_us(10);
64
      delay_us(10);
70
      
65
      
71
      output_high(STOP1);
66
      output_high(STOP1);
72
      output_low(STOP1);
67
      output_low(STOP1);
-
 
68
*/
-
 
69
 
73
  }
70
  }
74
}
71
}