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\cidlo\piezo.LST
4
 
5
               ROM used: 73 (7%)
6
                         Largest free fragment is 951
7
               RAM used: 3 (8%) at main() level
8
                         4 (11%) 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\cidlo\piezo.h" 
17
....................  #include <16C84.h> 
18
....................  //////// Standard Header file for the PIC16C84 device ////////////////  
19
.................... #device PIC16C84  
20
.................... #list  
21
....................  
22
.................... #use delay(clock=4000000)  
23
0004:  MOVLW  10
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:  GOTO   040 (RETURN)
44
.................... #fuses HS,WDT  
45
....................   
46
....................  
47
....................   
48
....................   
49
.................... void main()  
50
.................... {  
51
0019:  CLRF   04
52
001A:  MOVLW  1F
53
001B:  ANDWF  03,F
54
....................    port_b_pullups(false);  
55
001C:  BSF    03.5
56
001D:  BSF    01.7
57
....................    setup_counters(RTCC_INTERNAL,WDT_18MS);  
58
001E:  MOVLW  08
59
001F:  BCF    03.5
60
0020:  MOVWF  0C
61
0021:  BTFSS  0C.3
62
0022:  GOTO   02B
63
0023:  MOVLW  07
64
0024:  CLRF   01
65
0025:  MOVLW  81
66
0026:  MOVWF  04
67
0027:  MOVF   00,W
68
0028:  ANDLW  C0
69
0029:  IORLW  0F
70
002A:  MOVWF  00
71
002B:  CLRWDT
72
002C:  MOVLW  81
73
002D:  MOVWF  04
74
002E:  MOVF   00,W
75
002F:  ANDLW  C0
76
0030:  IORWF  0C,W
77
0031:  MOVWF  00
78
....................   
79
....................    while (true)  
80
....................    {  
81
....................       if (input(PIN_B0))  
82
0032:  BSF    03.5
83
0033:  BSF    06.0
84
0034:  BCF    03.5
85
0035:  BTFSS  06.0
86
0036:  GOTO   043
87
....................       {  
88
....................          output_high(PIN_A3);  
89
0037:  BSF    03.5
90
0038:  BCF    05.3
91
0039:  BCF    03.5
92
003A:  BSF    05.3
93
....................          delay_ms(500);  
94
003B:  MOVLW  02
95
003C:  MOVWF  0F
96
003D:  MOVLW  FA
97
003E:  MOVWF  10
98
003F:  GOTO   004
99
0040:  DECFSZ 0F,F
100
0041:  GOTO   03D
101
....................       }  
102
....................       else output_low(PIN_A3);  
103
0042:  GOTO   047
104
0043:  BSF    03.5
105
0044:  BCF    05.3
106
0045:  BCF    03.5
107
0046:  BCF    05.3
108
....................    }  
109
0047:  GOTO   032
110
.................... }  
111
....................  
112
0048:  SLEEP