Subversion Repositories svnkaklik

Rev

Rev 471 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download

CCS PCM C Compiler, Version 3.245, 27853               24-III-08 00:27

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

               ROM used: 136 words (3%)
                         Largest free fragment is 2048
               RAM used: 6 (3%) at main() level
                         6 (3%) worst case
               Stack:    0 locations

*
0000:  MOVLW  00
0001:  MOVWF  0A
0002:  GOTO   004
0003:  NOP
.................... #include "blik.h" 
.................... #include <16F88.h> 
.................... //////// Standard Header file for the PIC16F88 device //////////////// 
.................... #device PIC16F88 
.................... #list 
....................  
.................... #device adc=8 
....................  
.................... #FUSES NOWDT                       //No Watch Dog Timer 
.................... #FUSES INTRC                       //Crystal osc <= 4mhz 
.................... #FUSES NOPUT                       //No Power Up Timer 
.................... #FUSES NOMCLR                      //Master Clear pin used for I/O 
.................... #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 
.................... #FUSES NODEBUG                     //No Debug mode for ICD 
.................... #FUSES NOPROTECT                   //Code not protected from reading 
.................... #FUSES NOFCMEN                     //Fail-safe clock monitor disabled 
.................... #FUSES NOIESO                      //Internal External Switch Over mode disabled 
....................  
.................... #use delay(clock=37526) 
....................  
....................  
....................  
....................  
.................... void main() 
.................... { 
0004:  CLRF   04
0005:  MOVLW  1F
0006:  ANDWF  03,F
0007:  BSF    03.5
0008:  BCF    1F.4
0009:  BCF    1F.5
000A:  MOVF   1B,W
000B:  ANDLW  80
000C:  MOVWF  1B
000D:  MOVLW  07
000E:  MOVWF  1C
....................  
.................... int i; 
....................  
....................    setup_adc_ports(NO_ANALOGS|VSS_VDD);   // parametry 
000F:  BCF    1F.4
0010:  BCF    1F.5
0011:  MOVF   1B,W
0012:  ANDLW  80
0013:  MOVWF  1B
....................    setup_adc(ADC_OFF); 
0014:  BCF    03.5
0015:  BCF    1F.0
....................    setup_spi(FALSE); 
0016:  BCF    14.5
0017:  BSF    03.5
0018:  BCF    06.2
0019:  BSF    06.1
001A:  BCF    06.4
001B:  MOVLW  00
001C:  BCF    03.5
001D:  MOVWF  14
001E:  BSF    03.5
001F:  MOVWF  14
....................    setup_timer_0(RTCC_INTERNAL|RTCC_DIV_1); 
0020:  MOVF   01,W
0021:  ANDLW  C7
0022:  IORLW  08
0023:  MOVWF  01
....................    setup_timer_1(T1_DISABLED); 
0024:  BCF    03.5
0025:  CLRF   10
....................    setup_timer_2(T2_DISABLED,0,1); 
0026:  MOVLW  00
0027:  MOVWF  78
0028:  MOVWF  12
0029:  MOVLW  00
002A:  BSF    03.5
002B:  MOVWF  12
....................    setup_comparator(NC_NC_NC_NC); 
002C:  MOVLW  07
002D:  MOVWF  1C
002E:  MOVF   1C,W
002F:  BCF    03.5
0030:  BCF    0D.6
....................    setup_vref(FALSE); 
0031:  BSF    03.5
0032:  CLRF   1D
....................    setup_oscillator(False); 
0033:  CLRF   0F
0034:  MOVF   0F,W
....................  
....................    while(true) // nekonecny cyklus 
....................    { 
....................       output_high(PIN_B0);    // nastav B0 na 1 
0035:  BCF    06.0
0036:  BCF    03.5
0037:  BSF    06.0
....................       Delay_ms(50);           // pockej 50ms 
0038:  MOVLW  99
0039:  MOVWF  77
003A:  DECFSZ 77,F
003B:  GOTO   03A
003C:  NOP
003D:  NOP
....................       output_high(PIN_B1);    // nastav B0 na 1 
003E:  BSF    03.5
003F:  BCF    06.1
0040:  BCF    03.5
0041:  BSF    06.1
....................       Delay_ms(50);           // pockej 50ms 
0042:  MOVLW  99
0043:  MOVWF  77
0044:  DECFSZ 77,F
0045:  GOTO   044
0046:  NOP
0047:  NOP
....................       output_high(PIN_B2);    // nastav B0 na 1 
0048:  BSF    03.5
0049:  BCF    06.2
004A:  BCF    03.5
004B:  BSF    06.2
....................  
....................       for(i=0;i<=100;i++) 
004C:  CLRF   21
004D:  MOVF   21,W
004E:  SUBLW  64
004F:  BTFSS  03.0
0050:  GOTO   067
....................       { 
....................  
....................         Output_high(PIN_A2); 
0051:  BSF    03.5
0052:  BCF    05.2
0053:  BCF    03.5
0054:  BSF    05.2
....................         Delay_ms(1); 
0055:  MOVLW  02
0056:  MOVWF  77
0057:  DECFSZ 77,F
0058:  GOTO   057
0059:  NOP
005A:  NOP
....................         Output_low(PIN_A2); 
005B:  BSF    03.5
005C:  BCF    05.2
005D:  BCF    03.5
005E:  BCF    05.2
....................         Delay_ms(1); 
005F:  MOVLW  02
0060:  MOVWF  77
0061:  DECFSZ 77,F
0062:  GOTO   061
0063:  NOP
0064:  NOP
....................       } 
0065:  INCF   21,F
0066:  GOTO   04D
....................  
....................       output_low(PIN_B0);     //nastav B0 na 0 
0067:  BSF    03.5
0068:  BCF    06.0
0069:  BCF    03.5
006A:  BCF    06.0
....................       Delay_ms(50);           // pockej 50ms 
006B:  MOVLW  99
006C:  MOVWF  77
006D:  DECFSZ 77,F
006E:  GOTO   06D
006F:  NOP
0070:  NOP
....................       output_low(PIN_B1);     //nastav B0 na 0 
0071:  BSF    03.5
0072:  BCF    06.1
0073:  BCF    03.5
0074:  BCF    06.1
....................       Delay_ms(50);           // pockej 50ms 
0075:  MOVLW  99
0076:  MOVWF  77
0077:  DECFSZ 77,F
0078:  GOTO   077
0079:  NOP
007A:  NOP
....................       output_low(PIN_B2);     //nastav B0 na 0 
007B:  BSF    03.5
007C:  BCF    06.2
007D:  BCF    03.5
007E:  BCF    06.2
....................       Delay_ms(50);           // pockej 50ms 
007F:  MOVLW  99
0080:  MOVWF  77
0081:  DECFSZ 77,F
0082:  GOTO   081
0083:  NOP
0084:  NOP
....................    }                          // opakuj cyklus 
0085:  BSF    03.5
0086:  GOTO   035
....................  
.................... } 
0087:  SLEEP

Configuration Fuses:
   Word  1: 3F19   NOWDT NOPUT NOMCLR NOBROWNOUT NOLVP NOCPD NOWRT NODEBUG CCPB0 NOPROTECT INTRC
   Word  2: 3FFC   NOFCMEN NOIESO