//Designs/Measuring_instruments/AWS01A/SW/PIC16F887/main.c
33,7 → 33,7
void TIMER1_isr(void)
{
// wind speed calculation 32.768 kHz crystal on timer1 oscilator expected.
anemo = ((timer0_overflow_count * 0xFF) + get_timer0())/(32768.0/0xFFFF); // pulses per second calculation
anemo = ((timer0_overflow_count * 0xFF) + get_timer0())/(0xFFFF/32768.0); // pulses per second calculation
anemo = anemo / 10.5; // frequency divided by anemomether constant.
 
timer0_overflow_count=0;
//Designs/Measuring_instruments/AWS01A/SW/PIC16F887/main.hex
41,8 → 41,8
:10029000F70CF90CF80C9B0B3D29790898007808AD
:1002A000970003130108031797070318980A180803
:1002B0009A0017089900031344207A0803179C003A
:1002C00079089B0078089A00770899008030A00090
:1002D0009F019E017E309D00031363207A08C500B4
:1002C00079089B0078089A0077089900A001FF3010
:1002D0009F007F309E009D00031363207A08C500B5
:1002E0007908C4007808C3007708C20045080317DE
:1002F0009C000313440803179B00031343080317D0
:100300009A000313420803179900A0019F012830A7
76,12 → 76,12
:1004C00024308316A0004930A1006430A2003A30E5
:1004D000A3002030A4006D30A5006130A600693073
:1004E000A7006E30A8002E30A9006330AA0020308B
:1004F000AB003230AC003930AD003130AE003530B9
:1004F000AB003330AC003030AD003830AE003330BC
:10050000AF002030B0003230B1003030B2003130B6
:10051000B3003330B4002D30B5003030B600343085
:10052000B7002D30B8003130B9003430BA00203077
:10053000BB003130BC003430BD003A30BE0030303A
:10054000BF003530C0003A30C1003530C200323013
:10051000B3003330B4002D30B5003030B600363083
:10052000B7002D30B8003130B9003830BA00203073
:10053000BB003130BC003030BD003A30BE00353039
:10054000BF003030C0003A30C1003330C20031301B
:10055000C3005A30C4002030C5006B30C600613083
:10056000C7006B30C8006C30C9006930CA006B30FE
:10057000CB002030CC002430CD00CE01D301A03000
747,4 → 747,4
:04400E00FD2CFF3F47
:00000001FF
;PIC16F887
;CRC=916E CREATED="14-IV-13 18:33"
;CRC=DD01 CREATED="22-VI-13 18:45"
//Designs/Measuring_instruments/AWS01A/SW/PIC16F887/main.pjt
17,7 → 17,7
0=0000 %S 0 0 796 451 3 0
[Opened Files]
1=main.c
2=C:\Program Files (x86)\PICC\drivers\ctype.h
2=
3=..\ds1820.c
4=..\1wire.c
5=..\SHT.c