/Modules/TDC/GP201A/SW/PICinterface/main.c
28,22 → 28,16
 
TDC_reset();
MRange=TDC_MRANGE1;
hit1=TDC_MRANGE2_HIT1_START;
hit2=TDC_MRANGE2_HIT2_2CH1;
hitin1=TDC_HITIN1_2;
hitin2=TDC_HITIN2_2;
hit1=TDC_MRANGE1_HIT1_START;
hit2=TDC_MRANGE1_HIT2_2CH1;
en_int= (TDC_INT_ALU | TDC_INT_ENDHIT | TDC_INT_TIMEOUT);
hitin2=TDC_HITIN1_0;
en_int= 0xFF; //TDC_INT_ALU | TDC_INT_ENDHIT | TDC_INT_TIMEOUT;
en_err_val=TDC_ERRVAL_EN;
delval1=0x0;
delval2=0x0;
delval3=0x0;
calibrate=TDC_CALIBRATE_EN;
disautocal=TDC_AUTOCAL_EN;
firenum=TDC_FIRENUM_2;
div_fire=TDC_DIV_FIRE_3;
TDC_update_registers();
output_low(START);
50,9 → 44,6
output_low(STOP1);
output_low(STOP2);
TDC_start_cal_resonator();
delay_ms(50);
printf("calibrate: %LX, %LX, %LX, %LX \r\n", TDC_get_measurement(1), TDC_get_measurement(2), TDC_get_measurement(3), TDC_get_measurement(4));
TDC_start_cal();
delay_ms(50);
65,43 → 56,28
printf("Temp: %f \r\n", temperature);
delay_ms(50);
printf("status: %LX \r\n", TDC_get_status());
 
delay_us(10);
TDC_start_cycle();
 
delay_us(10);
output_high(START);
// delay_us(1);
delay_us(1);
output_low(START);
// delay_us(1);
delay_us(500);
output_high(STOP1);
// delay_us(10);
delay_us(10);
output_low(STOP1);
// delay_us(500);
// output_high(STOP1);
// delay_us(10);
// output_low(STOP1);
// delay_us(500);
// output_high(STOP1);
// delay_us(10);
// output_low(STOP1);
delay_us(500);
output_high(STOP1);
delay_us(10);
output_low(STOP1);
delay_us(500);
output_high(STOP1);
delay_us(10);
output_low(STOP1);
 
output_high(STOP2);
// delay_us(10);
output_low(STOP2);
// delay_us(500);
output_high(STOP2);
// delay_us(10);
output_low(STOP2);
// delay_us(500);
output_high(STOP2);
// delay_us(10);
output_low(STOP2);
 
output_low(START);
 
