/Modules/Sensors/SHT25V01A/SW/PIC16F887/main.bak
1,19 → 1,109
#include <16F887.h>
#device adc=8
#include "main.h"
 
#FUSES NOWDT //No Watch Dog Timer
#FUSES INTRC //Internal RC Osc
#FUSES NOPUT //No Power Up Timer
#FUSES MCLR //Master Clear pin enabled
#FUSES NOPROTECT //Code not protected from reading
#FUSES NOCPD //No EE protection
#FUSES NOBROWNOUT //No brownout reset
#FUSES IESO //Internal External Switch Over mode enabled
#FUSES FCMEN //Fail-safe clock monitor enabled
#FUSES NOLVP //No low voltage prgming, B3(PIC16) or B5(PIC18) used for I/O
#FUSES NODEBUG //No Debug mode for ICD
#FUSES NOWRT //Program memory not write protected
#FUSES BORV40 //Brownout reset at 4.0V
void SHT25_soft_reset()
{
i2c_start(); // Start condition
i2c_write(0x80); // Device address
i2c_write(0xFE); // Device command
i2c_stop(); // Stop condition
}
 
#use delay(clock=8000000)
unsigned int8 SHT25_setup()
{
unsigned int8 reg;
 
i2c_start(); // Start condition
i2c_write(0x80); // Device address
i2c_write(0xE7); // Device command
// i2c_stop(); // Stop condition
 
i2c_start(); // Start condition
i2c_write(0x81); // Device address
reg=i2c_read(0); // Device command
i2c_stop(); // Stop condition
return (reg);
}
 
float SHT25_get_temp()
{
unsigned int8 MSB, LSB, Check;
unsigned int16 data;
 
i2c_start();
I2C_Write(0x80);
I2C_write(0xE3);
i2c_stop();
delay_ms(100);
i2c_start();
I2C_Write(0x81);
MSB=i2c_read(1);
LSB=i2c_read(1);
Check=i2c_read(0);
i2c_stop();
printf("%X %X %X\r\n",MSB, LSB, Check);
LSB = LSB >> 2; // trow out status bits
 
data = (((unsigned int16) MSB << 8) + (LSB << 4));
return(-46.85 + 175.72*((float)data/0xFFFF));
}
 
float SHT25_get_hum()
{
unsigned int8 MSB, LSB, Check;
unsigned int16 data;
 
i2c_start(); //RH
I2C_Write(0x80);
I2C_write(0xE5);
// i2c_stop();
 
delay_ms(100);
 
i2c_start();
I2C_Write(0x81);
MSB=i2c_read(1);
LSB=i2c_read(1);
Check=i2c_read(0);
i2c_stop();
 
printf("%X %X %X\r\n",MSB, LSB, Check);
 
LSB = LSB >> 2; // trow out status bits
 
data = (((unsigned int16) MSB << 8) + (LSB << 4) );
return( -6.0 + 125.0*((float)data/0xFFFF));
}
 
 
void main()
{
 
setup_adc_ports(NO_ANALOGS|VSS_VDD);
setup_adc(ADC_CLOCK_DIV_2);
setup_spi(SPI_SS_DISABLED);
setup_timer_0(RTCC_INTERNAL|RTCC_DIV_1);
setup_timer_1(T1_DISABLED);
setup_timer_2(T2_DISABLED,0,1);
setup_ccp1(CCP_OFF);
setup_comparator(NC_NC_NC_NC);
 
void SHT25_soft_reset();
printf("SHT25 humidity and temperature sensor example \r\n",);
delay_ms (500);
 
while(TRUE)
{
printf("setup: %X \r\n",SHT25_setup());
delay_ms (500);
printf("Temp: %f \r\n",SHT25_get_temp());
delay_ms (500);
printf("Hum: %f \r\n",SHT25_get_hum());
delay_ms (1000);
}
}
 
/Modules/Sensors/SHT25V01A/SW/PIC16F887/main.c
1,75 → 1,107
#include "main.h"
 
void main()
void SHT25_soft_reset()
{
i2c_start(); // Start condition
i2c_write(0x80); // Device address
i2c_write(0xFE); // Device command
i2c_stop(); // Stop condition
}
 
setup_adc_ports(NO_ANALOGS|VSS_VDD);
setup_adc(ADC_CLOCK_DIV_2);
setup_spi(SPI_SS_DISABLED);
setup_timer_0(RTCC_INTERNAL|RTCC_DIV_1);
setup_timer_1(T1_DISABLED);
setup_timer_2(T2_DISABLED,0,1);
setup_ccp1(CCP_OFF);
setup_comparator(NC_NC_NC_NC);// This device COMP currently not supported by the PICWizard
unsigned int8 SHT25_setup()
{
unsigned int8 reg;
 
printf("Simple Thermomether \r\n",);
i2c_start(); // Start condition
i2c_write(0x80); // Device address
i2c_write(0xE7); // Device command
// i2c_stop(); // Stop condition
 
int16 data1, data2, data3;
 
int XL,XH,YL,YH,ZL,ZH;
i2c_start(); // Start condition
i2c_write(0x81); // Device address
reg=i2c_read(0); // Device command
i2c_stop(); // Stop condition
while(TRUE)
{
return (reg);
}
 
data1=0;
data2=0 ;
float SHT25_get_temp()
{
unsigned int8 MSB, LSB, Check;
unsigned int16 data;
 
 
//akcelerometr
int1 ack;
i2c_start(); // If the write command is acknowledged,
ack = i2c_write(0x81);//hen the device is ready.
i2c_start();
I2C_Write(0x80);
I2C_write(0xE3);
i2c_stop();
ack=!ack;
delay_ms(100);
i2c_stop(); //T
 
i2c_start();
I2C_Write(0x80);
I2C_write(0xF3);
// i2c_stop();
i2c_start();
I2C_Write(0x81);
XH=i2c_read(0);
XL=i2c_read(0);
i2c_stop();
MSB=i2c_read(1);
LSB=i2c_read(1);
Check=i2c_read(0);
i2c_stop();
LSB = LSB >> 2; // trow out status bits
 
i2c_start(); //RH
data = (((unsigned int16) MSB << 8) + (LSB << 4));
return(-46.85 + 175.72*((float)data/0xFFFF));
}
 
float SHT25_get_hum()
{
unsigned int8 MSB, LSB, Check;
unsigned int16 data;
 
i2c_start(); //RH
I2C_Write(0x80);
I2C_write(0xF5);
// i2c_stop();
I2C_write(0xE5);
// i2c_stop();
 
delay_ms(100);
 
i2c_start();
I2C_Write(0x81);
YH=i2c_read(0);
YL=i2c_read(0);
i2c_stop();
MSB=i2c_read(1);
LSB=i2c_read(1);
Check=i2c_read(0);
i2c_stop();
 
data1 = (((unsigned int16) XH << 8) + XL>>2 );
data2 = (((unsigned int16) YH << 8) + YL>>2);
// printf("%X %X %X\r\n",MSB, LSB, Check);
 
LSB = LSB >> 2; // trow out status bits
 
printf("Stav: %d (procenta)\r\n", ack);
data = (((unsigned int16) MSB << 8) + (LSB << 4) );
return( -6.0 + 125.0*((float)data/0xFFFF));
}
 
printf("Stav: %Ld(procenta)\r\n", data1);
printf("Stav: %Ld(procenta)\r\n", data2);
 
delay_ms (2000);
void main()
{
 
}
setup_adc_ports(NO_ANALOGS|VSS_VDD);
setup_adc(ADC_CLOCK_DIV_2);
setup_spi(SPI_SS_DISABLED);
setup_timer_0(RTCC_INTERNAL|RTCC_DIV_1);
setup_timer_1(T1_DISABLED);
setup_timer_2(T2_DISABLED,0,1);
setup_ccp1(CCP_OFF);
setup_comparator(NC_NC_NC_NC);
 
void SHT25_soft_reset();
printf("SHT25 humidity and temperature sensor example \r\n",);
delay_ms (500);
 
while(TRUE)
{
printf("setup: %X \r\n",SHT25_setup());
delay_ms (500);
printf("Temp: %f \r\n",SHT25_get_temp());
delay_ms (500);
printf("Hum: %f \r\n",SHT25_get_hum());
delay_ms (1000);
}
}
 
/Modules/Sensors/SHT25V01A/SW/PIC16F887/main.cof
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/Modules/Sensors/SHT25V01A/SW/PIC16F887/main.err
1,5 → 1,2
>>> Warning 202 "main.c" Line 17(21,26): Variable never used: data3
>>> Warning 202 "main.c" Line 19(17,19): Variable never used: ZL
>>> Warning 202 "main.c" Line 19(20,22): Variable never used: ZH
Memory usage: ROM=14% RAM=2% - 8%
0 Errors, 3 Warnings.
Memory usage: ROM=26% RAM=3% - 10%
0 Errors, 0 Warnings.
/Modules/Sensors/SHT25V01A/SW/PIC16F887/main.esym
1,7 → 1,7
D G "__PCM__" 0 77 ""4.106""
D G "__DEVICE__" 0 77 "887"
D G "__DATE__" 0 77 ""13-IV-13""
D G "__TIME__" 0 77 ""23:28:46"" "Standard Header file for the PIC16F887 device ////////////////"
D G "__PCM__" 0 111 ""4.106""
D G "__DEVICE__" 0 111 "887"
D G "__DATE__" 0 111 ""14-IV-13""
D G "__TIME__" 0 111 ""01:31:53"" "Standard Header file for the PIC16F887 device ////////////////"
d G "PIN_A0" 2 20 "40"
d G "PIN_A1" 2 21 "41"
d G "PIN_A2" 2 22 "42"
273,25 → 273,37
d G "INT_RB5" 2 418 "0x0200B08"
d G "INT_RB6" 2 419 "0x0400B08"
d G "INT_RB7" 2 420 "0x0800B08"
F G "main" 0 3 "void()"
C L "main" 0 13 1 "FUNCTION"
V L "data1" 0 17 "int16"
V L "data2" 0 17 "int16"
V L "data3" 0 17 "int16"
V L "XL" 0 19 "int8"
V L "XH" 0 19 "int8"
V L "YL" 0 19 "int8"
V L "YH" 0 19 "int8"
V L "ZL" 0 19 "int8"
V L "ZH" 0 19 "int8"
C L "main" 0 13 1 "FUNCTION"
V L "ack" 0 29 "int1"
C L "main" 0 13 1 "FUNCTION"
C L "main" 0 13 1 "FUNCTION"
C L "main" 0 13 1 "FUNCTION"
C L "main" 0 13 1 "FUNCTION"
C L "main" 0 13 1 "FUNCTION"
C L "main" 0 13 1 "FUNCTION"
F G "SHT25_soft_reset" 0 3 "void()"
C L "SHT25_soft_reset" 0 5 1 "FUNCTION"
C L "SHT25_soft_reset" 0 5 1 "FUNCTION"
C L "SHT25_soft_reset" 0 5 1 "FUNCTION"
C L "SHT25_soft_reset" 0 5 1 "FUNCTION"
F G "SHT25_setup" 0 11 "int8()"
V L "reg" 0 13 "int8"
C L "SHT25_setup" 0 5 1 "FUNCTION"
C L "SHT25_setup" 0 5 1 "FUNCTION"
C L "SHT25_setup" 0 5 2 "FUNCTION"
C L "SHT25_setup" 0 5 1 "FUNCTION"
C L "SHT25_setup" 0 5 1 "FUNCTION"
C L "SHT25_setup" 0 5 1 "FUNCTION"
C L "SHT25_setup" 0 5 1 "FUNCTION"
F G "SHT25_get_temp" 0 28 "float()"
V L "MSB" 0 30 "int8"
V L "LSB" 0 30 "int8"
V L "Check" 0 30 "int8"
V L "data" 0 31 "int16"
C L "SHT25_get_temp" 0 5 1 "FUNCTION"
F G "SHT25_get_hum" 0 53 "float()"
V L "MSB" 0 55 "int8"
V L "LSB" 0 55 "int8"
V L "Check" 0 55 "int8"
V L "data" 0 56 "int16"
C L "SHT25_get_hum" 0 5 1 "FUNCTION"
C L "SHT25_get_hum" 0 5 1 "FUNCTION"
C L "SHT25_get_hum" 0 5 1 "FUNCTION"
C L "SHT25_get_hum" 0 5 1 "FUNCTION"
F G "MAIN" 0 81 "void()"
F G "SHT25_soft_reset" 0 93 "void()"
F B "reset_cpu" 0 0
F B "abs" 1 0
F B "sleep_ulpwu" 1 0
/Modules/Sensors/SHT25V01A/SW/PIC16F887/main.h
2,7 → 2,7
#device adc=8
 
#FUSES NOWDT //No Watch Dog Timer
#FUSES INTRC //Internal RC Osc
#FUSES INTRC_IO //Internal RC Osc
#FUSES NOPUT //No Power Up Timer
#FUSES MCLR //Master Clear pin enabled
#FUSES NOPROTECT //Code not protected from reading
18,5 → 18,5
#use delay(clock=8000000)
 
#use i2c(master, sda=PIN_C4, scl=PIN_C3)
#use rs232(baud=9600,parity=N,xmit=PIN_B3,rcv=PIN_B2,bits=8) //rcv TXD xmit RXD
#use rs232(baud=9600,parity=N,xmit=PIN_B7,rcv=PIN_B6,bits=8) //rcv TXD xmit RXD
 
