/Designs/Measuring_instruments/AWS01A/SW/PIC16F887/bootloader887/bloader.PJT
46,9 → 46,9
Count=1
1=bloader.c
[Opened Files]
1=..\bltest\bltest.c
2=
3=..\..\..\..\..\..\Program Files (x86)\PICC\drivers\string.h
1=bloader.c
2=..\bltest\bltest.c
3=
4=..\..\..\..\..\..\Program Files (x86)\PICC\drivers\stddef.h
5=..\..\..\..\..\..\Program Files (x86)\PICC\drivers\ctype.h
6=..\..\..\..\..\..\Program Files (x86)\PICC\Devices\16F887.h
/Designs/Measuring_instruments/AWS01A/SW/PIC16F887/bootloader887/bloader.c
1,9 → 1,9
/**** BootLoader for PIC16F887
 
After Reset PIC run this script with number of ttyUSBn:
echo uf > /dev/ttyUSB$1
sleep 5
Ussage:
ascii-xfr -s -v -l 100 ./bltest.hex > /dev/ttyUSB$1
 
Add "uf\n\r" to the first line of .HEX .
*/
 
#define ID "$Id$"
151,9 → 151,10
} data;
 
disable_interrupts(GLOBAL);
/*
putchar('@'); //Start Erase
 
//Erase program. Do not erase "jump to main" and BootLoader.
//Erase program memory is not necessary.
{
int8 i;
for(i=0;i<32;i++)buffer[i]=0xFF;
164,7 → 165,7
putchar('.');
restart_wdt();
}
 
*/
putchar('!'); //Erase completed
 
