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_ultraz\main.LST
4
 
5
               ROM used: 47 (5%)
6
                         Largest free fragment is 977
7
               RAM used: 2 (3%) at main() level
8
                         2 (3%) worst case
9
               Stack:    0 locations
10
 
11
*
12
0000:  MOVLW  00
13
0001:  MOVWF  0A
14
0002:  GOTO   004
15
0003:  NOP
16
....................  #include "D:\@Kaklik\programy\PIC_C\mereni_ultraz\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
.................... #fuses XT,NOWDT  
24
....................   
25
....................  
26
.................... #use fast_io(A)  
27
....................   
28
.................... void main()  
29
.................... {  
30
0004:  CLRF   04
31
0005:  MOVLW  1F
32
0006:  ANDWF  03,F
33
....................   
34
....................    setup_counters(RTCC_INTERNAL,WDT_18MS);  
35
0007:  MOVLW  08
36
0008:  MOVWF  0C
37
0009:  BTFSS  0C.3
38
000A:  GOTO   013
39
000B:  MOVLW  07
40
000C:  CLRF   01
41
000D:  MOVLW  81
42
000E:  MOVWF  04
43
000F:  MOVF   00,W
44
0010:  ANDLW  C0
45
0011:  IORLW  0F
46
0012:  MOVWF  00
47
0013:  CLRWDT
48
0014:  MOVLW  81
49
0015:  MOVWF  04
50
0016:  MOVF   00,W
51
0017:  ANDLW  C0
52
0018:  IORWF  0C,W
53
0019:  MOVWF  00
54
....................   
55
....................    set_tris_A(0b11111100);  
56
001A:  MOVLW  FC
57
001B:  TRIS   5
58
....................    output_high(pin_A3);  
59
001C:  BSF    05.3
60
....................   
61
.................... mainloop:  
62
....................    output_high(pin_A0);   
63
001D:  BSF    05.0
64
....................    output_low(pin_A1);  
65
001E:  BCF    05.1
66
....................    delay_us(9);  
67
001F:  MOVLW  02
68
0020:  MOVWF  0C
69
0021:  DECFSZ 0C,F
70
0022:  GOTO   021
71
0023:  NOP
72
0024:  NOP
73
....................    output_high(pin_A1);  
74
0025:  BSF    05.1
75
....................    output_low(pin_A0);  
76
0026:  BCF    05.0
77
....................    delay_us(9);  
78
0027:  MOVLW  02
79
0028:  MOVWF  0C
80
0029:  DECFSZ 0C,F
81
002A:  GOTO   029
82
002B:  NOP
83
002C:  NOP
84
....................   
85
....................    goto mainloop;  
86
002D:  GOTO   01D
87
....................   
88
.................... }  
89
....................   
90
002E:  SLEEP
91
....................