/Modules/Sensors/SHT25V01A/SW/PIC16F887/main.hex
1,148 → 1,276
:1000000002308A008B2A0000D3346D38EC32202A6B
:10001000E832F236EF36653AE8327210A0060A008E
:10002000533A613B3A10253220147039EF3165376D
:10003000F430A9060A00533A613B3A1025266414AD
:100040007039EF316537F430A9060A00533A613B45
:100050003A10252664147039EF316537F430A9065B
:100060000A0083168611831286110830F80038289A
:100070000000F8174928F813B70C03188615031C5D
:100080008611781749287813F80B3C284728000078
:1000900086153F308400840B4B280000F81B3B285A
:1000A000781B43280800831603178C170C140000D4
:1000B000000083120C087F39031997280313AE0040
:1000C00003170D080313AF0003170F080313B00045
:1000D0002E08B70031202F0803178D0003133008B6
:1000E00003178F0083168C170C1400000000831276
:1000F0000C0D0E0D7F39031997280313AE0003175B
:100100000D080313AF0003170F080313B0002E08E8
:10011000B70031202F0803178D0003133008031791
:100120008F008D0A03198F0A031353280317031333
:100130008A110A12F32A0830F80000008711A01172
:1001400020088316870000008312AE0D0712031CDF
:10015000AF282016200883168700B32883122012A8
:1001600020088316870000008312A015200883163C
:1001700087008312871DBA28F80B9D28000087117D
:10018000A011200883168700000083122016200883
:1001900083168700000000008312A0152008831634
:1001A00087008312871DD228F8010000071A7814EF
:1001B0008711A011200883168700831207122012CE
:1001C000200883168700831208000830AF007708E4
:1001D000B000201620088316870000008312A015A7
:1001E0002008831687008312871DF428071A03143A
:1001F000071E0310F80D0000A011200883168700C9
:1002000083128711AF0BE928201620088316870078
:100210000000831207123008031913292012200846
:100220008316870083120000A0152008831687001C
:100230008312871D192900008711A0112008831639
:1002400087000000831207122012200883168700FF
:1002500083120800831603178C170C14000000008B
:100260000318592983120C087F390313B0000317B0
:100270000D080313B10003170F080313B200300871
:10028000B7003120310803178D000313320803171C
:100290008F0083168C170C140000000083120313C8
:1002A000AF0B53295629831603175929782983162A
:1002B000031783120C0D0E0D7F390313B0000317C3
:1002C0000D080313B10003170F080313B200300821
:1002D000B7003120310803178D00031332080317CC
:1002E0008F008D0A03198F0A03100313AF0B2A29FD
:1002F00008003608F8013502031881293508F7008F
:100300008D29F7010830B700B50DF70D36087702D3
:100310000318F700F80DB70B842908002030301EB1
:100320003030B1002F08F700AF1F9D29F709F70AF9
:100330007708AF002D30B100B0172F08B50064303A
:10034000B60079217708AF0030307807B2002F0867
:10035000B5000A30B600792130307707B40030306C
:100360007807B3003108F700B01DB829B01F30116D
:10037000301AC529B01FE0293019E0297708B200EA
:10038000B018E0297708B300E02930303202031DAD
:10039000E0297708B2002030B100B01DD329301118
:1003A000B014B01FB01030303302031DE0297708BD
:1003B000B3002030B200B01DD329B010B01F3010F0
:1003C000301DE5293108B7003120B01CEA29320878
:1003D000B7003120301CEF293308B7003120340832
:1003E000B70031208A110A12302CB6010408B5007A
:1003F0003610831B3614AF1F052AB517351EB50AF4
:10040000AE09AF09AE0A0319AF0A2F0EF038B100DA
:10041000B107E23EB200323EB4002F080F39B207F6
:10042000B207B407E93EB300B307B3072E0E0F3986
:10043000B307B407B30DB40DB409B40D2E080F39CA
:10044000B407B10D0730B0000A30B407B303031C82
:10045000252AB307B203031C292AB207B103031CE0
:100460002D2AB107B003031C312A303084008313D6
:1004700007303505351384033505031D462A351A23
:10048000840A351A462A2030F700632A840734305C
:100490000402031935170008F700031D572A351BFE
:1004A000572A351A712AB519572A2030622AB51FE2
:1004B0005F2A2D30F70084033513B513632AB51571
:1004C00035123030F707AF010408AE002F10831B40
:1004D0002F147708B70031202E08840083132F18BB
:1004E0008317840A351F472A08002F30840083139E
:1004F00000080319882A0230F800F701F70B7E2A5A
:10050000F80B7D2A9730F700F70B842A800B7B2AA3
:100510008A110A12752C840183131F3083057130F0
:1005200083168F000F088611831286158316031712
:100530000908C039890003131F129F1200300317E6
:1005400088008312870188018901FF300313A0000E
:10055000831603170908C039890003131F129F125D
:10056000003003178800831203131F139F13831691
:100570009F1383121F149412A01220088316870061
:10058000831220162008831687008312A0112008EA
:100590008316870001308312940000308316940084
:1005A0000108C73908388100831290010030F80033
:1005B00092000030831692008312201520088316C3
:1005C00087008312970183169B019C0101309D00D7
:1005D0008312031787018801890104308D000030E0
:1005E0008F0003135328A201A101A401A301201627
:1005F00020088316870000008312A01520088316A8
:10060000870000008312071220122008831687003B
:10061000000083128711A011200883168700813003
:100620008312AE009B2078082D1078182D1420120C
:1006300020088316870000008312A0152008831667
:1006400087008312871D222B0000262B0000201616
:10065000200883168700000001308312AD062012A7
:1006600020088316870000008312A0152008831637
:1006700087008312871D3A2B00003E2B00002016B6
:100680002008831687000000831220162008831696
:10069000870000008312A015200883168700000041
:1006A000831207122012200883168700000083128D
:1006B0008711A01120088316870080308312AE00B6
:1006C0009B20F330AE009B20201620088316870065
:1006D00000008312A01520088316870000008312F3
:1006E000871D702B07122012200883168700000038
:1006F00083128711A011200883168700813083128E
:10070000AE009B20F701E5207808A800F701E5205E
:100710007808A700201220088316870000008312A3
:10072000A0152008831687008312871D952B0000D3
:10073000992B0000201620088316870000008312E2
:10074000201620088316870000008312A0152008B9
:1007500083168700000083120712201220088316D8
:100760008700000083128711A011200883168700DC
:1007700080308312AE009B20F530AE009B20201607
:1007800020088316870000008312A0152008831616
:10079000870000008312871DCB2B07122012200830
:1007A00083168700000083128711A011200883168A
:1007B000870081308312AE009B20F701E520780886
:1007C000AA00F701E5207808A90020122008831666
:1007D000870000008312A01520088316870083126B
:1007E000871DF02B0000F42B000020162008831634
:1007F000870000008312AF012808AE00AF00AE01F1
:100800002708AE070318AF0A2F0CA2002E0CA10078
:10081000A20CA10C3F30A205AF012A08AE00AF0028
:10082000AE012908AE070318AF0A2F0CA4002E0C46
:10083000A300A40CA30C3F30A40500302D180130F8
:10084000AE00103003178D0000308F00031006300B
:100850000313AF002A212E08AF001F30B0008E29ED
:10086000143003178D0000308F0003100D30031378
:10087000AF002A211B3003178D0000308F000310BA
:1008800006300313AF002A21103084002208AF0085
:100890002108AE00F5211F3003178D0000308F00B6
:1008A00003140C300313AF002A21263003178D00E8
:1008B00000308F00031006300313AF002A211030E0
:1008C00084002408AF002308AE00F5212A30031766
:1008D0008D0000308F0003140C300313AF002A2169
:1008E0000830AE00FA30AF00752AAE0B722CF32A36
:0208F0006300A3
:04400E00F52CFF3F4F
:1000000008308A0000280000532454193510E83ABB
:10001000ED34E434F43CA0306E32203AE536F03270
:10002000F230F43AF232A0396537F3377210653C9A
:10003000E136703665100D050000F332F43A701D9C
:10004000A01258100D050000D4326D383A10253337
:10005000A0060A00C83A6D1DA01266100D0500002A
:1000600083168613831286130830F80037280000A1
:10007000F8174828F813B20C03188617031C8613C8
:10008000781748287813F80B3B2846280000861775
:100090003F308400840B4A280000F81B3A28781B64
:1000A00042280800831603178C170C140000000068
:1000B00083120C087F39031996280313A100031734
:1000C0000D080313A20003170F080313A300210850
:1000D000B2003020220803178D00031323080317F2
:1000E0008F0083168C170C140000000083120C0D77
:1000F0000E0D7F39031996280313A10003170D086D
:100100000313A20003170F080313A3002108B20072
:100110003020220803178D000313230803178F00D4
:100120008D0A03198F0A03135228031703138A1524
:100130000A12692826308400831300080319AD28A9
:100140000230F800F701F70BA328F80BA22897302C
:10015000F700F70BA928800BA02808000830F8004A
:1001600000008711A0112008831687000000831269
:10017000A60D0712031CC22820162008831687002C
:10018000C6288312201220088316870000008312DD
:10019000A0152008831687008312871DCD28F80B31
:1001A000B02800008711A0112008831687000000E6
:1001B0008312201620088316870000000000831297
:1001C000A0152008831687008312871DE528F801F3
:1001D0000000071A78148711A011200883168700E1
:1001E000831207122012200883168700831208004A
:1001F0000830A7007708A80020162008831687007B
:1002000000008312A0152008831687008312871D23
:100210000729071A0314071E0310F80D0000A01188
:1002200020088316870083128711A70BFC2820164D
:10023000200883168700000083120712280803197C
:100240002629201220088316870083120000A0159B
:100250002008831687008312871D2C290000871130
:10026000A0112008831687000000831207122012B5
:1002700020088316870083120800201620088316A2
:10028000870000008312A015200883168700000055
:1002900083120712201220088316870000008312A1
:1002A0008711A01120088316870080308312A600D2
:1002B000AE20E730A600AE20201620088316870067
:1002C00000008312A0152008831687000000831207
:1002D000871D682907122012200883168700000056
:1002E00083128711A01120088316870081308312A2
:1002F000A600AE20F701F8207808A10020122008FF
:100300008316870000008312A0152008831687003B
:100310008312871D892900008D29000020162008DE
:1003200083168700000083122108F8008A150A123C
:100330007528831603178C170C140000000003188F
:10034000C82983120C087F390313A60003170D0870
:100350000313A70003170F080313A8002608B20011
:100360003020270803178D000313280803178F0078
:1003700083168C170C140000000083120313A50BC6
:10038000C229C52983160317C829E729831603172D
:1003900083120C0D0E0D7F390313A60003170D08F1
:1003A0000313A70003170F080313A8002608B200C1
:1003B0003020270803178D000313280803178F0028
:1003C0008D0A03198F0A03100313A50B992908003E
:1003D000A31BFA290F30F700220EF7050A30770227
:1003E0000318F5293030F707F7292308F7077708AE
:1003F000B20030200F30A2050A3022020318022A70
:100400003030042AA3132308A2072208B2003020A8
:100410008A150A128A288E30F7002708F800260865
:10042000F900FA01F808031D1F2A7908F800F901FC
:100430000830F702F808031D1F2AF701272A0310C6
:10044000F81B262AF90DF80DF7031F2AF8130800E8
:100450002A080319ED2AB6002E080319ED2AB60260
:10046000031C372A7F30B6070318ED2A3D2A813056
:10047000B602031CED2A0319ED2A3608F700F8012D
:10048000F901FA01B5012B08B400B4172C08B30028
:100490002D08B2001930B6003108B2020318602AE4
:1004A0000130B3020318602AB4020318602AB502AF
:1004B0000318602AB50AB40AB30A3108B207922AAF
:1004C0003008B30203187B2A0130B40203187B2AD8
:1004D000B50203187B2AB50AB40A3008B3073108FD
:1004E000B207031C922AB30A031D922AB40A031D01
:1004F000922AB50A922A2F088038B4020318912A4A
:100500000130B5020318912AB50A2F088038B407C4
:100510003008B307031C6F2AB40A031D6F2AB50AFB
:100520006F2A7A14B60B952AA02A0310B20DB30DC8
:10053000B40DB50D0310FA0DF90DF80DB70D4C2AD9
:10054000371CA82A0310F80CF90CFA0CB70CAB2ACC
:10055000F7030319ED2AB71BD42A0310B20DB30D0C
:10056000B40DB50D3108B2020318C02A0130B30230
:100570000318C02AB4020318C02AB502031CE32AD8
:100580003008B3020318CB2A0130B4020318CB2A77
:10059000B502031CE32A2F088038B4020318D42ABA
:1005A0000130B502031CE32AFA0A031DE32AF90A03
:1005B000031DE32AF80A031DE32AF70A0319ED2AAB
:1005C000F80CF90CFA0C2B08B6002F08B606B61F6B
:1005D000EB2AF817F12AF813F12AF701F801F901CB
:1005E000FA01080032080319622BBA003608031911
:1005F000622BBA070318032B7F30BA02031C622B4D
:100600000319622B072B8130BA070318622B3A08B3
:10061000F700F801F901FA013308BE00BE173408EB
:10062000BD003508BC001830BA00BB013C1C302BA3
:100630003908FA07031C222BF90A031D222BF80A9A
:100640000319BB173808F907031C292BF80A0319EB
:10065000BB173708B400B4173408F8070318BB17E2
:10066000BB0DF80CF90CFA0CBE0CBD0CBC0C031045
:10067000BA0B152B0130F7070318622BF81B472B19
:10068000BE0DFA0DF90DF80DF7030319622BBE1F0D
:10069000582BFA0A031D582BF90A031D582BF80A88
:1006A000031D582BF80CF90CFA0CF70A0319622BEE
:1006B0003308BB003708BB06BB1F602BF817662B3F
:1006C000F813662BF701F801F901FA0108008030F0
:1006D0008318AB06B001B1012708AF002B08AF06A5
:1006E00026080319572CAE00F7002A080319602CBE
:1006F000AE020319FC2B031CBA2B2B08B400B41751
:100700002C08B3002D08B200B1010310B40CB30CD7
:10071000B20CB10CAE0B842BAF1F912B3014742C88
:1007200030102E103016293084008313892C30129B
:10073000AF1BA42B2E1CAF2BB40CB30CB20CB10C02
:10074000F70A03196F2CAF2BB41BB22B0310B10D9A
:10075000B20DB30DB40DF70303196F2CA42B301792
:100760001C2C30132708AF00AF1FB82BB417682C10
:10077000B413682C2A08AE00F7002608AE0227083A
:10078000B400B4172808B3002908B200B10103105F
:10079000B40CB30CB20CB10CAE0BC62BAF1FD32BE9
:1007A000B014742CB0102E10B0162D3084008313AA
:1007B000892CB012AF1BE62B2E1CF12BB40CB30C02
:1007C000B20CB10CF70A03196F2CF12BB41BF42BEC
:1007D0000310B10DB20DB30DB40DF70303196F2C57
:1007E000E62BB0171C2CB0132B08AF00AF1FFA2B51
:1007F000B417682CB413682C2B08B400B4172C0859
:10080000B3002D08B200AF1F092CB4133015742C9F
:100810003011B1012E10293084008313892CAF1BB5
:10082000322C2708AF002E1C1C2CB40CB30CB20CBD
:10083000B10CF70A03196F2CB11F2D2CB20A031D3E
:100840002D2CB30A031D2D2CB40A031D2D2CB40C22
:10085000B30CB20CF70A03196F2C301BB12BB01B71
:10086000F32B512C8030B406B41F3A2C742C2B0877
:10087000AF00472C2708AF00B408031D472CB3086E
:10088000031D472CB208031D472CF701682CB41B2D
:10089000512C0310B10DB20DB30DB40DF70B472C55
:1008A0006F2CAF1F552CB417682CB413682C2A0872
:1008B000F7002B08B4002C08B3002D08B200682CF8
:1008C0002608F7002708B4002808B3002908B2005A
:1008D0003408F8003308F9003208FA00A72CF701B1
:1008E000F801F901FA01A72CB101B209B309B40961
:1008F000B109B10A031D822CB20A031D822CB30A6E
:100900000319B40A3018902BB018D22B3019082CC8
:10091000372C0008B207031C932CB30A031D932C39
:10092000B40A03192E1484030008B307031C9B2C7C
:10093000B40A03192E1484030008801F803AB407F8
:1009400003182E14301A972BB01AD92B0F2C08002D
:10095000201620088316870000008312A0152008A7
:1009600083168700000083120712201220088316C6
:100970008700000083128711A011200883168700CA
:1009800080308312A600AE20E330A600AE202012F5
:1009900020088316870000008312A0152008831604
:1009A00087008312871DD22C0000D62C0000201651
:1009B000200883168700000064308312A6009A2066
:1009C000201620088316870000008312A015200837
:1009D0008316870000008312071220122008831656
:1009E0008700000083128711A0112008831687005A
:1009F00081308312A600AE200130F700F82078087D
:100A0000A1000130F700F8207808A200F701F820D3
:100A10007808A300201220088316870000008312A4
:100A2000A0152008831687008312871D152D00004E
:100A3000192D00002016200883168700000083125D
:100A4000A20CA20C3F30A205A7012108A600A70016
:100A5000A601220EF700F030F70577082607A4005C
:100A60002708A5000318A50A2508A7002408A60042
:100A70000B227708A6007808A7007908A8007A0852
:100A8000A900AD007908AC007808AB007708AA008F
:100A9000B101FF30B0007F30AF008E30AE002822B1
:100AA0005230B500B830B4002F30B3008630B200F9
:100AB0007A08B9007908B8007808B7007708B60056
:100AC000F22283106630A900A800BB30A700843052
:100AD000A6007A08AD007908AC007808AB0077086A
:100AE000AA0067238A150A12A528F701F801F9015F
:100AF000FA01BA01BB01BC01BD0139083804370451
:100B000036040319B32D2030BE000310B20DB30D0F
:100B1000B40DB50DBA0DBB0DBC0DBD0D39083D02B0
:100B2000031D9C2D38083C02031D9C2D37083B02F9
:100B3000031D9C2D36083A02031CAD2D3608BA025F
:100B40003708031C370FBB023808031C380FBC02E0
:100B50003908031C390FBD020314F70DF80DF90D08
:100B6000FA0DBE0B852D3A3084008313080004086B
:100B7000AA002908AC000319D62D2808B5002708BB
:100B8000B4002608B3002508B200B901B80120302E
:100B9000B7008230B600F2227A08A8007908A700D0
:100BA0007808A6007708A500AC0BBD2D2808B50075
:100BB0002708B4002608B3002508B2003208B63C66
:100BC000B200FA013308B600B3170310B30CB40C2B
:100BD000B50CFA0CF90CF80CF70CB20BE52DB61F9E
:100BE000FC2DF709F809F909FA09F70A0319F80AB7
:100BF0000319F90A0319FA0A7A08A8007908A70064
:100C00007808A6007708A500A81F132EAA03AA1625
:100C1000A509A609A709A809A50A0319A60A03197F
:100C2000A70A0319A80A3B30B1009A30B000CA30B5
:100C3000AF00AE010A30AC0029080319AA0A28083F
:100C4000B5002708B4002608B3002508B200310813
:100C5000B9003008B8002F08B7002E08B600752577
:100C60000008A500840A0008A600840A0008A7005E
:100C7000840A0008A800FD308407F708031D532EDE
:100C8000290A2C020319532E2A080319552E0F394D
:100C90002C0203194D2E0318852EAA1B852E2A1B04
:100CA000552E2030812E2030AA05AA1E632EAA12AE
:100CB0002908031DAA037708AA002D30B2003020AE
:100CC0002A08F700AA0129082C02031D712E7708B3
:100CD000AA002E30B20030202A08F7002030AA05E2
:100CE00000303030AA1E812EAA122908031DAA0343
:100CF0007708AA002D30B20030202A08F700AA0198
:100D00003030F7077708B20030203108B5003008DE
:100D1000B4002F08B3002E08B200B901B801B70122
:100D20000A30B60075257A08B1007908B000780855
:100D3000AF007708AE00AC0B1F2E0800201620086D
:100D40008316870000008312A015200883168700F1
:100D5000000083120712201220088316870000006B
:100D600083128711A0112008831687008030831218
:100D7000A600AE20E530A600AE206430A6009A2082
:100D8000201620088316870000008312A015200873
:100D90008316870000008312871DCC2E07122012B5
:100DA000200883168700000083128711A0112008F5
:100DB0008316870081308312A600AE200130F70031
:100DC000F8207808A1000130F700F8207808A20088
:100DD000F701F8207808A300201220088316870066
:100DE00000008312A0152008831687008312871D38
:100DF000F72E0000FB2E0000201620088316870027
:100E000000008312A20CA20C3F30A205A70121080A
:100E1000A600A700A601220EF700F030F70577081C
:100E20002607A4002708A5000318A50A2508A7007F
:100E30002408A6000B227708A6007808A7007908E6
:100E4000A8007A08A900AD007908AC007808AB00CA
:100E50007708AA00B101FF30B0007F30AF008E30BC
:100E6000AE002822B501B4017A30B3008530B2005B
:100E70007A08B9007908B8007808B7007708B60092
:100E8000F2228310A901A801C030A7008130A6007A
:100E90007A08AD007908AC007808AB007708AA00A2
:080EA00067238A150A12E328FA
:10100000840183131F308305713083168F000F080E
:10101000861383128617831603170908C0398900BF
:1010200003131F129F1200300317880083128701D9
:1010300088018901FF300313A000831603170908F4
:10104000C039890003131F129F1200300317880054
:10105000831203131F139F1383169F1383121F14EE
:101060009412A012200883168700831220162008ED
:10107000831687008312A011200883168700013091
:10108000831294000030831694000108C739083891
:101090008100831290010030F80092000030831626
:1010A000920083122015200883168700831297016F
:1010B00083169B019C0101309D0083120317870159
:1010C0008801890104308D0000308F008A110313DC
:1010D00052288A150230A100FA30A6008A119A20FF
:1010E0008A15A10B6C288A113D298A157808A10060
:1010F0001D3003178D0000308F00031007300313DD
:10110000A5008A1199218A152108A2003730A30071
:101110008A11E8298A152030B2008A1130208A15F8
:101120000D30B2008A1130208A150A30B2008A11BF
:1011300030208A150230A100FA30A6008A119A20C8
:101140008A15A10B9C288A11A82C8A157708A10062
:101150007808A2007908A3007A08A40024300317B5
:101160008D0000308F00031006300313A5008A1194
:1011700099218A15893084002408A8002308A70033
:101180002208A6002108A5000230A9008A11B7256F
:101190008A152030B2008A1130208A150D30B20035
:1011A0008A1130208A150A30B2008A1130208A153F
:1011B0000230A100FA30A6008A119A208A15A10BEC
:1011C000DA288A119E2E8A157708A1007808A200D5
:1011D0007908A3007A08A4002A3003178D00003094
:1011E0008F00031005300313A5008A1199218A1579
:1011F000893084002408A8002308A7002208A6003C
:101200002108A5000230A9008A11B7258A152030CF
:10121000B2008A1130208A150D30B2008A113020B8
:101220008A150A30B2008A1130208A150430A100D4
:10123000FA30A6008A119A208A15A10B1829732862
:02124000630049
:04400E00F42CFF3F50
:00000001FF
;PIC16F887
;CRC=D298 CREATED="13-IV-13 23:28"
;CRC=90A5 CREATED="14-IV-13 01:31"
/Modules/Sensors/SHT25V01A/SW/PIC16F887/main.lst
1,17 → 1,17
CCS PCM C Compiler, Version 4.106, 47914 13-IV-13 23:28
CCS PCM C Compiler, Version 4.106, 47914 14-IV-13 01:31
 
