Subversion Repositories svnkaklik

Rev

Details | Last modification | View Log

Rev Author Line No. Line
567 kaklik 1
CCS PCM C Compiler, Version 3.245, 27853               29-VI-08 23:25
158 kaklik 2
 
567 kaklik 3
               Filename: D:\KAKLIK\projekty\programy\C\PIC_C\test\C16F876A\blik\blik.lst
158 kaklik 4
 
5
               ROM used: 114 words (1%)
6
                         Largest free fragment is 2048
7
               RAM used: 7 (4%) at main() level
8
                         8 (5%) worst case
9
               Stack:    1 locations
10
 
11
*
12
0000:  MOVLW  00
13
0001:  MOVWF  0A
14
0002:  GOTO   017
15
0003:  NOP
16
.................... #include ".\blik.h" 
17
.................... #include <16F876A.h> 
18
.................... //////// Standard Header file for the PIC16F876A device //////////////// 
19
.................... #device PIC16F876A 
20
.................... #list 
21
....................  
22
.................... #device adc=8 
23
....................  
24
.................... #FUSES NOWDT                 	//No Watch Dog Timer 
25
.................... #FUSES HS                    	//High speed Osc (> 4mhz) 
26
.................... #FUSES NOPUT                 	//No Power Up Timer 
27
.................... #FUSES NOPROTECT             	//Code not protected from reading 
28
.................... #FUSES NODEBUG               	//No Debug mode for ICD 
29
.................... #FUSES NOBROWNOUT            	//No brownout reset 
30
.................... #FUSES NOLVP                 	//No low voltage prgming, B3(PIC16) or B5(PIC18) used for I/O 
31
.................... #FUSES NOCPD                 	//No EE protection 
32
.................... #FUSES NOWRT                 	//Program memory not write protected 
33
....................  
34
.................... #use delay(clock=20000000) 
35
0004:  MOVLW  22
36
0005:  MOVWF  04
37
0006:  MOVF   00,W
38
0007:  BTFSC  03.2
39
0008:  GOTO   016
40
0009:  MOVLW  06
41
000A:  MOVWF  78
42
000B:  CLRF   77
43
000C:  DECFSZ 77,F
44
000D:  GOTO   00C
45
000E:  DECFSZ 78,F
46
000F:  GOTO   00B
47
0010:  MOVLW  7B
48
0011:  MOVWF  77
49
0012:  DECFSZ 77,F
50
0013:  GOTO   012
51
0014:  DECFSZ 00,F
52
0015:  GOTO   009
53
0016:  RETLW  00
54
....................  
55
....................  
56
....................  
57
....................  
58
.................... void main() 
59
.................... { 
60
0017:  CLRF   04
61
0018:  MOVLW  1F
62
0019:  ANDWF  03,F
63
001A:  BSF    03.5
64
001B:  BSF    1F.0
65
001C:  BSF    1F.1
66
001D:  BSF    1F.2
67
001E:  BCF    1F.3
68
001F:  MOVLW  07
69
0020:  MOVWF  1C
70
....................  
71
....................    setup_adc_ports(NO_ANALOGS); 
72
*
73
0024:  BSF    03.5
74
0025:  BSF    1F.0
75
0026:  BSF    1F.1
76
0027:  BSF    1F.2
77
0028:  BCF    1F.3
78
....................    setup_adc(ADC_OFF); 
79
0029:  BCF    03.5
80
002A:  BCF    1F.0
81
....................    setup_spi(FALSE); 
82
*
83
0021:  MOVLW  FF
84
0022:  BCF    03.5
85
0023:  MOVWF  20
86
*
87
002B:  BCF    14.5
88
002C:  BCF    20.5
89
002D:  MOVF   20,W
90
002E:  BSF    03.5
91
002F:  MOVWF  07
92
0030:  BCF    03.5
93
0031:  BSF    20.4
94
0032:  MOVF   20,W
95
0033:  BSF    03.5
96
0034:  MOVWF  07
97
0035:  BCF    03.5
98
0036:  BCF    20.3
99
0037:  MOVF   20,W
100
0038:  BSF    03.5
101
0039:  MOVWF  07
102
003A:  MOVLW  00
103
003B:  BCF    03.5
104
003C:  MOVWF  14
105
003D:  BSF    03.5
106
003E:  MOVWF  14
107
....................    setup_timer_0(RTCC_INTERNAL|RTCC_DIV_1); 
108
003F:  MOVF   01,W
109
0040:  ANDLW  C7
110
0041:  IORLW  08
111
0042:  MOVWF  01
112
....................    setup_timer_1(T1_DISABLED); 
113
0043:  BCF    03.5
114
0044:  CLRF   10
115
....................    setup_timer_2(T2_DISABLED,0,1); 
116
0045:  MOVLW  00
117
0046:  MOVWF  78
118
0047:  MOVWF  12
119
0048:  MOVLW  00
120
0049:  BSF    03.5
121
004A:  MOVWF  12
122
....................    setup_comparator(NC_NC_NC_NC); 
123
004B:  MOVLW  07
124
004C:  MOVWF  1C
125
004D:  MOVF   05,W
126
004E:  MOVLW  10
127
004F:  MOVWF  77
128
0050:  DECFSZ 77,F
129
0051:  GOTO   050
130
0052:  NOP
131
0053:  MOVF   1C,W
132
0054:  BCF    03.5
133
0055:  BCF    0D.6
134
....................    setup_vref(FALSE); 
135
0056:  BSF    03.5
136
0057:  CLRF   1D
137
....................  
138
....................    While(true) 
139
....................    { 
140
....................       Delay_ms(500); 
141
0058:  MOVLW  02
142
0059:  BCF    03.5
143
005A:  MOVWF  21
144
005B:  MOVLW  FA
145
005C:  MOVWF  22
146
005D:  CALL   004
147
005E:  DECFSZ 21,F
148
005F:  GOTO   05B
149
....................       Output_high(PIN_B1); 
150
0060:  BSF    03.5
151
0061:  BCF    06.1
152
0062:  BCF    03.5
153
0063:  BSF    06.1
154
....................       Delay_ms(500); 
155
0064:  MOVLW  02
156
0065:  MOVWF  21
157
0066:  MOVLW  FA
158
0067:  MOVWF  22
159
0068:  CALL   004
160
0069:  DECFSZ 21,F
161
006A:  GOTO   066
162
....................       Output_low(PIN_B1); 
163
006B:  BSF    03.5
164
006C:  BCF    06.1
165
006D:  BCF    03.5
166
006E:  BCF    06.1
167
....................    } 
168
006F:  BSF    03.5
169
0070:  GOTO   058
170
....................  
171
.................... } 
172
0071:  SLEEP
173
 
174
Configuration Fuses:
175
   Word  1: 3F3A   HS NOWDT NOPUT NODEBUG NOPROTECT NOBROWNOUT NOLVP NOCPD NOWRT