/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 |
/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 |