Subversion Repositories svnkaklik

Rev

Go to most recent revision | 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\mereni\zavora\main.LST
4
 
5
               ROM used: 58 (6%)
6
                         Largest free fragment is 966
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\mereni\zavora\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,NOWDT  
45
....................   
46
....................  
47
....................   
48
....................   
49
.................... void main()  
50
.................... {  
51
0019:  CLRF   04
52
001A:  MOVLW  1F
53
001B:  ANDWF  03,F
54
....................    output_high(PIN_A3);  
55
001C:  BSF    03.5
56
001D:  BCF    05.3
57
001E:  BCF    03.5
58
001F:  BSF    05.3
59
....................    Delay_ms(250);  
60
0020:  MOVLW  FA
61
0021:  MOVWF  0F
62
0022:  CALL   004
63
....................    output_low(PIN_A3);  
64
0023:  BSF    03.5
65
0024:  BCF    05.3
66
0025:  BCF    03.5
67
0026:  BCF    05.3
68
....................    Delay_ms(250);  
69
0027:  MOVLW  FA
70
0028:  MOVWF  0F
71
0029:  CALL   004
72
....................      
73
....................    while(true)  
74
....................    {  
75
....................       if(input(PIN_A4)) output_low(PIN_A3);  
76
002A:  BSF    03.5
77
002B:  BSF    05.4
78
002C:  BCF    03.5
79
002D:  BTFSS  05.4
80
002E:  GOTO   034
81
002F:  BSF    03.5
82
0030:  BCF    05.3
83
0031:  BCF    03.5
84
0032:  BCF    05.3
85
....................       else output_high(PIN_A3);  
86
0033:  GOTO   038
87
0034:  BSF    03.5
88
0035:  BCF    05.3
89
0036:  BCF    03.5
90
0037:  BSF    05.3
91
....................    }  
92
0038:  GOTO   02A
93
.................... }  
94
....................  
95
0039:  SLEEP