/Modules/TDC/GP201A/SW/PICinterface/main.c
1,10 → 1,11
#include "main.h"
 
#define VERSION 0.1
#define VERSION 0.2
 
#define START PIN_D4
#define STOP1 PIN_D5
#define STOP2 PIN_D6
 
#include "GP2.h"
 
#define ONE_WIRE_PIN PIN_E2
12,8 → 13,6
 
void main()
{
float temperature;
 
setup_adc_ports(NO_ANALOGS|VSS_VDD);
setup_adc(ADC_CLOCK_DIV_2);
setup_psp(PSP_DISABLED);
28,28 → 27,6
 
TDC_reset();
MRange=TDC_MRANGE2;
hitin1=TDC_HITIN1_1;
hitin2=TDC_HITIN2_0;
hit1=TDC_MRANGE2_HIT1_START;
hit2=TDC_MRANGE2_HIT2_1CH1;
en_int=(TDC_INT_ALU | TDC_INT_ENDHIT | TDC_INT_TIMEOUT);
en_err_val=TDC_ERRVAL_EN;
delval1=0x0;
delval2=0x0;
delval3=0x0;
calibrate=TDC_CALIBRATE_DIS;
disautocal=TDC_AUTOCAL_EN;
firenum=TDC_FIRENUM_1;
div_fire=TDC_DIV_FIRE_2;
Tcycle=TDC_TCYSLE_LONG;
portnum=TDC_TPORTNUM_2;
fakenum=TDC_TFAKENUM_2;
TDC_update_registers();
output_low(START);
output_low(STOP1);
output_low(STOP2);
56,92 → 33,215
 
delay_ms(50);
 
//write raw register values
/* output_low(TDC_ENABLE);
spi_xfer(TDC_stream,0x80338AE8,32);
/*
1 0 0 0 0 ADR2 ADR1 ADR0 Write into address ADR
1 0 1 1 0 ADR2 ADR1 ADR0 Read from address ADR
0 1 1 1 0 0 0 0 Init
0 1 0 1 0 0 0 0 Power On Reset
0 0 0 0 0 0 0 1 Start_Cycle
0 0 0 0 0 0 1 0 Start_Temp
0 0 0 0 0 0 1 1 Start_Cal_Resonator
0 0 0 0 0 1 0 0 Start_Cal_TDC
*/
 
int32 ble,ret32;
int16 ret16;
int8 ret8;
 
while(TRUE)
{
TDC_reset();
delay_ms(100);
//----------------------------------------------- Nastaveni registru
output_low(TDC_ENABLE);
ble=0;
ble=(8<<28)|(0<<24);
ble|=(0<<20)|(0<<16)|(0<<14)|(3<<12)|(1<<10)|(0<<9)|(0<<8)|(0<<7)|(1<<6)|(1<<5)|(0<<4)|(1<<3)|(0<<2)|(0<<1)|0;
spi_xfer(TDC_stream,ble,32);
output_high(TDC_ENABLE);
 
output_low(TDC_ENABLE);
spi_xfer(TDC_stream,0x81211400,32);
ble=0;
ble=(8<<28)|(1<<24);
ble|=(2<<20)|(1<<16)|(0<<15)|(1<<14)|(0<<11)|(4<<8)|0;
spi_xfer(TDC_stream,ble,32);
output_high(TDC_ENABLE);
output_low(TDC_ENABLE);
spi_xfer(TDC_stream,0x82E03200,32);
ble=0;
ble=(8<<28)|(2<<24);
ble|=(1<<21)|(1<<20)|(1<<19)|0;
spi_xfer(TDC_stream,ble,32);
output_high(TDC_ENABLE);
 
output_low(TDC_ENABLE);
spi_xfer(TDC_stream,0x83083300,32);
ble=0;
ble=(8<<28)|(3<<24);
ble|=(0<<22)|(1<<21)|(1<<20)|(1<<19)|0;
spi_xfer(TDC_stream,ble,32);
output_high(TDC_ENABLE);
 
output_low(TDC_ENABLE);
spi_xfer(TDC_stream,0x84203400,32);
ble=0;
ble=(8<<28)|(4<<24);
ble|=(4<<19)|0;
spi_xfer(TDC_stream,ble,32);
output_high(TDC_ENABLE);
 
output_low(TDC_ENABLE);
spi_xfer(TDC_stream,0x85080000,32);
ble=0;
ble=(8<<28)|(5<<24);
ble|=(0<<21)|(0<<20)|(0<<19)|(0<<16)|0;
spi_xfer(TDC_stream,ble,32);
output_high(TDC_ENABLE);
*/
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);
while(true)
{
temperature = ds1820_read();
// TDC_init();
//----------------------------------------------- Vypis registru
output_low(TDC_ENABLE);
ret8=0;
ret8=(0b1011<<4)|0;
spi_xfer(TDC_stream,ret8,8);
ret32=spi_xfer(TDC_stream,0,32);
output_high(TDC_ENABLE);
printf("- %LX ", ret32);
output_low(TDC_ENABLE);
ret8=0;
ret8=(0b1011<<4)|1;
spi_xfer(TDC_stream,ret8,8);
ret32=spi_xfer(TDC_stream,0,32);
output_high(TDC_ENABLE);
printf("%LX ", ret32);
output_low(TDC_ENABLE);
ret8=0;
ret8=(0b1011<<4)|2;
spi_xfer(TDC_stream,ret8,8);
ret32=spi_xfer(TDC_stream,0,32);
output_high(TDC_ENABLE);
printf("%LX ", ret32);
output_low(TDC_ENABLE);
ret8=0;
ret8=(0b1011<<4)|3;
spi_xfer(TDC_stream,ret8,8);
ret32=spi_xfer(TDC_stream,0,32);
output_high(TDC_ENABLE);
printf("%LX ", ret32);
output_low(TDC_ENABLE);
ret8=0;
ret8=(0b1011<<4)|4;
spi_xfer(TDC_stream,ret8,8);
ret16=spi_xfer(TDC_stream,0,16);
output_high(TDC_ENABLE);
printf("[%Lu %Lu %Lu %Lu %Lu %Lu %Lu] ", (1&(ret16)>>12), (1&(ret16)>>11), (1&(ret16)>>10), 1&(ret16)>>9, 7&(ret16)>>6, 7&(ret16)>>3, 7&ret16);
output_low(TDC_ENABLE);
ret8=0;
ret8=(0b1011<<4)|5;
spi_xfer(TDC_stream,ret8,8);
ret8=spi_xfer(TDC_stream,0,8);
output_high(TDC_ENABLE);
printf("%X\r\n", ret8);
//----------------------------------------------- Mereni
TDC_init();
delay_ms(50);
printf("Temp: %f \r\n", temperature);
delay_ms(50);
printf("status: %LX \r\n", TDC_get_status());
 
// TDC_start_cycle();
TDC_start_cycle();
 
// delay_us(10);
delay_ms(200);
output_high(STOP2); // Merime jenom jednim kanalem (druhy zrejme musi byt v H)
output_high(START);
// delay_us(1);
output_low(START);
delay_us(1);
delay_us(100);
// output_low(START);
output_high(STOP1);
output_low(STOP1);
delay_us(1);
output_high(STOP1);
// delay_us(10);
// 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_low(START);
delay_us(1);
 
// output_high(STOP2);
// delay_us(10);
// output_low(START);
output_high(STOP1);
// output_low(STOP2);
// delay_us(500);
// output_high(STOP2);
// delay_us(10);
output_low(STOP1);
// delay_us(500);
// output_high(STOP2);
// delay_us(10);
// output_low(STOP2);
delay_us(1);
 
 
// delay_ms(10);
TDC_start_temp();
 
delay_ms(10);
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));
//----------------------------------------------- Pocitani
int32 nn;
for(nn=3;nn<=5;nn++)
{
delay_ms(500);
};
output_low(TDC_ENABLE);
ret8=0;
ret8=(0b1011<<4)|0;
spi_xfer(TDC_stream,ret8,8);
ret32=spi_xfer(TDC_stream,0,32);
output_high(TDC_ENABLE);
printf("* %LX ", ret32);
output_low(TDC_ENABLE);
ret8=0;
ret8=(0b1011<<4)|1;
spi_xfer(TDC_stream,ret8,8);
ret32=spi_xfer(TDC_stream,0,32);
output_high(TDC_ENABLE);
printf("%LX ", ret32);
output_low(TDC_ENABLE);
ret8=0;
ret8=(0b1011<<4)|2;
spi_xfer(TDC_stream,ret8,8);
ret32=spi_xfer(TDC_stream,0,32);
output_high(TDC_ENABLE);
printf("%LX ", ret32);
output_low(TDC_ENABLE);
ret8=0;
ret8=(0b1011<<4)|3;
spi_xfer(TDC_stream,ret8,8);
ret32=spi_xfer(TDC_stream,0,32);
output_high(TDC_ENABLE);
printf("%LX ", ret32);
output_low(TDC_ENABLE);
ret8=0;
ret8=(0b1011<<4)|4;
spi_xfer(TDC_stream,ret8,8);
ret16=spi_xfer(TDC_stream,0,16);
output_high(TDC_ENABLE);
printf("[%Lu %Lu %Lu %Lu %Lu %Lu %Lu] ", (1&(ret16)>>12), (1&(ret16)>>11), (1&(ret16)>>10), 1&(ret16)>>9, 7&(ret16)>>6, 7&(ret16)>>3, 7&ret16);
output_low(TDC_ENABLE);
ret8=0;
ret8=(0b1011<<4)|5;
spi_xfer(TDC_stream,ret8,8);
ret8=spi_xfer(TDC_stream,0,8);
output_high(TDC_ENABLE);
printf("%X\r\n", ret8);
// Next calculation
output_low(TDC_ENABLE);
ble=0;
ble=(8<<28)|(1<<24);
ble|=(nn<<20)|(1<<16)|(0<<15)|(1<<14)|(0<<11)|(4<<8)|0x00;
spi_xfer(TDC_stream,ble,32);
output_high(TDC_ENABLE);
}
}
 
}
/Modules/TDC/GP201A/SW/PICinterface/main.h
35,7 → 35,7
#use rs232(baud=9600,parity=N,xmit=PIN_B7,rcv=PIN_B6,bits=8)
 
