Subversion Repositories svnkaklik

Rev

Rev 410 | Details | Compare with Previous | 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\main.LST
4
 
5
               ROM used: 52 (5%)
6
                         Largest free fragment is 972
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\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 XT,WDT  
45
....................   
46
....................  
47
....................   
48
....................   
49
.................... void main()  
50
.................... {   
51
0019:  CLRF   04
52
001A:  MOVLW  1F
53
001B:  ANDWF  03,F
54
....................    while (true)  
55
....................    {  
56
....................   
57
....................       Delay_ms(25);  
58
001C:  MOVLW  19
59
001D:  MOVWF  0F
60
001E:  CALL   004
61
....................         
62
....................       output_high(pin_A0);  
63
001F:  BSF    03.5
64
0020:  BCF    05.0
65
0021:  BCF    03.5
66
0022:  BSF    05.0
67
....................       output_low(pin_A1);  
68
0023:  BSF    03.5
69
0024:  BCF    05.1
70
0025:  BCF    03.5
71
0026:  BCF    05.1
72
....................         
73
.................... //      output_high(pin_A2);  
74
....................   //    Delay_ms(10);  
75
....................     //  output_low(pin_A2);  
76
....................       Delay_ms(25);  
77
0027:  MOVLW  19
78
0028:  MOVWF  0F
79
0029:  CALL   004
80
....................         
81
....................       output_low(pin_A0);  
82
002A:  BSF    03.5
83
002B:  BCF    05.0
84
002C:  BCF    03.5
85
002D:  BCF    05.0
86
....................       output_high(pin_A1);  
87
002E:  BSF    03.5
88
002F:  BCF    05.1
89
0030:  BCF    03.5
90
0031:  BSF    05.1
91
....................    }  
92
0032:  GOTO   01C
93
.................... }  
94
....................  
95
0033:  SLEEP