Blame | Last modification | View Log | Download
CCS PCM C Compiler, Version 3.245, 27853 05-XI-06 22:19
Filename: D:\KAKLIK\projekty\programy\PIC_C\test\PIC16F88\blik\blik.lst
ROM used: 99 words (2%)
Largest free fragment is 2048
RAM used: 6 (3%) at main() level
7 (4%) worst case
Stack: 1 locations
*
0000: MOVLW 00
0001: MOVWF 0A
0002: GOTO 019
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 XT //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=4000000)
0004: MOVLW 22
0005: MOVWF 04
0006: MOVF 00,W
0007: BTFSC 03.2
0008: GOTO 018
0009: MOVLW 01
000A: MOVWF 78
000B: CLRF 77
000C: DECFSZ 77,F
000D: GOTO 00C
000E: DECFSZ 78,F
000F: GOTO 00B
0010: MOVLW 4A
0011: MOVWF 77
0012: DECFSZ 77,F
0013: GOTO 012
0014: NOP
0015: NOP
0016: DECFSZ 00,F
0017: GOTO 009
0018: RETLW 00
....................
....................
....................
....................
.................... void main()
.................... {
0019: CLRF 04
001A: MOVLW 1F
001B: ANDWF 03,F
001C: BSF 03.5
001D: BCF 1F.4
001E: BCF 1F.5
001F: MOVF 1B,W
0020: ANDLW 80
0021: MOVWF 1B
0022: MOVLW 07
0023: MOVWF 1C
....................
.................... setup_adc_ports(NO_ANALOGS|VSS_VDD); // parametry
0024: BCF 1F.4
0025: BCF 1F.5
0026: MOVF 1B,W
0027: ANDLW 80
0028: MOVWF 1B
.................... setup_adc(ADC_OFF);
0029: BCF 03.5
002A: BCF 1F.0
.................... setup_spi(FALSE);
002B: BCF 14.5
002C: BSF 03.5
002D: BCF 06.2
002E: BSF 06.1
002F: BCF 06.4
0030: MOVLW 00
0031: BCF 03.5
0032: MOVWF 14
0033: BSF 03.5
0034: MOVWF 14
.................... setup_timer_0(RTCC_INTERNAL|RTCC_DIV_1);
0035: MOVF 01,W
0036: ANDLW C7
0037: IORLW 08
0038: MOVWF 01
.................... setup_timer_1(T1_DISABLED);
0039: BCF 03.5
003A: CLRF 10
.................... setup_timer_2(T2_DISABLED,0,1);
003B: MOVLW 00
003C: MOVWF 78
003D: MOVWF 12
003E: MOVLW 00
003F: BSF 03.5
0040: MOVWF 12
.................... setup_comparator(NC_NC_NC_NC);
0041: MOVLW 07
0042: MOVWF 1C
0043: MOVF 05,W
0044: MOVLW 03
0045: MOVWF 77
0046: DECFSZ 77,F
0047: GOTO 046
0048: MOVF 1C,W
0049: BCF 03.5
004A: BCF 0D.6
.................... setup_vref(FALSE);
004B: BSF 03.5
004C: CLRF 1D
.................... setup_oscillator(False);
004D: CLRF 0F
004E: MOVF 0F,W
....................
.................... while(true) // nekonecny cyklus
.................... {
.................... output_high(PIN_B0); // nastav B0 na 1
004F: BCF 06.0
0050: BCF 03.5
0051: BSF 06.0
.................... Delay_ms(700); // pockej 700ms
0052: MOVLW 04
0053: MOVWF 21
0054: MOVLW AF
0055: MOVWF 22
0056: CALL 004
0057: DECFSZ 21,F
0058: GOTO 054
.................... output_low(PIN_B0); //nastav B0 na 0
0059: BSF 03.5
005A: BCF 06.0
005B: BCF 03.5
005C: BCF 06.0
.................... Delay_ms(50); // pockej 50ms
005D: MOVLW 32
005E: MOVWF 22
005F: CALL 004
.................... } // opakuj cyklus
0060: BSF 03.5
0061: GOTO 04F
....................
.................... }
0062: SLEEP
Configuration Fuses:
Word 1: 3F09 XT NOWDT NOPUT NOMCLR NOBROWNOUT NOLVP NOCPD NOWRT NODEBUG CCPB0 NOPROTECT
Word 2: 3FFC NOFCMEN NOIESO