#define TDC_ENABLE PIN_B3 //enable pin for SPI communication with TDC
#use spi(DI=PIN_B1, DO=PIN_B0, CLK=PIN_B2, stream=TDC_stream, bits=32) // uses software SPI
#use spi(DI=PIN_B1, DO=PIN_B0, CLK=PIN_B2, stream=TDC_stream, bits=32,baud=9600) // uses software SPI
 
 
 
/Modules/TDC/GP201A/SW/PICinterface/main.hex
1,285 → 1,202
:020000040000FA
:10000000E7EF05F0F76A140FF66E000EF72209000D
:10001000F550120063616C6962726174653A202563
:100020004C582C20254C582C20254C582C20254C45
:1000300058200D0A0000F76A460FF66E000EF722F0
:100040000900F550120054656D703A202566200DA8
:100050000A00F76A620FF66E000EF7220900F550EB
:1000600012007374617475733A20254C58200D0A80
:100070000000F76A820FF66E000EF7220900F550B5
:1000800012006D656173757265643A20254C582CB9
:1000900020254C582C20254C582C20254C58200D20
:1000A0000A003C50200807E03D6E383639363A36B3
:1000B0003B363D2EFAD79382939093948A943CC01A
:1000C0003DF08A843BAE8A903BBE8A803836393612
:1000D0003A363B368A94003601360236033681A220
:1000E000009081B200803D2EECD7000C93968A964A
:1000F0003B6A3A6A396A500E386E080E3C6ED1DFA0
:1001000093968A8652EF06F093968A963B6A3A6AED
: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
:1004300038DE93968A8672EF06F0EA6A270EE96E36
:10044000EF500DE0060E016E006A002EFED7012E61
:10045000FBD77B0E006E002EFED7EF2EF3D7000CDD
:1004600093968A963B6A3A6A396A030E386E080E8A
:100470003C6E17DE93968A867EEF06F093968A96F8
:10048000B00E3224FF0F376E3B6A3A6A396A386E13
:10049000200E3C6E06DE3B6A3A6A396A386A200EE4
:1004A0003C6EFFDD015003C036F002C035F001C0E4
:1004B00034F000C033F093968A8633C000F034C025
:1004C00001F035C002F036C003F0000C939E8A9E06
:1004D000080E016E00D00000018E0ED0019E383251
:1004E000D8B08A8ED8A08A9E018C06D0019C012E9D
:1004F000F6D700D000008A8EA70EE96EE92EFED74F
:1005000000D001BEEBD701BCF1D7000C37BE0FD035
:100510000F0E006E363800160A0E005C03E2300E35
:10052000002602D03750002600C038F0CFDF0F0E73
:1005300036160A0E365C02E2300E02D0379E375075
:10054000362636C038F0C2DF000C030E305E09E3F9
:10055000EA6A300EE96EEF5004E001D000D0EF2ED1
:10056000FDD7000C96948D94020E2F6EF90E306E0E
:10057000ECDF2F2EFBD79684020E2F6EF90E306E15
:10058000E4DF2F2EFBD79684000C306A305007082A
:1005900019E396948D94030E006E002EFED7D8803A
:1005A0002F3202E28D9401D08D849694630E006EFA
:1005B000002EFED700D09684030E006E002EFED7CC
:1005C000302AE4D7000C2F6A2F50070819E39694BD
:1005D0008D94030E006E002EFED796840D0E006ED5
:1005E000002EFED7968484B402D0D89001D0D88053
:1005F0003032C70E006E002EFED700D02F2AE4D76F
:1006000030C001F0000C8E0E006E30C001F02FC023
:1006100002F0036A30AE05D0011E021E022A01E17B
:10062000012A015209E102C001F0026A080E005ECF
:10063000015202E1006A0AD0D89001BE04D002360D
:1006400001360006F9D730BE01D0019EFAEF03F063
:100650003350D8B4A5D03F6E3750D8B4A1D03F5E48
:1006600005E37F0E3F26D8B09BD006D0810E3F5EBB
:10067000D8A096D0D8B494D03FC000F0016A026AE6
:10068000036A3E6A34C03DF03D8E35C03CF036C052
:100690003BF0190E3F6E3A503B5E0DE2010E3C5EA0
:1006A0000AE23D5E08E23E5E06E23E2A3D2A3C2A20
:1006B0003A503B2628D039503C5E12E2010E3D5E96
:1006C0000FE23E5E0DE23E2A3D2A39503C263A506A
:1006D0003B2619E33C2A17E13D2A15E13E2A13D0B7
:1006E000385080093D5E0EE2010E3E5E0BE23E2A6E
:1006F000385080093D2639503C26E9E33D2AE7E1A0
:100700003E2AE5D703803F2E01D00BD0D8903B3650
:100710003C363D363E36D8900336023601364036FA
:10072000BAD740A006D0D89001320232033240320C
:1007300002D0000635E040BE1ED0D8903B363C3695
:100740003D363E363A503B5E07E2010E3C5E04E227
:100750003D5E02E23E5E1AE339503C5E05E2010E68
:100760003D5E02E23E5E12E3385080093D5E03E2E8
:10077000010E3E5E0BE3032A09E1022A07E1012A8A
:1007800005E1002A0DE001320232033234C03FF0AD
:1007900038503F1A3FAE02D0018E06D0019E04D0E1
:1007A000006A016A026A036A10EF04F0266ADADE60
:1007B000CC0E2F6EEADE440E2F6EE7DE265204E1E9
:1007C00002DF01C026F0FAD7CDDECC0E2F6EDDDEC3
:1007D000BE0E2F6EDADEF7DE01C027F0F4DE01C0B8
:1007E00028F028C02AF027C029F02AC030F029C0FC
:1007F0002FF009D700C02FF001C030F002C031F057
:1008000003C032F003C036F002C035F001C034F04E
:1008100000C033F03A6A396A386A830E376E18D7E7
:1008200003C02EF002C02DF001C02CF000C02BF050
:100830002BC000F02CC001F02DC002F02EC003F040
: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
:10000000FBEF00F03450200807E0356E3036313613
:1000100032363336352EFAD79382939093948A945E
:1000200034C035F08A8433AE8A9033BE8A8030364D
:100030003136323633368A9400360136023603368C
:1000400081A2009081B20080352EECD7000C9396EF
:100050008A96336A326A316A500E306E080E346EF8
:10006000D1DF93968A86000CEA6A310EE96EEF5072
:100070000DE0060E016E006A002EFED7012EFBD7A2
:100080007B0E006E002EFED7EF2EF3D7000C939E52
:100090008A9E080E016E00D00000018E0ED0019ED7
:1000A0004732D8B08A8ED8A08A9E018C06D0019C97
:1000B000012EF6D700D000008A8EA70EE96EE92E39
:1000C000FED700D001BEEBD701BCF1D7000C31BE8A
:1000D0000FD00F0E006E303800160A0E005C03E2DF
:1000E000300E002602D03150002600C047F0CFDF8E
:1000F0000F0E30160A0E305C02E2300E02D0319E36
:100100003150302630C047F0C2DF000CEACF46F055
:10011000E9CF45F03F38F009416E4126E20F426ECB
:10012000320F446E3F500F0B422642264426E90F01
:10013000436E432643263E380F0B43264426433660
:100140004436441E44363E500F0B44264136070EBB
:10015000406E0A0E43064426FDE342064326FDE3B5
:1001600041064226FDE340064126FDE3EA6A400ED1
:10017000E96E070E4514459CE926440EE95CD8B4A7
:10018000458CEF50006E08E145BC06D045B813D051
:1001900045B602D0200E03D045864598300E002685
:1001A000EACF3FF0E9CF3EF000C047F070DF3FC03C
:1001B000EAFF3EC0E9FFEE5045ACDFD7000C939656
:1001C0008A96336A326A316A700E306E080E346E67
:1001D00019DF93968A86C4EF03F093968A96336A62
:1001E000326A316A010E306E080E346E0BDF939660
:1001F0008A86C8EF03F0F86AD09EEA6AE96A939E9D
:100200008A8E9382939093948A94046A010E056E69
:10021000066A076A086E09800992099409860988A6
:10022000099A098C099E0A900A92050E0B6E0C6EB3
:100230000A940D6A0E6A010E0F6E0A960A98136AE6
:10024000126A116A106A0A9A030E146E186A176A03
:10025000166A156A1C6A1B6A1A6A196A1D6A0A9C60
:100260000A8E1E6A206A1F6AC150C00B0F09C16E38
:10027000070EB46EC150C00B0F09C16EC090C09282
:10028000C094C09EC2809698C69A949E9380939282
:10029000010EC66E000EC76ED190800ED56ECD6A6F
:1002A000000ECA6E000ECB6E9484BD6AB76AB66A41
:1002B000070EB46E9250926E100E006E002EFED796
:1002C0000000B450A19CB56AC2DE95988C98959AAE
: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=4DBD CREATED="01-II-11 14:45"
;CRC=4981 CREATED="27-2-11 22:22"
/Modules/TDC/GP201A/SW/PICinterface/main.pjt
16,12 → 16,13
[Windows]
0=0000 %S 0 0 796 451 3 0
[Opened Files]
1=.\main.c
2=
3=GP2.h
4=
5=
6=
1=main.c
2=1wire.c
3=ds1820.c
4=GP2.c
5=GP2.h
6=main.h
7=
[Target Data]
OptionString=-p +FH
FileList=D:\MLAB\Modules\TDC\GP201A\SW\PICinterface\.\main.c