Subversion Repositories svnkaklik

Rev

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

Rev Author Line No. Line
52 kaklik 1
CCS PCM C Compiler, Version 3.245, 27853               05-XI-06 22:19
2
 
3
               Filename: D:\KAKLIK\projekty\programy\PIC_C\test\PIC16F88\blik\blik.lst
4
 
5
               ROM used: 99 words (2%)
6
                         Largest free fragment is 2048
7
               RAM used: 6 (3%) at main() level
8
                         7 (4%) worst case
9
               Stack:    1 locations
10
 
11
*
12
0000:  MOVLW  00
13
0001:  MOVWF  0A
14
0002:  GOTO   019
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 
25
.................... #FUSES XT                    	//Crystal osc <= 4mhz 
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
....................  
37
.................... #use delay(clock=4000000) 
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
....................  
60
....................  
61
....................  
62
....................  
63
.................... void main() 
64
.................... { 
65
0019:  CLRF   04
66
001A:  MOVLW  1F
67
001B:  ANDWF  03,F
68
001C:  BSF    03.5
69
001D:  BCF    1F.4
70
001E:  BCF    1F.5
71
001F:  MOVF   1B,W
72
0020:  ANDLW  80
73
0021:  MOVWF  1B
74
0022:  MOVLW  07
75
0023:  MOVWF  1C
76
....................  
77
....................    setup_adc_ports(NO_ANALOGS|VSS_VDD);   // parametry 
78
0024:  BCF    1F.4
79
0025:  BCF    1F.5
80
0026:  MOVF   1B,W
81
0027:  ANDLW  80
82
0028:  MOVWF  1B
83
....................    setup_adc(ADC_OFF); 
84
0029:  BCF    03.5
85
002A:  BCF    1F.0
86
....................    setup_spi(FALSE); 
87
002B:  BCF    14.5
88
002C:  BSF    03.5
89
002D:  BCF    06.2
90
002E:  BSF    06.1
91
002F:  BCF    06.4
92
0030:  MOVLW  00
93
0031:  BCF    03.5
94
0032:  MOVWF  14
95
0033:  BSF    03.5
96
0034:  MOVWF  14
97
....................    setup_timer_0(RTCC_INTERNAL|RTCC_DIV_1); 
98
0035:  MOVF   01,W
99
0036:  ANDLW  C7
100
0037:  IORLW  08
101
0038:  MOVWF  01
102
....................    setup_timer_1(T1_DISABLED); 
103
0039:  BCF    03.5
104
003A:  CLRF   10
105
....................    setup_timer_2(T2_DISABLED,0,1); 
106
003B:  MOVLW  00
107
003C:  MOVWF  78
108
003D:  MOVWF  12
109
003E:  MOVLW  00
110
003F:  BSF    03.5
111
0040:  MOVWF  12
112
....................    setup_comparator(NC_NC_NC_NC); 
113
0041:  MOVLW  07
114
0042:  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
121
0049:  BCF    03.5
122
004A:  BCF    0D.6
123
....................    setup_vref(FALSE); 
124
004B:  BSF    03.5
125
004C:  CLRF   1D
126
....................    setup_oscillator(False); 
127
004D:  CLRF   0F
128
004E:  MOVF   0F,W
129
....................  
130
....................    while(true) // nekonecny cyklus 
131
....................    { 
132
....................       output_high(PIN_B0);    // nastav B0 na 1 
133
004F:  BCF    06.0
134
0050:  BCF    03.5
135
0051:  BSF    06.0
136
....................       Delay_ms(700);          // pockej 700ms 
137
0052:  MOVLW  04
138
0053:  MOVWF  21
139
0054:  MOVLW  AF
140
0055:  MOVWF  22
141
0056:  CALL   004
142
0057:  DECFSZ 21,F
143
0058:  GOTO   054
144
....................       output_low(PIN_B0);     //nastav B0 na 0 
145
0059:  BSF    03.5
146
005A:  BCF    06.0
147
005B:  BCF    03.5
148
005C:  BCF    06.0
149
....................       Delay_ms(50);           // pockej 50ms 
150
005D:  MOVLW  32
151
005E:  MOVWF  22
152
005F:  CALL   004
153
....................    }                       // opakuj cyklus 
154
0060:  BSF    03.5
155
0061:  GOTO   04F
156
....................  
157
.................... } 
158
0062:  SLEEP
159
 
160
Configuration Fuses:
161
   Word  1: 3F09   XT NOWDT NOPUT NOMCLR NOBROWNOUT NOLVP NOCPD NOWRT NODEBUG CCPB0 NOPROTECT
162
   Word  2: 3FFC   NOFCMEN NOIESO