Subversion Repositories svnkaklik

Rev

Rev 410 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 410 Rev 460
Line 1... Line 1...
1
CCS PCM C Compiler, Version 3.245, 27853               05-XI-06 22:19
1
CCS PCM C Compiler, Version 3.245, 27853               13-I-08 00:59
2
 
2
 
3
               Filename: D:\KAKLIK\projekty\programy\PIC_C\test\PIC16F88\blik\blik.lst
3
               Filename: D:\KAKLIK\projekty\programy\C\PIC_C\test\PIC16F88\blik\blik.lst
4
 
4
 
5
               ROM used: 99 words (2%)
5
               ROM used: 136 words (3%)
6
                         Largest free fragment is 2048
6
                         Largest free fragment is 2048
7
               RAM used: 6 (3%) at main() level
7
               RAM used: 6 (3%) at main() level
8
                         7 (4%) worst case
8
                         6 (3%) worst case
9
               Stack:    1 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   019
14
0002:  GOTO   004
15
0003:  NOP
15
0003:  NOP
16
.................... #include "blik.h" 
16
.................... #include "blik.h" 
17
.................... #include <16F88.h> 
17
.................... #include <16F88.h> 
18
.................... //////// Standard Header file for the PIC16F88 device //////////////// 
18
.................... //////// Standard Header file for the PIC16F88 device //////////////// 
19
.................... #device PIC16F88 
19
.................... #device PIC16F88 
20
.................... #list 
20
.................... #list 
21
....................  
21
....................  
22
.................... #device adc=8 
22
.................... #device adc=8 
23
....................  
23
....................  
24
.................... #FUSES NOWDT                 	//No Watch Dog Timer 
24
.................... #FUSES NOWDT                 	//No Watch Dog Timer 
25
.................... #FUSES XT                    	//Crystal osc <= 4mhz 
25
.................... #FUSES INTRC                    	//Crystal osc <= 4mhz 
26
.................... #FUSES NOPUT                 	//No Power Up Timer 
26
.................... #FUSES NOPUT                 	//No Power Up Timer 
27
.................... #FUSES NOMCLR                	//Master Clear pin used for I/O 
27
.................... #FUSES NOMCLR                	//Master Clear pin used for I/O 
28
.................... #FUSES NOBROWNOUT            	//No brownout reset 
28
.................... #FUSES NOBROWNOUT            	//No brownout reset 
29
.................... #FUSES NOLVP                 	//No low voltage prgming, B3(PIC16) or B5(PIC18) used for I/O 
29
.................... #FUSES NOLVP                 	//No low voltage prgming, B3(PIC16) or B5(PIC18) used for I/O 
30
.................... #FUSES NOCPD                 	//No EE protection 
30
.................... #FUSES NOCPD                 	//No EE protection 
Line 32... Line 32...
32
.................... #FUSES NODEBUG               	//No Debug mode for ICD 
32
.................... #FUSES NODEBUG               	//No Debug mode for ICD 
33
.................... #FUSES NOPROTECT             	//Code not protected from reading 
33
.................... #FUSES NOPROTECT             	//Code not protected from reading 
34
.................... #FUSES NOFCMEN               	//Fail-safe clock monitor disabled 
34
.................... #FUSES NOFCMEN               	//Fail-safe clock monitor disabled 
35
.................... #FUSES NOIESO                	//Internal External Switch Over mode disabled 
35
.................... #FUSES NOIESO                	//Internal External Switch Over mode disabled 
36
....................  
36
....................  
37
.................... #use delay(clock=4000000) 
37
.................... #use delay(clock=37526) 
38
0004:  MOVLW  22
-
 
39
0005:  MOVWF  04
-
 
40
0006:  MOVF   00,W
-
 
41
0007:  BTFSC  03.2
-
 
42
0008:  GOTO   018
-
 
43
0009:  MOVLW  01
-
 
44
000A:  MOVWF  78
-
 
45
000B:  CLRF   77
-
 
46
000C:  DECFSZ 77,F
-
 
47
000D:  GOTO   00C
-
 
48
000E:  DECFSZ 78,F
-
 