Filename: Z:\home\kaklik\MLAB\Modules\Sensors\SHT25V01A\SW\PIC16F887\main.lst
Filename: D:\MLAB\Modules\Sensors\SHT25V01A\SW\PIC16F887\main.lst
 
ROM used: 1145 words (14%)
ROM used: 2165 words (26%)
Largest free fragment is 2048
RAM used: 8 (2%) at main() level
29 (8%) worst case
RAM used: 10 (3%) at main() level
36 (10%) worst case
Stack: 2 locations
 
*
0000: MOVLW 02
0000: MOVLW 08
0001: MOVWF 0A
0002: GOTO 28B
0002: GOTO 000
0003: NOP
.................... #include "main.h"
.................... #include <16F887.h>
22,7 → 22,7
.................... #device adc=8
....................
.................... #FUSES NOWDT //No Watch Dog Timer
.................... #FUSES INTRC //Internal RC Osc
.................... #FUSES INTRC_IO //Internal RC Osc
.................... #FUSES NOPUT //No Power Up Timer
.................... #FUSES MCLR //Master Clear pin enabled
.................... #FUSES NOPROTECT //Code not protected from reading
37,780 → 37,1088
....................
.................... #use delay(clock=8000000)
*
0275: MOVLW 2F
0276: MOVWF 04
0277: BCF 03.7
0278: MOVF 00,W
0279: BTFSC 03.2
027A: GOTO 288
027B: MOVLW 02
027C: MOVWF 78
027D: CLRF 77
027E: DECFSZ 77,F
027F: GOTO 27E
0280: DECFSZ 78,F
0281: GOTO 27D
0282: MOVLW 97
0283: MOVWF 77
0284: DECFSZ 77,F
0285: GOTO 284
0286: DECFSZ 00,F
0287: GOTO 27B
0288: BCF 0A.3
0289: BCF 0A.4
028A: GOTO 475 (RETURN)
009A: MOVLW 26
009B: MOVWF 04
009C: BCF 03.7
009D: MOVF 00,W
009E: BTFSC 03.2
009F: GOTO 0AD
00A0: MOVLW 02
00A1: MOVWF 78
00A2: CLRF 77
00A3: DECFSZ 77,F
00A4: GOTO 0A3
00A5: DECFSZ 78,F
00A6: GOTO 0A2
00A7: MOVLW 97
00A8: MOVWF 77
00A9: DECFSZ 77,F
00AA: GOTO 0A9
00AB: DECFSZ 00,F
00AC: GOTO 0A0
00AD: RETURN
....................
.................... #use i2c(master, sda=PIN_C4, scl=PIN_C3)
*
009B: MOVLW 08
009C: MOVWF 78
009D: NOP
009E: BCF 07.3
009F: BCF 20.3
00A0: MOVF 20,W
00A1: BSF 03.5
00A2: MOVWF 07
00A3: NOP
00A4: BCF 03.5
00A5: RLF 2E,F
00A6: BCF 07.4
00A7: BTFSS 03.0
00A8: GOTO 0AF
00A9: BSF 20.4
00AA: MOVF 20,W
00AB: BSF 03.5
00AC: MOVWF 07
00AD: GOTO 0B3
00AE: BCF 03.5
00AF: BCF 20.4
00B0: MOVF 20,W
00B1: BSF 03.5
00B2: MOVWF 07
00B3: NOP
00B4: BCF 03.5
00B5: BSF 20.3
00B6: MOVF 20,W
00B7: BSF 03.5
00B8: MOVWF 07
00B9: BCF 03.5
00BA: BTFSS 07.3
00BB: GOTO 0BA
00BC: DECFSZ 78,F
00BD: GOTO 09D
00BE: NOP
00BF: BCF 07.3
00C0: BCF 20.3
00C1: MOVF 20,W
00C2: BSF 03.5
00C3: MOVWF 07
00C4: NOP
00C5: BCF 03.5
00C6: BSF 20.4
00C7: MOVF 20,W
00C8: BSF 03.5
00C9: MOVWF 07
00CA: NOP
00CB: NOP
00AE: MOVLW 08
00AF: MOVWF 78
00B0: NOP
00B1: BCF 07.3
00B2: BCF 20.3
00B3: MOVF 20,W
00B4: BSF 03.5
00B5: MOVWF 07
00B6: NOP
00B7: BCF 03.5
00B8: RLF 26,F
00B9: BCF 07.4
00BA: BTFSS 03.0
00BB: GOTO 0C2
00BC: BSF 20.4
00BD: MOVF 20,W
00BE: BSF 03.5
00BF: MOVWF 07
00C0: GOTO 0C6
00C1: BCF 03.5
00C2: BCF 20.4
00C3: MOVF 20,W
00C4: BSF 03.5
00C5: MOVWF 07
00C6: NOP
00C7: BCF 03.5
00C8: BSF 20.3
00C9: MOVF 20,W
00CA: BSF 03.5
00CB: MOVWF 07
00CC: BCF 03.5
00CD: BSF 20.3
00CE: MOVF 20,W
00CF: BSF 03.5
00D0: MOVWF 07
00D1: BCF 03.5
00D2: BTFSS 07.3
00D3: GOTO 0D2
00D4: CLRF 78
00D5: NOP
00D6: BTFSC 07.4
00D7: BSF 78.0
00D8: BCF 07.3
00D9: BCF 20.3
00CD: BTFSS 07.3
00CE: GOTO 0CD
00CF: DECFSZ 78,F
00D0: GOTO 0B0
00D1: NOP
00D2: BCF 07.3
00D3: BCF 20.3
00D4: MOVF 20,W
00D5: BSF 03.5
00D6: MOVWF 07
00D7: NOP
00D8: BCF 03.5
00D9: BSF 20.4
00DA: MOVF 20,W
00DB: BSF 03.5
00DC: MOVWF 07
00DD: BCF 03.5
00DE: BCF 07.4
00DF: BCF 20.4
00E0: MOVF 20,W
00E1: BSF 03.5
00E2: MOVWF 07
00E3: BCF 03.5
00E4: RETURN
00E5: MOVLW 08
00E6: MOVWF 2F
00E7: MOVF 77,W
00E8: MOVWF 30
00E9: BSF 20.4
00EA: MOVF 20,W
00EB: BSF 03.5
00EC: MOVWF 07
00ED: NOP
00EE: BCF 03.5
00EF: BSF 20.3
00F0: MOVF 20,W
00F1: BSF 03.5
00F2: MOVWF 07
00F3: BCF 03.5
00F4: BTFSS 07.3
00F5: GOTO 0F4
00F6: BTFSC 07.4
00F7: BSF 03.0
00F8: BTFSS 07.4
00F9: BCF 03.0
00FA: RLF 78,F
00FB: NOP
00FC: BCF 20.3
00DD: NOP
00DE: NOP
00DF: BCF 03.5
00E0: BSF 20.3
00E1: MOVF 20,W
00E2: BSF 03.5
00E3: MOVWF 07
00E4: BCF 03.5
00E5: BTFSS 07.3
00E6: GOTO 0E5
00E7: CLRF 78
00E8: NOP
00E9: BTFSC 07.4
00EA: BSF 78.0
00EB: BCF 07.3
00EC: BCF 20.3
00ED: MOVF 20,W
00EE: BSF 03.5
00EF: MOVWF 07
00F0: BCF 03.5
00F1: BCF 07.4
00F2: BCF 20.4
00F3: MOVF 20,W
00F4: BSF 03.5
00F5: MOVWF 07
00F6: BCF 03.5
00F7: RETURN
00F8: MOVLW 08
00F9: MOVWF 27
00FA: MOVF 77,W
00FB: MOVWF 28
00FC: BSF 20.4
00FD: MOVF 20,W
00FE: BSF 03.5
00FF: MOVWF 07
0100: BCF 03.5
0101: BCF 07.3
0102: DECFSZ 2F,F
0103: GOTO 0E9
0104: BSF 20.4
0105: MOVF 20,W
0106: BSF 03.5
0107: MOVWF 07
0108: NOP
0109: BCF 03.5
010A: BCF 07.4
010B: MOVF 30,W
010C: BTFSC 03.2
010D: GOTO 113
010E: BCF 20.4
010F: MOVF 20,W
0110: BSF 03.5
0111: MOVWF 07
0112: BCF 03.5
0113: NOP
0114: BSF 20.3
0115: MOVF 20,W
0116: BSF 03.5
0117: MOVWF 07
0118: BCF 03.5
0119: BTFSS 07.3
011A: GOTO 119
0100: NOP
0101: BCF 03.5
0102: BSF 20.3
0103: MOVF 20,W
0104: BSF 03.5
0105: MOVWF 07
0106: BCF 03.5
0107: BTFSS 07.3
0108: GOTO 107
0109: BTFSC 07.4
010A: BSF 03.0
010B: BTFSS 07.4
010C: BCF 03.0
010D: RLF 78,F
010E: NOP
010F: BCF 20.3
0110: MOVF 20,W
0111: BSF 03.5
0112: MOVWF 07
0113: BCF 03.5
0114: BCF 07.3
0115: DECFSZ 27,F
0116: GOTO 0FC
0117: BSF 20.4
0118: MOVF 20,W
0119: BSF 03.5
011A: MOVWF 07
011B: NOP
011C: BCF 07.3
011D: BCF 20.3
011E: MOVF 20,W
011F: BSF 03.5
0120: MOVWF 07
0121: NOP
0122: BCF 03.5
0123: BCF 07.4
0124: BCF 20.4
0125: MOVF 20,W
0126: BSF 03.5
0127: MOVWF 07
0128: BCF 03.5
0129: RETURN
.................... #use rs232(baud=9600,parity=N,xmit=PIN_B3,rcv=PIN_B2,bits=8) //rcv TXD xmit RXD
011C: BCF 03.5
011D: BCF 07.4
011E: MOVF 28,W
011F: BTFSC 03.2
0120: GOTO 126
0121: BCF 20.4
0122: MOVF 20,W
0123: BSF 03.5
0124: MOVWF 07
0125: BCF 03.5
0126: NOP
0127: BSF 20.3
0128: MOVF 20,W
0129: BSF 03.5
012A: MOVWF 07
012B: BCF 03.5
012C: BTFSS 07.3
012D: GOTO 12C
012E: NOP
012F: BCF 07.3
0130: BCF 20.3
0131: MOVF 20,W
0132: BSF 03.5
0133: MOVWF 07
0134: NOP
0135: BCF 03.5
0136: BCF 07.4
0137: BCF 20.4
0138: MOVF 20,W
0139: BSF 03.5
013A: MOVWF 07
013B: BCF 03.5
013C: RETURN
.................... #use rs232(baud=9600,parity=N,xmit=PIN_B7,rcv=PIN_B6,bits=8) //rcv TXD xmit RXD
*
0031: BSF 03.5
0032: BCF 06.3
0033: BCF 03.5
0034: BCF 06.3
0035: MOVLW 08
0036: MOVWF 78
0037: GOTO 038
0038: NOP
0039: BSF 78.7
003A: GOTO 049
003B: BCF 78.7
003C: RRF 37,F
003D: BTFSC 03.0
003E: BSF 06.3
003F: BTFSS 03.0
0040: BCF 06.3
0041: BSF 78.6
0042: GOTO 049
0043: BCF 78.6
0044: DECFSZ 78,F
0045: GOTO 03C
0046: GOTO 047
0047: NOP
0048: BSF 06.3
0049: MOVLW 3F
004A: MOVWF 04
004B: DECFSZ 04,F
004C: GOTO 04B
004D: NOP
004E: BTFSC 78.7
004F: GOTO 03B
0050: BTFSC 78.6
0051: GOTO 043
0052: RETURN
0030: BSF 03.5
0031: BCF 06.7
0032: BCF 03.5
0033: BCF 06.7
0034: MOVLW 08
0035: MOVWF 78
0036: GOTO 037
0037: NOP
0038: BSF 78.7
0039: GOTO 048
003A: BCF 78.7
003B: RRF 32,F
003C: BTFSC 03.0
003D: BSF 06.7
003E: BTFSS 03.0
003F: BCF 06.7
0040: BSF 78.6
0041: GOTO 048
0042: BCF 78.6
0043: DECFSZ 78,F
0044: GOTO 03B
0045: GOTO 046
0046: NOP
0047: BSF 06.7
0048: MOVLW 3F
0049: MOVWF 04
004A: DECFSZ 04,F
004B: GOTO 04A
004C: NOP
004D: BTFSC 78.7
004E: GOTO 03A
004F: BTFSC 78.6
0050: GOTO 042
0051: RETURN
....................
....................
....................
.................... void main()
.................... void SHT25_soft_reset()
.................... {
*
028B: CLRF 04
028C: BCF 03.7
028D: MOVLW 1F
028E: ANDWF 03,F
028F: MOVLW 71
0290: BSF 03.5
0291: MOVWF 0F
0292: MOVF 0F,W
0293: BCF 06.3
0294: BCF 03.5
0295: BSF 06.3
0296: BSF 03.5
0297: BSF 03.6
0298: MOVF 09,W
0299: ANDLW C0
029A: MOVWF 09
029B: BCF 03.6
029C: BCF 1F.4
029D: BCF 1F.5
029E: MOVLW 00
029F: BSF 03.6
02A0: MOVWF 08
02A1: BCF 03.5
02A2: CLRF 07
02A3: CLRF 08
02A4: CLRF 09
.................... i2c_start(); // Start condition
.................... i2c_write(0x80); // Device address
.................... i2c_write(0xFE); // Device command
.................... i2c_stop(); // Stop condition
.................... }
....................
.................... setup_adc_ports(NO_ANALOGS|VSS_VDD);
.................... unsigned int8 SHT25_setup()
.................... {
.................... unsigned int8 reg;
....................
.................... i2c_start(); // Start condition
*
02A8: BSF 03.5
02A9: BSF 03.6
02AA: MOVF 09,W
02AB: ANDLW C0
02AC: MOVWF 09
02AD: BCF 03.6
02AE: BCF 1F.4
02AF: BCF 1F.5
02B0: MOVLW 00
02B1: BSF 03.6
02B2: MOVWF 08
.................... setup_adc(ADC_CLOCK_DIV_2);
02B3: BCF 03.5
02B4: BCF 03.6
02B5: BCF 1F.6
02B6: BCF 1F.7
02B7: BSF 03.5
02B8: BCF 1F.7
02B9: BCF 03.5
02BA: BSF 1F.0
.................... setup_spi(SPI_SS_DISABLED);
02BB: BCF 14.5
02BC: BCF 20.5
02BD: MOVF 20,W
02BE: BSF 03.5
02BF: MOVWF 07
02C0: BCF 03.5
02C1: BSF 20.4
02C2: MOVF 20,W
02C3: BSF 03.5
02C4: MOVWF 07
02C5: BCF 03.5
02C6: BCF 20.3
02C7: MOVF 20,W
02C8: BSF 03.5
02C9: MOVWF 07
02CA: MOVLW 01
02CB: BCF 03.5
02CC: MOVWF 14
02CD: MOVLW 00
02CE: BSF 03.5
02CF: MOVWF 14
.................... setup_timer_0(RTCC_INTERNAL|RTCC_DIV_1);
02D0: MOVF 01,W
02D1: ANDLW C7
02D2: IORLW 08
02D3: MOVWF 01
.................... setup_timer_1(T1_DISABLED);
02D4: BCF 03.5
02D5: CLRF 10
.................... setup_timer_2(T2_DISABLED,0,1);
02D6: MOVLW 00
02D7: MOVWF 78
02D8: MOVWF 12
02D9: MOVLW 00
02DA: BSF 03.5
02DB: MOVWF 12
.................... setup_ccp1(CCP_OFF);
02DC: BCF 03.5
02DD: BSF 20.2
02DE: MOVF 20,W
02DF: BSF 03.5
02E0: MOVWF 07
02E1: BCF 03.5
02E2: CLRF 17
02E3: BSF 03.5
02E4: CLRF 1B
02E5: CLRF 1C
02E6: MOVLW 01
02E7: MOVWF 1D
.................... setup_comparator(NC_NC_NC_NC);// This device COMP currently not supported by the PICWizard
02E8: BCF 03.5
02E9: BSF 03.6
02EA: CLRF 07
02EB: CLRF 08
02EC: CLRF 09
013D: BSF 20.4
013E: MOVF 20,W
013F: BSF 03.5
0140: MOVWF 07
0141: NOP
0142: BCF 03.5
0143: BSF 20.3
0144: MOVF 20,W
0145: BSF 03.5
0146: MOVWF 07
0147: NOP
0148: BCF 03.5
0149: BCF 07.4
014A: BCF 20.4
014B: MOVF 20,W
014C: BSF 03.5
014D: MOVWF 07
014E: NOP
014F: BCF 03.5
0150: BCF 07.3
0151: BCF 20.3
0152: MOVF 20,W
0153: BSF 03.5
0154: MOVWF 07
.................... i2c_write(0x80); // Device address
0155: MOVLW 80
0156: BCF 03.5
0157: MOVWF 26
0158: CALL 0AE
.................... i2c_write(0xE7); // Device command
0159: MOVLW E7
015A: MOVWF 26
015B: CALL 0AE
.................... // i2c_stop(); // Stop condition
....................
.................... printf("Simple Thermomether \r\n",);
02ED: MOVLW 04
02EE: MOVWF 0D
02EF: MOVLW 00
02F0: MOVWF 0F
02F1: BCF 03.6
02F2: GOTO 053
....................
.................... int16 data1, data2, data3;
....................
.................... int XL,XH,YL,YH,ZL,ZH;
.................... i2c_start(); // Start condition
015C: BSF 20.4
015D: MOVF 20,W
015E: BSF 03.5
015F: MOVWF 07
0160: NOP
0161: BCF 03.5
0162: BSF 20.3
0163: MOVF 20,W
0164: BSF 03.5
0165: MOVWF 07
0166: NOP
0167: BCF 03.5
0168: BTFSS 07.3
0169: GOTO 168
016A: BCF 07.4
016B: BCF 20.4
016C: MOVF 20,W
016D: BSF 03.5
016E: MOVWF 07
016F: NOP
0170: BCF 03.5
0171: BCF 07.3
0172: BCF 20.3
0173: MOVF 20,W
0174: BSF 03.5
0175: MOVWF 07
.................... i2c_write(0x81); // Device address
0176: MOVLW 81
0177: BCF 03.5
0178: MOVWF 26
0179: CALL 0AE
.................... reg=i2c_read(0); // Device command
017A: CLRF 77
017B: CALL 0F8
017C: MOVF 78,W
017D: MOVWF 21
.................... i2c_stop(); // Stop condition
017E: BCF 20.4
017F: MOVF 20,W
0180: BSF 03.5
0181: MOVWF 07
0182: NOP
0183: BCF 03.5
0184: BSF 20.3
0185: MOVF 20,W
0186: BSF 03.5
0187: MOVWF 07
0188: BCF 03.5
0189: BTFSS 07.3
018A: GOTO 189
018B: NOP
018C: GOTO 18D
018D: NOP
018E: BSF 20.4
018F: MOVF 20,W
0190: BSF 03.5
0191: MOVWF 07
0192: NOP
....................
.................... while(TRUE)
.................... {
.................... return (reg);
0193: BCF 03.5
0194: MOVF 21,W
0195: MOVWF 78
.................... }
0196: BSF 0A.3
0197: BCF 0A.4
0198: GOTO 075 (RETURN)
....................
.................... data1=0;
02F3: CLRF 22
02F4: CLRF 21
.................... data2=0 ;
02F5: CLRF 24
02F6: CLRF 23
.................... float SHT25_get_temp()
.................... {
.................... unsigned int8 MSB, LSB, Check;
.................... unsigned int16 data;
....................
....................
.................... //akcelerometr
.................... int1 ack;
.................... i2c_start(); // If the write command is acknowledged,
02F7: BSF 20.4
02F8: MOVF 20,W
02F9: BSF 03.5
02FA: MOVWF 07
02FB: NOP
02FC: BCF 03.5
02FD: BSF 20.3
02FE: MOVF 20,W
02FF: BSF 03.5
0300: MOVWF 07
0301: NOP
0302: BCF 03.5
0303: BCF 07.4
0304: BCF 20.4
0305: MOVF 20,W
0306: BSF 03.5
0307: MOVWF 07
0308: NOP
0309: BCF 03.5
030A: BCF 07.3
030B: BCF 20.3
030C: MOVF 20,W
030D: BSF 03.5
030E: MOVWF 07
.................... ack = i2c_write(0x81);//hen the device is ready.
030F: MOVLW 81
0310: BCF 03.5
0311: MOVWF 2E
0312: CALL 09B
0313: MOVF 78,W
0314: BCF 2D.0
0315: BTFSC 78.0
0316: BSF 2D.0
.................... i2c_start();
*
04A8: BSF 20.4
04A9: MOVF 20,W
04AA: BSF 03.5
04AB: MOVWF 07
04AC: NOP
04AD: BCF 03.5
04AE: BSF 20.3
04AF: MOVF 20,W
04B0: BSF 03.5
04B1: MOVWF 07
04B2: NOP
04B3: BCF 03.5
04B4: BCF 07.4
04B5: BCF 20.4
04B6: MOVF 20,W
04B7: BSF 03.5
04B8: MOVWF 07
04B9: NOP
04BA: BCF 03.5
04BB: BCF 07.3
04BC: BCF 20.3
04BD: MOVF 20,W
04BE: BSF 03.5
04BF: MOVWF 07
.................... I2C_Write(0x80);
04C0: MOVLW 80
04C1: BCF 03.5
04C2: MOVWF 26
04C3: CALL 0AE
.................... I2C_write(0xE3);
04C4: MOVLW E3
04C5: MOVWF 26
04C6: CALL 0AE
.................... i2c_stop();
0317: BCF 20.4
0318: MOVF 20,W
0319: BSF 03.5
031A: MOVWF 07
031B: NOP
031C: BCF 03.5
031D: BSF 20.3
031E: MOVF 20,W
031F: BSF 03.5
0320: MOVWF 07
0321: BCF 03.5
0322: BTFSS 07.3
0323: GOTO 322
0324: NOP
0325: GOTO 326
0326: NOP
0327: BSF 20.4
0328: MOVF 20,W
0329: BSF 03.5
032A: MOVWF 07
032B: NOP
.................... ack=!ack;
032C: MOVLW 01
032D: BCF 03.5
032E: XORWF 2D,F
04C7: BCF 20.4
04C8: MOVF 20,W
04C9: BSF 03.5
04CA: MOVWF 07
04CB: NOP
04CC: BCF 03.5
04CD: BSF 20.3
04CE: MOVF 20,W
04CF: BSF 03.5
04D0: MOVWF 07
04D1: BCF 03.5
04D2: BTFSS 07.3
04D3: GOTO 4D2
04D4: NOP
04D5: GOTO 4D6
04D6: NOP
04D7: BSF 20.4
04D8: MOVF 20,W
04D9: BSF 03.5
04DA: MOVWF 07
04DB: NOP
....................
.................... delay_ms(100);
04DC: MOVLW 64
04DD: BCF 03.5
04DE: MOVWF 26
04DF: CALL 09A
....................
....................
....................
.................... i2c_stop(); //T
032F: BCF 20.4
0330: MOVF 20,W
0331: BSF 03.5
0332: MOVWF 07
0333: NOP
0334: BCF 03.5
0335: BSF 20.3
0336: MOVF 20,W
0337: BSF 03.5
0338: MOVWF 07
0339: BCF 03.5
033A: BTFSS 07.3
033B: GOTO 33A
033C: NOP
033D: GOTO 33E
033E: NOP
033F: BSF 20.4
0340: MOVF 20,W
0341: BSF 03.5
0342: MOVWF 07
0343: NOP
....................
.................... i2c_start();
0344: BCF 03.5
0345: BSF 20.4
0346: MOVF 20,W
0347: BSF 03.5
0348: MOVWF 07
0349: NOP
034A: BCF 03.5
034B: BSF 20.3
034C: MOVF 20,W
034D: BSF 03.5
034E: MOVWF 07
034F: NOP
0350: BCF 03.5
0351: BCF 07.4
0352: BCF 20.4
0353: MOVF 20,W
0354: BSF 03.5
0355: MOVWF 07
0356: NOP
0357: BCF 03.5
0358: BCF 07.3
0359: BCF 20.3
035A: MOVF 20,W
035B: BSF 03.5
035C: MOVWF 07
.................... I2C_Write(0x80);
035D: MOVLW 80
035E: BCF 03.5
035F: MOVWF 2E
0360: CALL 09B
.................... I2C_write(0xF3);
0361: MOVLW F3
0362: MOVWF 2E
0363: CALL 09B
.................... // i2c_stop();
.................... i2c_start();
0364: BSF 20.4
0365: MOVF 20,W
0366: BSF 03.5
0367: MOVWF 07
0368: NOP
0369: BCF 03.5
036A: BSF 20.3
036B: MOVF 20,W
036C: BSF 03.5
036D: MOVWF 07
036E: NOP
036F: BCF 03.5
0370: BTFSS 07.3
0371: GOTO 370
0372: BCF 07.4
0373: BCF 20.4
0374: MOVF 20,W
0375: BSF 03.5
0376: MOVWF 07
0377: NOP
0378: BCF 03.5
0379: BCF 07.3
037A: BCF 20.3
037B: MOVF 20,W
037C: BSF 03.5
037D: MOVWF 07
04E0: BSF 20.4
04E1: MOVF 20,W
04E2: BSF 03.5
04E3: MOVWF 07
04E4: NOP
04E5: BCF 03.5
04E6: BSF 20.3
04E7: MOVF 20,W
04E8: BSF 03.5
04E9: MOVWF 07
04EA: NOP
04EB: BCF 03.5
04EC: BCF 07.4
04ED: BCF 20.4
04EE: MOVF 20,W
04EF: BSF 03.5
04F0: MOVWF 07
04F1: NOP
04F2: BCF 03.5
04F3: BCF 07.3
04F4: BCF 20.3
04F5: MOVF 20,W
04F6: BSF 03.5
04F7: MOVWF 07
.................... I2C_Write(0x81);
037E: MOVLW 81
037F: BCF 03.5
0380: MOVWF 2E
0381: CALL 09B
.................... XH=i2c_read(0);
0382: CLRF 77
0383: CALL 0E5
0384: MOVF 78,W
0385: MOVWF 28
.................... XL=i2c_read(0);
0386: CLRF 77
0387: CALL 0E5
0388: MOVF 78,W
0389: MOVWF 27
.................... i2c_stop();
038A: BCF 20.4
038B: MOVF 20,W
038C: BSF 03.5
038D: MOVWF 07
038E: NOP
038F: BCF 03.5
0390: BSF 20.3
0391: MOVF 20,W
0392: BSF 03.5
0393: MOVWF 07
0394: BCF 03.5
0395: BTFSS 07.3
0396: GOTO 395
0397: NOP
0398: GOTO 399
0399: NOP
039A: BSF 20.4
039B: MOVF 20,W
039C: BSF 03.5
039D: MOVWF 07
039E: NOP
04F8: MOVLW 81
04F9: BCF 03.5
04FA: MOVWF 26
04FB: CALL 0AE
.................... MSB=i2c_read(1);
04FC: MOVLW 01
04FD: MOVWF 77
04FE: CALL 0F8
04FF: MOVF 78,W
0500: MOVWF 21
.................... LSB=i2c_read(1);
0501: MOVLW 01
0502: MOVWF 77
0503: CALL 0F8
0504: MOVF 78,W
0505: MOVWF 22
.................... Check=i2c_read(0);
0506: CLRF 77
0507: CALL 0F8
0508: MOVF 78,W
0509: MOVWF 23
.................... i2c_stop();
050A: BCF 20.4
050B: MOVF 20,W
050C: BSF 03.5
050D: MOVWF 07
050E: NOP
050F: BCF 03.5
0510: BSF 20.3
0511: MOVF 20,W
0512: BSF 03.5
0513: MOVWF 07
0514: BCF 03.5
0515: BTFSS 07.3
0516: GOTO 515
0517: NOP
0518: GOTO 519
0519: NOP
051A: BSF 20.4
051B: MOVF 20,W
051C: BSF 03.5
051D: MOVWF 07
051E: NOP
....................
.................... LSB = LSB >> 2; // trow out status bits
051F: BCF 03.5
0520: RRF 22,F
0521: RRF 22,F
0522: MOVLW 3F
0523: ANDWF 22,F
....................
....................
.................... i2c_start(); //RH
039F: BCF 03.5
03A0: BSF 20.4
03A1: MOVF 20,W
03A2: BSF 03.5
03A3: MOVWF 07
03A4: NOP
03A5: BCF 03.5
03A6: BSF 20.3
03A7: MOVF 20,W
03A8: BSF 03.5
03A9: MOVWF 07
03AA: NOP
03AB: BCF 03.5
03AC: BCF 07.4
03AD: BCF 20.4
03AE: MOVF 20,W
03AF: BSF 03.5
03B0: MOVWF 07
03B1: NOP
03B2: BCF 03.5
03B3: BCF 07.3
03B4: BCF 20.3
03B5: MOVF 20,W
03B6: BSF 03.5
03B7: MOVWF 07
.................... data = (((unsigned int16) MSB << 8) + (LSB << 4));
0524: CLRF 27
0525: MOVF 21,W
0526: MOVWF 26
0527: MOVWF 27
0528: CLRF 26
0529: SWAPF 22,W
052A: MOVWF 77
052B: MOVLW F0
052C: ANDWF 77,F
052D: MOVF 77,W
052E: ADDWF 26,W
052F: MOVWF 24
0530: MOVF 27,W
0531: MOVWF 25
0532: BTFSC 03.0
0533: INCF 25,F
.................... return(-46.85 + 175.72*((float)data/0xFFFF));
0534: MOVF 25,W
0535: MOVWF 27
0536: MOVF 24,W
0537: MOVWF 26
0538: CALL 20B
0539: MOVF 77,W
053A: MOVWF 26
053B: MOVF 78,W
053C: MOVWF 27
053D: MOVF 79,W
053E: MOVWF 28
053F: MOVF 7A,W
0540: MOVWF 29
0541: MOVWF 2D
0542: MOVF 79,W
0543: MOVWF 2C
0544: MOVF 78,W
0545: MOVWF 2B
0546: MOVF 77,W
0547: MOVWF 2A
0548: CLRF 31
0549: MOVLW FF
054A: MOVWF 30
054B: MOVLW 7F
054C: MOVWF 2F
054D: MOVLW 8E
054E: MOVWF 2E
054F: CALL 228
0550: MOVLW 52
0551: MOVWF 35
0552: MOVLW B8
0553: MOVWF 34
0554: MOVLW 2F
0555: MOVWF 33
0556: MOVLW 86
0557: MOVWF 32
0558: MOVF 7A,W
0559: MOVWF 39
055A: MOVF 79,W
055B: MOVWF 38
055C: MOVF 78,W
055D: MOVWF 37
055E: MOVF 77,W
055F: MOVWF 36
0560: CALL 2F2
0561: BCF 03.1
0562: MOVLW 66
0563: MOVWF 29
0564: MOVWF 28
0565: MOVLW BB
0566: MOVWF 27
0567: MOVLW 84
0568: MOVWF 26
0569: MOVF 7A,W
056A: MOVWF 2D
056B: MOVF 79,W
056C: MOVWF 2C
056D: MOVF 78,W
056E: MOVWF 2B
056F: MOVF 77,W
0570: MOVWF 2A
0571: CALL 367
.................... }
0572: BSF 0A.3
0573: BCF 0A.4
0574: GOTO 0A5 (RETURN)
....................
.................... float SHT25_get_hum()
.................... {
.................... unsigned int8 MSB, LSB, Check;
.................... unsigned int16 data;
....................
.................... i2c_start(); //RH
*
069E: BSF 20.4
069F: MOVF 20,W
06A0: BSF 03.5
06A1: MOVWF 07
06A2: NOP
06A3: BCF 03.5
06A4: BSF 20.3
06A5: MOVF 20,W
06A6: BSF 03.5
06A7: MOVWF 07
06A8: NOP
06A9: BCF 03.5
06AA: BCF 07.4
06AB: BCF 20.4
06AC: MOVF 20,W
06AD: BSF 03.5
06AE: MOVWF 07
06AF: NOP
06B0: BCF 03.5
06B1: BCF 07.3
06B2: BCF 20.3
06B3: MOVF 20,W
06B4: BSF 03.5
06B5: MOVWF 07
.................... I2C_Write(0x80);
03B8: MOVLW 80
03B9: BCF 03.5
03BA: MOVWF 2E
03BB: CALL 09B
.................... I2C_write(0xF5);
03BC: MOVLW F5
03BD: MOVWF 2E
03BE: CALL 09B
.................... // i2c_stop();
06B6: MOVLW 80
06B7: BCF 03.5
06B8: MOVWF 26
06B9: CALL 0AE
.................... I2C_write(0xE5);
06BA: MOVLW E5
06BB: MOVWF 26
06BC: CALL 0AE
.................... // i2c_stop();
....................
.................... delay_ms(100);
06BD: MOVLW 64
06BE: MOVWF 26
06BF: CALL 09A
....................
.................... i2c_start();
03BF: BSF 20.4
03C0: MOVF 20,W
03C1: BSF 03.5
03C2: MOVWF 07
03C3: NOP
03C4: BCF 03.5
03C5: BSF 20.3
03C6: MOVF 20,W
03C7: BSF 03.5
03C8: MOVWF 07
03C9: NOP
03CA: BCF 03.5
03CB: BTFSS 07.3
03CC: GOTO 3CB
03CD: BCF 07.4
03CE: BCF 20.4
03CF: MOVF 20,W
03D0: BSF 03.5
03D1: MOVWF 07
03D2: NOP
03D3: BCF 03.5
03D4: BCF 07.3
03D5: BCF 20.3
03D6: MOVF 20,W
03D7: BSF 03.5
03D8: MOVWF 07
06C0: BSF 20.4
06C1: MOVF 20,W
06C2: BSF 03.5
06C3: MOVWF 07
06C4: NOP
06C5: BCF 03.5
06C6: BSF 20.3
06C7: MOVF 20,W
06C8: BSF 03.5
06C9: MOVWF 07
06CA: NOP
06CB: BCF 03.5
06CC: BTFSS 07.3
06CD: GOTO 6CC
06CE: BCF 07.4
06CF: BCF 20.4
06D0: MOVF 20,W
06D1: BSF 03.5
06D2: MOVWF 07
06D3: NOP
06D4: BCF 03.5
06D5: BCF 07.3
06D6: BCF 20.3
06D7: MOVF 20,W
06D8: BSF 03.5
06D9: MOVWF 07
.................... I2C_Write(0x81);
03D9: MOVLW 81
03DA: BCF 03.5
03DB: MOVWF 2E
03DC: CALL 09B
.................... YH=i2c_read(0);
03DD: CLRF 77
03DE: CALL 0E5
03DF: MOVF 78,W
03E0: MOVWF 2A
.................... YL=i2c_read(0);
03E1: CLRF 77
03E2: CALL 0E5
03E3: MOVF 78,W
03E4: MOVWF 29
.................... i2c_stop();
03E5: BCF 20.4
03E6: MOVF 20,W
03E7: BSF 03.5
03E8: MOVWF 07
03E9: NOP
03EA: BCF 03.5
03EB: BSF 20.3
03EC: MOVF 20,W
03ED: BSF 03.5
03EE: MOVWF 07
03EF: BCF 03.5
03F0: BTFSS 07.3
03F1: GOTO 3F0
03F2: NOP
03F3: GOTO 3F4
03F4: NOP
03F5: BSF 20.4
03F6: MOVF 20,W
03F7: BSF 03.5
03F8: MOVWF 07
03F9: NOP
....................
06DA: MOVLW 81
06DB: BCF 03.5
06DC: MOVWF 26
06DD: CALL 0AE
.................... MSB=i2c_read(1);
06DE: MOVLW 01
06DF: MOVWF 77
06E0: CALL 0F8
06E1: MOVF 78,W
06E2: MOVWF 21
.................... LSB=i2c_read(1);
06E3: MOVLW 01
06E4: MOVWF 77
06E5: CALL 0F8
06E6: MOVF 78,W
06E7: MOVWF 22
.................... Check=i2c_read(0);
06E8: CLRF 77
06E9: CALL 0F8
06EA: MOVF 78,W
06EB: MOVWF 23
.................... i2c_stop();
06EC: BCF 20.4
06ED: MOVF 20,W
06EE: BSF 03.5
06EF: MOVWF 07
06F0: NOP
06F1: BCF 03.5
06F2: BSF 20.3
06F3: MOVF 20,W
06F4: BSF 03.5
06F5: MOVWF 07
06F6: BCF 03.5
06F7: BTFSS 07.3
06F8: GOTO 6F7
06F9: NOP
06FA: GOTO 6FB
06FB: NOP
06FC: BSF 20.4
06FD: MOVF 20,W
06FE: BSF 03.5
06FF: MOVWF 07
0700: NOP
....................
....................
.................... data1 = (((unsigned int16) XH << 8) + XL>>2 );
03FA: BCF 03.5
03FB: CLRF 2F
03FC: MOVF 28,W
03FD: MOVWF 2E
03FE: MOVWF 2F
03FF: CLRF 2E
0400: MOVF 27,W
0401: ADDWF 2E,F
0402: BTFSC 03.0
0403: INCF 2F,F
0404: RRF 2F,W
0405: MOVWF 22
0406: RRF 2E,W
0407: MOVWF 21
0408: RRF 22,F
0409: RRF 21,F
040A: MOVLW 3F
040B: ANDWF 22,F
.................... data2 = (((unsigned int16) YH << 8) + YL>>2);
040C: CLRF 2F
040D: MOVF 2A,W
040E: MOVWF 2E
040F: MOVWF 2F
0410: CLRF 2E
0411: MOVF 29,W
0412: ADDWF 2E,F
0413: BTFSC 03.0
0414: INCF 2F,F
0415: RRF 2F,W
0416: MOVWF 24
0417: RRF 2E,W
0418: MOVWF 23
0419: RRF 24,F
041A: RRF 23,F
041B: MOVLW 3F
041C: ANDWF 24,F
.................... // printf("%X %X %X\r\n",MSB, LSB, Check);
....................
.................... LSB = LSB >> 2; // trow out status bits
0701: BCF 03.5
0702: RRF 22,F
0703: RRF 22,F
0704: MOVLW 3F
0705: ANDWF 22,F
....................
.................... printf("Stav: %d (procenta)\r\n", ack);
041D: MOVLW 00
041E: BTFSC 2D.0
041F: MOVLW 01
0420: MOVWF 2E
0421: MOVLW 10
0422: BSF 03.6
0423: MOVWF 0D
0424: MOVLW 00
0425: MOVWF 0F
0426: BCF 03.0
0427: MOVLW 06
0428: BCF 03.6
0429: MOVWF 2F
042A: CALL 12A
042B: MOVF 2E,W
042C: MOVWF 2F
042D: MOVLW 1F
042E: MOVWF 30
042F: GOTO 18E
0430: MOVLW 14
0431: BSF 03.6
0432: MOVWF 0D
0433: MOVLW 00
0434: MOVWF 0F
0435: BCF 03.0
0436: MOVLW 0D
0437: BCF 03.6
0438: MOVWF 2F
0439: CALL 12A
.................... data = (((unsigned int16) MSB << 8) + (LSB << 4) );
0706: CLRF 27
0707: MOVF 21,W
0708: MOVWF 26
0709: MOVWF 27
070A: CLRF 26
070B: SWAPF 22,W
070C: MOVWF 77
070D: MOVLW F0
070E: ANDWF 77,F
070F: MOVF 77,W
0710: ADDWF 26,W
0711: MOVWF 24
0712: MOVF 27,W
0713: MOVWF 25
0714: BTFSC 03.0
0715: INCF 25,F
.................... return( -6.0 + 125.0*((float)data/0xFFFF));
0716: MOVF 25,W
0717: MOVWF 27
0718: MOVF 24,W
0719: MOVWF 26
071A: CALL 20B
071B: MOVF 77,W
071C: MOVWF 26
071D: MOVF 78,W
071E: MOVWF 27
071F: MOVF 79,W
0720: MOVWF 28
0721: MOVF 7A,W
0722: MOVWF 29
0723: MOVWF 2D
0724: MOVF 79,W
0725: MOVWF 2C
0726: MOVF 78,W
0727: MOVWF 2B
0728: MOVF 77,W
0729: MOVWF 2A
072A: CLRF 31
072B: MOVLW FF
072C: MOVWF 30
072D: MOVLW 7F
072E: MOVWF 2F
072F: MOVLW 8E
0730: MOVWF 2E
0731: CALL 228
0732: CLRF 35
0733: CLRF 34
0734: MOVLW 7A
0735: MOVWF 33
0736: MOVLW 85
0737: MOVWF 32
0738: MOVF 7A,W
0739: MOVWF 39
073A: MOVF 79,W
073B: MOVWF 38
073C: MOVF 78,W
073D: MOVWF 37
073E: MOVF 77,W
073F: MOVWF 36
0740: CALL 2F2
0741: BCF 03.1
0742: CLRF 29
0743: CLRF 28
0744: MOVLW C0
0745: MOVWF 27
0746: MOVLW 81
0747: MOVWF 26
0748: MOVF 7A,W
0749: MOVWF 2D
074A: MOVF 79,W
074B: MOVWF 2C
074C: MOVF 78,W
074D: MOVWF 2B
074E: MOVF 77,W
074F: MOVWF 2A
0750: CALL 367
.................... }
0751: BSF 0A.3
0752: BCF 0A.4
0753: GOTO 0E3 (RETURN)
....................
.................... printf("Stav: %Ld(procenta)\r\n", data1);
043A: MOVLW 1B
043B: BSF 03.6
043C: MOVWF 0D
043D: MOVLW 00
043E: MOVWF 0F
043F: BCF 03.0
0440: MOVLW 06
0441: BCF 03.6
0442: MOVWF 2F
0443: CALL 12A
0444: MOVLW 10
0445: MOVWF 04
0446: MOVF 22,W
0447: MOVWF 2F
0448: MOVF 21,W
0449: MOVWF 2E
044A: CALL 1F5
044B: MOVLW 1F
044C: BSF 03.6
044D: MOVWF 0D
044E: MOVLW 00
044F: MOVWF 0F
0450: BSF 03.0
0451: MOVLW 0C
0452: BCF 03.6
0453: MOVWF 2F
0454: CALL 12A
.................... printf("Stav: %Ld(procenta)\r\n", data2);
0455: MOVLW 26
0456: BSF 03.6
0457: MOVWF 0D
0458: MOVLW 00
0459: MOVWF 0F
045A: BCF 03.0
045B: MOVLW 06
045C: BCF 03.6
045D: MOVWF 2F
045E: CALL 12A
045F: MOVLW 10
0460: MOVWF 04
0461: MOVF 24,W
0462: MOVWF 2F
0463: MOVF 23,W
0464: MOVWF 2E
0465: CALL 1F5
0466: MOVLW 2A
0467: BSF 03.6
0468: MOVWF 0D
0469: MOVLW 00
046A: MOVWF 0F
046B: BSF 03.0
046C: MOVLW 0C
046D: BCF 03.6
046E: MOVWF 2F
046F: CALL 12A
....................
.................... delay_ms (2000);
0470: MOVLW 08
0471: MOVWF 2E
0472: MOVLW FA
0473: MOVWF 2F
0474: GOTO 275
0475: DECFSZ 2E,F
0476: GOTO 472
.................... void main()
.................... {
*
002F: DATA 00,00
*
0800: CLRF 04
0801: BCF 03.7
0802: MOVLW 1F
0803: ANDWF 03,F
0804: MOVLW 71
0805: BSF 03.5
0806: MOVWF 0F
0807: MOVF 0F,W
0808: BCF 06.7
0809: BCF 03.5
080A: BSF 06.7
080B: BSF 03.5
080C: BSF 03.6
080D: MOVF 09,W
080E: ANDLW C0
080F: MOVWF 09
0810: BCF 03.6
0811: BCF 1F.4
0812: BCF 1F.5
0813: MOVLW 00
0814: BSF 03.6
0815: MOVWF 08
0816: BCF 03.5
0817: CLRF 07
0818: CLRF 08
0819: CLRF 09
....................
.................... }
0477: GOTO 2F3
.................... setup_adc_ports(NO_ANALOGS|VSS_VDD);
*
081D: BSF 03.5
081E: BSF 03.6
081F: MOVF 09,W
0820: ANDLW C0
0821: MOVWF 09
0822: BCF 03.6
0823: BCF 1F.4
0824: BCF 1F.5
0825: MOVLW 00
0826: BSF 03.6
0827: MOVWF 08
.................... setup_adc(ADC_CLOCK_DIV_2);
0828: BCF 03.5
0829: BCF 03.6
082A: BCF 1F.6
082B: BCF 1F.7
082C: BSF 03.5
082D: BCF 1F.7
082E: BCF 03.5
082F: BSF 1F.0
.................... setup_spi(SPI_SS_DISABLED);
0830: BCF 14.5
0831: BCF 20.5
0832: MOVF 20,W
0833: BSF 03.5
0834: MOVWF 07
0835: BCF 03.5
0836: BSF 20.4
0837: MOVF 20,W
0838: BSF 03.5
0839: MOVWF 07
083A: BCF 03.5
083B: BCF 20.3
083C: MOVF 20,W
083D: BSF 03.5
083E: MOVWF 07
083F: MOVLW 01
0840: BCF 03.5
0841: MOVWF 14
0842: MOVLW 00
0843: BSF 03.5
0844: MOVWF 14
.................... setup_timer_0(RTCC_INTERNAL|RTCC_DIV_1);
0845: MOVF 01,W
0846: ANDLW C7
0847: IORLW 08
0848: MOVWF 01
.................... setup_timer_1(T1_DISABLED);
0849: BCF 03.5
084A: CLRF 10
.................... setup_timer_2(T2_DISABLED,0,1);
084B: MOVLW 00
084C: MOVWF 78
084D: MOVWF 12
084E: MOVLW 00
084F: BSF 03.5
0850: MOVWF 12
.................... setup_ccp1(CCP_OFF);
0851: BCF 03.5
0852: BSF 20.2
0853: MOVF 20,W
0854: BSF 03.5
0855: MOVWF 07
0856: BCF 03.5
0857: CLRF 17
0858: BSF 03.5
0859: CLRF 1B
085A: CLRF 1C
085B: MOVLW 01
085C: MOVWF 1D
.................... setup_comparator(NC_NC_NC_NC);
085D: BCF 03.5
085E: BSF 03.6
085F: CLRF 07
0860: CLRF 08
0861: CLRF 09
....................
.................... void SHT25_soft_reset();
.................... printf("SHT25 humidity and temperature sensor example \r\n",);
0862: MOVLW 04
0863: MOVWF 0D
0864: MOVLW 00
0865: MOVWF 0F
0866: BCF 0A.3
0867: BCF 03.6
0868: GOTO 052
0869: BSF 0A.3
.................... delay_ms (500);
086A: MOVLW 02
086B: MOVWF 21
086C: MOVLW FA
086D: MOVWF 26
086E: BCF 0A.3
086F: CALL 09A
0870: BSF 0A.3
0871: DECFSZ 21,F
0872: GOTO 06C
....................
.................... while(TRUE)
.................... {
.................... printf("setup: %X \r\n",SHT25_setup());
0873: BCF 0A.3
0874: GOTO 13D
0875: BSF 0A.3
0876: MOVF 78,W
0877: MOVWF 21
0878: MOVLW 1D
0879: BSF 03.6
087A: MOVWF 0D
087B: MOVLW 00
087C: MOVWF 0F
087D: BCF 03.0
087E: MOVLW 07
087F: BCF 03.6
0880: MOVWF 25
0881: BCF 0A.3
0882: CALL 199
0883: BSF 0A.3
0884: MOVF 21,W
0885: MOVWF 22
0886: MOVLW 37
0887: MOVWF 23
0888: BCF 0A.3
0889: GOTO 1E8
088A: BSF 0A.3
088B: MOVLW 20
088C: MOVWF 32
088D: BCF 0A.3
088E: CALL 030
088F: BSF 0A.3
0890: MOVLW 0D
0891: MOVWF 32
0892: BCF 0A.3
0893: CALL 030
0894: BSF 0A.3
0895: MOVLW 0A
0896: MOVWF 32
0897: BCF 0A.3
0898: CALL 030
0899: BSF 0A.3
.................... delay_ms (500);
089A: MOVLW 02
089B: MOVWF 21
089C: MOVLW FA
089D: MOVWF 26
089E: BCF 0A.3
089F: CALL 09A
08A0: BSF 0A.3
08A1: DECFSZ 21,F
08A2: GOTO 09C
.................... printf("Temp: %f \r\n",SHT25_get_temp());
08A3: BCF 0A.3
08A4: GOTO 4A8
08A5: BSF 0A.3
08A6: MOVF 77,W
08A7: MOVWF 21
08A8: MOVF 78,W
08A9: MOVWF 22
08AA: MOVF 79,W
08AB: MOVWF 23
08AC: MOVF 7A,W
08AD: MOVWF 24
08AE: MOVLW 24
08AF: BSF 03.6
08B0: MOVWF 0D
08B1: MOVLW 00
08B2: MOVWF 0F
08B3: BCF 03.0
08B4: MOVLW 06
08B5: BCF 03.6
08B6: MOVWF 25
08B7: BCF 0A.3
08B8: CALL 199
08B9: BSF 0A.3
08BA: MOVLW 89
08BB: MOVWF 04
08BC: MOVF 24,W
08BD: MOVWF 28
08BE: MOVF 23,W
08BF: MOVWF 27
08C0: MOVF 22,W
08C1: MOVWF 26
08C2: MOVF 21,W
08C3: MOVWF 25
08C4: MOVLW 02
08C5: MOVWF 29
08C6: BCF 0A.3
08C7: CALL 5B7
08C8: BSF 0A.3
08C9: MOVLW 20
08CA: MOVWF 32
08CB: BCF 0A.3
08CC: CALL 030
08CD: BSF 0A.3
08CE: MOVLW 0D
08CF: MOVWF 32
08D0: BCF 0A.3
08D1: CALL 030
08D2: BSF 0A.3
08D3: MOVLW 0A
08D4: MOVWF 32
08D5: BCF 0A.3
08D6: CALL 030
08D7: BSF 0A.3
.................... delay_ms (500);
08D8: MOVLW 02
08D9: MOVWF 21
08DA: MOVLW FA
08DB: MOVWF 26
08DC: BCF 0A.3
08DD: CALL 09A
08DE: BSF 0A.3
08DF: DECFSZ 21,F
08E0: GOTO 0DA
.................... printf("Hum: %f \r\n",SHT25_get_hum());
08E1: BCF 0A.3
08E2: GOTO 69E
08E3: BSF 0A.3
08E4: MOVF 77,W
08E5: MOVWF 21
08E6: MOVF 78,W
08E7: MOVWF 22
08E8: MOVF 79,W
08E9: MOVWF 23
08EA: MOVF 7A,W
08EB: MOVWF 24
08EC: MOVLW 2A
08ED: BSF 03.6
08EE: MOVWF 0D
08EF: MOVLW 00
08F0: MOVWF 0F
08F1: BCF 03.0
08F2: MOVLW 05
08F3: BCF 03.6
08F4: MOVWF 25
08F5: BCF 0A.3
08F6: CALL 199
08F7: BSF 0A.3
08F8: MOVLW 89
08F9: MOVWF 04
08FA: MOVF 24,W
08FB: MOVWF 28
08FC: MOVF 23,W
08FD: MOVWF 27
08FE: MOVF 22,W
08FF: MOVWF 26
0900: MOVF 21,W
0901: MOVWF 25
0902: MOVLW 02
0903: MOVWF 29
0904: BCF 0A.3
0905: CALL 5B7
0906: BSF 0A.3
0907: MOVLW 20
0908: MOVWF 32
0909: BCF 0A.3
090A: CALL 030
090B: BSF 0A.3
090C: MOVLW 0D
090D: MOVWF 32
090E: BCF 0A.3
090F: CALL 030
0910: BSF 0A.3
0911: MOVLW 0A
0912: MOVWF 32
0913: BCF 0A.3
0914: CALL 030
0915: BSF 0A.3
.................... delay_ms (1000);
0916: MOVLW 04
0917: MOVWF 21
0918: MOVLW FA
0919: MOVWF 26
091A: BCF 0A.3
091B: CALL 09A
091C: BSF 0A.3
091D: DECFSZ 21,F
091E: GOTO 118
.................... }
091F: GOTO 073
.................... }
....................
0478: SLEEP
0920: SLEEP
 
