/Modules/TDC/GP201A/SW/PICinterface/main.hex
27,9 → 27,9
:1001A000EACF3FF0E9CF3EF000C047F070DF3FC03C
:1001B000EAFF3EC0E9FFEE5045ACDFD7000C939656
:1001C0008A96336A326A316A700E306E080E346E67
:1001D00019DF93968A86C7EF03F093968A96336A5F
:1001D00019DF93968A86C4EF03F093968A96336A62
:1001E000326A316A010E306E080E346E0BDF939660
:1001F0008A86CBEF03F0F86AD09EEA6AE96A939E9A
:1001F0008A86C8EF03F0F86AD09EEA6AE96A939E9D
:100200008A8E9382939093948A94046A010E056E69
:10021000066A076A086E09800992099409860988A6
:10022000099A098C099E0A900A92050E0B6E0C6EB3
43,160 → 43,160
:1002A000000ECA6E000ECB6E9484BD6AB76AB66A41
:1002B000070EB46E9250926E100E006E002EFED796
:1002C0000000B450A19CB56AC2DE95988C98959AAE
:1002D0008C9A959C8C9C320E316EC6DE640E316E0B
:1002E000C3DEB5DE640E316EBFDE93968A96246A55
:1002F000236A226A216A800E246E236A226A216A96
:10030000680E2112340E221224C033F023C032F0C2
:1003100022C031F021C030F0200E346E73DE93968F
:100320008A8693968A96246A236A226A216A810EB3
:10033000246E236A226A216A440E2212210E23129D
:1003400024C033F023C032F022C031F021C030F09D
:10035000200E346E57DE93968A8693968A96246A88
:10036000236A226A216A820E246E236A226A216A23
:10037000380E231224C033F023C032F022C031F0F3
:1003800021C030F0200E346E3DDE93968A8693961F
:100390008A96246A236A226A216A830E246E236A5B
:1003A000226A216A380E231224C033F023C032F0AF
:1003B00022C031F021C030F0200E346E23DE93963F
:1003C0008A8693968A96246A236A226A216A840E10
:1003D000246E236A226A216A238A24C033F023C050
:1003E00032F022C031F021C030F0200E346E0ADE2F
:1003F00093968A8693968A96246A236A226A216A49
:10040000850E246E236A226A216A24C033F023C039
:1004100032F022C031F021C030F0200E346EF2DD17
:1004200093968A8693968A962B6AB00E2B6E336AC1
:10043000326A316A2BC030F0080E346EE3DD336A65
:10044000326A316A306A200E346EDCDD015003C03E
:1004500028F002C027F001C026F000C025F09396D6
:100460008A862D0E476E13DE200E476E10DE28C0E2
:1004700030F0370E316E2BDE27C030F0370E316E84
:1004800026DE26C030F0370E316E21DE25C030F07A
:10049000370E316E1CDE200E476EF9DD93968A967C
:1004A0002B6AB10E2B6E336A326A316A2BC030F080
:1004B000080E346EA7DD336A326A316A306A200E64
:1004C000346EA0DD015003C028F002C027F001C047
:1004D00026F000C025F093968A8628C030F0370EAB
:1004E000316EF5DD27C030F0370E316EF0DD26C0FD
:1004F00030F0370E316EEBDD25C030F0370E316E47
:10050000E6DD200E476EC3DD93968A962B6AB20E07
:100510002B6E336A326A316A2BC030F0080E346EAB
:1005200071DD336A326A316A306A200E346E6ADDF8
:10053000015003C028F002C027F001C026F000C01F
:1005400025F093968A8628C030F0370E316EBFDDD5
:1005500027C030F0370E316EBADD26C030F0370ECE
:10056000316EB5DD25C030F0370E316EB0DD200EB6
:10057000476E8DDD93968A962B6AB30E2B6E336A87
:10058000326A316A2BC030F0080E346E3BDD336ABC
:10059000326A316A306A200E346E34DD015003C095
:1005A00028F002C027F001C026F000C025F0939685
:1005B0008A8628C030F0370E316E89DD27C030F0D2
:1005C000370E316E84DD26C030F0370E316E7FDDA0
:1005D00025C030F0370E316E7ADD200E476E57DDC4
:1005E00093968A962B6AB40E2B6E336A326A316AFE
:1005F0002BC030F0080E346E05DD336A326A316A82
:10060000306A100E346EFEDC015001C02AF000C0CA
:1006100029F093968A862A38026E036A0F0E021614
:100620000250010B306E316A036A2A30026E0232C8
:1006300002321F0E02160250010B326E336A036A39
:100640002A30026E02323F0E02160250010B346E47
:10065000356AD890036A2A30026E010B366E376A0B
:100660002A30036E2930026E033202320332023224
:10067000033202320332023203320232030E031615
:100680000250070B386E396A2A30036E2930026E29
:1006900003320232033202321F0E03160250070BDE
:1006A0003A6E3B6A2950070B3C6E3D6A5B0E476E03
:1006B000EEDC100EE96E31C03FF030C03EF026DDBA
:1006C000200E476EE4DC100EE96E33C03FF032C0FE
:1006D0003EF01CDD200E476EDADC100EE96E35C0F0
:1006E0003FF034C03EF012DD200E476ED0DC100E1D
:1006F000E96E37C03FF036C03EF008DD200E476E91
:10070000C6DC100EE96E39C03FF038C03EF0FEDCAA
:10071000200E476EBCDC100EE96E3BC03FF03AC0C5
:100720003EF0F4DC200E476EB2DC100EE96E3DC0E8
:100730003FF03CC03EF0EADC5D0E476EA8DC200EC8
:10074000476EA5DC93968A962B6AB50E2B6E336A9C
:10075000326A316A2BC030F0080E346E53DC336AD3
:10076000326A316A306A080E346E4CDC015000C0C7
:100770002BF093968A862BC030F0370E316EA7DCB3
:100780000D0E476E84DC0A0E476E81DC18D5320EE2
:10079000316E6ADC22D5C80E316E66DC959C8C8C7D
:1007A00095988C8895988C9800D000D00000959AE8
:1007B0008C8A959A8C9A00D000D00000959A8C8AE9
:1007C000959A8C9A00D000D00000959A8C8A959AC0
:1007D0008C9A00D000D000002F6A2E6A2D6A030E7A
:1007E0002C6E2F52D8A42ED22E52D8A42BD22D52FA
:1007F000D8A428D22C500508D8A024D2020E306EDE
:10080000FA0E316E31DC302EFBD793968A962B6A26
:10081000B00E2B6E336A326A316A2BC030F0080E8C
:10082000346E02EC00F0336A326A316A306A200EAC
:10083000346E02EC00F0015003C028F002C027F033
:1008400001C026F000C025F093968A862A0E476ED6
:100850001EDC200E476E1BDC28C030F0370E316ED8
:1008600036DC27C030F0370E316E31DC26C030F078
:10087000370E316E2CDC25C030F0370E316E27DCA0
:10088000200E476E04DC93968A962B6AB10E2B6E6F
:10089000336A326A316A2BC030F0080E346E02ECD3
:1008A00000F0336A326A316A306A200E346E02EC2C
:1008B00000F0015003C028F002C027F001C026F06C
:1008C00000C025F093968A8628C030F0370E316E2E
:1008D00067EC00F027C030F0370E316E67EC00F0A7
:1008E00026C030F0370E316E67EC00F025C030F0D6
:1008F000370E316E67EC00F0200E476E47EC00F0CB
:1009000093968A962B6AB20E2B6E336A326A316ADC
:100910002BC030F0080E346E02EC00F0336A326AFD
:10092000316A306A200E346E02EC00F0015003C0D0
:1009300028F002C027F001C026F000C025F09396F1
:100940008A8628C030F0370E316E67EC00F027C081
:1009500030F0370E316E67EC00F026C030F0370E05
:10096000316E67EC00F025C030F0370E316E67EC69
:1009700000F0200E476E47EC00F093968A962B6AA3
:10098000B30E2B6E336A326A316A2BC030F0080E18
:10099000346E02EC00F0336A326A316A306A200E3B
:1009A000346E02EC00F0015003C028F002C027F0C2
:1009B00001C026F000C025F093968A8628C030F04A
:1009C000370E316E67EC00F027C030F0370E316E15
:1009D00067EC00F026C030F0370E316E67EC00F0A7
:1009E00025C030F0370E316E67EC00F0200E476EF8
:1009F00047EC00F093968A962B6AB40E2B6E336AFE
:100A0000326A316A2BC030F0080E346E02EC00F00E
:100A1000336A326A316A306A100E346E02EC00F0CA
:100A2000015001C02AF000C029F093968A862A3826
:100A3000026E036A0F0E02160250010B306E316A0D
:100A4000036A2A30026E023202321F0E0216025070
:100A5000010B326E336A036A2A30026E02323F0E95
:100A600002160250010B346E356AD890036A2A30A0
:100A7000026E010B366E376A2A30036E2930026E21
:100A800003320232033202320332023203320232C2
:100A900003320232030E03160250070B386E396A16
:100AA0002A30036E2930026E0332023203320232E0
:100AB0001F0E03160250070B3A6E3B6A2950070BB4
:100AC0003C6E3D6A5B0E476E47EC00F0100EE96E1F
:100AD00031C03FF030C03EF086EC00F0200E476E93
:100AE00047EC00F0100EE96E33C03FF032C03EF02C
:100AF00086EC00F0200E476E47EC00F0100EE96E19
:100B000035C03FF034C03EF086EC00F0200E476E5A
:100B100047EC00F0100EE96E37C03FF036C03EF0F3
:100B200086EC00F0200E476E47EC00F0100EE96EE8
:100B300039C03FF038C03EF086EC00F0200E476E22
:100B400047EC00F0100EE96E3BC03FF03AC03EF0BB
:100B500086EC00F0200E476E47EC00F0100EE96EB8
:100B60003DC03FF03CC03EF086EC00F05D0E476EAD
:100B700047EC00F0200E476E47EC00F093968A9603
:100B80002B6AB50E2B6E336A326A316A2BC030F095
:100B9000080E346E02EC00F0336A326A316A306A51
:100BA000080E346E02EC00F0015000C02BF093965A
:100BB0008A862BC030F0370E316E67EC00F00D0ED8
:100BC000476E47EC00F00A0E476E47EC00F0939634
:100BD0008A96246A236A226A216A810E246E236A15
:100BE000226A216A316A326A2C34336E2D34346EB3
:100BF000333634363336343633363436F00E331635
:100C00003380328C328431502112325022123350D0
:100C100023123450241224C033F023C032F022C0F7
:100C200031F021C030F0200E346E02EC00F09396CB
:100C30008A86010E2C26D8B02D2AD8B42E2AD8B4F4
:0A0C40002F2ACFD56EEF01F003005C
:1002D0008C9A959C8C9C320E316EC6DEB8DE640E14
:1002E000316EC2DE93968A96246A236A226A216A54
:1002F000800E246E236A226A216A680E2112340E4F
:10030000221224C033F023C032F022C031F021C0C9
:1003100030F0200E346E76DE93968A8693968A9617
:10032000246A236A226A216A810E246E236A226A61
:10033000216A440E2212210E231224C033F023C05E
:1003400032F022C031F021C030F0200E346E5ADE7F
:1003500093968A8693968A96246A236A226A216AE9
:10036000820E246E236A226A216A380E231224C068
:1003700033F023C032F022C031F021C030F0200E23
:10038000346E40DE93968A8693968A96246A236A10
:10039000226A216A830E246E236A226A216A380E39
:1003A000231224C033F023C032F022C031F021C028
:1003B00030F0200E346E26DE93968A8693968A96C7
:1003C000246A236A226A216A840E246E236A226ABE
:1003D000216A238A24C033F023C032F022C031F0D6
:1003E00021C030F0200E346E0DDE93968A869396EF
:1003F0008A96246A236A226A216A850E246E236AF9
:10040000226A216A24C033F023C032F022C031F0C6
:1004100021C030F0200E346EF5DD93968A869396D7
:100420008A962B6AB00E2B6E336A326A316A2BC001
:1004300030F0080E346EE6DD336A326A316A306AB3
:10044000200E346EDFDD015003C028F002C027F01B
:1004500001C026F000C025F093968A862D0E476EC7
:1004600016DE200E476E13DE28C030F0370E316ED8
:100470002EDE27C030F0370E316E29DE26C030F078
:10048000370E316E24DE25C030F0370E316E1FDEA0
:10049000200E476EFCDD93968A962B6AB10E2B6E6A
:1004A000336A326A316A2BC030F0080E346EAADD2E
:1004B000336A326A316A306A200E346EA3DD01502D
:1004C00003C028F002C027F001C026F000C025F0CC
:1004D00093968A8628C030F0370E316EF8DD27C03B
:1004E00030F0370E316EF3DD26C030F0370E316E4E
:1004F000EEDD25C030F0370E316EE9DD200E476E9F
:10050000C6DD93968A962B6AB20E2B6E336A326AD8
:10051000316A2BC030F0080E346E74DD336A326AF3
:10052000316A306A200E346E6DDD015003C028F050
:1005300002C027F001C026F000C025F093968A86FD
:1005400028C030F0370E316EC2DD27C030F0370ED4
:10055000316EBDDD26C030F0370E316EB8DD25C0FE
:1005600030F0370E316EB3DD200E476E90DD93967E
:100570008A962B6AB30E2B6E336A326A316A2BC0AD
:1005800030F0080E346E3EDD336A326A316A306A0A
:10059000200E346E37DD015003C028F002C027F072
:1005A00001C026F000C025F093968A8628C030F05E
:1005B000370E316E8CDD27C030F0370E316E87DD9F
:1005C00026C030F0370E316E82DD25C030F0370E98
:1005D000316E7DDD200E476E5ADD93968A962B6A2A
:1005E000B40E2B6E336A326A316A2BC030F0080EBB
:1005F000346E08DD336A326A316A306A100E346E46
:1006000001DD015001C02AF000C029F093968A86CE
:100610002A38026E036A0F0E02160250010B306E6A
:10062000316A036A2A30026E023202321F0E02164B
:100630000250010B326E336A036A2A30026E0232B4
:100640003F0E02160250010B346E356AD890036AD1
:100650002A30026E010B366E376A2A30036E29305B
:10066000026E0332023203320232033202320332AA
:10067000023203320232030E03160250070B386EA9
:10068000396A2A30036E2930026E03320232033295
:1006900002321F0E03160250070B3A6E3B6A2950B6
:1006A000070B3C6E3D6A5B0E476EF1DC100EE96E87
:1006B00031C03FF030C03EF029DD200E476EE7DC50
:1006C000100EE96E33C03FF032C03EF01FDD200E49
:1006D000476EDDDC100EE96E35C03FF034C03EF0F1
:1006E00015DD200E476ED3DC100EE96E37C03FF0EB
:1006F00036C03EF00BDD200E476EC9DC100EE96EF1
:1007000039C03FF038C03EF001DD200E476EBFDC3F
:10071000100EE96E3BC03FF03AC03EF0F7DC200E11
:10072000476EB5DC100EE96E3DC03FF03CC03EF0B8
:10073000EDDC5D0E476EABDC200E476EA8DC9396B9
:100740008A962B6AB50E2B6E336A326A316A2BC0D9
:1007500030F0080E346E56DC336A326A316A306A21
:10076000080E346E4FDC015000C02BF093968A8641
:100770002BC030F0370E316EAADC0D0E476E87DCD1
:100780000A0E476E84DC1BD5320E316E6DDC25D52A
:10079000C80E316E69DC959C8C8C95988C889598E8
:1007A0008C9800D000D00000959A8C8A959A8C9AEB
:1007B00000D000D00000959A8C8A959A8C9A00D02F
:1007C00000D00000959A8C8A959A8C9A00D000D01F
:1007D00000002F6A2E6A2D6A030E2C6E2F52D8A4A9
:1007E0002DD22E52D8A42AD22D52D8A427D22C50A2
:1007F0000508D8A023D2020E306EFA0E316E34DC1A
:10080000302EFBD793968A962B6AB00E2B6E336AE6
:10081000326A316A2BC030F0080E346E02EC00F000
:10082000336A326A316A306A200E346E02EC00F0AC
:10083000015003C028F002C027F001C026F000C01C
:1008400025F093968A862A0E476E21DC200E476E8D
:100850001EDC28C030F0370E316E39DC27C030F096
:10086000370E316E34DC26C030F0370E316E2FDC9F
:1008700025C030F0370E316E2ADC200E476E07DCC3
:1008800093968A962B6AB10E2B6E336A326A316A5E
:100890002BC030F0080E346E02EC00F0336A326A7E
:1008A000316A306A200E346E02EC00F0015003C051
:1008B00028F002C027F001C026F000C025F0939672
:1008C0008A8628C030F0370E316E01DC27C030F048
:1008D000370E316E67EC00F026C030F0370E316E07
:1008E00067EC00F025C030F0370E316E67EC00F099
:1008F000200E476E47EC00F093968A962B6AB20E54
:100900002B6E336A326A316A2BC030F0080E346EB7
:1009100002EC00F0336A326A316A306A200E346EBB
:1009200002EC00F0015003C028F002C027F001C023
:1009300026F000C025F093968A8628C030F0370E46
:10094000316E67EC00F027C030F0370E316E67EC87
:1009500000F026C030F0370E316E67EC00F025C095
:1009600030F0370E316E67EC00F0200E476E47EC2A
:1009700000F093968A962B6AB30E2B6E336A326A16
:10098000316A2BC030F0080E346E02EC00F0336A8E
:10099000326A316A306A200E346E02EC00F0015087
:1009A00003C028F002C027F001C026F000C025F0E7
:1009B00093968A8628C030F0370E316E67EC00F0CF
:1009C00027C030F0370E316E67EC00F026C030F0F3
:1009D000370E316E67EC00F025C030F0370E316E07
:1009E00067EC00F0200E476E47EC00F093968A9675
:1009F0002B6AB40E2B6E336A326A316A2BC030F028
:100A0000080E346E02EC00F0336A326A316A306AE2
:100A1000100E346E02EC00F0015001C02AF000C04C
:100A200029F093968A862A38026E036A0F0E021600
:100A30000250010B306E316A036A2A30026E0232B4
:100A400002321F0E02160250010B326E336A036A25
:100A50002A30026E02323F0E02160250010B346E33
:100A6000356AD890036A2A30026E010B366E376AF7
:100A70002A30036E2930026E033202320332023210
:100A8000033202320332023203320232030E031601
:100A90000250070B386E396A2A30036E2930026E15
:100AA00003320232033202321F0E03160250070BCA
:100AB0003A6E3B6A2950070B3C6E3D6A5B0E476EEF
:100AC00047EC00F0100EE96E31C03FF030C03EF050
:100AD00086EC00F0200E476E47EC00F0100EE96E39
:100AE00033C03FF032C03EF086EC00F0200E476E7F
:100AF00047EC00F0100EE96E35C03FF034C03EF018
:100B000086EC00F0200E476E47EC00F0100EE96E08
:100B100037C03FF036C03EF086EC00F0200E476E46
:100B200047EC00F0100EE96E39C03FF038C03EF0DF
:100B300086EC00F0200E476E47EC00F0100EE96ED8
:100B40003BC03FF03AC03EF086EC00F0200E476E0E
:100B500047EC00F0100EE96E3DC03FF03CC03EF0A7
:100B600086EC00F05D0E476E47EC00F0200E476EFD
:100B700047EC00F093968A962B6AB50E2B6E336A7B
:100B8000326A316A2BC030F0080E346E02EC00F08D
:100B9000336A326A316A306A080E346E02EC00F051
:100BA000015000C02BF093968A862BC030F0370E90
:100BB000316E67EC00F00D0E476E47EC00F00A0E48
:100BC000476E47EC00F093968A96246A236A226A5D
:100BD000216A810E246E236A226A216A316A326A8E
:100BE0002C34336E2D34346E33363436333634365B
:100BF00033363436F00E33163380328C3284315033
:100C0000211232502212335023123450241224C0A5
:100C100033F023C032F022C031F021C030F0200E7A
:100C2000346E02EC00F093968A86010E2C26D8B022
:100C30002D2AD8B42E2AD8B42F2AD0D56EEF01F0A1
:020C40000300AF
:020000040030CA
:0E00000027CC390E0087A1000FC00FE00F4083
:00000001FF
;PIC18F4550
;CRC=0A0F CREATED="06-4-11 21:32"
;CRC=4981 CREATED="04-IV-11 18:29"
/Modules/TDC/GP201A/SW/PICinterface/main.pjt
17,8 → 17,8
0=0000 %S 0 0 796 451 3 0
[Opened Files]
1=main.c
2=main.h
3=..\..\..\..\..\..\..\..\..\Program Files (x86)\PICC\devices\18F4550.h
2=GP2.c
3=
4=GP2.h
5=GP2.c
6=ds1820.c
/Modules/TDC/GP201A/SW/PICinterface/main.c
48,12 → 48,8
int16 ret16;
int8 ret8;
 
 
while(TRUE)
{
delay_ms(100);
 
 
TDC_reset();
delay_ms(100);
99,8 → 95,9
ble|=(0<<21)|(0<<20)|(0<<19)|(0<<16)|0;
spi_xfer(TDC_stream,ble,32);
output_high(TDC_ENABLE);
 
 
//----------------------------------------------- Vypis registru
output_low(TDC_ENABLE);
ret8=0;