/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);
/Designs/Measuring_instruments/AWS01B/SW/PIC16F887/main.hex
42,8 → 42,8
:1002A000F90CF80CBD0B44297908BA007808B9009C
:1002B000831201088316B9070318BA0A3A08BC006A
:1002C0003908BB0083124B207A088316BE007908D8
:1002D000BD007808BC007708BB008030C200C101B7
:1002E000C0017E30BF0083126A207A08B600790808
:1002D000BD007808BC007708BB00C201FF30C10038
:1002E0007F30C000BF0083126A207A08B600790808
:1002F000B5007808B4007708B300B201B1018101FC
:100300008F018E01831609100130831289060C10AB
:100310008A110A123128B10A0319B20A0B118A1183
709,4 → 709,4
:04400E00F52CFF3F4F
:00000001FF
;PIC16F887
;CRC=16C4 CREATED="17-V-13 13:02"
;CRC=A6BB CREATED="22-VI-13 18:43"
/Designs/Measuring_instruments/AWS01B/SW/PIC16F887/main.pjt
17,7 → 17,7
0=0000 %S 0 0 796 451 3 0
[Opened Files]
1=main.c
2=main.h
2=
3=C:\Program Files (x86)\PICC\devices\16F887.h
4=C:\Program Files (x86)\PICC\drivers\math.h
5=C:\Program Files (x86)\PICC\drivers\string.h