Rev 2917 Rev 2948
Line 1... Line 1...
1 CCS PCM C Compiler, Version 4.106, 47914 15-4-13 19:12 1 CCS PCM C Compiler, Version 4.106, 47914 07-V-13 01:35
2   2  
3 Filename: C:\Users\Honza\Documents\pic\I2C_altimet\main.lst 3 Filename: Z:\home\kaklik\svnMLAB\Modules\Sensors\ALTIMET01A\SW\MPL3115\PIC16F887\main.lst
4   4  
5 ROM used: 2238 words (27%) 5 ROM used: 2238 words (27%)
6 Largest free fragment is 2048 6 Largest free fragment is 2048
7 RAM used: 18 (5%) at main() level 7 RAM used: 18 (5%) at main() level
8 55 (15%) worst case 8 55 (15%) worst case
Line 11... Line 11...
11 * 11 *
12 0000: MOVLW 08 12 0000: MOVLW 08
13 0001: MOVWF 0A 13 0001: MOVWF 0A
14 0002: GOTO 000 14 0002: GOTO 000
15 0003: NOP 15 0003: NOP
-   16 .................... //Jan Chroust 15.4.2013
-   17 ....................
-   18 ....................
16 .................... #include "C:\Users\Honza\Documents\pic\I2C_altimet\main.h" 19 .................... #include "main.h"
17 .................... #include <16F887.h> 20 .................... #include <16F887.h>
18 .................... //////// Standard Header file for the PIC16F887 device //////////////// 21 .................... //////// Standard Header file for the PIC16F887 device ////////////////
19 .................... #device PIC16F887 22 .................... #device PIC16F887
20 .................... #list 23 .................... #list
21 .................... 24 ....................
Line 201... Line 204...
201 0059: GOTO 045 204 0059: GOTO 045
202 005A: BTFSC 78.6 205 005A: BTFSC 78.6
203 005B: GOTO 04D 206 005B: GOTO 04D
204 005C: RETURN 207 005C: RETURN
205 .................... 208 ....................
206 .................... #define MPL3115_ADDR_R 0xC1 209 .................... #define MPL3115_ADDR_R 0xC1 //addresa pro cteni
207 .................... #define MPL3115_ADDR_W 0xC0 210 .................... #define MPL3115_ADDR_W 0xC0
208 .................... 211 ....................
209 .................... 212 ....................
210 .................... void mpl3115_setA (void) //nastavení pro výšku 213 .................... void mpl3115_setA (void) //nastavení pro výšku
211 .................... { 214 .................... {
Line 951... Line 954...
951 .................... } 954 .................... }
952 04F6: BSF 0A.3 955 04F6: BSF 0A.3
953 04F7: BCF 0A.4 956 04F7: BCF 0A.4
954 04F8: GOTO 03B (RETURN) 957 04F8: GOTO 03B (RETURN)
955 .................... 958 ....................
956 .................... -  
957 .................... -  
958 .................... -  
959 .................... -  
960 .................... -  
961 .................... -  
962 .................... -  
963 .................... -  
964 .................... -  
965 .................... -  
966 .................... -  
967 .................... void main() 959 .................... void main()
968 .................... { 960 .................... {
969 * 961 *
970 0800: CLRF 04 962 0800: CLRF 04
971 0801: BCF 03.7 963 0801: BCF 03.7
Line 1002... Line 994...
1002 081D: MOVWF 0F 994 081D: MOVWF 0F
1003 081E: BCF 0A.3 995 081E: BCF 0A.3
1004 081F: BCF 03.6 996 081F: BCF 03.6
1005 0820: GOTO 05D 997 0820: GOTO 05D
1006 0821: BSF 0A.3 998 0821: BSF 0A.3
1007 .................... -  
1008 .................... -  
1009 .................... 999 ....................
1010 .................... while(TRUE) 1000 .................... while(TRUE)
1011 .................... { 1001 .................... {
1012 .................... mpl3115_setP(); //nastaveni pro tlak a teplotu 1002 .................... mpl3115_setP(); //nastaveni pro tlak a teplotu
1013 0822: BCF 0A.3 1003 0822: BCF 0A.3