Line 19... |
Line 19... |
19 |
setup_timer_2(T2_DISABLED,0,1); |
19 |
setup_timer_2(T2_DISABLED,0,1); |
20 |
setup_timer_3(T3_DISABLED|T3_DIV_BY_1); |
20 |
setup_timer_3(T3_DISABLED|T3_DIV_BY_1); |
21 |
setup_comparator(NC_NC_NC_NC); |
21 |
setup_comparator(NC_NC_NC_NC); |
22 |
setup_vref(FALSE); |
22 |
setup_vref(FALSE); |
23 |
|
23 |
|
24 |
while(TRUE) |
24 |
while(TRUE) |
25 |
{ |
25 |
{ |
26 |
output_low(LX200); |
26 |
output_low(LX200); |
27 |
delay_ms(1000); |
27 |
delay_ms(1000); |
28 |
output_high(LX200); |
28 |
output_high(LX200); |
29 |
delay_us(100); |
29 |
delay_us(100); |
30 |
output_toggle(LX200); |
30 |
output_toggle(LX200); |
31 |
delay_us(940); |
31 |
delay_us(940); |
32 |
output_toggle(LX200); |
32 |
output_toggle(LX200); |
33 |
delay_us(100); |
33 |
delay_us(100); |
34 |
output_toggle(LX200); |
34 |
output_toggle(LX200); |
35 |
delay_us(940); |
35 |
delay_us(940); |
36 |
output_toggle(LX200); |
36 |
output_toggle(LX200); |
37 |
delay_us(100); |
37 |
delay_us(100); |
38 |
output_toggle(LX200); |
38 |
output_toggle(LX200); |
39 |
delay_us(940); |
39 |
delay_us(940); |
40 |
output_toggle(LX200); |
40 |
output_toggle(LX200); |
41 |
delay_us(200); |
41 |
delay_us(200); |
42 |
output_toggle(LX200); |
42 |
output_toggle(LX200); |
43 |
delay_us(100); |
43 |
delay_us(100); |
44 |
output_toggle(LX200); |
44 |
output_toggle(LX200); |
45 |
delay_us(100); |
45 |
delay_us(100); |
46 |
output_toggle(LX200); |
46 |
output_toggle(LX200); |
47 |
delay_us(100); |
47 |
delay_us(100); |
48 |
output_toggle(LX200); |
48 |
output_toggle(LX200); |
49 |
delay_us(100); |
49 |
delay_us(100); |
50 |
output_toggle(LX200); |
50 |
output_toggle(LX200); |
51 |
delay_us(100); |
51 |
delay_us(100); |
52 |
output_toggle(LX200); |
52 |
output_toggle(LX200); |
53 |
delay_us(200); |
53 |
delay_us(200); |
54 |
output_toggle(LX200); |
54 |
output_toggle(LX200); |
55 |
} |
55 |
} |
56 |
|
- |
|
57 |
while(TRUE); |
- |
|
58 |
} |
56 |
} |