/Modules/TDC/GP201A/SW/PICinterface/main.c
41,7 → 41,7
calibrate=TDC_CALIBRATE_DIS;
disautocal=TDC_AUTOCAL_EN;
firenum=TDC_FIRENUM_0;
firenum=TDC_FIRENUM_1;
div_fire=TDC_DIV_FIRE_2;
Tcycle=TDC_TCYSLE_LONG;
91,7 → 91,7
{
temperature = ds1820_read();
TDC_init();
// TDC_init();
delay_ms(50);
printf("Temp: %f \r\n", temperature);
98,7 → 98,7
delay_ms(50);
printf("status: %LX \r\n", TDC_get_status());
 
TDC_start_cycle();
// TDC_start_cycle();
 
// delay_us(10);
output_high(START);
135,7 → 135,7
 
 
// delay_ms(10);
// TDC_start_temp();
TDC_start_temp();
 
delay_ms(10);
printf("status: %LX \r\n", TDC_get_status());
/Modules/TDC/GP201A/SW/PICinterface/main.hex
1,5 → 1,5
:020000040000FA
:10000000F5EF05F0F76A140FF66E000EF7220900FF
:10000000E7EF05F0F76A140FF66E000EF72209000D
:10001000F550120063616C6962726174653A202563
:100020004C582C20254C582C20254C582C20254C45
:1000300058200D0A0000F76A460FF66E000EF722F0
15,7 → 15,7
:1000D0003A363B368A94003601360236033681A220
:1000E000009081B200803D2EECD7000C93968A964A
:1000F0003B6A3A6A396A500E386E080E3C6ED1DFA0
:1001000093968A8660EF06F093968A963B6A3A6ADF
:1001000093968A8652EF06F093968A963B6A3A6AED
:10011000396A800E386E080E3C6EC3DF3B6A3A6A5D
:10012000396A05C038F0040E3C6EBBDF3B6A3A6AA0
:10013000396A06C038F0040E3C6EB3DF3B6A3A6A97
66,11 → 66,11
:10040000010E3B6A3A6A396A386E010E3C6E49DE6B
:100410003B6A3A6A396A1FC038F0030E3C6E41DE0F
:100420003B6A3A6A21C039F020C038F0100E3C6EA9
:1004300038DE93968A8680EF06F0EA6A270EE96E28
:1004300038DE93968A8672EF06F0EA6A270EE96E36
:10044000EF500DE0060E016E006A002EFED7012E61
:10045000FBD77B0E006E002EFED7EF2EF3D7000CDD
:1004600093968A963B6A3A6A396A030E386E080E8A
:100470003C6E17DE93968A868CEF06F093968A96EA
:100470003C6E17DE93968A867EEF06F093968A96F8
:10048000B00E3224FF0F376E3B6A3A6A396A386E13
:10049000200E3C6E06DE3B6A3A6A396A386A200EE4
:1004A0003C6EFFDD015003C036F002C035F001C0E4
131,157 → 131,155
:1008100000C033F03A6A396A386A830E376E18D7E7
:1008200003C02EF002C02DF001C02CF000C02BF050
:100830002BC000F02CC001F02DC002F02EC003F040
:1008400051EF07F093968A963B6A3A6A396A700EBE
:10085000386E080E3C6E25DC93968A865AEF07F0B8
:100860003350D8B471D0006E3750D8B46DD0002654
:1008700004E3810E002668E204D07F0E005E64E38C
:1008800063E034C03BF038503B1A348E388E36501B
:100890003A02F4CF3DF035503902F4CF03F0F3CFF4
:1008A0003CF03A02F3503D26F4503C22000E032265
:1008B00036503902F3503D26F4503C22000E026AB5
:1008C0000322022234503A02F3503C26F450032211
:1008D000000E022234503902F3500326F450022253
:1008E000000E016A012236503802F3503C26F450C3
:1008F0000322000E0222012235503802F350032653
:10090000F4500222000E012234503802F350022625
:10091000F4500122002A01BE05D03C3603360236CF
:1009200001360006000E3CAE0AD0032A0222012244
:10093000015005E1025003E1035001E1002A3BBEF2
:10094000018E3BAE019E04D0006A016A026A036A0E
:100950001BEF05F03350B608336E036A34C037F02E
:10096000348ED8903432353236320332023201328C
:100970000032332EF6D737AE0BD0001E011E021EFA
:10098000031E002AD8B4012AD8B4022AD8B4032AF4
:100990002EEF05F0006A016A026A036A3B6A3C6A4C
:1009A0003D6A3E6A3A503910381037102CE0200E5C
:1009B0003F6ED89033363436353636363B363C3695
:1009C0003D363E363A503E5C08E139503D5C05E12B
:1009D00038503C5C02E137503B5C0FE337503B5EE4
:1009E0003850D8A0383C3C5E3950D8A0393C3D5EE8
:1009F0003A50D8A03A3C3E5ED880003601360236E6
:100A000003363F2ED6D7EA6A3B0EE96E000CE9505A
:100A10002B6E2A502D6E19E029C036F028C035F013
:100A200027C034F026C033F03A6A396A200E386E97
:100A3000820E376E15D703C029F002C028F001C01E
:100A400027F000C026F02D2EE7D729C036F028C0A9
:100A500035F027C034F026C033F07CD703C029F02E
:100A600002C028F001C027F000C026F029AE0DD04A
:100A70002B062B8A261E271E281E291E262AD8B49E
:100A8000272AD8B4282AD8B4292A3B0E326E9A0EC7
:100A9000316ECA0E306E2F6A0A0E2D6E2A50D8B4EF
:100AA0002B2A29C036F028C035F027C034F026C0E4
:100AB00033F032C03AF031C039F030C038F02FC0D6
:100AC00037F068DF0150EFCF26F0ECCF27F0ECCF06
:100AD00028F0ECCF29F000520FE12A282D5C0CE021
:100AE0002B500CE00F0B2D5C01E037E22BBE35D014
:100AF0002BBC04D0200E2DD0200E2B162BAA0CD0F0
:100B00002B9A2A50D8A42B0600502B6E2D0E386E2F
:100B1000DDDC2B50006E2B6A2A502D5C0AE1005060
:100B20002B6E2E0E386ED2DC2B50006E200E2B1644
:100B3000000E300E2BAA0DD02B9A2A50D8A42B06CB
:100B400000502B6E2D0E386EC1DC2B50006E2B6AC0
:100B5000300E002600C038F0B9DC32C036F031C0AB
:100B600035F030C034F02FC033F03A6A396A386A51
:100B70000A0E376E0FDF03C032F002C031F001C041
:100B800030F000C02FF02D2E8CD777EF07F0939622
:100B90008A963B6A3A6A396AB40E386E080E3C6E21
:100BA00051EC00F03B6A3A6A396A386A100E3C6EC2
:100BB00051EC00F0015001C027F000C026F09396E0
:100BC0008A8626C001F027C002F0000C93968A9610
:100BD0003B6A3A6A396A010E386E080E3C6E51EC77
:100BE00000F093968A86B1EF07F0F86AD09EEA6A21
:100BF000E96A939E8A8E9382939093948A94C150CB
:100C0000C00B0F09C16E070EB46E056A010E066EA9
:100C1000076A086A096E0A800A920A940A860A8894
:100C20000A9A0A8C0A9E0B900B92050E0C6E0D6EA2
:100C30000B940E6A0F6A010E106E0B960B98116AD8
:100C4000126A136A146A0B9A030E156E166A176AF3
:100C5000186A196A1A6A1B6A1C6A1D6A1E6A0B9C4A
:100C60000B8E1F6A206A216AC150C00B0F09C16E2A
:100C7000C090C092C094C09EC280B098C69A949E04
:100C800093809392010EC66E000EC76ED190800EB7
:100C9000D56ECD6A000ECA6E000ECB6E9484BD6A0E
:100CA000B76AB66A070EB46E9250926E100E006E5E
:100CB000002EFED70000B450A19CB56A76EF00F07C
:100CC0000A8C010E0F6E0E6A0D6E020E0C6E070E70
:100CD000106E0B8A146A136A126A116A196A186A0A
:100CE000176A166A1D6A1C6A1B6A1A6A0A980A9AA7
:100CF000056A010E066E0A820A900A9484EF00F0DB
:100D000095988C98959A8C9A959C8C9C320E276E0F
:100D10001DEC02F030EF02F0320E276E1DEC02F0F7
:100D2000010E326E3EEC02F003C029F002C028F042
:100D300001C027F000C026F0020E326E3EEC02F039
:100D400003C02DF002C02CF001C02BF000C02AF02F
:100D5000030E326E3EEC02F003C031F002C030F000
:100D600001C02FF000C02EF0040E326E3EEC02F0F7
:100D700003C035F002C034F001C033F000C032F0DF
:100D8000366A365002EC00F0362A006E386E66EC99
:100D900002F00B0E365CF5E129C036F0370E376EE7
:100DA00086EC02F028C036F0370E376E86EC02F083
:100DB00027C036F0370E376E86EC02F026C036F0CC
:100DC000370E376E86EC02F02C0E386E66EC02F0B1
:100DD000200E386E66EC02F02DC036F0370E376EFE
:100DE00086EC02F02CC036F0370E376E86EC02F03F
:100DF0002BC036F0370E376E86EC02F02AC036F084
:100E0000370E376E86EC02F02C0E386E66EC02F070
:100E1000200E386E66EC02F031C036F0370E376EB9
:100E200086EC02F030C036F0370E376E86EC02F0FA
:100E30002FC036F0370E376E86EC02F02EC036F03B
:100E4000370E376E86EC02F02C0E386E66EC02F030
:100E5000200E386E66EC02F035C036F0370E376E75
:100E600086EC02F034C036F0370E376E86EC02F0B6
:100E700033C036F0370E376E86EC02F032C036F0F3
:100E8000370E376E86EC02F0200E386E66EC02F0FC
:100E90000D0E386E66EC02F00A0E386E66EC02F04B
:100EA00085D403C025F002C024F001C023F000C0A7
:100EB00022F0C8D4320E276E1DEC02F0266A2650AE
:100EC0001BEC00F0262A006E386E66EC02F0060E6F
:100ED000265CF5E1890EE96E25C029F024C028F0D2
:100EE00023C027F022C026F0020E2A6E90D5200ED5
:100EF000386E66EC02F00D0E386E66EC02F00A0EEB
:100F0000386E66EC02F0320E276E1DEC02F03FDE0A
:100F100002C027F001C026F0286A285029EC00F012
:100F2000282A006E386E66EC02F0080E285CF5E1A7
:100F300027C036F0370E376E86EC02F026C036F04A
:100F4000370E376E86EC02F0200E386E66EC02F03B
:100F50000D0E386E66EC02F00A0E386E66EC02F08A
:100F600035D695988C88A60E006E002EFED7000010
:100F7000959A8C8A959A8C9A100E006E002EFED748
:100F8000000095988C98959A8C8A959A8C9A0A0E5E
:100F9000276E1DEC02F0FBDD02C027F001C026F039
:100FA000286A285029EC00F0282A006E386E66EC7A
:100FB00002F0080E285CF5E127C036F0370E376ED8
:100FC00086EC02F026C036F0370E376E86EC02F063
:100FD000200E386E66EC02F00D0E386E66EC02F0F4
:100FE0000A0E386E66EC02F0320E276E1DEC02F02F
:100FF000010E326E3EEC02F003C029F002C028F070
:1010000001C027F000C026F0020E326E3EEC02F066
:1010100003C02DF002C02CF001C02BF000C02AF05C
:10102000030E326E3EEC02F003C031F002C030F02D
:1010300001C02FF000C02EF0040E326E3EEC02F024
:1010400003C035F002C034F001C033F000C032F00C
:10105000366A365039EC00F0362A006E386E66EC8F
:1010600002F00A0E365CF5E129C036F0370E376E15
:1010700086EC02F028C036F0370E376E86EC02F0B0
:1010800027C036F0370E376E86EC02F026C036F0F9
:10109000370E376E86EC02F02C0E386E66EC02F0DE
:1010A000200E386E66EC02F02DC036F0370E376E2B
:1010B00086EC02F02CC036F0370E376E86EC02F06C
:1010C0002BC036F0370E376E86EC02F02AC036F0B1
:1010D000370E376E86EC02F02C0E386E66EC02F09E
:1010E000200E386E66EC02F031C036F0370E376EE7
:1010F00086EC02F030C036F0370E376E86EC02F028
:101100002FC036F0370E376E86EC02F02EC036F068
:10111000370E376E86EC02F02C0E386E66EC02F05D
:10112000200E386E66EC02F035C036F0370E376EA2
:1011300086EC02F034C036F0370E376E86EC02F0E3
:1011400033C036F0370E376E86EC02F032C036F020
:10115000370E376E86EC02F0200E386E66EC02F029
:101160000D0E386E66EC02F00A0E386E66EC02F078
:10117000020E266EFA0E276E1DEC02F0262EFAD70E
:041180008FD6030003
:1008400043EF07F03350D8B471D0006E3750D8B4AE
:100850006DD0002604E3810E002668E204D07F0EEE
:10086000005E64E363E034C03BF038503B1A348EE2
:10087000388E36503A02F4CF3DF035503902F4CF7D
:1008800003F0F3CF3CF03A02F3503D26F4503C2203
:10089000000E032236503902F3503D26F4503C221C
:1008A000000E026A0322022234503A02F3503C2620
:1008B000F4500322000E022234503902F350032672
:1008C000F4500222000E016A012236503802F35021
:1008D0003C26F4500322000E022201223550380239
:1008E000F3500326F4500222000E01223450380245
:1008F000F3500226F4500122002A01BE05D03C36F6
:100900000336023601360006000E3CAE0AD0032A3A
:1009100002220122015005E1025003E1035001E1EE
:10092000002A3BBE018E3BAE019E04D0006A016AE4
:10093000026A036A0DEF05F03350B608336E036A9E
:1009400034C037F0348ED8903432353236320332F8
:10095000023201320032332EF6D737AE0BD0001EF2
:10096000011E021E031E002AD8B4012AD8B4022A8E
:10097000D8B4032A20EF05F0006A016A026A036A0C
:100980003B6A3C6A3D6A3E6A3A503910381037106B
:100990002CE0200E3F6ED89033363436353636365E
:1009A0003B363C363D363E363A503E5C08E13950E7
:1009B0003D5C05E138503C5C02E137503B5C0FE3A5
:1009C00037503B5E3850D8A0383C3C5E3950D8A0F8
:1009D000393C3D5E3A50D8A03A3C3E5ED880003665
:1009E0000136023603363F2ED6D7EA6A3B0EE96E51
:1009F000000CE9502B6E2A502D6E19E029C036F0FC
:100A000028C035F027C034F026C033F03A6A396A7E
:100A1000200E386E820E376E15D703C029F002C043
:100A200028F001C027F000C026F02D2EE7D729C0FE
:100A300036F028C035F027C034F026C033F07CD71C
:100A400003C029F002C028F001C027F000C026F042
:100A500029AE0DD02B062B8A261E271E281E291EE6
:100A6000262AD8B4272AD8B4282AD8B4292A3B0E53
:100A7000326E9A0E316ECA0E306E2F6A0A0E2D6ECD
:100A80002A50D8B42B2A29C036F028C035F027C008
:100A900034F026C033F032C03AF031C039F030C003
:100AA00038F02FC037F068DF0150EFCF26F0ECCFE1
:100AB00027F0ECCF28F0ECCF29F000520FE12A28E4
:100AC0002D5C0CE02B500CE00F0B2D5C01E037E2AD
:100AD0002BBE35D02BBC04D0200E2DD0200E2B16D3
:100AE0002BAA0CD02B9A2A50D8A42B0600502B6E80
:100AF0002D0E386EEBDC2B50006E2B6A2A502D5CCD
:100B00000AE100502B6E2E0E386EE0DC2B50006E8A
:100B1000200E2B16000E300E2BAA0DD02B9A2A5029
:100B2000D8A42B0600502B6E2D0E386ECFDC2B5028
:100B3000006E2B6A300E002600C038F0C7DC32C0D1
:100B400036F031C035F030C034F02FC033F03A6A9F
:100B5000396A386A0A0E376E0FDF03C032F002C0FE
:100B600031F001C030F000C02FF02D2E8CD768EF8F
:100B700007F093968A963B6A3A6A396AB40E386EE1
:100B8000080E3C6E51EC00F03B6A3A6A396A386AEA
:100B9000100E3C6E51EC00F0015001C027F000C077
:100BA00026F093968A8626C001F027C002F0000C3A
:100BB00093968A963B6A3A6A396A020E386E080E34
:100BC0003C6E51EC00F093968A86B8EF07F0F86A15
:100BD000D09EEA6AE96A939E8A8E93829390939458
:100BE0008A94C150C00B0F09C16E070EB46E056A1E
:100BF000010E066E076A086A096E0A800A920A9454
:100C00000A860A880A9A0A8C0A9E0B900B92050E95
:100C10000C6E0D6E0B940E6A0F6A010E106E0B9621
:100C20000B98116A126A136A146A0B9A030E156EF6
:100C3000166A176A186A196A1A6A1B6A1C6A1D6A98
:100C40001E6A0B9C0B8E1F6A206A216AC150C00B62
:100C50000F09C16EC090C092C094C09EC280B0986F
:100C6000C69A949E93809392010EC66E000EC76E34
:100C7000D190800ED56ECD6A000ECA6E000ECB6E7E
:100C80009484BD6AB76AB66A070EB46E9250926ECB
:100C9000100E006E002EFED70000B450A19CB56A65
:100CA00076EF00F00A8C010E0F6E0E6A0D6E020ECA
:100CB0000C6E070E106E0B8A146A136A126A116AA0
:100CC000196A186A176A166A1D6A1C6A1B6A1A6A08
:100CD0000A980A9A010E056E066E0A820A900A9414
:100CE00084EF00F095988C98959A8C9A959C8C9CA2
:100CF000320E276E1DEC02F030EF02F0320E276E3E
:100D00001DEC02F0010E326E3EEC02F003C029F041
:100D100002C028F001C027F000C026F0020E326E9B
:100D20003EEC02F003C02DF002C02CF001C02BF00D
:100D300000C02AF0030E326E3EEC02F003C031F028
:100D400002C030F001C02FF000C02EF0040E326E51
:100D50003EEC02F003C035F002C034F001C033F0C5
:100D600000C032F0366A365002EC00F0362A006ECF
:100D7000386E66EC02F00B0E365CF5E129C036F0F9
:100D8000370E376E86EC02F028C036F0370E376E1D
:100D900086EC02F027C036F0370E376E86EC02F094
:100DA00026C036F0370E376E86EC02F02C0E386E09
:100DB00066EC02F0200E386E66EC02F02DC036F0C4
:100DC000370E376E86EC02F02CC036F0370E376ED9
:100DD00086EC02F02BC036F0370E376E86EC02F050
:100DE0002AC036F0370E376E86EC02F02C0E386EC5
:100DF00066EC02F0200E386E66EC02F031C036F080
:100E0000370E376E86EC02F030C036F0370E376E94
:100E100086EC02F02FC036F0370E376E86EC02F00B
:100E20002EC036F0370E376E86EC02F02C0E386E80
:100E300066EC02F0200E386E66EC02F035C036F03B
:100E4000370E376E86EC02F034C036F0370E376E50
:100E500086EC02F033C036F0370E376E86EC02F0C7
:100E600032C036F0370E376E86EC02F0200E386E48
:100E700066EC02F00D0E386E66EC02F00A0E386E6B
:100E800066EC02F093D403C025F002C024F001C048
:100E900023F000C022F0320E276E1DEC02F0266A0D
:100EA00026501BEC00F0262A006E386E66EC02F02D
:100EB000060E265CF5E1890EE96E25C029F024C0F6
:100EC00028F023C027F022C026F0020E2A6E91D50A
:100ED000200E386E66EC02F00D0E386E66EC02F0F5
:100EE0000A0E386E66EC02F0320E276E1DEC02F030
:100EF00040DE02C027F001C026F0286A285029EC05
:100F000000F0282A006E386E66EC02F0080E285CAD
:100F1000F5E127C036F0370E376E86EC02F026C0BA
:100F200036F0370E376E86EC02F0200E386E66EC27
:100F300002F00D0E386E66EC02F00A0E386E66ECAA
:100F400002F095988C88A60E006E002EFED7000049
:100F5000959A8C8A959A8C9A100E006E002EFED768
:100F6000000095988C98959A8C8A959A8C9A20D6A0
:100F70000A0E276E1DEC02F0FCDD02C027F001C056
:100F800026F0286A285029EC00F0282A006E386ED6
:100F900066EC02F0080E285CF5E127C036F0370E4B
:100FA000376E86EC02F026C036F0370E376E86ECD0
:100FB00002F0200E386E66EC02F00D0E386E66EC14
:100FC00002F00A0E386E66EC02F0320E276E1DEC4F
:100FD00002F0010E326E3EEC02F003C029F002C0B6
:100FE00028F001C027F000C026F0020E326E3EEC61
:100FF00002F003C02DF002C02CF001C02BF000C0A5
:101000002AF0030E326E3EEC02F003C031F002C053
:1010100030F001C02FF000C02EF0040E326E3EEC16
:1010200002F003C035F002C034F001C033F000C05C
:1010300032F0366A365039EC00F0362A006E386EDF
:1010400066EC02F00A0E365CF5E129C036F0370E88
:10105000376E86EC02F028C036F0370E376E86EC1D
:1010600002F027C036F0370E376E86EC02F026C04D
:1010700036F0370E376E86EC02F02C0E386E66ECCA
:1010800002F0200E386E66EC02F02DC036F0370EFE
:10109000376E86EC02F02CC036F0370E376E86ECD9
:1010A00002F02BC036F0370E376E86EC02F02AC005
:1010B00036F0370E376E86EC02F02C0E386E66EC8A
:1010C00002F0200E386E66EC02F031C036F0370EBA
:1010D000376E86EC02F030C036F0370E376E86EC95
:1010E00002F02FC036F0370E376E86EC02F02EC0BD
:1010F00036F0370E376E86EC02F02C0E386E66EC4A
:1011000002F0200E386E66EC02F035C036F0370E75
:10111000376E86EC02F034C036F0370E376E86EC50
:1011200002F033C036F0370E376E86EC02F032C074
:1011300036F0370E376E86EC02F0200E386E66EC15
:1011400002F00D0E386E66EC02F00A0E386E66EC98
:1011500002F0020E266EFA0E276E1DEC02F0262E0D
:06116000FAD790D603004F
:020000040030CA
:0E00000027CC390E0087A1000FC00FE00F4083
:00000001FF
;PIC18F4550
;CRC=432F CREATED="01-II-11 13:13"
;CRC=4DBD CREATED="01-II-11 14:45"
/Modules/TDC/GP201A/SW/PICinterface/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=GP2.h
4=
5=