Subversion Repositories svnkaklik

Rev

Rev 158 | Blame | Last modification | View Log | Download

CCS PCM C Compiler, Version 3.245, 27853               23-II-07 18:50

               Filename: D:\KAKLIK\projekty\programy\PIC_C\test\C16F876A\blik\blik.lst

               ROM used: 114 words (1%)
                         Largest free fragment is 2048
               RAM used: 7 (4%) at main() level
                         8 (5%) worst case
               Stack:    1 locations

*
0000:  MOVLW  00
0001:  MOVWF  0A
0002:  GOTO   017
0003:  NOP
.................... #include ".\blik.h" 
.................... #include <16F876A.h> 
.................... //////// Standard Header file for the PIC16F876A device //////////////// 
.................... #device PIC16F876A 
.................... #list 
....................  
.................... #device adc=8 
....................  
.................... #FUSES NOWDT                       //No Watch Dog Timer 
.................... #FUSES HS                          //High speed Osc (> 4mhz) 
.................... #FUSES NOPUT                       //No Power Up Timer 
.................... #FUSES NOPROTECT                   //Code not protected from reading 
.................... #FUSES NODEBUG                     //No Debug mode for ICD 
.................... #FUSES NOBROWNOUT                  //No brownout reset 
.................... #FUSES NOLVP                       //No low voltage prgming, B3(PIC16) or B5(PIC18) used for I/O 
.................... #FUSES NOCPD                       //No EE protection 
.................... #FUSES NOWRT                       //Program memory not write protected 
....................  
.................... #use delay(clock=20000000) 
0004:  MOVLW  22
0005:  MOVWF  04
0006:  MOVF   00,W
0007:  BTFSC  03.2
0008:  GOTO   016
0009:  MOVLW  06
000A:  MOVWF  78
000B:  CLRF   77
000C:  DECFSZ 77,F
000D:  GOTO   00C
000E:  DECFSZ 78,F
000F:  GOTO   00B
0010:  MOVLW  7B
0011:  MOVWF  77
0012:  DECFSZ 77,F
0013:  GOTO   012
0014:  DECFSZ 00,F
0015:  GOTO   009
0016:  RETLW  00
....................  
....................  
....................  
....................  
.................... void main() 
.................... { 
0017:  CLRF   04
0018:  MOVLW  1F
0019:  ANDWF  03,F
001A:  BSF    03.5
001B:  BSF    1F.0
001C:  BSF    1F.1
001D:  BSF    1F.2
001E:  BCF    1F.3
001F:  MOVLW  07
0020:  MOVWF  1C
....................  
....................    setup_adc_ports(NO_ANALOGS); 
*
0024:  BSF    03.5
0025:  BSF    1F.0
0026:  BSF    1F.1
0027:  BSF    1F.2
0028:  BCF    1F.3
....................    setup_adc(ADC_OFF); 
0029:  BCF    03.5
002A:  BCF    1F.0
....................    setup_spi(FALSE); 
*
0021:  MOVLW  FF
0022:  BCF    03.5
0023:  MOVWF  20
*
002B:  BCF    14.5
002C:  BCF    20.5
002D:  MOVF   20,W
002E:  BSF    03.5
002F:  MOVWF  07
0030:  BCF    03.5
0031:  BSF    20.4
0032:  MOVF   20,W
0033:  BSF    03.5
0034:  MOVWF  07
0035:  BCF    03.5
0036:  BCF    20.3
0037:  MOVF   20,W
0038:  BSF    03.5
0039:  MOVWF  07
003A:  MOVLW  00
003B:  BCF    03.5
003C:  MOVWF  14
003D:  BSF    03.5
003E:  MOVWF  14
....................    setup_timer_0(RTCC_INTERNAL|RTCC_DIV_1); 
003F:  MOVF   01,W
0040:  ANDLW  C7
0041:  IORLW  08
0042:  MOVWF  01
....................    setup_timer_1(T1_DISABLED); 
0043:  BCF    03.5
0044:  CLRF   10
....................    setup_timer_2(T2_DISABLED,0,1); 
0045:  MOVLW  00
0046:  MOVWF  78
0047:  MOVWF  12
0048:  MOVLW  00
0049:  BSF    03.5
004A:  MOVWF  12
....................    setup_comparator(NC_NC_NC_NC); 
004B:  MOVLW  07
004C:  MOVWF  1C
004D:  MOVF   05,W
004E:  MOVLW  10
004F:  MOVWF  77
0050:  DECFSZ 77,F
0051:  GOTO   050
0052:  NOP
0053:  MOVF   1C,W
0054:  BCF    03.5
0055:  BCF    0D.6
....................    setup_vref(FALSE); 
0056:  BSF    03.5
0057:  CLRF   1D
....................  
....................    While(true) 
....................    { 
....................       Delay_ms(500); 
0058:  MOVLW  02
0059:  BCF    03.5
005A:  MOVWF  21
005B:  MOVLW  FA
005C:  MOVWF  22
005D:  CALL   004
005E:  DECFSZ 21,F
005F:  GOTO   05B
....................       Output_high(PIN_B1); 
0060:  BSF    03.5
0061:  BCF    06.1
0062:  BCF    03.5
0063:  BSF    06.1
....................       Delay_ms(500); 
0064:  MOVLW  02
0065:  MOVWF  21
0066:  MOVLW  FA
0067:  MOVWF  22
0068:  CALL   004
0069:  DECFSZ 21,F
006A:  GOTO   066
....................       Output_low(PIN_B1); 
006B:  BSF    03.5
006C:  BCF    06.1
006D:  BCF    03.5
006E:  BCF    06.1
....................    } 
006F:  BSF    03.5
0070:  GOTO   058
....................  
.................... } 
0071:  SLEEP

Configuration Fuses:
   Word  1: 3F3A   HS NOWDT NOPUT NODEBUG NOPROTECT NOBROWNOUT NOLVP NOCPD NOWRT