/Designs/Measuring_instruments/AWS01B/SW/PIC16F887/main.c
19,7 → 19,7
void TIMER1_isr(void)
{
// 32.768 kHz krystal pro timer1 oscilátor
anemo = ((timer0_overflow_count * 0xFF) + get_timer0())/(32768.0/0xFFFF); // pocet pulzu za 1s
anemo = ((timer0_overflow_count * 0xFF) + get_timer0())/(0xFFFF/32768.0); // pocet pulzu za 1s
 
timer0_overflow_count=0; //nulovani
set_timer0(0);