Subversion Repositories svnkaklik

Rev

Details | Last modification | View Log

Rev Author Line No. Line
6 kaklik 1
CCS PCW C Compiler, Version 3.110, 15448
2
 
3
               Filename: d:\@kaklik\programy\pic_c\motory\menice\main.LST
4
 
5
               ROM used: 60 (6%)
6
                         Largest free fragment is 964
7
               RAM used: 2 (3%) at main() level
8
                         3 (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 "D:\@Kaklik\programy\PIC_C\motory\menice\main.h" 
17
....................  #include <16F84.h> 
18
....................  //////// Standard Header file for the PIC16F84 device ////////////////  
19
.................... #device PIC16F84  
20
.................... #list  
21
....................  
22
.................... #use delay(clock=4000000)  
23
0004:  MOVLW  0F
24
0005:  MOVWF  04
25
0006:  MOVF   00,W
26
0007:  BTFSC  03.2
27
0008:  GOTO   018
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
39
0014:  NOP
40
0015:  NOP
41
0016:  DECFSZ 00,F
42
0017:  GOTO   009
43
0018:  RETLW  00
44
.................... #fuses HS,WDT  
45
....................   
46
....................  
47
....................   
48
.................... #DEFINE     L1    pin_A0  
49
.................... #DEFINE     L2    pin_A1  
50
....................   
51
.................... void main()  
52
.................... {  
53
0019:  CLRF   04
54
001A:  MOVLW  1F
55
001B:  ANDWF  03,F
56
....................    output_low(L1);  
57
001C:  BSF    03.5
58
001D:  BCF    05.0
59
001E:  BCF    03.5
60
001F:  BCF    05.0
61
....................    output_low(L2);  
62
0020:  BSF    03.5
63
0021:  BCF    05.1
64
0022:  BCF    03.5
65
0023:  BCF    05.1
66
....................      
67
....................    while(true)  
68
....................    {  
69
....................       output_low(L2);  
70
0024:  BSF    03.5
71
0025:  BCF    05.1
72
0026:  BCF    03.5
73
0027:  BCF    05.1
74
....................       output_high(L1);  
75
0028:  BSF    03.5
76
0029:  BCF    05.0
77
002A:  BCF    03.5
78
002B:  BSF    05.0
79
....................       Delay_ms(17);  
80
002C:  MOVLW  11
81
002D:  MOVWF  0F
82
002E:  CALL   004
83
....................       output_low(L1);  
84
002F:  BSF    03.5
85
0030:  BCF    05.0
86
0031:  BCF    03.5
87
0032:  BCF    05.0
88
....................       output_high(L2);  
89
0033:  BSF    03.5
90
0034:  BCF    05.1
91
0035:  BCF    03.5
92
0036:  BSF    05.1
93
....................       Delay_ms(17);  
94
0037:  MOVLW  11
95
0038:  MOVWF  0F
96
0039:  CALL   004
97
....................         
98
....................    }  
99
003A:  GOTO   024
100
.................... }  
101
....................  
102
003B:  SLEEP