49
000F:  GOTO   00B
-
 
50
0010:  MOVLW  4A
-
 
51
0011:  MOVWF  77
-
 
52
0012:  DECFSZ 77,F
-
 
53
0013:  GOTO   012
-
 
54
0014:  NOP
-
 
55
0015:  NOP
-
 
56
0016:  DECFSZ 00,F
-
 
57
0017:  GOTO   009
-
 
58
0018:  RETLW  00
-
 
59
....................  
38
....................  
60
....................  
39
....................  
61
....................  
40
....................  
62
....................  
41
....................  
63
.................... void main() 
42
.................... void main() 
64
.................... { 
43
.................... { 
65
0019:  CLRF   04
44
0004:  CLRF   04
66
001A:  MOVLW  1F
45
0005:  MOVLW  1F
67
001B:  ANDWF  03,F
46
0006:  ANDWF  03,F
68
001C:  BSF    03.5
47
0007:  BSF    03.5
69
001D:  BCF    1F.4
48
0008:  BCF    1F.4
70
001E:  BCF    1F.5
49
0009:  BCF    1F.5
71
001F:  MOVF   1B,W
50
000A:  MOVF   1B,W
72
0020:  ANDLW  80
51
000B:  ANDLW  80
73
0021:  MOVWF  1B
52
000C:  MOVWF  1B
74
0022:  MOVLW  07
53
000D:  MOVLW  07
75
0023:  MOVWF  1C
54
000E:  MOVWF  1C
-
 
55
....................  
-
 
56
.................... int i; 
76
....................  
57
....................  
77
....................    setup_adc_ports(NO_ANALOGS|VSS_VDD);   // parametry 
58
....................    setup_adc_ports(NO_ANALOGS|VSS_VDD);   // parametry 
78
0024:  BCF    1F.4
59
000F:  BCF    1F.4
79
0025:  BCF    1F.5
60
0010:  BCF    1F.5
80
0026:  MOVF   1B,W
61
0011:  MOVF   1B,W
81
0027:  ANDLW  80
62
0012:  ANDLW  80
82
0028:  MOVWF  1B
63
0013:  MOVWF  1B
83
....................    setup_adc(ADC_OFF); 
64
....................    setup_adc(ADC_OFF); 
84
0029:  BCF    03.5
65
0014:  BCF    03.5
85
002A:  BCF    1F.0
66
0015:  BCF    1F.0
86
....................    setup_spi(FALSE); 
67
....................    setup_spi(FALSE); 
87
002B:  BCF    14.5
68
0016:  BCF    14.5
88
002C:  BSF    03.5
69
0017:  BSF    03.5
89
002D:  BCF    06.2
70
0018:  BCF    06.2
90
002E:  BSF    06.1
71
0019:  BSF    06.1
91
002F:  BCF    06.4
72
001A:  BCF    06.4
92
0030:  MOVLW  00
73
001B:  MOVLW  00
93
0031:  BCF    03.5
74
001C:  BCF    03.5
94
0032:  MOVWF  14
75
001D:  MOVWF  14
95
0033:  BSF    03.5
76
001E:  BSF    03.5
96
0034:  MOVWF  14
77
001F:  MOVWF  14
97
....................    setup_timer_0(RTCC_INTERNAL|RTCC_DIV_1); 
78
....................    setup_timer_0(RTCC_INTERNAL|RTCC_DIV_1); 
98
0035:  MOVF   01,W
79
0020:  MOVF   01,W
99
0036:  ANDLW  C7
80
0021:  ANDLW  C7
100
0037:  IORLW  08
81
0022:  IORLW  08
101
0038:  MOVWF  01
82
0023:  MOVWF  01
102
....................    setup_timer_1(T1_DISABLED); 
83
....................    setup_timer_1(T1_DISABLED); 
103
0039:  BCF    03.5
84
0024:  BCF    03.5
104
003A:  CLRF   10
85
0025:  CLRF   10
105
....................    setup_timer_2(T2_DISABLED,0,1); 
86
....................    setup_timer_2(T2_DISABLED,0,1); 
106
003B:  MOVLW  00
87
0026:  MOVLW  00
107
003C:  MOVWF  78
88
0027:  MOVWF  78
108
003D:  MOVWF  12
89
0028:  MOVWF  12
109
003E:  MOVLW  00
90
0029:  MOVLW  00
110
003F:  BSF    03.5
91
002A:  BSF    03.5
111
0040:  MOVWF  12
92
002B:  MOVWF  12
112
....................    setup_comparator(NC_NC_NC_NC); 
93
....................    setup_comparator(NC_NC_NC_NC); 
113
0041:  MOVLW  07
94
002C:  MOVLW  07
114
0042:  MOVWF  1C
95
002D:  MOVWF  1C
115
0043:  MOVF   05,W
-
 
116
0044:  MOVLW  03
-
 
117
0045:  MOVWF  77
-
 
118
0046:  DECFSZ 77,F
-
 
119
0047:  GOTO   046
-
 
120
0048:  MOVF   1C,W
96
002E:  MOVF   1C,W
121
0049:  BCF    03.5
97
002F:  BCF    03.5
122
004A:  BCF    0D.6
98
0030:  BCF    0D.6
123
....................    setup_vref(FALSE); 
99
....................    setup_vref(FALSE); 
124
004B:  BSF    03.5
100
0031:  BSF    03.5
125
004C:  CLRF   1D
101
0032:  CLRF   1D
126
....................    setup_oscillator(False); 
102
....................    setup_oscillator(False); 
127
004D:  CLRF   0F
103
0033:  CLRF   0F
128
004E:  MOVF   0F,W
104
0034:  MOVF   0F,W
129
....................  
105
....................  
130
....................    while(true) // nekonecny cyklus 
106
....................    while(true) // nekonecny cyklus 
131
....................    { 
107
....................    { 
132
....................       output_high(PIN_B0);    // nastav B0 na 1 
108
....................       output_high(PIN_B0);    // nastav B0 na 1 
133
004F:  BCF    06.0
109
0035:  BCF    06.0
-
 
110
0036:  BCF    03.5
-
 
111
0037:  BSF    06.0
-
 
112
....................       Delay_ms(50);           // pockej 50ms 
-
 
113
0038:  MOVLW  99
-
 
114
0039:  MOVWF  77
-
 
115
003A:  DECFSZ 77,F
-
 
116
003B:  GOTO   03A
-
 
117
003C:  NOP
-
 
118
003D:  NOP
-
 
119
....................       output_high(PIN_B1);    // nastav B0 na 1 
-
 
120
003E:  BSF    03.5
-
 
121
003F:  BCF    06.1
134
0050:  BCF    03.5
122
0040:  BCF    03.5
135
0051:  BSF    06.0
123
0041:  BSF    06.1
136
....................       Delay_ms(700);          // pockej 700ms 
124
....................       Delay_ms(50);           // pockej 50ms 
137
0052:  MOVLW  04
125
0042:  MOVLW  99
138
0053:  MOVWF  21
126
0043:  MOVWF  77
-
 
127
0044:  DECFSZ 77,F
-
 
128
0045:  GOTO   044
-
 
129
0046:  NOP
-
 
130
0047:  NOP
-
 
131
....................       output_high(PIN_B2);    // nastav B0 na 1 
-
 
132
0048:  BSF    03.5
-
 
133
0049:  BCF    06.2
-
 
134
004A:  BCF    03.5
-
 
135
004B:  BSF    06.2
-
 
136
....................  
-
 
137
....................       for(i=0;i<=100;i++) 
-
 
138
004C:  CLRF   21
-
 
139
004D:  MOVF   21,W
-
 
140
004E:  SUBLW  64
-
 
141
004F:  BTFSS  03.0
-
 
142
0050:  GOTO   067
-
 
143
....................       { 
-
 
144
....................         Output_high(PIN_A2); 
-
 
145
0051:  BSF    03.5
-
 
146
0052:  BCF    05.2
-
 
147
0053:  BCF    03.5
-
 
148
0054:  BSF    05.2
-
 
149
....................         Delay_ms(1); 
139
0054:  MOVLW  AF
150
0055:  MOVLW  02
140
0055:  MOVWF  22
151
0056:  MOVWF  77
-
 
152
0057:  DECFSZ 77,F
141
0056:  CALL   004
153
0058:  GOTO   057
-
 
154
0059:  NOP
-
 
155
005A:  NOP
-
 
156
....................         Output_low(PIN_A2); 
-
 
157
005B:  BSF    03.5
-
 
158
005C:  BCF    05.2
-
 
159
005D:  BCF    03.5
-
 
160
005E:  BCF    05.2
-
 
161
....................         Delay_ms(1); 
-
 
162
005F:  MOVLW  02
-
 
163
0060:  MOVWF  77
142
0057:  DECFSZ 21,F
164
0061:  DECFSZ 77,F
-
 
165
0062:  GOTO   061
-
 
166
0063:  NOP
-
 
167
0064:  NOP
-
 
168
....................       } 
-
 
169
0065:  INCF   21,F
143
0058:  GOTO   054
170
0066:  GOTO   04D
-
 
171
....................        
144
....................       output_low(PIN_B0);     //nastav B0 na 0 
172
....................       output_low(PIN_B0);     //nastav B0 na 0 
145
0059:  BSF    03.5
173
0067:  BSF    03.5
-
 
174
0068:  BCF    06.0
-
 
175
0069:  BCF    03.5
146
005A:  BCF    06.0
176
006A:  BCF    06.0
-
 
177
....................       Delay_ms(50);           // pockej 50ms 
-
 
178
006B:  MOVLW  99
-
 
179
006C:  MOVWF  77
-
 
180
006D:  DECFSZ 77,F
-
 
181
006E:  GOTO   06D
-
 
182
006F:  NOP
-
 
183
0070:  NOP
-
 
184
....................       output_low(PIN_B1);     //nastav B0 na 0 
-
 
185
0071:  BSF    03.5
-
 
186
0072:  BCF    06.1
-
 
187
0073:  BCF    03.5
-
 
188
0074:  BCF    06.1
-
 
189
....................       Delay_ms(50);           // pockej 50ms 
-
 
190
0075:  MOVLW  99
-
 
191
0076:  MOVWF  77
-
 
192
0077:  DECFSZ 77,F
-
 
193
0078:  GOTO   077
-
 
194
0079:  NOP
-
 
195
007A:  NOP
-
 
196
....................       output_low(PIN_B2);     //nastav B0 na 0 
147
005B:  BCF    03.5
197
007B:  BSF    03.5
148
005C:  BCF    06.0
198
007C:  BCF    06.2
-
 
199
007D:  BCF    03.5
-
 
200
007E:  BCF    06.2
149
....................       Delay_ms(50);           // pockej 50ms 
201
....................       Delay_ms(50);           // pockej 50ms 
150
005D:  MOVLW  32
202
007F:  MOVLW  99
151
005E:  MOVWF  22
203
0080:  MOVWF  77
-
 
204
0081:  DECFSZ 77,F
152
005F:  CALL   004
205
0082:  GOTO   081
-
 
206
0083:  NOP
-
 
207
0084:  NOP
153
....................    }                       // opakuj cyklus 
208
....................    }                          // opakuj cyklus 
154
0060:  BSF    03.5
209
0085:  BSF    03.5
155
0061:  GOTO   04F
210
0086:  GOTO   035
156
....................  
211
....................  
157
.................... } 
212
.................... } 
158
0062:  SLEEP
213
0087:  SLEEP
159
 
214
 
160
Configuration Fuses:
215
Configuration Fuses:
161
   Word  1: 3F09   XT NOWDT NOPUT NOMCLR NOBROWNOUT NOLVP NOCPD NOWRT NODEBUG CCPB0 NOPROTECT
216
   Word  1: 3F19   NOWDT NOPUT NOMCLR NOBROWNOUT NOLVP NOCPD NOWRT NODEBUG CCPB0 NOPROTECT INTRC
162
   Word  2: 3FFC   NOFCMEN NOIESO
217
   Word  2: 3FFC   NOFCMEN NOIESO