/Designs/Measuring_instruments/AWS01A/SW/PIC16F887/main.c
72,11 → 72,11
setup_ccp1(CCP_OFF);
setup_comparator(NC_NC_NC_NC); // This device COMP currently not supported by the PICWizard
setup_oscillator(OSC_8MHZ);
// setup_wdt(WDT_1152MS|WDT_DIV_16);
/* setup_wdt(WDT_1152MS|WDT_DIV_16);
setup_spi(SPI_MASTER | SPI_MODE_0 | SPI_CLK_DIV_64);
output_high(CSN_SPI);
 
 
*/
delay_ms(100);
 
welcome();
/Designs/Measuring_instruments/AWS01A/SW/PIC16F887/main.hex
113,7 → 113,7
:10071000831203170F0883160313D40052088312A1
:100720000C1E902B990083165308831203178D001B
:10073000831603135408831203178F008D0A0319BD
:100740008F0A4B2B640003138A110A169328831611
:100740008F0A4B2B640003138A110A16772883162D
:100750000814881083128810AD2BAE2B83168810D6
:1007600083128814B32BB42B83160810831208103D
:10077000B92BBA2B83168810831288100330F70028
123,7 → 123,7
:1007B000D72BE8016808083C031CF02B831688102F
:1007C000831288140330F700F70BE42B831688108C
:1007D000831288100330F700F70BEC2BE80ADA2BB2
:1007E000A7231430E800D5218A110A1696288030F4
:1007E000A7231430E800D5218A110A167A28803010
:1007F000831CFD2B8316BF0683128316C401C5011B
:100800003B08C3003F08C3063A080319EB2CC2009B
:10081000F7003E080319F42CC2020319902C031CA4
229,7 → 229,7
:100E50009300790892007808910077089000970134
:100E6000960195019730940003136320A71B8B17FD
:100E70007A08BF007908BE007808BD007708BC007A
:100E80008A110A1699280830F202031C532F723077
:100E80008A110A167D280830F202031C532F723093
:100E9000840083130310800C00080319532F512F73
:100EA0000000800B502F0800AF132F088316870017
:100EB000831287130230F100F830F2004327F10B60
270,7 → 270,7
:1010E00096019501833094008A11031363208A15B9
:1010F000A71B8B177A08F0007908EF007808EE003C
:101100007708ED006D08F7006E08F8006F08F90029
:101110007008FA008A110A16A32880308316A200EC
:101110007008FA008A110A16872880308316A20008
:101120000330F700F70B9228A1012108073C031CAC
:10113000B32888108312881083162008220503190B
:10114000A3280814A7280810831208108316A828BB
310,7 → 310,7
:10136000F901FA018312080080080319CB29E90169
:101370000408E8006910831B69140008F5008A114D
:10138000F0278A1568088400831369188317840A74
:101390000319850AB4298A110A160F2BF0010408D3
:101390000319850AB4298A110A16F32AF0010408F0
:1013A000EF007010831B7014690EF038EB00EB0730
:1013B000E23EEC00323EEE0069080F39EC07EC0724
:1013C000EE07E93EED00ED07ED07680E0F39ED077A
323,7 → 323,7
:101430001B2A20301E2AEF156F123030F707E90102
:101440000408E8006910831B69147708F5008A1105
:10145000F0278A1568088400831369188317840AA3
:101460006F1F0B2A8A110A16402BF701F801F901A8
:101460006F1F0B2A8A110A16242BF701F801F901C4
:10147000FA018316A401A501A601A70123082204ED
:10148000210420040319742A2030A8000310FB0D46
:10149000FC0DFD0DFE0DA40DA50DA60DA70D230839
368,7 → 368,7
:10170000832B6908F7077708F5008A11F0278A15F7
:101710000F30E8050A3068020318902B3030922B06
:10172000E9136908E8076808F5008A11F0278A15A7
:061730008A110A16BE2C0E
:061730008A110A16A22C2A
:10200000840183131F308305713083168F000F08FE
:10201000031787110C3003139900A23098009030F9
:1020200083129800C101C001C501C401C301C201EE
382,153 → 382,149
:1020A0000F30831290000030F80092000030831649
:1020B000920083122F152F08831687008312970131
:1020C00083169B019C0101309D0083120317870139
:1020D000880189017130831603138F000F08831262
:1020E0009412AF122F088316870083122F162F0821
:1020F000831687008312AF112F08831687002230C2
:102100008312940040308316940083122F112F08FD
:1021100083168700831207156430E8000A12D52160
:102120000A160A128B2A0A160A12D02B0A160A124B
:102130003D2D0A16D3016430E8000A12D5210A1693
:102140000A128A1500280A168A117708E80078080A
:10215000E9007908EA007A08EB00ED010408EC00D8
:102160006D10831B6D1483106B088316BD008312E2
:102170006A088316BC00831269088316BB008312A9
:1021800068088316BA003330C1009330C0000830AD
:10219000BF008730BE000A128312F7230A166C08AC
:1021A000840083136D1883177A08DF007908DE0036
:1021B0007808DD007708DC00E901E801DB01DA01DD
:1021C000D901D8010A12A7230A1603308316A000EA
:1021D0000A128A1583128D200A168A117C1078182B
:1021E0007C147C1803290A12C9270A160A128A15B8
:1021F000D2200A168A117908FE007808FD007D08B1
:10220000F8007E08F9007908E9007808E8000A1269
:10221000A7230A1605308316A0000A128A15831216
:102220008D200A168A117C1078187C147C182829B5
:102230000A12C9270A160A128A15D2200A168A110A
:102240007908FE007808FD007D08F8007E08F90096
:102250007908EB007808EA006908FD006808FC00CE
:102260006B088316A10083126A088316A0008312EC
:10227000A7018B1BA7178B137D08031792007C08FF
:1022800091000A12031344200A16A71B8B17770824
:102290008316AA007808AB007908AC007A08AD0074
:1022A000C1002C08C0002B08BF002A08BE000A305D
:1022B000C500D730C4002330C3007830C2000A12F2
:1022C0008A1583123D210A168A1177088316AA00FF
:1022D0007808AB007908AC007A08AD0083142D08AB
:1022E000BD002C08BC002B08BB002A08BA00C101A5
:1022F000C0012030BF008430BE000A128312F723D1
:102300000A167A08D7007908D6007808D500770829
:10231000D400A7018B1BA7178B13831621088312E8
:1023200003179200831603132008831203179100EA
:102330000A12031344200A16A71B8B177A08831668
:10234000A9007908A8007808A7007708A60029083E
:10235000C1002808C0002708BF002608BE0054306E
:10236000C500E330C4002530C3007A30C2000A1231
:102370008A1583123D210A168A1177088316AA004E
:102380007808AB007908AC007A08AD002908C100D4
:102390002808C0002708BF002608BE002908C5007D
:1023A0002808C4002708C3002608C2000A128A159C
:1023B00083123D210A168A1177088316AE00780829
:1023C000AF007908B0007A08B100C1003008C00041
:1023D0002F08BF002E08BE00A230C500E730C400A1
:1023E0003B30C3006C30C2000A128A1583123D21B3
:1023F0000A168A11831483162D08BD002C08BC0010
:102400002B08BB002A08BA007A08C1007908C0006E
:102410007808BF007708BE000A128312F7230A1655
:1024200077088316AA007808AB007908AC007A0810
:10243000AD0083142D08BD002C08BC002B08BB0088
:102440002A08BA00C101C001BF018130BE000A12D2
:102450008312F7230A167A08EF007908EE0078084D
:10246000ED007708EC00831457088316BD00831233
:1024700056088316BC00831255088316BB008312CE
:1024800054088316BA00C101C0014830BF00833030
:10249000BE000A128312F7230A1677088316AA00D1
:1024A0007808AB007908AC007A08AD00AC30C10008
:1024B000C530C0002730BF007130BE002908C500FC
:1024C0002808C4002708C3002608C2000A128A157B
:1024D00083123D210A168A1183100A308316BD002B
:1024E000D730BC002330BB007830BA007A08C10076
:1024F0007908C0007808BF007708BE000A1283126E
:10250000F7230A1683162D08C1002C08C0002B08DB
:10251000BF002A08BE007A08C5007908C400780800
:10252000C3007708C2000A128A1583123D210A16D9
:102530008A1177088316AA007808AB007908AC00E6
:102540007A08AD0083102D08BD002C08BC002B08B4
:10255000BB002A08BA0083126F088316C1008312D9
:102560006E088316C00083126D088316BF008312A5
:102570006C088316BE000A128312F7230A167A0823
:10258000DB007908DA007808D9007708D8008310D2
:1025900057088316BD00831256088316BC008312A9
:1025A00055088316BB00831254088316BA003330D3
:1025B000C1009330C0000830BF008730BE000A124F
:1025C0008312F7230A167A08D7007908D60078080C
:1025D000D5007708D4002130F700F70BED2A24301E
:1025E0000C1EF02A99002130F700F70BF52AC701DD
:1025F0004A30C6004130F5000A12F0270A1657305B
:10260000F5000A12F0270A165330F5000A12F027D7
:102610000A162B30840083130A128A15B4290A166D
:102620008A112030F5000A12F0270A16D2014A302A
:1026300052078400831380080319342B2130F700DC
:10264000F70B202B4A305207840083130008E80060
:1026500068080C1E292B99005208D20A4A3E8400B1
:1026600083130008D306172BC7014A30C600103069
:1026700084004908E9004808E8000A128A15CE29B2
:102680000A168A112030F5000A12F0270A16D20124
:102690004A3052078400831380080319652B2130C8
:1026A000F700F70B512B4A305207840083130008C0
:1026B000E80068080C1E5A2B99005208D20A4A3EBC
:1026C000840083130008D306482BC7014A30C60094
:1026D000893084005F08EB005E08EA005D08E900CD
:1026E0005C08E8000230EC000A128A1579220A160A
:1026F0008A112030F5000A12F0270A16D2014A305A
:10270000520784008313800803199C2B2130F700A3
:10271000F70B882B4A305207840083130008E80027
:1027200068080C1E912B99005208D20A4A3E840078
:1027300083130008D3067F2BC7014A30C6008930B7
:1027400084005708EB005608EA005508E9005408D1
:10275000E8000230EC000A128A1579220A168A1162
:102760002030F5000A12F0270A16D2014A3052072B
:102770008400831380080319D32B2130F700F70B53
:10278000BF2B4A305207840083130008E800680812
:102790000C1EC82B99005208D20A4A3E84008313AB
:1027A0000008D306B62BC7014A30C60002308400A9
:1027B0005B08EB005A08EA005908E9005808E800ED
:1027C0000130EC000A128A1579220A168A1120308B
:1027D000F5000A12F0270A16D2014A305207840087
:1027E0008313800803190A2C2130F700F70BF62B0E
:1027F0004A305207840083130008E80068080C1E62
:10280000FF2B99005208D20A4A3E84008313000825
:10281000D306ED2BC7014A30C60089308400630817
:10282000EB006208EA006108E9006008E800023095
:10283000EC000A128A1579220A168A112030F50056
:102840000A12F0270A16D2014A3052078400831375
:1028500080080319412C2130F700F70B2D2C4A304A
:102860005207840083130008E80068080C1E362C09
:1028700099005208D20A4A3E840083130008D30606
:10288000242CC7014A30C600043084006708EB00DE
:102890006608EA006508E9006408E8000130EC0019
:1028A0000A128A1579220A168A112030F5000A12B6
:1028B000F0270A16D2014A30520784008313800899
:1028C0000319782C2130F700F70B642C4A3052079B
:1028D000840083130008E80068080C1E6D2C990022
:1028E0005208D20A4A3E840083130008D3065B2CA8
:1028F000C7014A30C600023084004508EB00440896
:10290000EA004308E9004208E8000130EC000A123E
:102910008A1579220A168A112030F5000A12F0274A
:102920000A16D2014A305207840083138008031923
:10293000AF2C2130F700F70B9B2C4A305207840054
:1029400083130008E80068080C1EA42C99005208A4
:10295000D20A4A3E840083130008D306922CC70192
:102960004A30C6002A30F5000A12F0270A1653082A
:10297000E8003730E9000A128A15742B0A168A110A
:102980000D30F5000A12F0270A160A30F5000A1277
:10299000F0270A16D2014A305207840083138008B8
:1029A0000319E22C2130F700F70BD42C5208D20A7D
:1029B0004A3E840083130008E80068080C1EDE2CE1
:1029C0009900CB2C2130F700F70BE42C6400C80AE7
:0829D0000319C90A9A286300EB
:1020D000880189017130831603138F000F08643063
:1020E0008312E8000A12D5210A160A128B2A0A1650
:1020F0000A12D02B0A160A123D2D0A16D30164309B
:10210000E8000A12D5210A160A128A1500280A16B2
:102110008A117708E8007808E9007908EA007A0867
:10212000EB00ED010408EC006D10831B6D148310AF
:102130006B088316BD0083126A088316BC008312E5
:1021400069088316BB00831268088316BA0033300F
:10215000C1009330C0000830BF008730BE000A12B3
:102160008312F7230A166C08840083136D188317F3
:102170007A08DF007908DE007808DD007708DC00E7
:10218000E901E801DB01DA01D901D8010A12A7232C
:102190000A1603308316A0000A128A1583128D20B6
:1021A0000A168A117C1078187C147C18E7280A1209
:1021B000C9270A160A128A15D2200A168A11790826
:1021C000FE007808FD007D08F8007E08F900790817
:1021D000E9007808E8000A12A7230A1605308316DA
:1021E000A0000A128A1583128D200A168A117C100B
:1021F00078187C147C180C290A12C9270A160A12AE
:102200008A15D2200A168A117908FE007808FD0086
:102210007D08F8007E08F9007908EB007808EA00EC
:102220006908FD006808FC006B088316A100831292
:102230006A088316A0008312A7018B1BA7178B13B4
:102240007D08031792007C0891000A1203134420B2
:102250000A16A71B8B1777088316AA007808AB000D
:102260007908AC007A08AD00C1002C08C0002B082A
:10227000BF002A08BE000A30C500D730C400233092
:10228000C3007830C2000A128A1583123D210A1653
:102290008A1177088316AA007808AB007908AC0089
:1022A0007A08AD0083142D08BD002C08BC002B0853
:1022B000BB002A08BA00C101C0012030BF00843031
:1022C000BE000A128312F7230A167A08D70079088B
:1022D000D6007808D5007708D400A7018B1BA71774
:1022E0008B1383162108831203179200831603139E
:1022F00020088312031791000A12031344200A16C0
:10230000A71B8B177A088316A9007908A8007808FC
:10231000A7007708A6002908C1002808C0002708E0
:10232000BF002608BE005430C500E330C40025308D
:10233000C3007A30C2000A128A1583123D210A16A0
:102340008A1177088316AA007808AB007908AC00D8
:102350007A08AD002908C1002808C0002708BF007E
:102360002608BE002908C5002808C4002708C300A5
:102370002608C2000A128A1583123D210A168A1104
:1023800077088316AE007808AF007908B0007A08A5
:10239000B100C1003008C0002F08BF002E08BE00E9
:1023A000A230C500E730C4003B30C3006C30C2002F
:1023B0000A128A1583123D210A168A118314831684
:1023C0002D08BD002C08BC002B08BB002A08BA0051
:1023D0007A08C1007908C0007808BF007708BE00FD
:1023E0000A128312F7230A1677088316AA007808C0
:1023F000AB007908AC007A08AD0083142D08BD004D
:102400002C08BC002B08BB002A08BA00C101C0017F
:10241000BF018130BE000A128312F7230A167A0820
:10242000EF007908EE007808ED007708EC008314DF
:1024300057088316BD00831256088316BC0083120A
:1024400055088316BB00831254088316BA00C101D5
:10245000C0014830BF008330BE000A128312F72348
:102460000A1677088316AA007808AB007908AC0032
:102470007A08AD00AC30C100C530C0002730BF00C5
:102480007130BE002908C5002808C4002708C30011
:102490002608C2000A128A1583123D210A168A11E3
:1024A00083100A308316BD00D730BC002330BB0038
:1024B0007830BA007A08C1007908C0007808BF00F7
:1024C0007708BE000A128312F7230A1683162D0816
:1024D000C1002C08C0002B08BF002A08BE007A08E3
:1024E000C5007908C4007808C3007708C2000A1242
:1024F0008A1583123D210A168A1177088316AA00CD
:102500007808AB007908AC007A08AD0083102D087C
:10251000BD002C08BC002B08BB002A08BA0083129F
:102520006F088316C10083126E088316C0008312E1
:102530006D088316BF0083126C088316BE000A1252
:102540008312F7230A167A08DB007908DA00780884
:10255000D9007708D800831057088316BD0083126E
:1025600056088316BC00831255088316BB008312DD
:1025700054088316BA003330C1009330C0000830CD
:10258000BF008730BE000A128312F7230A167A08AA
:10259000D7007908D6007808D5007708D400213014
:1025A000F700F70BD12A24300C1ED42A99002130D1
:1025B000F700F70BD92AC7014A30C6004130F500B1
:1025C0000A12F0270A165730F5000A12F0270A16E9
:1025D0005330F5000A12F0270A162B3084008313BB
:1025E0000A128A15B4290A168A112030F5000A1237
:1025F000F0270A16D2014A3052078400831380085C
:102600000319182B2130F700F70B042B4A3052071F
:10261000840083130008E80068080C1E0D2B990045
:102620005208D20A4A3E840083130008D306FB2ACC
:10263000C7014A30C600103084004908E900480844
:10264000E8000A128A15CE290A168A112030F500F0
:102650000A12F0270A16D2014A3052078400831367
:1026600080080319492B2130F700F70B352B4A302E
:102670005207840083130008E80068080C1E3E2BF4
:1026800099005208D20A4A3E840083130008D306F8
:102690002C2BC7014A30C600893084005F08EB004C
:1026A0005E08EA005D08E9005C08E8000230EC0022
:1026B0000A128A1579220A168A112030F5000A12A8
:1026C000F0270A16D2014A3052078400831380088B
:1026D0000319802B2130F700F70B6C2B4A3052077F
:1026E000840083130008E80068080C1E752B99000D
:1026F0005208D20A4A3E840083130008D306632B93
:10270000C7014A30C600893084005708EB005608DC
:10271000EA005508E9005408E8000230EC000A120B
:102720008A1579220A168A112030F5000A12F0273C
:102730000A16D2014A305207840083138008031915
:10274000B72B2130F700F70BA32B4A305207840038
:1027500083130008E80068080C1EAC2B990052088F
:10276000D20A4A3E840083130008D3069A2BC7017D
:102770004A30C600023084005B08EB005A08EA00C9
:102780005908E9005808E8000130EC000A128A15DF
:1027900079220A168A112030F5000A12F0270A164B
:1027A000D2014A3052078400831380080319EE2BAC
:1027B0002130F700F70BDA2B4A30520784008313DD
:1027C0000008E80068080C1EE32B99005208D20AA2
:1027D0004A3E840083130008D306D12BC7014A3038
:1027E000C600893084006308EB006208EA006108D3
:1027F000E9006008E8000230EC000A128A1579222C
:102800000A168A112030F5000A12F0270A16D201A2
:102810004A3052078400831380080319252C213085
:10282000F700F70B112C4A3052078400831300087D
:10283000E80068080C1E1A2C99005208D20A4A3E79
:10284000840083130008D306082CC7014A30C60051
:10285000043084006708EB006608EA006508E900B8
:102860006408E8000130EC000A128A1579220A1681
:102870008A112030F5000A12F0270A16D2014A30D8
:10288000520784008313800803195C2C2130F70061
:10289000F70B482C4A305207840083130008E800E5
:1028A00068080C1E512C99005208D20A4A3E840036
:1028B00083130008D3063F2CC7014A30C6000230FC
:1028C00084004508EB004408EA004308E900420898
:1028D000E8000130EC000A128A1579220A168A11E2
:1028E0002030F5000A12F0270A16D2014A305207AA
:1028F0008400831380080319932C2130F700F70B11
:102900007F2C4A305207840083130008E8006808CF
:102910000C1E882C99005208D20A4A3E8400831368
:102920000008D306762CC7014A30C6002A30F500CD
:102930000A12F0270A165308E8003730E9000A1295
:102940008A15742B0A168A110D30F5000A12F02729
:102950000A160A30F5000A12F0270A16D2014A3088
:1029600052078400831380080319C62C2130F70016
:10297000F70BB82C5208D20A4A3E84008313000891
:10298000E80068080C1EC22C9900AF2C2130F7001B
:10299000F70BC82C6400C80A0319C90A7E28630013
:0639E0008A010028080026
:04400E00FD2CFF3F47
:00000001FF
;PIC16F887
;CRC=599E CREATED="10-III-13 15:56"
;CRC=98D0 CREATED="10-III-13 15:54"