Configuration Fuses:
Word 1: 2CF5 INTRC NOWDT NOPUT MCLR NOPROTECT NOCPD NOBROWNOUT IESO FCMEN NOLVP NODEBUG
Word 1: 2CF4 INTRC_IO NOWDT NOPUT MCLR NOPROTECT NOCPD NOBROWNOUT IESO FCMEN NOLVP NODEBUG
Word 2: 3FFF NOWRT BORV40
/Modules/Sensors/SHT25V01A/SW/PIC16F887/main.pjt
18,11 → 18,11
[Opened Files]
1=main.c
2=main.h
3=C:\Program Files (x86)\PICC\devices\16F887.h
3=C:\Program Files\PICC\devices\16F887.h
4=
[Target Data]
OptionString=-p +FM
FileList=Z:\home\kaklik\MLAB\Modules\Sensors\SHT25V01A\SW\PIC16F887\main.c
FileList=D:\MLAB\Modules\Sensors\SHT25V01A\SW\PIC16F887\main.c
[Units]
Count=1
1=main (main)
/Modules/Sensors/SHT25V01A/SW/PIC16F887/main.sta
1,57 → 1,65
 
ROM used: 1145 (14%)
1145 (14%) including unused fragments
ROM used: 2165 (26%)
2337 (29%) including unused fragments
 
