/Designs/Measuring_instruments/AWS01A/SW/PIC16F887/main.c
78,9 → 78,9
sht_init();
MPL_init(); // get correction coefficients from the sensor
 
// enable_interrupts(INT_TIMER1); // interrupts used for anemometer readings
// enable_interrupts(INT_TIMER0);
// enable_interrupts(GLOBAL);
enable_interrupts(INT_TIMER1); // interrupts used for anemometer readings
// enable_interrupts(INT_TIMER0);
enable_interrupts(GLOBAL);
 
while (TRUE)
{
98,7 → 98,7
sht_rd(SHT_temp,SHT_hum);
SHT_temp = (SHT_temp + 273.15)*100;
barometer_temperature = (MPL_get_temperature() + 273.15)*100;
barometer_pressure = MPL_get_pressure() * 10.0; // conversion to hectopascals
barometer_pressure = MPL_get_pressure() * 10.0; // conversion to hectopascals
delay_us(SEND_DELAY);
putc('$');
/Designs/Measuring_instruments/AWS01A/SW/PIC16F887/main.hex
116,12 → 116,12
:10074000A2003A30A3002030A4006D30A500613033
:10075000A6006930A7006E30A8002E30A9006330D3
:10076000AA002030AB003230AC003830AD0033305E
:10077000AE003530AF002030B0003230B100303044
:10077000AE003730AF002030B0003230B100303042
:10078000B2003130B3003330B4002D30B50030301A
:10079000B6003330B7002D30B8003130B9003530F5
:1007A000BA002030BB003130BC003530BD003A30DB
:1007B000BE003530BF003930C0003A30C1003330A0
:1007C000C2003130C3005A30C4002030C5006B3045
:1007A000BA002030BB003130BC003830BD003A30D8
:1007B000BE003230BF003430C0003A30C1003430A7
:1007C000C2003630C3005A30C4002030C5006B3040
:1007D000C6006130C7006B30C8006C30C90069309A
:1007E000CA006B30CB002030CC002430CD00CE01CD
:1007F000D301A030D2008312F82201307802A03E4B
352,7 → 352,7
:101610007808FC007708FB00162B8316FE01663065
:10162000FD00D530FC008D30FB0083127B08F700F5
:101630007C08F8007D08F9007E08FA008A110A1675
:10164000AD298316A201A101A0012008073C031CBB
:10164000B2298316A201A101A0012008073C031CB6
:10165000432B0310A10DA20D881083128814302B88
:10166000312B831608148312081C3A2B831621147D
:10167000392B831283168810831288103F2B402B3E
395,7 → 395,7
:1018C0006F088316B90083126E088316B80083125E
:1018D0006D088316B70083126C088316B600BD012D
:1018E000BC015830BB008330BA008A11831209252D
:1018F0008A158A110A164A2C3F113F088316870061
:1018F0008A158A110A164F2C3F113F08831687005C
:10190000831207111308243093008316140C031C50
:10191000862C8312130893018316140C031C8D2C40
:1019200083123F113F0883168700831207150A3080
453,11 → 453,11
:101C60007708F2007808F3007908F4007A08F500A4
:101C700083107A088316B9007908B8007808B7008D
:101C80007708B600BD01BC014830BB008430BA0003
:101C90008A11831209258A158A110A16A62C800832
:101C90008A11831209258A158A110A16AB2C80082D
:101CA0000319662EE9010408E8006910831B691412
:101CB0000008F5008A11EA278A1568088400831352
:101CC00069188317840A0319850A4F2E8A110A1688
:101CD000F42CF0010408EF007010831B7014690EDF
:101CD000F92CF0010408EF007010831B7014690EDA
:101CE000F038EB00EB07E23EEC00323EEE00690814
:101CF0000F39EC07EC07EE07E93EED00ED07ED07C5
:101D0000680E0F39ED07EE07ED0DEE0DEE09EE0D45
469,7 → 469,7
:101D60006F1ACA2EEF19B62E2030B92EEF156F124A
:101D70003030F707E9010408E8006910831B691493
:101D80007708F5008A11EA278A156808840083130A
:101D900069188317840A6F1FA62E8A110A16252D2B
:101D900069188317840A6F1FA62E8A110A162A2D26
:101DA000F701F801F901FA018316A401A501A601C2
:101DB000A701230822042104200403190F2F203037
:101DC000A8000310FB0DFC0DFD0DFE0DA40DA50DCF
483,7 → 483,7
:101E4000232F6908F7077708F5008A11EA278A1512
:101E50000F30E8050A3068020318302F3030322F77
:101E6000E9136908E8076808F5008A11EA278A1566
:061E70008A110A16882EFB
:061E70008A110A168D2EF6
:102000000408ED006C08EF00031929286B088316FB
:10201000BD0083126A088316BC0083126908831608
:10202000BB00831268088316BA00C101C0012030CA
535,172 → 535,173
:102300008312940040308316940083123F113F08DB
:10231000831687008312071564308316A2000A1201
:102320008312E4220A160A129A2B0A160A12E02CC9
:102330000A160A128A1500280A168A11D3010430D7
:10234000E800FA308316A2000A128312E4220A1669
:10235000E80BA1290A128A151E2A0A168A11770883
:10236000E8007808E9007908EA007A08EB00ED0156
:102370000408EC006D10831B6D1483106B0883162A
:10238000B90083126A088316B8008312690883169D
:10239000B700831268088316B600BD016630BC0022
:1023A0005530BB008D30BA000A12831209250A1677
:1023B0006C08840083136D1883177A08DF0079088E
:1023C000DE007808DD007708DC00E901E801DB01C8
:1023D000DA01D901D8010A12B7240A16033083168C
:1023E000A0000A1283123D270A167C1078187C146C
:1023F0007C180A2A0A1282270A160A128A15212331
:102400000A168A117908FE007808FD007D08F80098
:102410007E08F9007908E9007808E8000A12B72474
:102420000A1605308316A0000A1283123D270A16E9
:102430007C1078187C147C182D2A0A1282270A1620
:102440000A128A1521230A168A117908FE007808D3
:10245000FD007D08F8007E08F9007908EB00780897
:10246000EA006908FD006808FC006B088316A100FB
:1024700083126A088316A0008312A7018B1BA7177B
:102480008B137D08031791007C0890000A12031338
:102490004B210A16A71B8B1777088316A60078080E
:1024A000A7007908A8007A08A900BD002808BC0088
:1024B0002708BB002608BA000A30C100D730C00088
:1024C0002330BF007830BE000A128312C6260A16D7
:1024D00077088316A6007808A7007908A8007A086C
:1024E000A90083142908B9002808B8002708B700F4
:1024F0002608B600BD01BC012030BB008430BA0004
:102500000A12831209250A167A08D7007908D6001C
:102510007808D5007708D400A7018B1BA7178B1369
:1025200083162108831203179100831603132008D2
:102530008312031790000A1203134B210A16A71BDC
:102540008B177A088316A5007908A4007808A300E1
:102550007708A2002508BD002408BC002308BB00A2
:102560002208BA00BD30C1005230C0001630BF0092
:102570007A30BE000A128312C6260A168310C530AE
:102580008316B900FE30B8008230B7008030B60044
:102590007A08BD007908BC007808BB007708BA004B
:1025A0000A12831209250A1677088316A6007808EE
:1025B000A7007908A8007A08A9002508BD0024080A
:1025C000BC002308BB002208BA002508C10024086B
:1025D000C0002308BF002208BE000A128312C626CC
:1025E0000A1677088316AA007808AB007908AC00B1
:1025F0007A08AD00BD002C08BC002B08BB002A08DF
:10260000BA00F630C1002430C000D630BF006B30B5
:10261000BE000A128312C6260A16831083162908E2
:10262000B9002808B8002708B7002608B6007A08BD
:10263000BD007908BC007808BB007708BA000A1210
:10264000831209250A167A08EF007908EE00780847
:10265000ED007708EC00831457088316B900831245
:1026600056088316B800831255088316B7008312E4
:1026700054088316B600BD01BC014830BB0083304E
:10268000BA000A12831209250A1677088316A600D3
:102690007808A7007908A8007A08A900AC30BD0026
:1026A000C530BC002730BB007130BA002508C1001E
:1026B0002408C0002308BF002208BE000A128312AB
:1026C000C6260A1683100A308316B900D730B80020
:1026D0002330B7007830B6007A08BD007908BC0016
:1026E0007808BB007708BA000A12831209250A1677
:1026F00083162908BD002808BC002708BB0026084F
:10270000BA007A08C1007908C0007808BF007708CD
:10271000BE000A128312C6260A1677088316A60080
:102720007808A7007908A8007A08A900831029086A
:10273000B9002808B8002708B7002608B600831299
:102740006F088316BD0083126E088316BC008312C7
:102750006D088316BB0083126C088316BA000A1238
:10276000831209250A167A08DB007908DA0078084E
:10277000D9007708D8008316B501B4014630B300FC
:102780008530B20083125B088316B90083125A08A1
:102790008316B800831259088316B70083125808AD
:1027A0008316B6000A128312A9270A16031CDE2B11
:1027B000DB01DA014830D9008530D8005B08831688
:1027C000B50083125A088316B40083125908831681
:1027D000B300831258088316B200CD30B900CC3054
:1027E000B8004C30B7007B30B6000A128312A9271C
:1027F0000A16031C032CCD30DB00CC30DA004C3041
:10280000D9007B30D800831057088316B900831293
:1028100056088316B800831255088316B700831232
:1028200054088316B6003330BD009330BC00083026
:10283000BB008730BA000A12831209250A167708EE
:10284000E8007808E9007908EA007A08EB008316C6
:10285000BD0083126A088316BC00831269088316C0
:10286000BB00831268088316BA00C101C00148305A
:10287000BF008530BE000A128312C6260A167A08E7
:10288000D7007908D6007808D5007708D4000A1256
:102890008A158C2B0A168A117708E8007808E90057
:1028A0007908EA007A08EB00ED010408EC006D10ED
:1028B000831B6D1483106B088316B90083126A089A
:1028C0008316B800831269088316B700831268085C
:1028D0008316B6003330BD009330BC000830BB0017
:1028E0008730BA000A12831209250A166C08840080
:1028F00083136D1883177708E8007808E9007908D2
:10290000EA007A08EB008316BD0083126A0883167A
:10291000BC00831269088316BB0083126808831603
:10292000BA00C101C0014830BF008530BE000A12A4
:102930008312C6260A167A08E3007908E2007808AE
:10294000E1007708E0000A128A157C2C0A168A1129
:102950007708E8007808E9007908EA007A08EB00CF
:102960008316BD0083126A088316BC0083126908AF
:102970008316BB00831268088316BA00C101C00128
:102980002030BF008230BE000A128312C6260A160B
:102990007A08E7007908E6007808E5007708E4009F
:1029A0002130F700F70BD22C24300C1ED52C9900C7
:1029B0002130F700F70BDA2CC7014A30C60041304E
:1029C000F5000A12EA270A165730F5000A12EA271C
:1029D0000A165330F5000A12EA270A162B30840033
:1029E00083130A128A154F2E0A168A112030F50019
:1029F0000A12EA270A16D2014A30520784008313CA
:102A000080080319192D2130F700F70B052D4A30E6
:102A10005207840083130008E80068080C1E0E2D7E
:102A200099005208D20A4A3E840083130008D30654
:102A3000FC2CC7014A30C600103084004908E90068
:102A40004808E8000A128A15692E0A168A112030F1
:102A5000F5000A12EA270A16D2014A30520784000A
:102A60008313800803194A2D2130F700F70B362D08
:102A70004A305207840083130008E80068080C1EDF
:102A80003F2D99005208D20A4A3E84008313000861
:102A9000D3062D2DC7014A30C600043084005F08DC
:102AA000EB005E08EA005D08E9005C08E800EC0164
:102AB00000202030F5000A12EA270A16D2014A3017
:102AC000520784008313800803197C2D2130F700FE
:102AD000F70B682D4A305207840083130008E80082
:102AE00068080C1E712D99005208D20A4A3E8400D3
:102AF00083130008D3065F2DC7014A30C600043097
:102B000084005708EB005608EA005508E90054080D
:102B1000E800EC0100202030F5000A12EA270A162E
:102B2000D2014A3052078400831380080319AE2D66
:102B30002130F700F70B9A2D4A3052078400831397
:102B40000008E80068080C1EA32D99005208D20A5C
:102B50004A3E840083130008D306912DC7014A30F2
:102B6000C600023084005B08EB005A08EA005908EE
:102B7000E9005808E8000130EC0000202030F500A2
:102B80000A12EA270A16D2014A3052078400831338
:102B900080080319E12D2130F700F70BCD2D4A30C5
:102BA0005207840083130008E80068080C1ED62D25
:102BB00099005208D20A4A3E840083130008D306C3
:102BC000C42DC7014A30C600043084006308EB00FE
:102BD0006208EA006108E9006008E800EC010020F2
:102BE0002030F5000A12EA270A16D2014A305207AD
:102BF0008400831380080319132E2130F700F70B8C
:102C0000FF2D4A305207840083130008E80068084B
:102C10000C1E082E99005208D20A4A3E84008313E3
:102C20000008D306F62DC7014A30C60004308400E0
:102C30006708EB006608EA006508E9006408E80038
:102C40000130EC0000202030F5000A12EA270A16B5
:102C5000D2014A3052078400831380080319462E9C
:102C60002130F700F70B322E4A30520784008313CD
:102C70000008E80068080C1E3B2E99005208D20A92
:102C80004A3E840083130008D306292EC7014A3028
:102C9000C600023084004508EB004408EA004308FF
:102CA000E9004208E8000130EC0000202030F50087
:102CB0000A12EA270A16D2014A3052078400831307
:102CC00080080319792E2130F700F70B652E4A3062
:102CD0005207840083130008E80068080C1E6E2E5B
:102CE00099005208D20A4A3E840083130008D30692
:102CF0005C2EC7014A30C6002A30F5000A12EA27C6
:102D00000A165308E8003730E9000A128A15142F12
:102D10000A168A110D30F5000A12EA270A160A303F
:102D2000F5000A12EA270A16D2014A305207840037
:102D3000831380080319AC2E2130F700F70B9E2E69
:102D40005208D20A4A3E840083130008E80068084B
:102D50000C1EA82E9900952E2130F700F70BAE2EF1
:0C2D60006400C80A0319C90A9E29630018
:102330000A160A128A1500280A168A1183160C1426
:10234000C03083128B04D3010430E800FA308316C6
:10235000A2000A128312E4220A16E80BA6290A1226
:102360008A151E2A0A168A117708E8007808E900FB
:102370007908EA007A08EB00ED010408EC006D1022
:10238000831B6D1483106B088316B90083126A08CF
:102390008316B800831269088316B7008312680891
:1023A0008316B600BD016630BC005530BB008D30D1
:1023B000BA000A12831209250A166C0884008313D6
:1023C0006D1883177A08DF007908DE007808DD00D1
:1023D0007708DC00E901E801DB01DA01D901D80165
:1023E0000A12B7240A1603308316A0000A128312B9
:1023F0003D270A167C1078187C147C180F2A0A12C4
:1024000082270A160A128A1521230A168A117908C8
:10241000FE007808FD007D08F8007E08F9007908C4
:10242000E9007808E8000A12B7240A160530831676
:10243000A0000A1283123D270A167C1078187C141B
:102440007C18322A0A1282270A160A128A152123B8
:102450000A168A117908FE007808FD007D08F80048
:102460007E08F9007908EB007808EA006908FD00A9
:102470006808FC006B088316A10083126A088316A3
:10248000A0008312A7018B1BA7178B137D080317CE
:1024900091007C0890000A1203134B210A16A71B17
:1024A0008B1777088316A6007808A7007908A8007C
:1024B0007A08A900BD002808BC002708BB00260830
:1024C000BA000A30C100D730C0002330BF007830D6
:1024D000BE000A128312C6260A1677088316A600C3
:1024E0007808A7007908A8007A08A90083142908A9
:1024F000B9002808B8002708B7002608B600BD01B3
:10250000BC012030BB008430BA000A1283120925B6
:102510000A167A08D7007908D6007808D500770817
:10252000D400A7018B1BA7178B13831621088312D6
:1025300003179100831603132008831203179000DA
:102540000A1203134B210A16A71B8B177A0883164E
:10255000A5007908A4007808A3007708A200250840
:10256000BD002408BC002308BB002208BA00BD300F
:10257000C1005230C0001630BF007A30BE000A12CF
:102580008312C6260A168310C5308316B900FE30A2
:10259000B8008230B7008030B6007A08BD007908F4
:1025A000BC007808BB007708BA000A12831209251C
:1025B0000A1677088316A6007808A7007908A800ED
:1025C0007A08A9002508BD002408BC002308BB0028
:1025D0002208BA002508C1002408C0002308BF0053
:1025E0002208BE000A128312C6260A16770883162E
:1025F000AA007808AB007908AC007A08AD00BD00ED
:102600002C08BC002B08BB002A08BA00F630C10019
:102610002430C000D630BF006B30BE000A128312D7
:10262000C6260A16831083162908B9002808B800A0
:102630002708B7002608B6007A08BD007908BC0054
:102640007808BB007708BA000A12831209250A1617
:102650007A08EF007908EE007808ED007708EC00C2
:10266000831457088316B900831256088316B800DE
:10267000831255088316B700831254088316B600D8
:10268000BD01BC014830BB008330BA000A1283127E
:1026900009250A1677088316A6007808A700790886
:1026A000A8007A08A900AC30BD00C530BC002730B6
:1026B000BB007130BA002508C1002408C0002308FF
:1026C000BF002208BE000A128312C6260A16831013
:1026D0000A308316B900D730B8002330B7007830FD
:1026E000B6007A08BD007908BC007808BB007708FE
:1026F000BA000A12831209250A1683162908BD009A
:102700002808BC002708BB002608BA007A08C100C8
:102710007908C0007808BF007708BE000A1283124B
:10272000C6260A1677088316A6007808A700790837
:10273000A8007A08A90083102908B9002808B80061
:102740002708B7002608B60083126F088316BD005D
:1027500083126E088316BC0083126D088316BB00BB
:1027600083126C088316BA000A12831209250A160E
:102770007A08DB007908DA007808D9007708D800F1
:102780008316B501B4014630B3008530B200831220
:102790005B088316B90083125A088316B8008312A7
:1027A00059088316B700831258088316B6000A1218
:1027B0008312A9270A16031CE32BDB01DA01483038
:1027C000D9008530D8005B088316B50083125A08FB
:1027D0008316B400831259088316B3008312580875
:1027E0008316B200CD30B900CC30B8004C30B70001
:1027F0007B30B6000A128312A9270A16031C082C84
:10280000CD30DB00CC30DA004C30D9007B30D80042
:10281000831057088316B900831256088316B80030
:10282000831255088316B700831254088316B60026
:102830003330BD009330BC000830BB008730BA0095
:102840000A12831209250A167708E8007808E900B9
:102850007908EA007A08EB008316BD0083126A0843
:102860008316BC00831269088316BB0083126808B4
:102870008316BA00C101C0014830BF008530BE00D8
:102880000A128312C6260A167A08D7007908D600DB
:102890007808D5007708D4000A128A158C2B0A16FE
:1028A0008A117708E8007808E9007908EA007A08D0
:1028B000EB00ED010408EC006D10831B6D14831018
:1028C0006B088316B90083126A088316B800831256
:1028D00069088316B700831268088316B600333080
:1028E000BD009330BC000830BB008730BA000A122C
:1028F000831209250A166C08840083136D18831748
:102900007708E8007808E9007908EA007A08EB001F
:102910008316BD0083126A088316BC0083126908FF
:102920008316BB00831268088316BA00C101C00178
:102930004830BF008530BE000A128312C6260A1630
:102940007A08E3007908E2007808E1007708E000FF
:102950000A128A157C2C0A168A117708E800780872
:10296000E9007908EA007A08EB008316BD008312BB
:102970006A088316BC00831269088316BB008312A1
:1029800068088316BA00C101C0012030BF00823040
:10299000BE000A128312C6260A167A08E7007908D2
:1029A000E6007808E5007708E4002130F700F70B2F
:1029B000D72C24300C1EDA2C99002130F700F70BAD
:1029C000DF2CC7014A30C6004130F5000A12EA2761
:1029D0000A165730F5000A12EA270A165330F50096
:1029E0000A12EA270A162B30840083130A128A156A
:1029F0004F2E0A168A112030F5000A12EA270A160D
:102A0000D2014A30520784008313800803191E2D17
:102A10002130F700F70B0A2D4A3052078400831348
:102A20000008E80068080C1E132D99005208D20A0D
:102A30004A3E840083130008D306012DC7014A30A3
:102A4000C600103084004908E9004808E8000A126E
:102A50008A15692E0A168A112030F5000A12EA2713
:102A60000A16D2014A3052078400831380080319E2
:102A70004F2D2130F700F70B3B2D4A3052078400D1
:102A800083130008E80068080C1E442D99005208C2
:102A9000D20A4A3E840083130008D306322DC701B0
:102AA0004A30C600043084005F08EB005E08EA008C
:102AB0005D08E9005C08E800EC0100202030F5002A
:102AC0000A12EA270A16D2014A30520784008313F9
:102AD00080080319812D2130F700F70B6D2D4A3046
:102AE0005207840083130008E80068080C1E762D46
:102AF00099005208D20A4A3E840083130008D30684
:102B0000642DC7014A30C600043084005708EB002A
:102B10005608EA005508E9005408E800EC010020D6
:102B20002030F5000A12EA270A16D2014A3052076D
:102B30008400831380080319B32D2130F700F70BAD
:102B40009F2D4A305207840083130008E80068086C
:102B50000C1EA82D99005208D20A4A3E8400831305
:102B60000008D306962DC7014A30C6000230840003
:102B70005B08EB005A08EA005908E9005808E80029
:102B80000130EC0000202030F5000A12EA270A1676
:102B9000D2014A3052078400831380080319E62DBE
:102BA0002130F700F70BD22D4A30520784008313EF
:102BB0000008E80068080C1EDB2D99005208D20AB4
:102BC0004A3E840083130008D306C92DC7014A304A
:102BD000C600043084006308EB006208EA00610864
:102BE000E9006008E800EC0100202030F5000A123E
:102BF000EA270A16D2014A3052078400831380085C
:102C00000319182E2130F700F70B042E4A30520713
:102C1000840083130008E80068080C1E0D2E99003C
:102C20005208D20A4A3E840083130008D306FB2DC3
:102C3000C7014A30C600043084006708EB0066080C
:102C4000EA006508E9006408E8000130EC000020B3
:102C50002030F5000A12EA270A16D2014A3052073C
:102C600084008313800803194B2E2130F700F70BE3
:102C7000372E4A305207840083130008E8006808A2
:102C80000C1E402E99005208D20A4A3E840083133B
:102C90000008D3062E2EC7014A30C6000230840039
:102CA0004508EB004408EA004308E9004208E80050
:102CB0000130EC0000202030F5000A12EA270A1645
:102CC000D2014A30520784008313800803197E2EF4
:102CD0002130F700F70B6A2E4A3052078400831325
:102CE0000008E80068080C1E732E99005208D20AEA
:102CF0004A3E840083130008D306612EC7014A3080
:102D0000C6002A30F5000A12EA270A165308E8001E
:102D10003730E9000A128A15142F0A168A110D306D
:102D2000F5000A12EA270A160A30F5000A12EA2705
:102D30000A16D2014A30520784008313800803190F
:102D4000B12E2130F700F70BA32E5208D20A4A3ECB
:102D5000840083130008E80068080C1EAD2E99005B
:102D60009A2E2130F700F70BB32E6400C80A03191E
:062D7000C90AA32963005B
:0639E0008A010028080026
:04400E00FD2CFF3F47
:00000001FF
;PIC16F887
;CRC=B090 CREATED="15-III-13 18:40"
;CRC=5AB0 CREATED="15-III-13 21:34"
/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=main.h
2=
3=C:\Program Files\PICC\devices\16F887.h
4=common\dbloader.h
5=C:\Program Files\PICC\drivers\string.h