/Modules/Sensors/SHT25V01A/SW/PIC16F887/main.bak
15,7 → 15,6
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
43,9 → 42,7
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));
71,7 → 68,7
Check=i2c_read(0);
i2c_stop();
 
printf("%X %X %X\r\n",MSB, LSB, Check);
// printf("%X %X %X\r\n",MSB, LSB, Check);
 
LSB = LSB >> 2; // trow out status bits
 
/Modules/Sensors/SHT25V01A/SW/PIC16F887/main.c
8,6 → 8,8
i2c_stop(); // Stop condition
}
 
SHT_
 
unsigned int8 SHT25_setup()
{
unsigned int8 reg;
15,7 → 17,6
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
/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.esym
1,7 → 1,7
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 "__PCM__" 0 109 ""4.106""
D G "__DEVICE__" 0 109 "887"
D G "__DATE__" 0 109 ""14-IV-13""
D G "__TIME__" 0 109 ""10:31:42"" "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"
282,28 → 282,28
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_setup" 0 5 1 "FUNCTION"
F G "SHT25_get_temp" 0 27 "float()"
V L "MSB" 0 29 "int8"
V L "LSB" 0 29 "int8"
V L "Check" 0 29 "int8"
V L "data" 0 30 "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"
F G "SHT25_get_hum" 0 52 "float()"
V L "MSB" 0 54 "int8"
V L "LSB" 0 54 "int8"
V L "Check" 0 54 "int8"
V L "data" 0 55 "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 G "MAIN" 0 80 "void()"
F G "SHT25_soft_reset" 0 92 "void()"
F B "reset_cpu" 0 0
F B "abs" 1 0
F B "sleep_ulpwu" 1 0
/Modules/Sensors/SHT25V01A/SW/PIC16F887/main.hex
273,4 → 273,4
:04400E00F42CFF3F50
:00000001FF
;PIC16F887
;CRC=90A5 CREATED="14-IV-13 01:31"
;CRC=90A5 CREATED="14-IV-13 10:31"
/Modules/Sensors/SHT25V01A/SW/PIC16F887/main.lst
1,4 → 1,4
CCS PCM C Compiler, Version 4.106, 47914 14-IV-13 01:31
CCS PCM C Compiler, Version 4.106, 47914 14-IV-13 10:31
 
Filename: D:\MLAB\Modules\Sensors\SHT25V01A\SW\PIC16F887\main.lst
 
288,7 → 288,6
0159: MOVLW E7
015A: MOVWF 26
015B: CALL 0AE
.................... // i2c_stop(); // Stop condition
....................
.................... i2c_start(); // Start condition
015C: BSF 20.4
/Modules/Sensors/SHT25V01A/SW/PIC16F887/main.pjt
17,7 → 17,7
0=0000 %S 0 0 796 451 3 0
[Opened Files]
1=main.c
2=main.h
2=
3=C:\Program Files\PICC\devices\16F887.h
4=
[Target Data]
/Modules/Sensors/SHT25V01A/SW/PIC16F887/main.sta
12,11 → 12,11
 
Lines Stmts % Files
----- ----- --- -----
108 58 100 main.c
107 58 100 main.c
23 0 0 main.h
423 0 0 C:\Program Files\PICC\devices\16F887.h
----- -----
554 58 Total
553 58 Total
 
Page ROM % RAM Vol Diff Functions:
---- --- --- --- --- ---- ----------
26,15 → 26,15
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 29 1 2 @ITOF
0 202 9 14 @DIVFF
0 117 5 13 @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 25 1 0 @const102
0 72 3 3 @PSTRINGC7_69
0 7 0 0 @const104
0 79 4 4 @PSTRINGCN7_69
0 35 2 2 @PRINTF_X_69
0 6 0 0 @const110
44,16 → 44,16
0 6 0 0 @const119
 
Program metrics:
Functions 10
Functions 4
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
Comments 99
Volume (V) 2053
Difficilty (D) 14.3
Effort to implement (E) 29400
Time to implement (T) 27 minutes
Est Delivered Bugs (B) 0
Cyclomatic Complexity 1
Maintainability (MI) 61
Maintainability (MI) 145
 
Segment Used Free
----------- ---- ----