2 Average locations per line
27 Average locations per statement
4 Average locations per line
37 Average locations per statement
 
RAM used: 8 (2%) at main() level
29 (8%) worst case
RAM used: 10 (3%) at main() level
36 (10%) worst case
 
Stack used: 2 worst case (out of 8 total available)
 
Lines Stmts % Files
----- ----- --- -----
76 42 100 main.c
108 58 100 main.c
23 0 0 main.h
423 0 0 C:\Program Files (x86)\PICC\devices\16F887.h
423 0 0 C:\Program Files\PICC\devices\16F887.h
----- -----
522 42 Total
554 58 Total
 
Page ROM % RAM Vol Diff Functions:
---- --- --- --- --- ---- ----------
0 22 2 1 @delay_ms1
0 69 6 3 @I2C_READ_1
0 74 6 1 @I2C_WRITE_1
0 34 3 1 @PUTCHAR_1_
0 494 43 2 1503 5.5 main
0 12 1 0 @const78
0 72 6 3 @PSTRINGC7_69
0 11 1 0 @const90
0 79 7 4 @PSTRINGCN7_69
0 21 2 3 @DIV88
0 103 9 6 @PRINTF_D_69
0 11 1 0 @const99
0 128 11 9 @PRINTF_LD_69
0 11 1 0 @const102
0 20 1 1 @delay_ms1
0 69 3 3 @I2C_READ_1
0 74 3 1 @I2C_WRITE_1
0 34 2 1 @PUTCHAR_1_
0 92 4 1 167 2.2 SHT25_setup
0 205 9 9 558 6.0 SHT25_get_temp
0 29 1 2 55 1.1 @ITOF
0 202 9 14 535 6.1 @DIVFF
0 117 5 13 161 2.1 @MULFF
0 321 15 16 @ADDFF
0 182 8 9 538 6.0 SHT25_get_hum
1 289 13 4 231 2.2 MAIN
0 25 1 0 611 5.9 @const102
0 72 3 3 3 0.0 @PSTRINGC7_69
0 7 0 0 231 2.2 @const104
0 79 4 4 @PSTRINGCN7_69
0 35 2 2 @PRINTF_X_69
0 6 0 0 @const110
Inline 5 @FTOSD
0 66 3 13 @DIV3232
0 231 11 13 @PRINTF_L32D_69FPFPF
0 6 0 0 @const119
 