delay_ms(10);
delay_ms(100);
printf("status: %LX \r\n", TDC_get_status());
delay_ms(50);
printf("measured: %LX, %LX, %LX, %LX \r\n", TDC_get_measurement(1), TDC_get_measurement(2), TDC_get_measurement(3), TDC_get_measurement(4));
/Modules/TDC/GP201A/SW/PICinterface/main.hex
1,289 → 1,259
:020000040000FA
:1000000003EF06F0F76A140FF66E000EF7220900F0
:10001000F550120063616C6962726174653A202563
:100020004C582C20254C582C20254C582C20254C45
:1000300058200D0A0000F76A460FF66E000EF722F0
:100040000900F550120054656D703A202566200DA8
:100050000A00F76A620FF66E000EF7220900F550EB
:1000600012007374617475733A20254C58200D0A80
:100070000000F76A820FF66E000EF7220900F550B5
:1000800012006D656173757265643A20254C582CB9
:1000900020254C582C20254C582C20254C58200D20
:1000A0000A003C50200807E03D6E383639363A36B3
:1000B0003B363D2EFAD79382939093948A943CC01A
:1000C0003DF08A843BAE8A903BBE8A803836393612
:1000D0003A363B368A94003601360236033681A220
:1000E000009081B200803D2EECD7000C93968A964A
:1000F0003B6A3A6A396A500E386E080E3C6ED1DFA0
:1001000093968A866EEF06F093968A963B6A3A6AD1
:10011000396A800E386E080E3C6EC3DF3B6A3A6A5D
:10012000396A05C038F0040E3C6EBBDF3B6A3A6AA0
:10013000396A06C038F0040E3C6EB3DF3B6A3A6A97
:10014000396A07C038F0020E3C6EABDF3B6A3A6A90
:10015000396A08C038F0020E3C6EA3DF3B6A3A6A87
:10016000396A09C038F0020E3C6E9BDF000E0AB0FF
:10017000010E3B6A3A6A396A386E010E3C6E91DFB5
:10018000000E0AB2010E3B6A3A6A396A386E010EF5
:100190003C6E87DF000E0AB4010E3B6A3A6A396A88
:1001A000386E010E3C6E7DDF000E0AB6010E3B6A12
:1001B0003A6A396A386E010E3C6E73DF000E0AB877
:1001C000010E3B6A3A6A396A386E010E3C6E69DF8D
:1001D000000E0ABA010E3B6A3A6A396A386E010E9D
:1001E0003C6E5FDF000E0ABC010E3B6A3A6A396A58
:1001F000386E010E3C6E55DF000E0ABE010E3B6AE2
:100200003A6A396A386E010E3C6E4BDF000E0BB055
:10021000010E3B6A3A6A396A386E010E3C6E41DF64
:10022000000E0BB2010E3B6A3A6A396A386E010E53
:100230003C6E37DF93968A8693968A963B6A3A6A33
:10024000396A810E386E080E3C6E2BDF3B6A3A6AC3
:10025000396A0CC038F0040E3C6E23DF3B6A3A6A00
:10026000396A0DC038F0040E3C6E1BDF000E0BB473
:10027000010E3B6A3A6A396A386E010E3C6E11DF34
:100280003B6A3A6A396A010E386E3C6E0ADF3B6A95
:100290003A6A396A0EC038F0030E3C6E02DF3B6AE0
:1002A0003A6A396A0FC038F0030E3C6EFADE3B6AD8
:1002B0003A6A396A386A080E3C6EF3DE93968A868B
:1002C00093968A963B6A3A6A396A820E386E200E95
:1002D0003C6EE7DE3B6A3A6A396A10C038F0030EBA
:1002E0003C6EDFDE000E0BB6010E3B6A3A6A396ADD
:1002F000386E010E3C6ED5DE000E0BB8010E3B6A67
:100300003A6A396A386E010E3C6ECBDE14C03BF09F
:1003100013C03AF012C039F011C038F0130E3C6E21
:10032000C0DE93968A8693968A963B6A3A6A396AC1
:10033000830E386E200E3C6EB4DE3B6A3A6A396A30
:10034000386A020E3C6EADDE000E0BBA010E3B6A3F
:100350003A6A396A386E010E3C6EA3DE3B6A3A6A2D
:10036000396A15C038F0020E3C6E9BDE19C03BF0B6
:1003700018C03AF017C039F016C038F0130E3C6EB2
:1003800090DE93968A8693968A963B6A3A6A396A91
:10039000840E386E200E3C6E84DE3B6A3A6A396AFF
:1003A000040E386E050E3C6E7CDE1DC03BF01CC09A
:1003B0003AF01BC039F01AC038F0130E3C6E71DEF3
:1003C00093968A8693968A963B6A3A6A396A850E2C
:1003D000386E200E3C6E65DE3B6A3A6A396A1EC092
:1003E00038F0030E3C6E5DDE000E0BBC010E3B6A66
:1003F0003A6A396A386E010E3C6E53DE000E0BBE4F
:10040000010E3B6A3A6A396A386E010E3C6E49DE6B
:100410003B6A3A6A396A1FC038F0030E3C6E41DE0F
:100420003B6A3A6A21C039F020C038F0100E3C6EA9
:1004300038DE93968A868AEF06F093968A963B6A10
:100440003A6A396A030E386E080E3C6E2ADE9396BD
:100450008A8692EF06F0EA6A270EE96EEF500DE009
:10046000060E016E006A002EFED7012EFBD77B0E12
:10047000006E002EFED7EF2EF3D7000C93968A96CF
:10048000B00E3224FF0F376E3B6A3A6A396A386E13
:10049000200E3C6E06DE3B6A3A6A396A386A200EE4
:1004A0003C6EFFDD015003C036F002C035F001C0E4
:1004B00034F000C033F093968A8633C000F034C025
:1004C00001F035C002F036C003F0000C939E8A9E06
:1004D000080E016E00D00000018E0ED0019E383251
:1004E000D8B08A8ED8A08A9E018C06D0019C012E9D
:1004F000F6D700D000008A8EA70EE96EE92EFED74F
:1005000000D001BEEBD701BCF1D7000C37BE0FD035
:100510000F0E006E363800160A0E005C03E2300E35
:10052000002602D03750002600C038F0CFDF0F0E73
:1005300036160A0E365C02E2300E02D0379E375075
:10054000362636C038F0C2DF000C93968A963B6A96
:100550003A6A396A040E386E080E3C6EA2DD939634
:100560008A8658EF07F0030E305E09E3EA6A300E20
:10057000E96EEF5004E001D000D0EF2EFDD7000C63
:1005800096948D94020E2F6EF90E306EECDF2F2EA6
:10059000FBD79684020E2F6EF90E306EE4DF2F2EFD
:1005A000FBD79684000C306A3050070819E3969404
:1005B0008D94030E006E002EFED7D8802F3202E2FB
:1005C0008D9401D08D849694630E006E002EFED71C
:1005D00000D09684030E006E002EFED7302AE4D79A
:1005E000000C2F6A2F50070819E396948D94030E80
:1005F000006E002EFED796840D0E006E002EFED7E4
:10060000968484B402D0D89001D0D8803032C70EFE
:10061000006E002EFED700D02F2AE4D730C001F0A4
:10062000000C8E0E006E30C001F02FC002F0036A85
:1006300030AE05D0011E021E022A01E1012A01523C
:1006400009E102C001F0026A080E005E015202E1F7
:10065000006A0AD0D89001BE04D0023601360006E6
:10066000F9D730BE01D0019E08EF04F03350D8B462
:10067000A5D03F6E3750D8B4A1D03F5E05E37F0EC2
:100680003F26D8B09BD006D0810E3F5ED8A096D032
:10069000D8B494D03FC000F0016A026A036A3E6A8F
:1006A00034C03DF03D8E35C03CF036C03BF0190EF5
:1006B0003F6E3A503B5E0DE2010E3C5E0AE23D5E4B
:1006C00008E23E5E06E23E2A3D2A3C2A3A503B269C
:1006D00028D039503C5E12E2010E3D5E0FE23E5ED4
:1006E0000DE23E2A3D2A39503C263A503B2619E37A
:1006F0003C2A17E13D2A15E13E2A13D038508009E3
:100700003D5E0EE2010E3E5E0BE23E2A385080094D
:100710003D2639503C26E9E33D2AE7E13E2AE5D76C
:1007200003803F2E01D00BD0D8903B363C363D366F
:100730003E36D8900336023601364036BAD740A04E
:1007400006D0D890013202320332403202D0000685
:1007500035E040BE1ED0D8903B363C363D363E3666
:100760003A503B5E07E2010E3C5E04E23D5E02E26F
:100770003E5E1AE339503C5E05E2010E3D5E02E248
:100780003E5E12E3385080093D5E03E2010E3E5E9C
:100790000BE3032A09E1022A07E1012A05E1002A05
:1007A0000DE001320232033234C03FF038503F1ABC
:1007B0003FAE02D0018E06D0019E04D0006A016ACD
:1007C000026A036A1EEF04F0266ADADECC0E2F6E90
:1007D000EADE440E2F6EE7DE265204E102DF01C09E
:1007E00026F0FAD7CDDECC0E2F6EDDDEBE0E2F6EDC
:1007F000DADEF7DE01C027F0F4DE01C028F028C001
:100800002AF027C029F02AC030F029C02FF009D7DC
:1008100000C02FF001C030F002C031F003C032F050
:1008200003C036F002C035F001C034F000C033F030
:100830003A6A396A386A830E376E18D703C02EF0C9
:1008400002C02DF001C02CF000C02BF02BC000F036
:100850002CC001F02DC002F02EC003F05DEF07F0B8
:1008600093968A963B6A3A6A396A700E386E080E19
:100870003C6E17DC93968A8666EF07F03350D8B447
:1008800071D0006E3750D8B46DD0002604E3810ECD
:10089000002668E204D07F0E005E64E363E034C0AB
:1008A0003BF038503B1A348E388E36503A02F4CF33
:1008B0003DF035503902F4CF03F0F3CF3CF03A026B
:1008C000F3503D26F4503C22000E032236503902EC
:1008D000F3503D26F4503C22000E026A032202220D
:1008E00034503A02F3503C26F4500322000E022208
:1008F00034503902F3500326F4500222000E016AEC
:10090000012236503802F3503C26F4500322000EE8
:100910000222012235503802F3500326F4500222FD
:10092000000E012234503802F3500226F450012206
:10093000002A01BE05D03C360336023601360006D9
:10094000000E3CAE0AD0032A02220122015005E12A
:10095000025003E1035001E1002A3BBE018E3BAE91
:10096000019E04D0006A016A026A036A29EF05F059
:100970003350B608336E036A34C037F0348ED890E3
:100980003432353236320332023201320032332E03
:10099000F6D737AE0BD0001E011E021E031E002A22
:1009A000D8B4012AD8B4022AD8B4032A3CEF05F0FF
:1009B000006A016A026A036A3B6A3C6A3D6A3E6AEF
:1009C0003A503910381037102CE0200E3F6ED89076
:1009D00033363436353636363B363C363D363E36A3
:1009E0003A503E5C08E139503D5C05E138503C5CD2
:1009F00002E137503B5C0FE337503B5E3850D8A0E4
:100A0000383C3C5E3950D8A0393C3D5E3A50D8A0C5
:100A10003A3C3E5ED88000360136023603363F2E21
:100A2000D6D7EA6A3B0EE96E000CE9502B6E2A50CD
:100A30002D6E19E029C036F028C035F027C034F0FB
:100A400026C033F03A6A396A200E386E820E376E4D
:100A500015D703C029F002C028F001C027F000C05C
:100A600026F02D2EE7D729C036F028C035F027C054
:100A700034F026C033F07CD703C029F002C028F040
:100A800001C027F000C026F029AE0DD02B062B8A1E
:100A9000261E271E281E291E262AD8B4272AD8B487
:100AA000282AD8B4292A3B0E326E9A0E316ECA0E0D
:100AB000306E2F6A0A0E2D6E2A50D8B42B2A29C008
:100AC00036F028C035F027C034F026C033F032C0ED
:100AD0003AF031C039F030C038F02FC037F068DF5D
:100AE0000150EFCF26F0ECCF27F0ECCF28F0ECCF81
:100AF00029F000520FE12A282D5C0CE02B500CE06D
:100B00000F0B2D5C01E037E22BBE35D02BBC04D09F
:100B1000200E2DD0200E2B162BAA0CD02B9A2A504B
:100B2000D8A42B0600502B6E2D0E386ECFDC2B5028
:100B3000006E2B6A2A502D5C0AE100502B6E2E0E9F
:100B4000386EC4DC2B50006E200E2B16000E300EBB
:100B50002BAA0DD02B9A2A50D8A42B0600502B6E0E
:100B60002D0E386EB3DC2B50006E2B6A300E002633
:100B700000C038F0ABDC32C036F031C035F030C0E8
:100B800034F02FC033F03A6A396A386A0A0E376E89
:100B90000FDF03C032F002C031F001C030F000C0FE
:100BA0002FF02D2E8CD783EF07F093968A963B6A11
:100BB0003A6A396AB40E386E080E3C6E51EC00F099
:100BC0003B6A3A6A396A386A100E3C6E51EC00F0A2
:100BD000015001C027F000C026F093968A8626C0F7
:100BE00001F027C002F0000C93968A963B6A3A6A9D
:100BF000396A010E386E080E3C6E51EC00F0939687
:100C00008A86BDEF07F0F86AD09EEA6AE96A939E89
:100C10008A8E9382939093948A94C150C00B0F094B
:100C2000C16E070EB46E056A010E066E076A086A89
:100C3000096E0A800A920A940A860A880A9A0A8C1D
:100C40000A9E0B900B92050E0C6E0D6E0B940E6AA5
:100C50000F6A010E106E0B960B98116A126A136AD6
:100C6000146A0B9A030E156E166A176A186A196AC7
:100C70001A6A1B6A1C6A1D6A1E6A0B9C0B8E1F6A0D
:100C8000206A216AC150C00B0F09C16EC090C0928A
:100C9000C094C09EC280B098C69A949E938093924E
:100CA000010EC66E000EC76ED190800ED56ECD6A55
:100CB000000ECA6E000ECB6E9484BD6AB76AB66A27
:100CC000070EB46E9250926E100E006E002EFED77C
:100CD0000000B450A19CB56A76EF00F00A9C020EA9
:100CE0000F6E0E6E0D6A0C6E070E106E0B8A146A74
:100CF000136A126A116A196A186A176A166A1D6AF3
:100D00001C6A1B6A1A6A0A880A9A020E056E066E27
:100D100084EF00F095988C98959A8C9A959C8C9C71
:100D20001DEF02F0320E276E2BEC02F0010E326E38
:100D30003EEC02F003C029F002C028F001C027F009
:100D400000C026F0020E326E3EEC02F003C02DF021
:100D500002C02CF001C02BF000C02AF0030E326E4E
:100D60003EEC02F003C031F002C030F001C02FF0C1
:100D700000C02EF0040E326E3EEC02F003C035F0DF
:100D800002C034F001C033F000C032F0366A365091
:100D900002EC00F0362A006E386E66EC02F00B0EA4
:100DA000365CF5E129C036F0370E376E86EC02F07E
:100DB00028C036F0370E376E86EC02F027C036F0CA
:100DC000370E376E86EC02F026C036F0370E376EDF
:100DD00086EC02F02C0E386E66EC02F0200E386EB7
:100DE00066EC02F02DC036F0370E376E86EC02F05E
:100DF0002CC036F0370E376E86EC02F02BC036F082
:100E0000370E376E86EC02F02AC036F0370E376E9A
:100E100086EC02F02C0E386E66EC02F0200E386E76
:100E200066EC02F031C036F0370E376E86EC02F019
:100E300030C036F0370E376E86EC02F02FC036F039
:100E4000370E376E86EC02F02EC036F0370E376E56
:100E500086EC02F02C0E386E66EC02F0200E386E36
:100E600066EC02F035C036F0370E376E86EC02F0D5
:100E700034C036F0370E376E86EC02F033C036F0F1
:100E8000370E376E86EC02F032C036F0370E376E12
:100E900086EC02F0200E386E66EC02F00D0E386E15
:100EA00066EC02F00A0E386E66EC02F0A5EF02F076
:100EB000320E276E2BEC02F087D403C025F002C05F
:100EC00024F001C023F000C022F0CAD4320E276EF5
:100ED0002BEC02F0266A26501BEC00F0262A006E4E
:100EE000386E66EC02F0060E265CF5E1890EE96EBE
:100EF00025C029F024C028F023C027F022C026F006
:100F0000020E2A6E92D5200E386E66EC02F00D0E9F
:100F1000386E66EC02F00A0E386E66EC02F0320EA5
:100F2000276E2BEC02F041DE02C027F001C026F054
:100F3000286A285029EC00F0282A006E386E66ECEA
:100F400002F0080E285CF5E127C036F0370E376E48
:100F500086EC02F026C036F0370E376E86EC02F0D3
:100F6000200E386E66EC02F00D0E386E66EC02F064
:100F70000A0E386E66EC02F037D6100E006E002EA8
:100F8000FED7000095988C8895988C98959A8C8AB5
:100F9000959A8C9A959C8C8C959C8C9C959C8C8C11
:100FA000959C8C9C959C8C8C959C8C9C95988C98F5
:100FB0000A0E276E2BEC02F0F8DD02C027F001C00C
:100FC00026F0286A285029EC00F0282A006E386E96
:100FD00066EC02F0080E285CF5E127C036F0370E0B
:100FE000376E86EC02F026C036F0370E376E86EC90
:100FF00002F0200E386E66EC02F00D0E386E66ECD4
:1010000002F00A0E386E66EC02F0320E276E2BEC00
:1010100002F0010E326E3EEC02F003C029F002C075
:1010200028F001C027F000C026F0020E326E3EEC20
:1010300002F003C02DF002C02CF001C02BF000C064
:101040002AF0030E326E3EEC02F003C031F002C013
:1010500030F001C02FF000C02EF0040E326E3EECD6
:1010600002F003C035F002C034F001C033F000C01C
:1010700032F0366A365039EC00F0362A006E386E9F
:1010800066EC02F00A0E365CF5E129C036F0370E48
:10109000376E86EC02F028C036F0370E376E86ECDD
:1010A00002F027C036F0370E376E86EC02F026C00D
:1010B00036F0370E376E86EC02F02C0E386E66EC8A
:1010C00002F0200E386E66EC02F02DC036F0370EBE
:1010D000376E86EC02F02CC036F0370E376E86EC99
:1010E00002F02BC036F0370E376E86EC02F02AC0C5
:1010F00036F0370E376E86EC02F02C0E386E66EC4A
:1011000002F0200E386E66EC02F031C036F0370E79
:10111000376E86EC02F030C036F0370E376E86EC54
:1011200002F02FC036F0370E376E86EC02F02EC07C
:1011300036F0370E376E86EC02F02C0E386E66EC09
:1011400002F0200E386E66EC02F035C036F0370E35
:10115000376E86EC02F034C036F0370E376E86EC10
:1011600002F033C036F0370E376E86EC02F032C034
:1011700036F0370E376E86EC02F0200E386E66ECD5
:1011800002F00D0E386E66EC02F00A0E386E66EC58
:1011900002F0020E266EFA0E276E2BEC02F0262EBF
:0611A000FAD78AD6030015
:10000000DEEF05F0F76A140FF66E000EF722090016
:10001000F550120054656D703A202566200D0A00D7
:10002000F76A300FF66E000EF7220900F550120045
:100030007374617475733A20254C58200D0A0000C2
:10004000F76A500FF66E000EF7220900F550120005
:100050006D656173757265643A20254C582C2025B6
:100060004C582C20254C582C20254C58200D0A008B
:100070003C50200807E03D6E383639363A363B367C
:100080003D2EFAD79382939093948A943CC03DF08E
:100090008A843BAE8A903BBE8A80383639363A36FF
:1000A0003B368A94003601360236033681A2009030
:1000B00081B200803D2EECD7000C93968A963B6A65
:1000C0003A6A396A500E386E080E3C6ED1DF93964C
:1000D0008A8647EF06F093968A963B6A3A6A396AAF
:1000E000800E386E080E3C6EC3DF3B6A3A6A396A8E
:1000F00005C038F0040E3C6EBBDF3B6A3A6A396AD1
:1001000006C038F0040E3C6EB3DF3B6A3A6A396AC7
:1001100007C038F0020E3C6EABDF3B6A3A6A396AC0
:1001200008C038F0020E3C6EA3DF3B6A3A6A396AB7
:1001300009C038F0020E3C6E9BDF000E0AB0010EC3
:100140003B6A3A6A396A386E010E3C6E91DF000EE6
:100150000AB2010E3B6A3A6A396A386E010E3C6E89
:1001600087DF000E0AB4010E3B6A3A6A396A386EBC
:10017000010E3C6E7DDF000E0AB6010E3B6A3A6A44
:10018000396A386E010E3C6E73DF000E0AB8010E3C
:100190003B6A3A6A396A386E010E3C6E69DF000EBE
:1001A0000ABA010E3B6A3A6A396A386E010E3C6E31
:1001B0005FDF000E0ABC010E3B6A3A6A396A386E8C
:1001C000010E3C6E55DF000E0ABE010E3B6A3A6A14
:1001D000396A386E010E3C6E4BDF000E0BB0010E1B
:1001E0003B6A3A6A396A386E010E3C6E41DF000E96
:1001F0000BB2010E3B6A3A6A396A386E010E3C6EE8
:1002000037DF93968A8693968A963B6A3A6A396A6A
:10021000810E386E080E3C6E2BDF3B6A3A6A396AF3
:100220000CC038F0040E3C6E23DF3B6A3A6A396A30
:100230000DC038F0040E3C6E1BDF000E0BB4010E37
:100240003B6A3A6A396A386E010E3C6E11DF3B6ACE
:100250003A6A396A010E386E3C6E0ADF3B6A3A6AC6
:10026000396A0EC038F0030E3C6E02DF3B6A3A6A10
:10027000396A0FC038F0030E3C6EFADE3B6A3A6A08
:10028000396A386A080E3C6EF3DE93968A86939636
:100290008A963B6A3A6A396A820E386E200E3C6E44
:1002A000E7DE3B6A3A6A396A10C038F0030E3C6EEA
:1002B000DFDE000E0BB6010E3B6A3A6A396A386E11
:1002C000010E3C6ED5DE000E0BB8010E3B6A3A6A99
:1002D000396A386E010E3C6ECBDE14C03BF013C0A1
:1002E0003AF012C039F011C038F0130E3C6EC0DE87
:1002F00093968A8693968A963B6A3A6A396A830EFF
:10030000386E200E3C6EB4DE3B6A3A6A396A386A4F
:10031000020E3C6EADDE000E0BBA010E3B6A3A6A6D
:10032000396A386E010E3C6EA3DE3B6A3A6A396A5E
:1003300015C038F0020E3C6E9BDE19C03BF018C0B1
:100340003AF017C039F016C038F0130E3C6E90DE4C
:1003500093968A8693968A963B6A3A6A396A840E9D
:10036000386E200E3C6E84DE3B6A3A6A396A040EAF
:10037000386E050E3C6E7CDE1DC03BF01CC03AF0B2
:100380001BC039F01AC038F0130E3C6E71DE939624
:100390008A8693968A963B6A3A6A396A850E386EDF
:1003A000200E3C6E65DE3B6A3A6A396A1EC038F040
:1003B000030E3C6E5DDE000E0BBC010E3B6A3A6A1A
:1003C000396A386E010E3C6E53DE000E0BBE010E14
:1003D0003B6A3A6A396A386E010E3C6E49DE3B6A06
:1003E0003A6A396A1FC038F0030E3C6E41DE3B6A40
:1003F0003A6A21C039F020C038F0100E3C6E38DE69
:1004000093968A865FEF06F093968A963B6A3A6ADD
:10041000396A040E386E080E3C6E2ADE93968A8680
:1004200067EF06F0EA6A270EE96EEF500DE0060E60
:10043000016E006A002EFED7012EFBD77B0E006EE8
:10044000002EFED7EF2EF3D7000C030E305E09E32B
:10045000EA6A300EE96EEF5004E001D000D0EF2ED2
:10046000FDD7000C96948D94020E2F6EF90E306E0F
:10047000ECDF2F2EFBD79684020E2F6EF90E306E16
:10048000E4DF2F2EFBD79684000C306A305007082B
:1004900019E396948D94030E006E002EFED7D8803B
:1004A0002F3202E28D9401D08D849694630E006EFB
:1004B000002EFED700D09684030E006E002EFED7CD
:1004C000302AE4D7000C2F6A2F50070819E39694BE
:1004D0008D94030E006E002EFED796840D0E006ED6
:1004E000002EFED7968484B402D0D89001D0D88054
:1004F0003032C70E006E002EFED700D02F2AE4D770
:1005000030C001F0000C8E0E006E30C001F02FC024
:1005100002F0036A30AE05D0011E021E022A01E17C
:10052000012A015209E102C001F0026A080E005ED0
:10053000015202E1006A0AD0D89001BE04D002360E
:1005400001360006F9D730BE01D0019E7AEF03F0E4
:100550003350D8B4A5D03F6E3750D8B4A1D03F5E49
:1005600005E37F0E3F26D8B09BD006D0810E3F5EBC
:10057000D8A096D0D8B494D03FC000F0016A026AE7
:10058000036A3E6A34C03DF03D8E35C03CF036C053
:100590003BF0190E3F6E3A503B5E0DE2010E3C5EA1
:1005A0000AE23D5E08E23E5E06E23E2A3D2A3C2A21
:1005B0003A503B2628D039503C5E12E2010E3D5E97
:1005C0000FE23E5E0DE23E2A3D2A39503C263A506B
:1005D0003B2619E33C2A17E13D2A15E13E2A13D0B8
:1005E000385080093D5E0EE2010E3E5E0BE23E2A6F
:1005F000385080093D2639503C26E9E33D2AE7E1A1
:100600003E2AE5D703803F2E01D00BD0D8903B3651
:100610003C363D363E36D8900336023601364036FB
:10062000BAD740A006D0D89001320232033240320D
:1006300002D0000635E040BE1ED0D8903B363C3696
:100640003D363E363A503B5E07E2010E3C5E04E228
:100650003D5E02E23E5E1AE339503C5E05E2010E69
:100660003D5E02E23E5E12E3385080093D5E03E2E9
:10067000010E3E5E0BE3032A09E1022A07E1012A8B
:1006800005E1002A0DE001320232033234C03FF0AE
:1006900038503F1A3FAE02D0018E06D0019E04D0E2
:1006A000006A016A026A036A90EF03F0266ADADEE2
:1006B000CC0E2F6EEADE440E2F6EE7DE265204E1EA
:1006C00002DF01C026F0FAD7CDDECC0E2F6EDDDEC4
:1006D000BE0E2F6EDADEF7DE01C027F0F4DE01C0B9
:1006E00028F028C02AF027C029F02AC030F029C0FD
:1006F0002FF009D700C02FF001C030F002C031F058
:1007000003C032F003C036F002C035F001C034F04F
:1007100000C033F03A6A396A386A830E376E18D7E8
:1007200003C02EF002C02DF001C02CF000C02BF051
:100730002BC000F02CC001F02DC002F02EC003F041
:100740006CEF06F093968A963B6A3A6A396A700EA5
:10075000386E080E3C6E8CDC93968A8675EF06F038
:10076000939E8A9E080E016E00D00000018E0ED06E
:10077000019E3832D8B08A8ED8A08A9E018C06D0CD
:10078000019C012EF6D700D000008A8EA70EE96EDC
:10079000E92EFED700D001BEEBD701BCF1D7000C8B
:1007A0003350D8B471D0006E3750D8B46DD0002615
:1007B00004E3810E002668E204D07F0E005E64E34D
:1007C00063E034C03BF038503B1A348E388E3650DC
:1007D0003A02F4CF3DF035503902F4CF03F0F3CFB5
:1007E0003CF03A02F3503D26F4503C22000E032226
:1007F00036503902F3503D26F4503C22000E026A76
:100800000322022234503A02F3503C26F4500322D1
:10081000000E022234503902F3500326F450022213
:10082000000E016A012236503802F3503C26F45083
:100830000322000E0222012235503802F350032613
:10084000F4500222000E012234503802F3500226E6
:10085000F4500122002A01BE05D03C360336023690
:1008600001360006000E3CAE0AD0032A0222012205
:10087000015005E1025003E1035001E1002A3BBEB3
:10088000018E3BAE019E04D0006A016A026A036ACF
:10089000BBEF04F03350B608336E036A34C037F050
:1008A000348ED8903432353236320332023201324D
:1008B0000032332EF6D737AE0BD0001E011E021EBB
:1008C000031E002AD8B4012AD8B4022AD8B4032AB5
:1008D000CEEF04F0006A016A026A036A3B6A3C6A6E
:1008E0003D6A3E6A3A503910381037102CE0200E1D
:1008F0003F6ED89033363436353636363B363C3656
:100900003D363E363A503E5C08E139503D5C05E1EB
:1009100038503C5C02E137503B5C0FE337503B5EA4
:100920003850D8A0383C3C5E3950D8A0393C3D5EA8
:100930003A50D8A03A3C3E5ED880003601360236A6
:1009400003363F2ED6D7EA6A3B0EE96E000CE9501B
:100950002B6E2A502D6E19E029C036F028C035F0D4
:1009600027C034F026C033F03A6A396A200E386E58
:10097000820E376E15D703C029F002C028F001C0DF
:1009800027F000C026F02D2EE7D729C036F028C06A
:1009900035F027C034F026C033F07CD703C029F0EF
:1009A00002C028F001C027F000C026F029AE0DD00B
:1009B0002B062B8A261E271E281E291E262AD8B45F
:1009C000272AD8B4282AD8B4292A3B0E326E9A0E88
:1009D000316ECA0E306E2F6A0A0E2D6E2A50D8B4B0
:1009E0002B2A29C036F028C035F027C034F026C0A5
:1009F00033F032C03AF031C039F030C038F02FC097
:100A000037F068DF0150EFCF26F0ECCF27F0ECCFC6
:100A100028F0ECCF29F000520FE12A282D5C0CE0E1
:100A20002B500CE00F0B2D5C01E037E22BBE35D0D4
:100A30002BBC04D0200E2DD0200E2B162BAA0CD0B0
:100A40002B9A2A50D8A42B0600502B6E2D0E386EF0
:100A500087DE2B50006E2B6A2A502D5C0AE1005075
:100A60002B6E2E0E386E7CDE2B50006E200E2B1659
:100A7000000E300E2BAA0DD02B9A2A50D8A42B068C
:100A800000502B6E2D0E386E6BDE2B50006E2B6AD5
:100A9000300E002600C038F063DE32C036F031C0C0
:100AA00035F030C034F02FC033F03A6A396A386A12
:100AB0000A0E376E0FDF03C032F002C031F001C002
:100AC00030F000C02FF02D2E8CD791EF06F09396CA
:100AD0008A963B6A3A6A396AB40E386E080E3C6EE2
:100AE00038EC00F03B6A3A6A396A386A100E3C6E9C
:100AF00038EC00F0015001C027F000C026F09396BA
:100B00008A8626C001F027C002F0000C37BE0FD045
:100B10000F0E006E363800160A0E005C03E2300E2F
:100B2000002602D03750002600C038F019DE0F0E24
:100B300036160A0E365C02E2300E02D0379E37506F
:100B4000362636C038F00CDE000C93968A963B6A47
:100B50003A6A396A010E386E080E3C6E38EC00F0C5
:100B600093968A86C7EF06F093968A96B00E322443
:100B7000FF0F376E3B6A3A6A396A386E200E3C6E58
:100B800038EC00F03B6A3A6A396A386A200E3C6EEB
:100B900038EC00F0015003C036F002C035F001C05F
:100BA00034F000C033F093968A8633C000F034C02E
:100BB00001F035C002F036C003F0000CF86AD09E98
:100BC000EA6AE96A939E8A8E9382939093948A94B8
:100BD000C150C00B0F09C16E070EB46E056A066ADC
:100BE000076A086A010E096E0A800A920A940A8648
:100BF0000A880A9A0A8C0A9E0B900B92050E0C6EBC
:100C00000D6E0B940E6A0F6A010E106E0B960B9808
:100C1000116A126A136A146A0B9A030E156E166A29
:100C2000176A186A196A1A6A1B6A1C6A1D6A1E6AA0
:100C30000B9C0B8E1F6AC150C00B0F09C16EC09078
:100C4000C092C094C09EC280B098C69A949E938071
:100C50009392010EC66E000EC76ED190800ED56EB7
:100C6000CD6A000ECA6E000ECB6E9484BD6AB76A60
:100C7000B66A070EB46E9250926E100E006E002E81
:100C8000FED70000B450A19CB56A5DEF00F0010EE4
:100C90000D6E030E0C6E020E0F6E0E6AFF0E106EBE
:100CA0000B8A146A136A126A116A196A186A176A37
:100CB000166A1D6A1C6A1B6A1A6A6BEF00F0959827
:100CC0008C98959A8C9A959C8C9C04EF02F0320E2D
:100CD000276E12EC02F0EAD403C025F002C024F023
:100CE00001C023F000C022F02DD5320E276E12EC89
:100CF00002F0266A265002EC00F0262A006E386EBA
:100D00002FDD060E265CF6E1890EE96E25C029F07E
:100D100024C028F023C027F022C026F0020E2A6E3D
:100D200016D6200E386E1CDD0D0E386E19DD0A0E3B
:100D3000386E16DD320E276E12EC02F0C8DE02C0ED
:100D400027F001C026F0286A285010EC00F0282A6D
:100D5000006E386E05DD080E285CF6E127C036F01F
:100D6000370E376ED3DE26C036F0370E376ECEDE46
:100D7000200E386EF5DC0D0E386EF2DC0A0E386E81
:100D8000EFDC100E006E002EFED70000DED6100E37
:100D9000006E002EFED7000095988C8800D000D001
:100DA000000095988C98020E266EF90E306E25EC98
:100DB00002F0262EFAD7959A8C8A100E006E002E1D
:100DC000FED70000959A8C9A020E266EF90E306EB0
:100DD00025EC02F0262EFAD7959A8C8A100E006E1A
:100DE000002EFED70000959A8C9A020E266EF90E00
:100DF000306E25EC02F0262EFAD7959A8C8A100ECA
:100E0000006E002EFED70000959A8C9A640E276E15
:100E100012EC02F05CDE02C027F001C026F0286A66
:100E2000285010EC00F0282A006E386E99DC080E6D
:100E3000285CF6E127C036F0370E376E67DE26C035
:100E400036F0370E376E62DE200E386E89DC0D0EFE
:100E5000386E86DC0A0E386E83DC320E276E12EC9A
:100E600002F0010E326E80DE03C029F002C028F0CD
:100E700001C027F000C026F0020E326E75DE03C0FE
:100E80002DF002C02CF001C02BF000C02AF0030EA0
:100E9000326E6ADE03C031F002C030F001C02FF0C4
:100EA00000C02EF0040E326E5FDE03C035F002C0CB
:100EB00034F001C033F000C032F0366A365020EC16
:100EC00000F0362A006E386E4BDC0A0E365CF6E116
:100ED00029C036F0370E376E19DE28C036F0370ECF
:100EE000376E14DE27C036F0370E376E0FDE26C0A1
:100EF00036F0370E376E0ADE2C0E386E31DC200EDF
:100F0000386E2EDC2DC036F0370E376EFFDD2CC06C
:100F100036F0370E376EFADD2BC036F0370E376EEF
:100F2000F5DD2AC036F0370E376EF0DD2C0E386E48
:100F300017DC200E386E14DC31C036F0370E376EF9
:100F4000E5DD30C036F0370E376EE0DD2FC036F00D
:100F5000370E376EDBDD2EC036F0370E376ED6DD3E
:100F60002C0E386EB0EC03F0200E386EB0EC03F0AF
:100F700035C036F0370E376EC9DD34C036F0370E67
:100F8000376EC4DD33C036F0370E376EBFDD32C08A
:100F900036F0370E376EBADD200E386EB0EC03F047
:100FA0000D0E386EB0EC03F00A0E386EB0EC03F0A4
:100FB000020E266EFA0E276E12EC02F0262EFAD7DB
:040FC0008AD60300CA
:020000040030CA
:0E00000027CC390E0087A1000FC00FE00F4083
:00000001FF
;PIC18F4550
;CRC=C2B7 CREATED="08-I-11 16:38"
;CRC=2145 CREATED="08-I-11 13:01"
/Modules/TDC/GP201A/SW/PICinterface/main.pjt
17,10 → 17,10
0=0000 %S 0 0 796 451 3 0
[Opened Files]
1=.\main.c
2=GP2.h
3=GP2.c
2=ds1820.c
3=1wire.c
4=
5=GP2.c
5=GP2.h
6=
[Target Data]
OptionString=-p +FH
/Modules/TDC/GP201A/SW/PICinterface/GP2.c
46,7 → 46,7
unsigned int1 en_startnoise=TDC_STARTNOISE_DIS;
unsigned int1 dis_phasenoise=TDC_PHASENOISE_DIS;
unsigned int repeat_fire=TDC_REPEAT_FIRE_0;
unsigned int16 phase_fire=0;
unsigned int16 phase_fire;
 
//}TDC_registers;
 
/Modules/TDC/GP201A/SW/PICinterface/GP2.h
34,7 → 34,7
#define TDC_CALPERIODS_8 2
#define TDC_CALPERIODS_16 3
 
#define TDC_DIV_FIRE_2 1
#define TDC_DIV_FIRE_2 0
#define TDC_DIV_FIRE_3 2
#define TDC_DIV_FIRE_4 3
#define TDC_DIV_FIRE_5 4