/Modules/Sensors/ALTIMET01A/SW/MPL3115/PIC16F887/main.bak |
---|
1,3 → 1,6 |
//Jan Chroust 15.4.2013 |
#include "C:\Users\Honza\Documents\pic\I2C_altimet\main.h" |
#define EEPROM_SDA PIN_B0 |
5,7 → 8,7 |
#use i2c(master, sda=EEPROM_SDA, scl=EEPROM_SCL) |
#use rs232(baud=9600,parity=N,xmit=PIN_B3,rcv=PIN_B2,bits=8) //rcv TXD xmit RXD |
#define MPL3115_ADDR_R 0xC1 |
#define MPL3115_ADDR_R 0xC1 //addresa pro cteni |
#define MPL3115_ADDR_W 0xC0 |
114,17 → 117,6 |
return p; |
} |
void main() |
{ |
131,8 → 123,6 |
float p, t, a; |
printf("Tlakomer nebo vyskomer \r\n",); |
while(TRUE) |
{ |
mpl3115_setP(); //nastaveni pro tlak a teplotu |
/Modules/Sensors/ALTIMET01A/SW/MPL3115/PIC16F887/main.c |
---|
1,7 → 1,7 |
//Jan Chroust 15.4.2013 |
#include "C:\Users\Honza\Documents\pic\I2C_altimet\main.h" |
#include "main.h" |
#define EEPROM_SDA PIN_B0 |
#define EEPROM_SCL PIN_B1 |
/Modules/Sensors/ALTIMET01A/SW/MPL3115/PIC16F887/main.cof |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/Modules/Sensors/ALTIMET01A/SW/MPL3115/PIC16F887/main.esym |
---|
1,7 → 1,7 |
D G "__PCM__" 0 163 ""4.106"" |
D G "__DEVICE__" 0 163 "887" |
D G "__DATE__" 0 163 ""15-4-13"" |
D G "__TIME__" 0 163 ""19:12:01"" "Standard Header file for the PIC16F887 device ////////////////" |
D G "__PCM__" 0 38 ""4.106"" |
D G "__DEVICE__" 0 38 "" |
D G "__DATE__" 0 38 ""07-V-13"" |
D G "__TIME__" 0 38 ""01:35:54"" "Jan Chroust 15.4.2013" |
d G "PIN_A0" 2 20 "40" |
d G "PIN_A1" 2 21 "41" |
d G "PIN_A2" 2 22 "42" |
273,44 → 273,44 |
d G "INT_RB5" 2 418 "0x0200B08" |
d G "INT_RB6" 2 419 "0x0400B08" |
d G "INT_RB7" 2 420 "0x0800B08" |
D G "EEPROM_SDA" 0 3 "PIN_B0" |
D G "EEPROM_SCL" 0 4 "PIN_B1" |
D G "MPL3115_ADDR_R" 0 8 "0xC1" |
D G "MPL3115_ADDR_W" 0 9 "0xC0" |
F G "mpl3115_setA" 0 12 "void()" "nastavení pro výku" |
C L "mpl3115_setA" 0 16 1 "FUNCTION" |
C L "mpl3115_setA" 0 16 1 "FUNCTION" |
C L "mpl3115_setA" 0 16 1 "FUNCTION" |
C L "mpl3115_setA" 0 16 1 "FUNCTION" |
F G "mpl3115_setP" 0 35 "void()" "nastavení pro tlak" |
C L "mpl3115_setP" 0 16 1 "FUNCTION" |
C L "mpl3115_setP" 0 16 1 "FUNCTION" |
C L "mpl3115_setP" 0 16 1 "FUNCTION" |
C L "mpl3115_setP" 0 16 1 "FUNCTION" |
F G "mpl3115_read" 0 59 "int8(int8 reg)" |
V L "reg" 0 59 "int8" |
V L "i" 0 61 "int8" |
F G "mpl3115_T" 0 75 "float()" "teplota ve stupnich" |
V L "m" 0 77 "int8" |
V L "l" 0 78 "float" |
V L "t" 0 78 "float" |
F G "mpl3115_A" 0 86 "float()" "vyska v m" |
V L "m" 0 89 "int16" |
V L "c" 0 89 "int16" |
V L "l" 0 90 "float" |
V L "a" 0 90 "float" |
F G "mpl3115_P" 0 100 "float()" "tlak v Pa" |
V L "m" 0 102 "int32" |
V L "c" 0 103 "int16" |
V L "l" 0 104 "int8" |
V L "p" 0 105 "float" |
V L "l1" 0 105 "float" |
F G "MAIN" 0 128 "void()" |
V L "p" 0 131 "float" |
V L "t" 0 131 "float" |
V L "a" 0 131 "float" |
C L "MAIN" 0 16 1 "FUNCTION" |
C L "MAIN" 0 16 1 "FUNCTION" |
D G "EEPROM_SDA" 0 6 "PIN_B0" |
D G "EEPROM_SCL" 0 7 "PIN_B1" |
D G "MPL3115_ADDR_R" 0 11 "0xC1" "addresa pro cteni" |
D G "MPL3115_ADDR_W" 0 12 "0xC0" |
F G "mpl3115_setA" 0 15 "void()" "nastavení pro výku" |
C L "mpl3115_setA" 0 19 1 "FUNCTION" |
C L "mpl3115_setA" 0 19 1 "FUNCTION" |
C L "mpl3115_setA" 0 19 1 "FUNCTION" |
C L "mpl3115_setA" 0 19 1 "FUNCTION" |
F G "mpl3115_setP" 0 38 "void()" "nastavení pro tlak" |
C L "mpl3115_setP" 0 19 1 "FUNCTION" |
C L "mpl3115_setP" 0 19 1 "FUNCTION" |
C L "mpl3115_setP" 0 19 1 "FUNCTION" |
C L "mpl3115_setP" 0 19 1 "FUNCTION" |
F G "mpl3115_read" 0 62 "int8()" |
V L "reg" 0 62 "int8" |
V L "i" 0 64 "int8" |
F G "mpl3115_T" 0 78 "float()" "teplota ve stupnich" |
V L "m" 0 80 "int8" |
V L "l" 0 81 "float" |
V L "t" 0 81 "float" |
F G "mpl3115_A" 0 89 "float()" "vyska v m" |
V L "m" 0 92 "int16" |
V L "c" 0 92 "int16" |
V L "l" 0 93 "float" |
V L "a" 0 93 "float" |
F G "mpl3115_P" 0 103 "float()" "tlak v Pa" |
V L "m" 0 105 "int32" |
V L "c" 0 106 "int16" |
V L "l" 0 107 "int8" |
V L "p" 0 108 "float" |
V L "l1" 0 108 "float" |
F G "MAIN" 0 120 "void()" |
V L "p" 0 123 "float" |
V L "t" 0 123 "float" |
V L "a" 0 123 "float" |
C L "MAIN" 0 19 1 "FUNCTION" |
C L "MAIN" 0 19 1 "FUNCTION" |
F B "reset_cpu" 0 0 |
F B "abs" 1 0 |
F B "sleep_ulpwu" 1 0 |
/Modules/Sensors/ALTIMET01A/SW/MPL3115/PIC16F887/main.hex |
---|
282,4 → 282,4 |
:04400E00F52CFF3F4F |
:00000001FF |
;PIC16F887 |
;CRC=F092 CREATED="15-4-13 19:12" |
;CRC=F092 CREATED="07-V-13 01:35" |
/Modules/Sensors/ALTIMET01A/SW/MPL3115/PIC16F887/main.lst |
---|
1,6 → 1,6 |
CCS PCM C Compiler, Version 4.106, 47914 15-4-13 19:12 |
CCS PCM C Compiler, Version 4.106, 47914 07-V-13 01:35 |
Filename: C:\Users\Honza\Documents\pic\I2C_altimet\main.lst |
Filename: Z:\home\kaklik\svnMLAB\Modules\Sensors\ALTIMET01A\SW\MPL3115\PIC16F887\main.lst |
ROM used: 2238 words (27%) |
Largest free fragment is 2048 |
13,7 → 13,10 |
0001: MOVWF 0A |
0002: GOTO 000 |
0003: NOP |
.................... #include "C:\Users\Honza\Documents\pic\I2C_altimet\main.h" |
.................... //Jan Chroust 15.4.2013 |
.................... |
.................... |
.................... #include "main.h" |
.................... #include <16F887.h> |
.................... //////// Standard Header file for the PIC16F887 device //////////////// |
.................... #device PIC16F887 |
203,7 → 206,7 |
005B: GOTO 04D |
005C: RETURN |
.................... |
.................... #define MPL3115_ADDR_R 0xC1 |
.................... #define MPL3115_ADDR_R 0xC1 //addresa pro cteni |
.................... #define MPL3115_ADDR_W 0xC0 |
.................... |
.................... |
953,17 → 956,6 |
04F7: BCF 0A.4 |
04F8: GOTO 03B (RETURN) |
.................... |
.................... |
.................... |
.................... |
.................... |
.................... |
.................... |
.................... |
.................... |
.................... |
.................... |
.................... |
.................... void main() |
.................... { |
* |
1005,8 → 997,6 |
0820: GOTO 05D |
0821: BSF 0A.3 |
.................... |
.................... |
.................... |
.................... while(TRUE) |
.................... { |
.................... mpl3115_setP(); //nastaveni pro tlak a teplotu |
/Modules/Sensors/ALTIMET01A/SW/MPL3115/PIC16F887/main.pjt |
---|
1,10 → 1,10 |
[PROJECT] |
Target=C:\Users\Honza\Documents\pic\I2C_altimet\main.hex |
Target=main.hex |
Development_Mode= |
Processor_Text=PIC16F887 |
ToolSuite=CCS |
Processor=0x887F |
[C:\Users\Honza\Documents\pic\I2C_altimet\main] |
[main] |
Type=4 |
Path= |
FileList= |
12,13 → 12,13 |
OptionString= |
AdditionalOptionString= |
[mru-list] |
1=C:\Users\Honza\Documents\pic\I2C_altimet\main.c |
1=main.c |
[Windows] |
0=0000 %S 0 0 796 451 3 0 |
[Units] |
Link=0 |
Count=1 |
1=C:\Users\Honza\Documents\pic\I2C_altimet\main |
1=main |
[Opened Files] |
1=main.c |
2= |
/Modules/Sensors/ALTIMET01A/SW/MPL3115/PIC16F887/main.sta |
---|
12,11 → 12,11 |
Lines Stmts % Files |
----- ----- --- ----- |
159 67 100 main.c |
149 67 100 main.c |
20 0 0 main.h |
423 0 0 ..\..\..\..\..\Program Files (x86)\PICC\devices\16F887.h |
423 0 0 C:\Program Files (x86)\PICC\devices\16F887.h |
----- ----- |
602 67 Total |
592 67 Total |
Page ROM % RAM Vol Diff Functions: |
---- --- --- --- --- ---- ---------- |
30,10 → 30,10 |
0 86 4 13 206 4.3 mpl3115_T |
0 29 1 2 @ITOF |
0 202 9 14 @DIVFF |
0 321 14 16 395 5.3 @ADDFF |
0 321 14 16 @ADDFF |
0 111 5 17 289 5.3 mpl3115_A |
0 174 8 22 411 5.7 mpl3115_P |
Inline 4 321 2.7 @DTOF |
Inline 4 @DTOF |
1 217 10 13 365 2.7 MAIN |
0 13 1 0 @const110 |
0 72 3 3 @PSTRINGC7_68 |
48,16 → 48,16 |
0 33 1 3 @PSTRINGCN_68 |
Program metrics: |
Functions 9 |
Functions 7 |
Statements 67 |
Comments 98 |
Volume (V) 4404 |
Difficilty (D) 28.9 |
Effort to implement (E) 127218 |
Time to implement (T) 1 hours, 58 minutes |
Comments 101 |
Volume (V) 3128 |
Difficilty (D) 20.8 |
Effort to implement (E) 64966 |
Time to implement (T) 1 hours, 0 minutes |
Est Delivered Bugs (B) 1 |
Cyclomatic Complexity 1 |
Maintainability (MI) 60 |
Maintainability (MI) 83 |
Segment Used Free |
----------- ---- ---- |
/Modules/Sensors/ALTIMET01A/SW/MPL3115/PIC16F887/main.sym |
---|
147,15 → 147,15 |
User Memory space: |
Project Directory: |
C:\Users\Honza\Documents\pic\I2C_altimet\ |
Z:\home\kaklik\svnMLAB\Modules\Sensors\ALTIMET01A\SW\MPL3115\PIC16F887\ |
Project Files: |
main.c |
main.h |
..\..\..\..\..\Program Files (x86)\PICC\devices\16F887.h |
C:\Program Files (x86)\PICC\devices\16F887.h |
Units: |
C:\Users\Honza\Documents\pic\I2C_altimet\main (main) |
Z:\home\kaklik\svnMLAB\Modules\Sensors\ALTIMET01A\SW\MPL3115\PIC16F887\main (main) |
Compiler Settings: |
Processor: PIC16F887 |