Subversion Repositories svnkaklik

Rev

Rev 625 | Details | Compare with Previous | Last modification | View Log

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