Subversion Repositories svnkaklik

Rev

Details | Last modification | View Log

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