Program metrics:
Functions 1
Statements 42
Comments 91
Volume (V) 1538
Difficilty (D) 4.9
Effort to implement (E) 7509
Time to implement (T) 7 minutes
Est Delivered Bugs (B) 0
Functions 10
Statements 58
Comments 100
Volume (V) 4841
Difficilty (D) 33.1
Effort to implement (E) 160293
Time to implement (T) 2 hours, 28 minutes
Est Delivered Bugs (B) 1
Cyclomatic Complexity 1
Maintainability (MI) 112
Maintainability (MI) 61
 
Segment Used Free
----------- ---- ----
00000-00003 4 0
00004-007FF 1141 903
00800-00FFF 0 2048
00004-007FF 1872 172
00800-00FFF 289 1759
01000-017FF 0 2048
01800-01FFF 0 2048
 
/Modules/Sensors/SHT25V01A/SW/PIC16F887/main.sym
1,54 → 1,93
004-005 @READ_PROGRAM_MEMORY8.P1
004 @WRITE_PROGRAM_MEMORY8.P2
004 @WRITE_PROGRAM_MEMORY8.P1
004-005 @READ_PROGRAM_MEMORY8.P2
015 CCP_1
015 CCP_1_LOW
016 CCP_1_HIGH
01B CCP_2
01B CCP_2_LOW
01B CCP_2
01C CCP_2_HIGH
020 @TRIS_C
021-022 main.data1
023-024 main.data2
025-026 main.data3
027 main.XL
028 main.XH
029 main.YL
02A main.YH
02B main.ZL
02C main.ZH
02D.0 ack
02E @I2C_WRITE_1.P1
02E @I2C_READ_1.P2
02E-02F @PRINTF_LD_69.P3
02E main.@SCRATCH1
02E @PSTRINGC7_69.@SCRATCH1
02F @PSTRINGCN7_69.P1
02F @delay_ms1.P2
02F @PRINTF_D_69.P3
02F @I2C_READ_1.@SCRATCH1
02F main.@SCRATCH2
02F @PSTRINGC7_69.@SCRATCH2
030 @PRINTF_D_69.P1
030 @I2C_READ_1.@SCRATCH2
030 @PSTRINGC7_69.@SCRATCH3
030 @PSTRINGCN7_69.@SCRATCH1
030 @PRINTF_LD_69.@SCRATCH1
031 @PSTRINGCN7_69.@SCRATCH2
031 @PRINTF_D_69.@SCRATCH1
031 @PRINTF_LD_69.@SCRATCH2
032 @PSTRINGCN7_69.@SCRATCH3
032 @PRINTF_D_69.@SCRATCH2
032 @PRINTF_LD_69.@SCRATCH3
033 @PRINTF_D_69.@SCRATCH3
033 @PRINTF_LD_69.@SCRATCH4
034 @PRINTF_D_69.@SCRATCH4
034 @PRINTF_LD_69.@SCRATCH5
035 @DIV88.P1
035 @PRINTF_LD_69.@SCRATCH6
036 @DIV88.P1
036 @PRINTF_LD_69.@SCRATCH7
037 @PUTCHAR_1_.P1
037 @DIV88.@SCRATCH1
021 SHT25_get_hum.MSB
021 SHT25_get_temp.MSB
021 SHT25_setup.reg
021 MAIN.@SCRATCH1
021 @PSTRINGC7_69.@SCRATCH1
022 SHT25_get_hum.LSB
022 SHT25_get_temp.LSB
022 @PRINTF_X_69.P1
022 MAIN.@SCRATCH2
022 @PSTRINGC7_69.@SCRATCH2
023 SHT25_get_hum.Check
023 SHT25_get_temp.Check
023 @PRINTF_X_69.P1
023 MAIN.@SCRATCH3
023 @PSTRINGC7_69.@SCRATCH3
024-025 SHT25_get_temp.data
024-025 SHT25_get_hum.data
024 MAIN.@SCRATCH4
025-028 @PRINTF_L32D_69FPFPF.P1
025 @PSTRINGCN7_69.P2
026 @I2C_WRITE_1.P1
026-029 @ADDFF.P2
026-027 @ITOF.P3
026 @delay_ms1.P4
026 @I2C_READ_1.P5
026 SHT25_get_temp.@SCRATCH1
026 SHT25_get_hum.@SCRATCH1
026 @PSTRINGCN7_69.@SCRATCH1
027 @I2C_READ_1.@SCRATCH1
027 SHT25_get_temp.@SCRATCH2
027 SHT25_get_hum.@SCRATCH2
027 @PSTRINGCN7_69.@SCRATCH2
028 @I2C_READ_1.@SCRATCH2
028 SHT25_get_temp.@SCRATCH3
028 SHT25_get_hum.@SCRATCH3
028 @PSTRINGCN7_69.@SCRATCH3
029 @PRINTF_L32D_69FPFPF.P1
029 SHT25_get_temp.@SCRATCH4
029 SHT25_get_hum.@SCRATCH4
02A-02D @ADDFF.P1
02A-02D @DIVFF.P2
02A @PRINTF_L32D_69FPFPF.@SCRATCH1
02B @PRINTF_L32D_69FPFPF.@SCRATCH2
02C @PRINTF_L32D_69FPFPF.@SCRATCH3
02D @PRINTF_L32D_69FPFPF.@SCRATCH4
02E-031 @DIVFF.P1
02E @ADDFF.@SCRATCH1
02E @PRINTF_L32D_69FPFPF.@SCRATCH5
02F @ADDFF.@SCRATCH2
02F @PRINTF_L32D_69FPFPF.@SCRATCH6
030 @ADDFF.@SCRATCH3
030 @PRINTF_L32D_69FPFPF.@SCRATCH7
031 @ADDFF.@SCRATCH4
031 @PRINTF_L32D_69FPFPF.@SCRATCH8
032-035 @DIV3232.P1
032-035 @FTOSD.P2
032 @PUTCHAR_1_.P3
032-035 @MULFF.P4
032 @DIVFF.@SCRATCH1
032 @ADDFF.@SCRATCH5
033 @DIVFF.@SCRATCH2
033 @ADDFF.@SCRATCH6
034 @DIVFF.@SCRATCH3
034 @ADDFF.@SCRATCH7
035 @DIVFF.@SCRATCH4
035 @ADDFF.@SCRATCH8
036-039 @MULFF.P1
036-039 @DIV3232.P2
036 @DIVFF.@SCRATCH5
036 @FTOSD.@SCRATCH1
037 @DIVFF.@SCRATCH6
03A @MULFF.@SCRATCH1
03A @DIV3232.@SCRATCH1
03B @MULFF.@SCRATCH2
03B @DIV3232.@SCRATCH2
03C @MULFF.@SCRATCH3
03C @DIV3232.@SCRATCH3
03D @MULFF.@SCRATCH4
03D @DIV3232.@SCRATCH4
03E @MULFF.@SCRATCH5
03E @DIV3232.@SCRATCH5
077 @SCRATCH
078 @SCRATCH
078 _RETURN_
56,25 → 95,33
07A @SCRATCH
107.6 C1OUT
108.6 C2OUT
10D-10E @WRITE_PROGRAM_MEMORY8.P1
10D-10E @READ_PROGRAM_MEMORY8.P2
10D-10E @READ_PROGRAM_MEMORY8.P1
10D-10E @WRITE_PROGRAM_MEMORY8.P2
 
