Subversion Repositories svnkaklik

Rev

Go to most recent revision | Details | Last modification | View Log

Rev Author Line No. Line
460 kaklik 1
CCS PCM C Compiler, Version 3.245, 27853               13-I-08 00:59
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
....................       { 
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); 
150
0055:  MOVLW  02
151
0056:  MOVWF  77
152
0057:  DECFSZ 77,F
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
164
0061:  DECFSZ 77,F
165
0062:  GOTO   061
166
0063:  NOP
167
0064:  NOP
168
....................       } 
169
0065:  INCF   21,F
170
0066:  GOTO   04D
171
....................        
52 kaklik 172
....................       output_low(PIN_B0);     //nastav B0 na 0 
460 kaklik 173
0067:  BSF    03.5
174
0068:  BCF    06.0
175
0069:  BCF    03.5
176
006A:  BCF    06.0
52 kaklik 177
....................       Delay_ms(50);           // pockej 50ms 
460 kaklik 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 
197
007B:  BSF    03.5
198
007C:  BCF    06.2
199
007D:  BCF    03.5
200
007E:  BCF    06.2
201
....................       Delay_ms(50);           // pockej 50ms 
202
007F:  MOVLW  99
203
0080:  MOVWF  77
204
0081:  DECFSZ 77,F
205
0082:  GOTO   081
206
0083:  NOP
207
0084:  NOP
208
....................    }                          // opakuj cyklus 
209
0085:  BSF    03.5
210
0086:  GOTO   035
52 kaklik 211
....................  
212
.................... } 
460 kaklik 213
0087:  SLEEP
52 kaklik 214
 
215
Configuration Fuses:
460 kaklik 216
   Word  1: 3F19   NOWDT NOPUT NOMCLR NOBROWNOUT NOLVP NOCPD NOWRT NODEBUG CCPB0 NOPROTECT INTRC
52 kaklik 217
   Word  2: 3FFC   NOFCMEN NOIESO