Line 17... |
Line 17... |
17 |
|
17 |
|
18 |
#int_TIMER1 |
18 |
#int_TIMER1 |
19 |
void TIMER1_isr(void) |
19 |
void TIMER1_isr(void) |
20 |
{ |
20 |
{ |
21 |
// 32.768 kHz krystal pro timer1 oscilátor |
21 |
// 32.768 kHz krystal pro timer1 oscilátor |
22 |
anemo = ((timer0_overflow_count * 0xFF) + get_timer0())/(32768.0/0xFFFF); // pocet pulzu za 1s |
22 |
anemo = ((timer0_overflow_count * 0xFF) + get_timer0())/(0xFFFF/32768.0); // pocet pulzu za 1s |
23 |
|
23 |
|
24 |
timer0_overflow_count=0; //nulovani |
24 |
timer0_overflow_count=0; //nulovani |
25 |
set_timer0(0); |
25 |
set_timer0(0); |
26 |
set_timer1(0); |
26 |
set_timer1(0); |
27 |
output_toggle(PIN_E0); |
27 |
output_toggle(PIN_E0); |