ROM Allocation:
0275 @delay_ms1
00E5 @I2C_READ_1
009B @I2C_WRITE_1
0031 @PUTCHAR_1_
028B main
0004 @const78
0053 @PSTRINGC7_69
0010 @const90
012A @PSTRINGCN7_69
0179 @DIV88
018E @PRINTF_D_69
001B @const99
01F5 @PRINTF_LD_69
0026 @const102
028B @cinit
009A @delay_ms1
00F8 @I2C_READ_1
00AE @I2C_WRITE_1
0030 @PUTCHAR_1_
013D SHT25_setup
04A8 SHT25_get_temp
020B @ITOF
0228 @DIVFF
02F2 @MULFF
0367 @ADDFF
069E SHT25_get_hum
0800 MAIN
0004 @const102
0052 @PSTRINGC7_69
001D @const104
0199 @PSTRINGCN7_69
01E8 @PRINTF_X_69
0024 @const110
05DE @FTOSD
0575 @DIV3232
05B7 @PRINTF_L32D_69FPFPF
002A @const119
0800 @cinit
 
 
User Memory space:
82,15 → 129,15
User Memory space:
 
Project Directory:
Z:\home\kaklik\MLAB\Modules\Sensors\SHT25V01A\SW\PIC16F887\
D:\MLAB\Modules\Sensors\SHT25V01A\SW\PIC16F887\
 
