Subversion Repositories svnkaklik

Rev

Rev 853 | Rev 870 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 853 Rev 854
Line 1... Line 1...
1
#include "D:\svnKaklik\programy\C\PIC\mereni\TDC\Pulzni_generator\main.h"
1
#include "main.h"
2
 
2
 
3
#use fast_io (D)
3
#use fast_io (D)
4
 
4
 
5
#define LED PIN_E1  //CHANGE PIN_XX TO YOUR LED PIN NUMBER, EX: PIN_A5
5
#define LED PIN_E1  //CHANGE PIN_XX TO YOUR LED PIN NUMBER, EX: PIN_A5
6
 
6
 
Line 32... Line 32...
32
      output_high(LED);
32
      output_high(LED);
33
      delay_ms(1000);
33
      delay_ms(1000);
34
    }
34
    }
35
 
35
 
36
// Mode 1
36
// Mode 1
37
 
-
 
38
      TDC_init();
-
 
39
      
37
      
40
      delay_ms(50);
38
      delay_ms(50);
41
      output_low(START);
39
      output_low(START);
42
      output_low(STOP1);
40
      output_low(STOP1);
43
      output_low(STOP2);
41
      output_low(STOP2);