//---WDT
/Designs/Measuring_instruments/AWS01A/SW/PIC16F887/bootloader887/bloader.hex
1,4 → 1,4
:0C0000001F308A00542F00001028080058
:0C0000001F308A001C2F00001028080090
:10002000FF00030E8301A1000A08A0008A01040852
:10003000A2007708A3007808A4007908A5007A0830
:10004000A600831383128C308400801E29288C1A0A
6,7 → 6,7
:10006000F9002608FA0020088A00210E8300FF0EFE
:100070007F0E09008A110A123D288C1E3D2818089F
:10008000A7001A08F800A71C4728181218167808A5
:100090008316BA0083120C1E4B2899008C128A1109
:100090008316B90083120C1E4B2899008C128A110A
:1000A0000A1229280D050D0523104226EF30E432EF
:1000B0007210381C3710A82129103218B119A02548
:1000C000C125CC060A002310D232F332723B6532CE
57,149 → 57,142
:100390006C30B2006F30B3006130B4006430B5002F
:1003A0006530B6007230B7002E30B8006330B90047
:1003B0002030BA003230BB003830BC003030BD00D5
:1003C0003430BE002030BF003230C0003030C100B9
:1003C0003930BE002030BF003230C0003030C100B4
:1003D0003130C2003330C3002D30C4003030C5008E
:1003E0003330C6002D30C7003030C8003930C90066
:1003F0002030CA003230CB00CC003A30CD0035304E
:10040000CE00CF003A30D0003530D1003130D200AC
:100410005A30D3002030D4006B30D5006130D60084
:100420006B30D7006C30D8002030D9002430DA008F
:10043000DB01DF012C30DE009420013078022C3EFD
:10044000840083130008243C031D302ADF012C3074
:10045000DE009420013078022C3E8400831380015A
:10046000523003178D0000308F000313B220233069
:100470000C1E382A99003030840083138008031939
:10048000542ADF010408DE005F10831B5F1400089C
:100490000C1E482A99005E08840083135F18831796
:1004A000840A0319850A3E2A0D300C1E552A99002C
:1004B0000A300C1E592A9900633003178D00003052
:1004C0008F0003100C300313AC00FA2010308400AE
:1004D0000330AD005030AC004B210D300C1E6E2AA5
:1004E00099000A300C1E722A99006C3003178D0097
:1004F00000308F00031014300313AC00FA201030CA
:100500008400AD012030AC004B210D300C1E862A3A
:1005100099000A300C1E8A2A9900793003178D0041
:1005200000308F00031014300313AC00FA20103099
:100530008400AD01AC004B210D300C1E9D2A9900AA
:100540000A300C1EA12A9900863003178D00003056
:100550008F000313B22083168C16C03083128B04D5
:100560002B08AB0AAC002C08AD001B30AE002D08E8
:10057000AF006430B000A4217708AD0078083030B7
:10058000031DC92AAE1CD12AAE19D12A2E1A203039
:10059000CC2AAE112E122E14F80778080C1ECE2A83
:1005A00099002D08AF000A30B000A4217708AD00F3
:1005B00078083030031DE22AAE19E72A2E1CE72AFC
:1005C0002E1A2030F80778080C1EE42A99003030E3
:1005D000AD072D080C1EEA2A99007C300C1EEE2A6D
:1005E00099006430AC002C30840083130008031998
:1005F000062B0230F800F701F70BFC2AF80BFB2A58
:100600009730F700F70B022B800BF92AB02A8A15D6
:040610000A16B32CE7
:1003E0003330C6002D30C7003130C8003030C9006E
:1003F0002030CA003030CB003630CC003A30CD004F
:100400003330CE003130CF003A30D0003030D10020
:10041000D2005A30D3002030D4006B30D500613088
:10042000D6006B30D7006C30D8002030D900243093
:10043000DA00DB01DF012C30DE009420013078028D
:100440002C3E840083130008243C031D312ADF0165
:100450002C30DE009420013078022C3E840083137F
:100460008001523003178D0000308F000313B2203B
:1004700023300C1E392A9900303084008313800801
:100480000319552ADF010408DE005F10831B5F1487
:1004900000080C1E492A99005E08840083135F1827
:1004A0008317840A0319850A3F2A0D300C1E562A29
:1004B00099000A300C1E5A2A9900633003178D00E8
:1004C00000308F0003100C300313AC00FA20103002
:1004D00084000330AD005030AC004B210D300C1EB9
:1004E0006F2A99000A300C1E732A99006C3003178A
:1004F0008D0000308F00031014300313AC00FA207D
:1005000010308400AD012030AC004B210D300C1EAA
:10051000872A99000A300C1E8B2A9900793003171C
:100520008D0000308F00031014300313AC00FA204C
:1005300010308400AD01AC004B210D300C1E9E2A02
:1005400099000A300C1EA22A9900863003178D00EC
:1005500000308F000313B22083168C16C030831234
:100560008B042B08AB0AAC002C08AD001B30AE008E
:100570002D08AF006430B000A4217708AD007808E2
:100580003030031DCA2AAE1CD22AAE19D22A2E1A26
:100590002030CD2AAE112E122E14F80778080C1E2A
:1005A000CF2A99002D08AF000A30B000A4217708A7
:1005B000AD0078083030031DE32AAE19E82A2E1C5E
:1005C000E82A2E1A2030F80778080C1EE52A990030
:1005D0003030AD072D080C1EEB2A99007C300C1E24
:1005E000EF2A99006430AC002C308400831300089B
:1005F0000319072B0230F800F701F70BFD2AF80B5F
:10060000FC2A9730F700F70B032B800BFA2AB12A4C
:060610008A150A16B32C46
:0C3960000A128A11B9290A168A150800FB
:103980008C1EC02C1808A7001A08F800A71CCA2C07
:103990001812181608000B08F8008B13831603176B
:1039A00055308D00AA308D008C14000000008C185A
:1039B000D72C0C117808831203138B04080083168C
:1039C00003178C1783120D0803390319FC2CF90017
:1039D0000D08FC398D0083160C1483128D00000035
:1039E000000083160C1583120313CB2403178D0AD2
:1039F00003198F0AF90BEF2C831603133108F90012
:103A00000310F90C0F30831203170D05031D122D3F
:103A100083160C160C1583120313CB24831603177D
:103A20000C12831200088C00840A00088E00840A9D
:103A300083160C1583120313CB2403178D0A031965
:103A40008F0AF90B242D272D83160313022D0D0841
:103A5000073903193B2D043CF900FF308C008E0020
:103A600083160C1583120313CB2403178D0A031935
:103A70008F0AF90B2D2D031308008316B2080319C2
:103A8000512D453083120C1E432D99003030831682
:103A90003307B40083120C1E4B2D99008A010028B5
:103AA0008316831208008316B701B8013808013C59
:103AB000031C872D3608FA003508840083137A1812
:103AC00083170008403C0318742D370EB900F030FE
:103AD000B9053508840083133618831700083907A1
:103AE000BF3E0A3EB700812D370EB900F030B90550
:103AF0003508840083133618831700083907D03E31
:103B0000B7003808B80AB50A0319B60A562D37089F
:103B1000F80083120800E001DF010B138B138B1BED
:103B20008E2D40300C1E922D9900E90169081F3C32
:103B3000031CA22D2C30690784008313FF30800002
:103B4000E90A962DE2011030E10062081C3C031CDA
:103B5000C92D031DAF2D6108BF3C031CC92D620890
:103B600003178F000313610803178D002C308400A6
:103B70008313203083160313B1008312DF242E3009
:103B80000C1EC02D990064001030E1070318E20AF2
:103B9000A52D21300C1ECA2D99008C1AD12D640040
:103BA000CD2D0D300C1ED22D99000A300C1ED62DB5
:103BB0009900C02478083A3C0319E02D6400D92DFF
:103BC0003A300C1EE12D9900AB012C302B078400FC
:103BD0008313ED010408EC006D10831B6D14C024E9
:103BE0006C08840083136D188317780880002C30CC
:103BF0002B07840083130008EA006A080C1EFE2DC0
:103C000099002B08AB0A2C3E8400831300080D3C5E
:103C100003190E2E2B082D3C0318E52D2B082E3CE6
:103C20000319142E0030152E0130EA008316B2005D
:103C30000130B30083123D25AB036400DA01E801D3
:103C40002B0868020318382E2C306807EA00EB01B5
:103C50000318EB0A6B088316B60083126A088316F2
:103C6000B500831253257808DA070230E807202EC2
:103C7000DA08031D3D2E00303E2E0130EA00831687
:103C8000B2000230B30083123D258316B6012E30F8
:103C9000B500831253257808EA008316B601303048
:103CA000B500831253256A08DE007808DD0083160C
:103CB000B6013230B500831253257808DC00831634
:103CC000B6012C30B500831253257808DB005B0861
:103CD000103C031C6D2E00306E2E0130EA0083165E
:103CE000B2000330B30083123D255D08E1005E0899
:103CF000E2000310E20CE10C5C0B842E23300C1E5E
:103D00007F2E99008A010028DC08031D892E0030CF
:103D10008A2E0130EA008316B2000430B300831209
:103D20003D25E801E601E5016208E4006108E300E1
:103D30006808073C031CC82E0310680DA03E8400D1
:103D400083136608FA006508F9006408F800630840
:103D5000F7000130E3070318E40A0319E50A031921
:103D6000E60A7A08EF00770803178D000313780836
:103D700003178F0083168C170C14000000008312A9
:103D80000C088000840A0E0880000313E80A982EAD
:103D90000830E800E70102302B0268020318F42E15
:103DA0006708E70AA03EF800FA010318FA0A780843
:103DB000EA007A08EB002C306807EC00ED010318EC
:103DC000ED0A6D088316B60083126C088316B500E1
:103DD000831253256A08840083136B1883177808AD
:103DE00080000230E807CB2EE108031D132FE20804
:103DF000031D132F1C30E200B030E10062080317EE
:103E00008F000313610803178D00A0308400831313
:103E1000103083160313B1008312DF2425300C1EEB
:103E20000F2F99003D2FE208031D1A2F6108073C50
:103E30000318392F62081C3C031C392F031D242F43
:103E40006108A03C031C392F620803178F0003137D
:103E5000610803178D00A03084008313103083168F
:103E60000313B1008312DF2424300C1E352F990078
:103E70003D2F2E300C1E3A2F99000D300C1E3E2F78
:103E800099000A300C1E422F99006400D92D0800B9
:103E9000AC01AB012B0F4F2F2C0F4F2F532FAB0A21
:103EA0000319AC0A4A2F0800840183131F308305CD
:103EB000713083168F000F08031787110C3003131E
:103EC0009900A2309800903083129800831603174F
:103ED00087110C3003139900A230980090308312A0
:103EE0009800831603170908C039890003131F12AD
:103EF0009F1200300317880083128701880189010F
:103F00000313A701A801A9010B138B138B1B852F8A
:103F10000930031785000F30F7000313810181304A
:103F2000840083130008F03907388000640000081B
:103F3000F739F719F0397704800083160317090859
:103F4000C039890003131F129F1200300317880025
:103F5000831203131F1083160108C7390838810024
:103F6000831290010030F800920000308316920016
:103F700083120317870188018901831603139701B0
:103F800071308F000F088312AA012A0FC82FEC2F5F
:103F90008C1EDC2FC0247808753C031DDB2F2A30D3
:103FA0000C1ED02F9900C0247808663C031DDA2F20
:103FB00064008B25DC2FEC2F75300C1EDD2F990053
:103FC00066300C1EE12F99003F300C1EE52F990042
:103FD00048276400AA0AC52F64001C308A00B0304C
:043FE00082006300F8
:103990001812181608008316B1080319DF2C4530D9
:1039A00083120C1ED12C9900303083163207B300DD
:1039B00083120C1ED92C99008A01002883168312C9
:1039C00008008316B601B7013708013C031C152D0A
:1039D0003508FA003408840083137A188317000826
:1039E000403C0318022D360EB800F030B8053408FC
:1039F000840083133518831700083807BF3E0A3E3A
:103A0000B6000F2D360EB800F030B805340884002B
:103A100083133518831700083807D03EB6003708DF
:103A2000B70AB40A0319B50AE42C3608F800831261
:103A300008000B08F8008B138316031755308D0010
:103A4000AA308D008C14000000008C18252D0C115C
:103A50007808831203138B040800831603178C174E
:103A600083120D08033903194A2DF9000D08FC399A
:103A70008D0083160C1483128D0000000000831645
:103A80000C1583120313192503178D0A03198F0AC6
:103A9000F90B3D2D831603133008F9000310F90CC0
:103AA0000F30831203170D05031D602D83160C16AE
:103AB0000C15831203131925831603170C12831296
:103AC00000088C00840A00088E00840A83160C15F6
:103AD00083120313192503178D0A03198F0AF90B93
:103AE000722D752D83160313502D0D0807390319F8
:103AF000892D043CF900FF308C008E0083160C15D4
:103B000083120313192503178D0A03198F0AF90B62
:103B10007B2D03130800E001DF010B138B138B1BBC
:103B20008E2D21300C1E922D99008C1A992D640037
:103B3000952D0D300C1E9A2D99000A300C1E9E2DCD
:103B40009900C02478083A3C0319A82D6400A12DDF
:103B50003A300C1EA92D9900AB012C302B078400A4
:103B60008313EC010408EB006C10831B6C14C0245D
:103B70006B08840083136C188317780880002C303E
:103B80002B07840083130008E90069080C1EC62D6A
:103B900099002B08AB0A2C3E8400831300080D3CCF
:103BA0000319D62D2B082D3C0318AD2D2B082E3CC8
:103BB0000319DC2D0030DD2D0130E9008316B10042
:103BC0000130B2008312CB24AB036400DA01E801B8
:103BD0002B0868020318002E2C306807E900EA0160
:103BE0000318EA0A6A088316B50083126908831667
:103BF000B4008312E1247808DA070230E807E82DE0
:103C0000DA08031D052E0030062E0130E900831668
:103C1000B1000230B2008312CB248316B5012E30DE
:103C2000B4008312E1247808E9008316B50130302E
:103C3000B4008312E1246908DE007808DD008316F1
:103C4000B5013230B4008312E1247808DC00831619
:103C5000B5012C30B4008312E1247808DB005B0846
:103C6000103C031C352E0030362E0130E90083163F
:103C7000B1000330B2008312CB245D08E1005E087E
:103C8000E2000310E20CE10C5C0B4C2E23300C1E06
:103C9000472E99008A010028DC08031D512E0030B0
:103CA000522E0130E9008316B1000430B2008312B5
:103CB000CB24E801E601E5016208E4006108E300C5
:103CC0006808073C031C902E0310680DA03E84007A
:103CD00083136608FA006508F9006408F8006308B1
:103CE000F7000130E3070318E40A0319E50A031992
:103CF000E60A7A08EE00770803178D0003137808A8
:103D000003178F0083168C170C1400000000831219
:103D10000C088000840A0E0880000313E80A602E55
:103D20000830E800E70102302B0268020318BC2EBD
:103D30006708E70AA03EF800FA010318FA0A7808B3
:103D4000E9007A08EA002C306807EB00EC01031860
:103D5000EC0A6C088316B50083126B088316B40056
:103D60008312E1246908840083136A188317780892
:103D700080000230E807932EE108031DDB2EE208E5
:103D8000031DDB2E1C30E200B030E1006208031797
:103D90008F000313610803178D00A0308400831384
:103DA000103083160313B00083122D2525300C1E0E
:103DB000D72E9900052FE208031DE22E6108073C6B
:103DC0000318012F62081C3C031C012F031DEC2E5D
:103DD0006108A03C031C012F620803178F00031326
:103DE000610803178D00A030840083131030831600
:103DF0000313B00083122D2524300C1EFD2E9900D4
:103E0000052F2E300C1E022F99000D300C1E062F90
:103E100099000A300C1E0A2F99006400A12D080099
:103E2000AC01AB012B0F172F2C0F172F1B2FAB0A39
:103E30000319AC0A122F0800840183131F30830575
:103E4000713083168F000F08031787110C3003138E
:103E50009900A230980090308312980083160317BF
:103E600087110C3003139900A23098009030831210
:103E70009800831603170908C039890003131F121D
:103E80009F1200300317880083128701880189017F
:103E90000313A701A801A9010B138B138B1B4D2F33
:103EA0000930031785000F30F700031381018130BB
:103EB000840083130008F03907388000640000088C
:103EC000F739F719F03977048000831603170908CA
:103ED000C039890003131F129F1200300317880096
:103EE000831203131F1083160108C7390838810095
:103EF000831290010030F800920000308316920087
:103F00008312031787018801890183160313970120
:103F100071308F000F088312AA012A0F902FB42F3F
:103F20008C1EA42FC0247808753C031DA32F2A30B3
:103F30000C1E982F9900C0247808663C031DA22F00
:103F400064008B25A42FB42F75300C1EA52F99006B
:103F500066300C1EA92F99003F300C1EAD2F990022
:103F600010276400AA0A8D2F64001C308A00B0302C
:043F70008200630068
:04400E00FD2CFF3F47
:00000001FF
;PIC16F887
;CRC=BAF5 CREATED="10-3-13 00:20"
;CRC=F55D CREATED="10-3-13 07:56"