Rev 1226 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1226 | Rev 1286 | ||
---|---|---|---|
Line 30... | Line 30... | ||
30 | { |
30 | { |
31 | static unsigned char cnt_1ms = 1,cnt = 0; |
31 | static unsigned char cnt_1ms = 1,cnt = 0; |
32 | unsigned char pieper_ein = 0; |
32 | unsigned char pieper_ein = 0; |
33 | // TCNT0 -= 250;//TIMER_RELOAD_VALUE; |
33 | // TCNT0 -= 250;//TIMER_RELOAD_VALUE; |
34 | if(SendSPI) SendSPI--; |
34 | if(SendSPI) SendSPI--; |
- | 35 | ||
- | 36 | ANALOG_START; // MartinR: um Start AD zu steuern. 16 AD-Wandlungen mit 8kHz= 500 Hz |
|
- | 37 | ||
35 | if(!cnt--) |
38 | if(!cnt--) |
36 | { |
39 | { |
37 | cnt = 9; |
40 | cnt = 9; |
38 | cnt_1ms++; |
41 | cnt_1ms++; |
39 | cnt_1ms %= 2; |
42 | cnt_1ms %= 2; |