Rev 179 Rev 707
Line 1... Line 1...
1 CCS PCM C Compiler, Version 4.059d, 15399 02-IV-06 00:43 1 CCS PCM C Compiler, Version 4.106, 47914 29-IX-12 21:44
2   2  
3 Filename: mainpw2.lst 3 Filename: D:\MLAB_E\projekty\GM_counter\SW\converter\mainpw2.lst
4   4  
5 ROM used: 109 words (5%) 5 ROM used: 110 words (1%)
6 Largest free fragment is 1939 6 Largest free fragment is 2048
7 RAM used: 8 (2%) at main() level 7 RAM used: 7 (2%) at main() level
8 8 (2%) worst case 8 7 (2%) worst case
9 Stack: 0 locations 9 Stack: 0 locations
10   10  
11 * 11 *
12 0000: MOVLW 00 12 0000: MOVLW 00
13 0001: MOVWF 0A 13 0001: MOVWF 0A
14 0002: GOTO 004 14 0002: GOTO 004
15 0003: NOP 15 0003: NOP
16 .................... #include "C:\RS\kaki\try\mainpw2.h" 16 .................... #include "mainpw2.h"
17 .................... #include <16F877A.h> 17 .................... #include <16F877A.h>
18 .................... //////// Standard Header file for the PIC16F877A device //////////////// 18 .................... //////// Standard Header file for the PIC16F877A device ////////////////
19 .................... #device PIC16F877A 19 .................... #device PIC16F877A
20 .................... #list 20 .................... #list
21 .................... 21 ....................
Line 37... Line 37...
37 .................... 37 ....................
38 .................... 38 ....................
39 .................... 39 ....................
40 .................... void main() 40 .................... void main()
41 .................... { 41 .................... {
-   42 *
42 0004: CLRF 04 43 0004: CLRF 04
43 0005: BCF 03.7 44 0005: BCF 03.7
44 0006: MOVLW 1F 45 0006: MOVLW 1F
45 0007: ANDWF 03,F 46 0007: ANDWF 03,F
46 0008: MOVLW 19 47 0008: MOVLW 19
Line 77... Line 78...
77 0026: BSF 1F.0 78 0026: BSF 1F.0
78 .................... setup_psp(PSP_DISABLED); 79 .................... setup_psp(PSP_DISABLED);
79 0027: BSF 03.5 80 0027: BSF 03.5
80 0028: BCF 09.4 81 0028: BCF 09.4
81 .................... setup_spi(SPI_SS_DISABLED); 82 .................... setup_spi(SPI_SS_DISABLED);
82 * -  
83 0017: MOVLW FF -  
84 0018: BCF 03.5 -  
85 0019: MOVWF 20 -  
86 * -  
87 0029: BCF 03.5 83 0029: BCF 03.5
88 002A: BCF 14.5 84 002A: BCF 14.5
89 002B: BCF 20.5 85 002B: BCF 20.5
90 002C: MOVF 20,W 86 002C: MOVF 20,W
91 002D: BSF 03.5 87 002D: BSF 03.5
Line 137... Line 133...
137 .................... setup_comparator(NC_NC_NC_NC); 133 .................... setup_comparator(NC_NC_NC_NC);
138 0056: MOVLW 07 134 0056: MOVLW 07
139 0057: BSF 03.5 135 0057: BSF 03.5
140 0058: MOVWF 1C 136 0058: MOVWF 1C
141 0059: MOVF 05,W 137 0059: MOVF 05,W
-   138 005A: MOVWF 05
142 005A: MOVLW 03 139 005B: MOVLW 03
143 005B: MOVWF 77 140 005C: MOVWF 77
144 005C: DECFSZ 77,F 141 005D: DECFSZ 77,F
145 005D: GOTO 05C 142 005E: GOTO 05D
146 005E: MOVF 1C,W 143 005F: MOVF 1C,W
147 005F: BCF 03.5 144 0060: BCF 03.5
148 0060: BCF 0D.6 145 0061: BCF 0D.6
149 .................... setup_vref(FALSE); 146 .................... setup_vref(FALSE);
150 0061: BSF 03.5 147 0062: BSF 03.5
151 0062: CLRF 1D 148 0063: CLRF 1D
152 .................... 149 ....................
153 .................... while(TRUE) 150 .................... while(TRUE)
154 .................... { 151 .................... {
155 .................... delay=read_adc(); 152 .................... delay=read_adc();
156 0063: BCF 03.5 153 0064: BCF 03.5
157 0064: BSF 1F.2 154 0065: BSF 1F.2
158 0065: BTFSC 1F.2 155 0066: BTFSC 1F.2
159 0066: GOTO 065 156 0067: GOTO 066
160 0067: MOVF 1E,W 157 0068: MOVF 1E,W
161 0068: MOVWF 21 158 0069: MOVWF 21
162 .................... set_pwm1_duty((delay)); 159 .................... set_pwm1_duty((delay));
163 0069: MOVF 21,W 160 006A: MOVF 21,W
164 006A: MOVWF 15 161 006B: MOVWF 15
165 .................... } 162 .................... }
166 006B: GOTO 064 163 006C: GOTO 065
167 .................... } 164 .................... }
168 006C: SLEEP 165 006D: SLEEP
169   166  
170 Configuration Fuses: 167 Configuration Fuses:
171 Word 1: 3939 XT NOWDT NOPUT NODEBUG NOPROTECT NOBROWNOUT NOLVP NOCPD WRT_50% 168 Word 1: 3939 XT NOWDT NOPUT NODEBUG NOPROTECT NOBROWNOUT NOLVP NOCPD WRT_50%