Subversion Repositories svnkaklik

Rev

Details | Last modification | View Log

Rev Author Line No. Line
52 kaklik 1
CCS PCM C Compiler, Version 3.245, 27853               05-XI-06 21:34
2
 
3
               Filename: D:\KAKLIK\projekty\programy\PIC_C\test\PIC16F84A\blik\blik.lst
4
 
5
               ROM used: 53 words (5%)
6
                         Largest free fragment is 971
7
               RAM used: 3 (4%) at main() level
8
                         4 (6%) 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 "blik.h" 
17
.................... #include <16F84A.h> 
18
.................... //////// Standard Header file for the PIC16F84A device //////////////// 
19
.................... #device PIC16F84A 
20
.................... #list 
21
....................  
22
....................  
23
.................... #FUSES NOWDT                 	//No Watch Dog Timer 
24
.................... #FUSES XT                    	//Crystal osc <= 4mhz 
25
.................... #FUSES NOPUT                 	//No Power Up Timer 
26
.................... #FUSES NOPROTECT             	//Code not protected from reading 
27
....................  
28
.................... #use delay(clock=4000000) 
29
0004:  MOVLW  10
30
0005:  MOVWF  04
31
0006:  MOVF   00,W
32
0007:  BTFSC  03.2
33
0008:  GOTO   018
34
0009:  MOVLW  01
35
000A:  MOVWF  0D
36
000B:  CLRF   0C
37
000C:  DECFSZ 0C,F
38
000D:  GOTO   00C
39
000E:  DECFSZ 0D,F
40
000F:  GOTO   00B
41
0010:  MOVLW  4A
42
0011:  MOVWF  0C
43
0012:  DECFSZ 0C,F
44
0013:  GOTO   012
45
0014:  NOP
46
0015:  NOP
47
0016:  DECFSZ 00,F
48
0017:  GOTO   009
49
0018:  RETLW  00
50
....................  
51
....................  
52
....................  
53
....................  
54
.................... void main() 
55
.................... { 
56
0019:  CLRF   04
57
001A:  MOVLW  1F
58
001B:  ANDWF  03,F
59
....................  
60
....................    setup_timer_0(RTCC_INTERNAL|RTCC_DIV_1); 
61
001C:  BSF    03.5
62
001D:  MOVF   01,W
63
001E:  ANDLW  C7
64
001F:  IORLW  08
65
0020:  MOVWF  01
66
....................  
67
....................    while(true) 
68
....................    { 
69
....................       output_high(PIN_B0); 
70
0021:  BCF    06.0
71
0022:  BCF    03.5
72
0023:  BSF    06.0
73
....................       Delay_ms(700); 
74
0024:  MOVLW  04
75
0025:  MOVWF  0F
76
0026:  MOVLW  AF
77
0027:  MOVWF  10
78
0028:  CALL   004
79
0029:  DECFSZ 0F,F
80
002A:  GOTO   026
81
....................       output_low(PIN_B0); 
82
002B:  BSF    03.5
83
002C:  BCF    06.0
84
002D:  BCF    03.5
85
002E:  BCF    06.0
86
....................       Delay_ms(50); 
87
002F:  MOVLW  32
88
0030:  MOVWF  10
89
0031:  CALL   004
90
....................    } 
91
0032:  BSF    03.5
92
0033:  GOTO   021
93
....................  
94
.................... } 
95
0034:  SLEEP
96
 
97
Configuration Fuses:
98
   Word  1: 3FF9   XT NOWDT NOPUT NOPROTECT