Rev 3419 Rev 3421
Line 16... Line 16...
16 { 16 {
17 if (sync==1) 17 if (sync==1)
18 { 18 {
19 output_low(SYNC_OUTPUT); 19 output_low(SYNC_OUTPUT);
20 output_toggle(LED2); 20 output_toggle(LED2);
21 delay_us(50); // na svvakove staci 5us v Upici bylo potreba energii zvednout 21 delay_us(5); // na svvakove staci 5us v Upici bylo potreba energii zvednout
22 output_high(SYNC_OUTPUT); 22 output_high(SYNC_OUTPUT);
23 sync=0; 23 sync=0;
24 } 24 }
25 output_toggle(LED3); 25 output_toggle(LED3);
26 } 26 }
Line 38... Line 38...
38 setup_timer_2(T2_DISABLED,0,1); 38 setup_timer_2(T2_DISABLED,0,1);
39 setup_ccp1(CCP_OFF); 39 setup_ccp1(CCP_OFF);
40 setup_comparator(NC_NC_NC_NC);// This device COMP currently not supported by the PICWizard 40 setup_comparator(NC_NC_NC_NC);// This device COMP currently not supported by the PICWizard
41   41  
42   42  
43 output_low(SYNC_OUTPUT); 43 output_high(SYNC_OUTPUT);
44 output_high(LED1); 44 output_high(LED1);
45 output_high(LED2); 45 output_high(LED2);
46 output_high(LED3); 46 output_high(LED3);
47   47  
48 sync=0; 48 sync=0;