Project Files:
main.c
main.h
C:\Program Files (x86)\PICC\devices\16F887.h
C:\Program Files\PICC\devices\16F887.h
 
Units:
Z:\home\kaklik\MLAB\Modules\Sensors\SHT25V01A\SW\PIC16F887\main (main)
D:\MLAB\Modules\Sensors\SHT25V01A\SW\PIC16F887\main (main)
 
Compiler Settings:
Processor: PIC16F887
/Modules/Sensors/SHT25V01A/SW/PIC16F887/main.tre
1,47 → 1,78
ÀÄmain
ÀÄmain 0/494 Ram=2
ÀÄMAIN 1/289 Ram=4
ÃÄ??0??
ÃÄ@PSTRINGC7_69 0/72 Ram=3
³ ÃÄ@PUTCHAR_1_ 0/34 Ram=1
³ ÀÄ@PUTCHAR_1_ 0/34 Ram=1
ÃÄ@I2C_WRITE_1 0/74 Ram=1
ÃÄ@I2C_WRITE_1 0/74 Ram=1
ÃÄ@I2C_WRITE_1 0/74 Ram=1
ÃÄ@I2C_WRITE_1 0/74 Ram=1
ÃÄ@I2C_READ_1 0/69 Ram=3
ÃÄ@I2C_READ_1 0/69 Ram=3
ÃÄ@I2C_WRITE_1 0/74 Ram=1
ÃÄ@I2C_WRITE_1 0/74 Ram=1
ÃÄ@I2C_WRITE_1 0/74 Ram=1
ÃÄ@I2C_READ_1 0/69 Ram=3
ÃÄ@I2C_READ_1 0/69 Ram=3
ÃÄ@delay_ms1 0/20 Ram=1
ÃÄSHT25_setup 0/92 Ram=1
³ ÃÄ@I2C_WRITE_1 0/74 Ram=1
³ ÃÄ@I2C_WRITE_1 0/74 Ram=1
³ ÃÄ@I2C_WRITE_1 0/74 Ram=1
³ ÀÄ@I2C_READ_1 0/69 Ram=3
ÃÄ@PSTRINGCN7_69 0/79 Ram=4
³ ÃÄ@PUTCHAR_1_ 0/34 Ram=1
³ ÀÄ@PUTCHAR_1_ 0/34 Ram=1
ÃÄ@PRINTF_D_69 0/103 Ram=6
³ ÃÄ@DIV88 0/21 Ram=3
³ ÃÄ@DIV88 0/21 Ram=3
ÃÄ@PRINTF_X_69 0/35 Ram=2
³ ÃÄ@PUTCHAR_1_ 0/34 Ram=1
³ ÃÄ@PUTCHAR_1_ 0/34 Ram=1
³ ÃÄ@PUTCHAR_1_ 0/34 Ram=1
³ ÀÄ@PUTCHAR_1_ 0/34 Ram=1
ÃÄ@PUTCHAR_1_ 0/34 Ram=1
ÃÄ@PUTCHAR_1_ 0/34 Ram=1
ÃÄ@PUTCHAR_1_ 0/34 Ram=1
ÃÄ@delay_ms1 0/20 Ram=1
ÃÄSHT25_get_temp 0/205 Ram=9
³ ÃÄ@I2C_WRITE_1 0/74 Ram=1
³ ÃÄ@I2C_WRITE_1 0/74 Ram=1
³ ÃÄ@delay_ms1 0/20 Ram=1
³ ÃÄ@I2C_WRITE_1 0/74 Ram=1
³ ÃÄ@I2C_READ_1 0/69 Ram=3
³ ÃÄ@I2C_READ_1 0/69 Ram=3
³ ÃÄ@I2C_READ_1 0/69 Ram=3
³ ÃÄ@ITOF 0/29 Ram=2
³ ÃÄ@DIVFF 0/202 Ram=14
³ ÃÄ@MULFF 0/117 Ram=13
³ ÀÄ@ADDFF 0/321 Ram=16
ÃÄ@PSTRINGCN7_69 0/79 Ram=4
³ ÃÄ@PUTCHAR_1_ 0/34 Ram=1
³ ÀÄ@PUTCHAR_1_ 0/34 Ram=1
ÃÄ@PSTRINGCN7_69 0/79 Ram=4
ÃÄ@PRINTF_L32D_69FPFPF 0/231 Ram=13
³ ÃÄ@MULFF 0/117 Ram=13
³ ÃÄ@FTOSD (Inline) Ram=5
³ ÃÄ@DIV3232 0/66 Ram=13
³ ÃÄ@PUTCHAR_1_ 0/34 Ram=1
³ ÀÄ@PUTCHAR_1_ 0/34 Ram=1
ÃÄ@PRINTF_LD_69 0/128 Ram=9
³ ÀÄ@PUTCHAR_1_ 0/34 Ram=1
ÃÄ@PSTRINGCN7_69 0/79 Ram=4
³ ÃÄ@PUTCHAR_1_ 0/34 Ram=1
³ ÀÄ@PUTCHAR_1_ 0/34 Ram=1
³ ÃÄ@PUTCHAR_1_ 0/34 Ram=1
³ ÃÄ@PUTCHAR_1_ 0/34 Ram=1
³ ÀÄ@DIV3232 0/66 Ram=13
ÃÄ@PUTCHAR_1_ 0/34 Ram=1
ÃÄ@PUTCHAR_1_ 0/34 Ram=1
ÃÄ@PUTCHAR_1_ 0/34 Ram=1
ÃÄ@delay_ms1 0/20 Ram=1
ÃÄSHT25_get_hum 0/182 Ram=9
³ ÃÄ@I2C_WRITE_1 0/74 Ram=1
³ ÃÄ@I2C_WRITE_1 0/74 Ram=1
³ ÃÄ@delay_ms1 0/20 Ram=1
³ ÃÄ@I2C_WRITE_1 0/74 Ram=1
³ ÃÄ@I2C_READ_1 0/69 Ram=3
³ ÃÄ@I2C_READ_1 0/69 Ram=3
³ ÃÄ@I2C_READ_1 0/69 Ram=3
³ ÃÄ@ITOF 0/29 Ram=2
³ ÃÄ@DIVFF 0/202 Ram=14
³ ÃÄ@MULFF 0/117 Ram=13
³ ÀÄ@ADDFF 0/321 Ram=16
ÃÄ@PSTRINGCN7_69 0/79 Ram=4
³ ÃÄ@PUTCHAR_1_ 0/34 Ram=1
³ ÀÄ@PUTCHAR_1_ 0/34 Ram=1
ÃÄ@PRINTF_LD_69 0/128 Ram=9
³ ÀÄ@PUTCHAR_1_ 0/34 Ram=1
ÃÄ@PSTRINGCN7_69 0/79 Ram=4
ÃÄ@PRINTF_L32D_69FPFPF 0/231 Ram=13
³ ÃÄ@MULFF 0/117 Ram=13
³ ÃÄ@FTOSD (Inline) Ram=5
³ ÃÄ@DIV3232 0/66 Ram=13
³ ÃÄ@PUTCHAR_1_ 0/34 Ram=1
³ ÀÄ@PUTCHAR_1_ 0/34 Ram=1
ÀÄ@delay_ms1 0/22 Ram=1
³ ÃÄ@PUTCHAR_1_ 0/34 Ram=1
³ ÃÄ@PUTCHAR_1_ 0/34 Ram=1
³ ÃÄ@PUTCHAR_1_ 0/34 Ram=1
³ ÀÄ@DIV3232 0/66 Ram=13
ÃÄ@PUTCHAR_1_ 0/34 Ram=1
ÃÄ@PUTCHAR_1_ 0/34 Ram=1
ÃÄ@PUTCHAR_1_ 0/34 Ram=1
ÀÄ@delay_ms1 0/20 Ram=1