Subversion Repositories svnkaklik

Rev

Rev 625 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 625 Rev 659
1
CCS PCM C Compiler, Version 4.090, 47914               23-I-10 18:21
1
CCS PCM C Compiler, Version 4.090, 47914               23-I-10 18:21
2
 
2
 
3
               Filename: D:\svnKaklik\programy\C\PIC_C\mereni\tester serv\blikac.lst
3
               Filename: D:\svnKaklik\programy\C\PIC_C\mereni\tester serv\blikac.lst
4
 
4
 
5
               ROM used: 141 words (14%)
5
               ROM used: 141 words (14%)
6
                         Largest free fragment is 883
6
                         Largest free fragment is 883
7
               RAM used: 7 (19%) at main() level
7
               RAM used: 7 (19%) at main() level
8
                         8 (22%) worst case
8
                         8 (22%) worst case
9
               Stack:    1 locations
9
               Stack:    1 locations
10
 
10
 
11
*
11
*
12
0000:  MOVLW  00
12
0000:  MOVLW  00
13
0001:  MOVWF  0A
13
0001:  MOVWF  0A
14
0002:  GOTO   02B
14
0002:  GOTO   02B
15
0003:  NOP
15
0003:  NOP
16
.................... #include "blikac.h" 
16
.................... #include "blikac.h" 
17
.................... #include <16C84.h> 
17
.................... #include <16C84.h> 
18
.................... //////// Standard Header file for the PIC16C84 device //////////////// 
18
.................... //////// Standard Header file for the PIC16C84 device //////////////// 
19
.................... #device PIC16C84 
19
.................... #device PIC16C84 
20
.................... #list 
20
.................... #list 
21
....................  
21
....................  
22
.................... #use delay(clock=4000000) 
22
.................... #use delay(clock=4000000) 
23
0004:  MOVLW  13
23
0004:  MOVLW  13
24
0005:  MOVWF  04
24
0005:  MOVWF  04
25
0006:  MOVF   00,W
25
0006:  MOVF   00,W
26
0007:  BTFSC  03.2
26
0007:  BTFSC  03.2
27
0008:  GOTO   017
27
0008:  GOTO   017
28
0009:  MOVLW  01
28
0009:  MOVLW  01
29
000A:  MOVWF  0D
29
000A:  MOVWF  0D
30
000B:  CLRF   0C
30
000B:  CLRF   0C
31
000C:  DECFSZ 0C,F
31
000C:  DECFSZ 0C,F
32
000D:  GOTO   00C
32
000D:  GOTO   00C
33
000E:  DECFSZ 0D,F
33
000E:  DECFSZ 0D,F
34
000F:  GOTO   00B
34
000F:  GOTO   00B
35
0010:  MOVLW  4A
35
0010:  MOVLW  4A
36
0011:  MOVWF  0C
36
0011:  MOVWF  0C
37
0012:  DECFSZ 0C,F
37
0012:  DECFSZ 0C,F
38
0013:  GOTO   012
38
0013:  GOTO   012
39
0014:  GOTO   015
39
0014:  GOTO   015
40
0015:  DECFSZ 00,F
40
0015:  DECFSZ 00,F
41
0016:  GOTO   009
41
0016:  GOTO   009
42
0017:  RETLW  00
42
0017:  RETLW  00
43
0018:  MOVLW  12
43
0018:  MOVLW  12
44
0019:  SUBWF  14,F
44
0019:  SUBWF  14,F
45
001A:  BTFSS  03.0
45
001A:  BTFSS  03.0
46
001B:  GOTO   02A
46
001B:  GOTO   02A
47
001C:  MOVLW  14
47
001C:  MOVLW  14
48
001D:  MOVWF  04
48
001D:  MOVWF  04
49
001E:  MOVLW  FC
49
001E:  MOVLW  FC
50
001F:  ANDWF  00,F
50
001F:  ANDWF  00,F
51
0020:  BCF    03.0
51
0020:  BCF    03.0
52
0021:  RRF    00,F
52
0021:  RRF    00,F
53
0022:  RRF    00,F
53
0022:  RRF    00,F
54
0023:  MOVF   00,W
54
0023:  MOVF   00,W
55
0024:  BTFSC  03.2
55
0024:  BTFSC  03.2
56
0025:  GOTO   02A
56
0025:  GOTO   02A
57
0026:  GOTO   028
57
0026:  GOTO   028
58
0027:  NOP
58
0027:  NOP
59
0028:  DECFSZ 00,F
59
0028:  DECFSZ 00,F
60
0029:  GOTO   027
60
0029:  GOTO   027
61
002A:  GOTO   07E (RETURN)
61
002A:  GOTO   07E (RETURN)
62
.................... #fuses XT,PUT,NOWDT 
62
.................... #fuses XT,PUT,NOWDT 
63
....................  
63
....................  
64
....................  
64
....................  
65
.................... #DEFINE  SERVO_X        PIN_A2      // piny na ktere jsou pripojena serva 
65
.................... #DEFINE  SERVO_X        PIN_A2      // piny na ktere jsou pripojena serva 
66
.................... #DEFINE  SERVO_Y        PIN_B0 
66
.................... #DEFINE  SERVO_Y        PIN_B0 
67
.................... #DEFINE  TL1        PIN_B1 
67
.................... #DEFINE  TL1        PIN_B1 
68
....................  
68
....................  
69
.................... void main() 
69
.................... void main() 
70
.................... { 
70
.................... { 
71
002B:  CLRF   04
71
002B:  CLRF   04
72
002C:  MOVLW  1F
72
002C:  MOVLW  1F
73
002D:  ANDWF  03,F
73
002D:  ANDWF  03,F
74
....................    int i; 
74
....................    int i; 
75
....................    while (true) 
75
....................    while (true) 
76
....................    { 
76
....................    { 
77
....................      while(input(TL1)) 
77
....................      while(input(TL1)) 
78
....................      { 
78
....................      { 
79
002E:  BSF    03.5
79
002E:  BSF    03.5
80
002F:  BSF    06.1
80
002F:  BSF    06.1
81
0030:  BCF    03.5
81
0030:  BCF    03.5
82
0031:  BTFSS  06.1
82
0031:  BTFSS  06.1
83
0032:  GOTO   06E
83
0032:  GOTO   06E
84
....................        for(i=0;i<=100;i++) 
84
....................        for(i=0;i<=100;i++) 
85
0033:  CLRF   12
85
0033:  CLRF   12
86
0034:  MOVF   12,W
86
0034:  MOVF   12,W
87
0035:  SUBLW  64
87
0035:  SUBLW  64
88
0036:  BTFSS  03.0
88
0036:  BTFSS  03.0
89
0037:  GOTO   050
89
0037:  GOTO   050
90
....................        { 
90
....................        { 
91
....................         output_high(servo_y); 
91
....................         output_high(servo_y); 
92
0038:  BSF    03.5
92
0038:  BSF    03.5
93
0039:  BCF    06.0
93
0039:  BCF    06.0
94
003A:  BCF    03.5
94
003A:  BCF    03.5
95
003B:  BSF    06.0
95
003B:  BSF    06.0
96
....................         output_high(servo_x); 
96
....................         output_high(servo_x); 
97
003C:  BSF    03.5
97
003C:  BSF    03.5
98
003D:  BCF    05.2
98
003D:  BCF    05.2
99
003E:  BCF    03.5
99
003E:  BCF    03.5
100
003F:  BSF    05.2
100
003F:  BSF    05.2
101
....................         delay_us(1000); 
101
....................         delay_us(1000); 
102
0040:  MOVLW  01
102
0040:  MOVLW  01
103
0041:  MOVWF  13
103
0041:  MOVWF  13
104
0042:  CALL   004
104
0042:  CALL   004
105
....................         output_low(servo_y); 
105
....................         output_low(servo_y); 
106
0043:  BSF    03.5
106
0043:  BSF    03.5
107
0044:  BCF    06.0
107
0044:  BCF    06.0
108
0045:  BCF    03.5
108
0045:  BCF    03.5
109
0046:  BCF    06.0
109
0046:  BCF    06.0
110
....................         output_low(servo_x); 
110
....................         output_low(servo_x); 
111
0047:  BSF    03.5
111
0047:  BSF    03.5
112
0048:  BCF    05.2
112
0048:  BCF    05.2
113
0049:  BCF    03.5
113
0049:  BCF    03.5
114
004A:  BCF    05.2
114
004A:  BCF    05.2
115
....................         delay_ms(20); 
115
....................         delay_ms(20); 
116
004B:  MOVLW  14
116
004B:  MOVLW  14
117
004C:  MOVWF  13
117
004C:  MOVWF  13
118
004D:  CALL   004
118
004D:  CALL   004
119
....................        } 
119
....................        } 
120
004E:  INCF   12,F
120
004E:  INCF   12,F
121
004F:  GOTO   034
121
004F:  GOTO   034
122
....................  
122
....................  
123
....................        for(i=0;i<=100;i++) 
123
....................        for(i=0;i<=100;i++) 
124
0050:  CLRF   12
124
0050:  CLRF   12
125
0051:  MOVF   12,W
125
0051:  MOVF   12,W
126
0052:  SUBLW  64
126
0052:  SUBLW  64
127
0053:  BTFSS  03.0
127
0053:  BTFSS  03.0
128
0054:  GOTO   06D
128
0054:  GOTO   06D
129
....................        { 
129
....................        { 
130
....................         output_high(servo_y); 
130
....................         output_high(servo_y); 
131
0055:  BSF    03.5
131
0055:  BSF    03.5
132
0056:  BCF    06.0
132
0056:  BCF    06.0
133
0057:  BCF    03.5
133
0057:  BCF    03.5
134
0058:  BSF    06.0
134
0058:  BSF    06.0
135
....................         output_high(servo_x); 
135
....................         output_high(servo_x); 
136
0059:  BSF    03.5
136
0059:  BSF    03.5
137
005A:  BCF    05.2
137
005A:  BCF    05.2
138
005B:  BCF    03.5
138
005B:  BCF    03.5
139
005C:  BSF    05.2
139
005C:  BSF    05.2
140
....................         delay_us(2000); 
140
....................         delay_us(2000); 
141
005D:  MOVLW  02
141
005D:  MOVLW  02
142
005E:  MOVWF  13
142
005E:  MOVWF  13
143
005F:  CALL   004
143
005F:  CALL   004
144
....................         output_low(servo_y); 
144
....................         output_low(servo_y); 
145
0060:  BSF    03.5
145
0060:  BSF    03.5
146
0061:  BCF    06.0
146
0061:  BCF    06.0
147
0062:  BCF    03.5
147
0062:  BCF    03.5
148
0063:  BCF    06.0
148
0063:  BCF    06.0
149
....................         output_low(servo_x); 
149
....................         output_low(servo_x); 
150
0064:  BSF    03.5
150
0064:  BSF    03.5
151
0065:  BCF    05.2
151
0065:  BCF    05.2
152
0066:  BCF    03.5
152
0066:  BCF    03.5
153
0067:  BCF    05.2
153
0067:  BCF    05.2
154
....................         delay_ms(20); 
154
....................         delay_ms(20); 
155
0068:  MOVLW  14
155
0068:  MOVLW  14
156
0069:  MOVWF  13
156
0069:  MOVWF  13
157
006A:  CALL   004
157
006A:  CALL   004
158
....................        } 
158
....................        } 
159
006B:  INCF   12,F
159
006B:  INCF   12,F
160
006C:  GOTO   051
160
006C:  GOTO   051
161
....................      } 
161
....................      } 
162
006D:  GOTO   02E
162
006D:  GOTO   02E
163
....................      output_high(servo_y); 
163
....................      output_high(servo_y); 
164
006E:  BSF    03.5
164
006E:  BSF    03.5
165
006F:  BCF    06.0
165
006F:  BCF    06.0
166
0070:  BCF    03.5
166
0070:  BCF    03.5
167
0071:  BSF    06.0
167
0071:  BSF    06.0
168
....................      output_high(servo_x); 
168
....................      output_high(servo_x); 
169
0072:  BSF    03.5
169
0072:  BSF    03.5
170
0073:  BCF    05.2
170
0073:  BCF    05.2
171
0074:  BCF    03.5
171
0074:  BCF    03.5
172
0075:  BSF    05.2
172
0075:  BSF    05.2
173
....................      delay_us(1500); 
173
....................      delay_us(1500); 
174
0076:  MOVLW  01
174
0076:  MOVLW  01
175
0077:  MOVWF  13
175
0077:  MOVWF  13
176
0078:  CALL   004
176
0078:  CALL   004
177
0079:  MOVLW  02
177
0079:  MOVLW  02
178
007A:  MOVWF  13
178
007A:  MOVWF  13
179
007B:  MOVLW  F7
179
007B:  MOVLW  F7
180
007C:  MOVWF  14
180
007C:  MOVWF  14
181
007D:  GOTO   018
181
007D:  GOTO   018
182
007E:  DECFSZ 13,F
182
007E:  DECFSZ 13,F
183
007F:  GOTO   07B
183
007F:  GOTO   07B
184
....................      output_low(servo_y); 
184
....................      output_low(servo_y); 
185
0080:  BSF    03.5
185
0080:  BSF    03.5
186
0081:  BCF    06.0
186
0081:  BCF    06.0
187
0082:  BCF    03.5
187
0082:  BCF    03.5
188
0083:  BCF    06.0
188
0083:  BCF    06.0
189
....................      output_low(servo_x); 
189
....................      output_low(servo_x); 
190
0084:  BSF    03.5
190
0084:  BSF    03.5
191
0085:  BCF    05.2
191
0085:  BCF    05.2
192
0086:  BCF    03.5
192
0086:  BCF    03.5
193
0087:  BCF    05.2
193
0087:  BCF    05.2
194
....................      delay_ms(20); 
194
....................      delay_ms(20); 
195
0088:  MOVLW  14
195
0088:  MOVLW  14
196
0089:  MOVWF  13
196
0089:  MOVWF  13
197
008A:  CALL   004
197
008A:  CALL   004
198
....................    } 
198
....................    } 
199
008B:  GOTO   02E
199
008B:  GOTO   02E
200
.................... } 
200
.................... } 
201
008C:  SLEEP
201
008C:  SLEEP
202
 
202
 
203
Configuration Fuses:
203
Configuration Fuses:
204
   Word  1: 3FF9   XT NOWDT PUT NOPROTECT
204
   Word  1: 3FF9   XT NOWDT PUT NOPROTECT