CCS PCM C Compiler, Version 4.106, 47914 25-3-13 12:36
Filename: C:\Users\Honza\Documents\pic\seriovk\main.lst
ROM used: 280 words (3%)
Largest free fragment is 2048
RAM used: 6 (2%) at main() level
10 (3%) worst case
Stack: 2 locations
*
0000: MOVLW 00
0001: MOVWF 0A
0002: GOTO 09D
0003: NOP
.................... #include "C:\Users\Honza\Documents\pic\seriovk\main.h"
.................... #include <16F887.h>
.................... //////// Standard Header file for the PIC16F887 device ////////////////
.................... #device PIC16F887
.................... #list
....................
.................... #device adc=8
....................
.................... #FUSES NOWDT //No Watch Dog Timer
.................... #FUSES INTRC //Internal RC Osc
.................... #FUSES NOPUT //No Power Up Timer
.................... #FUSES MCLR //Master Clear pin enabled
.................... #FUSES NOPROTECT //Code not protected from reading
.................... #FUSES NOCPD //No EE protection
.................... #FUSES NOBROWNOUT //No brownout reset
.................... #FUSES IESO //Internal External Switch Over mode enabled
.................... #FUSES FCMEN //Fail-safe clock monitor enabled
.................... #FUSES NOLVP //No low voltage prgming, B3(PIC16) or B5(PIC18) used for I/O
.................... #FUSES NODEBUG //No Debug mode for ICD
.................... #FUSES NOWRT //Program memory not write protected
.................... #FUSES BORV40 //Brownout reset at 4.0V
....................
.................... #use delay(clock=8000000)
*
0087: MOVLW 21
0088: MOVWF 04
0089: BCF 03.7
008A: MOVF 00,W
008B: BTFSC 03.2
008C: GOTO 09A
008D: MOVLW 02
008E: MOVWF 78
008F: CLRF 77
0090: DECFSZ 77,F
0091: GOTO 090
0092: DECFSZ 78,F
0093: GOTO 08F
0094: MOVLW 97
0095: MOVWF 77
0096: DECFSZ 77,F
0097: GOTO 096
0098: DECFSZ 00,F
0099: GOTO 08D
009A: BCF 0A.3
009B: BCF 0A.4
009C: GOTO 116 (RETURN)
....................
....................
.................... #use rs232(baud=9600,parity=N,xmit=PIN_B7,rcv=PIN_B6,bits=8) //rcv TXD xmit RXD
*
001F: BSF 03.5
0020: BCF 06.7
0021: BCF 03.5
0022: BCF 06.7
0023: MOVLW 08
0024: MOVWF 78
0025: GOTO 026
0026: NOP
0027: BSF 78.7
0028: GOTO 037
0029: BCF 78.7
002A: RRF 24,F
002B: BTFSC 03.0
002C: BSF 06.7
002D: BTFSS 03.0
002E: BCF 06.7
002F: BSF 78.6
0030: GOTO 037
0031: BCF 78.6
0032: DECFSZ 78,F
0033: GOTO 02A
0034: GOTO 035
0035: NOP
0036: BSF 06.7
0037: MOVLW 3F
0038: MOVWF 04
0039: DECFSZ 04,F
003A: GOTO 039
003B: NOP
003C: BTFSC 78.7
003D: GOTO 029
003E: BTFSC 78.6
003F: GOTO 031
0040: RETURN
....................
....................
....................
.................... void main()
.................... {
*
009D: CLRF 04
009E: BCF 03.7
009F: MOVLW 1F
00A0: ANDWF 03,F
00A1: MOVLW 71
00A2: BSF 03.5
00A3: MOVWF 0F
00A4: MOVF 0F,W
00A5: BCF 06.7
00A6: BCF 03.5
00A7: BSF 06.7
00A8: BSF 03.5
00A9: BSF 03.6
00AA: MOVF 09,W
00AB: ANDLW C0
00AC: MOVWF 09
00AD: BCF 03.6
00AE: BCF 1F.4
00AF: BCF 1F.5
00B0: MOVLW 00
00B1: BSF 03.6
00B2: MOVWF 08
00B3: BCF 03.5
00B4: CLRF 07
00B5: CLRF 08
00B6: CLRF 09
....................
.................... setup_adc_ports(NO_ANALOGS|VSS_VDD);
*
00BA: BSF 03.5
00BB: BSF 03.6
00BC: MOVF 09,W
00BD: ANDLW C0
00BE: MOVWF 09
00BF: BCF 03.6
00C0: BCF 1F.4
00C1: BCF 1F.5
00C2: MOVLW 00
00C3: BSF 03.6
00C4: MOVWF 08
.................... setup_adc(ADC_CLOCK_DIV_2);
00C5: BCF 03.5
00C6: BCF 03.6
00C7: BCF 1F.6
00C8: BCF 1F.7
00C9: BSF 03.5
00CA: BCF 1F.7
00CB: BCF 03.5
00CC: BSF 1F.0
.................... setup_spi(SPI_SS_DISABLED);
00CD: BCF 14.5
00CE: BCF 20.5
00CF: MOVF 20,W
00D0: BSF 03.5
00D1: MOVWF 07
00D2: BCF 03.5
00D3: BSF 20.4
00D4: MOVF 20,W
00D5: BSF 03.5
00D6: MOVWF 07
00D7: BCF 03.5
00D8: BCF 20.3
00D9: MOVF 20,W
00DA: BSF 03.5
00DB: MOVWF 07
00DC: MOVLW 01
00DD: BCF 03.5
00DE: MOVWF 14
00DF: MOVLW 00
00E0: BSF 03.5
00E1: MOVWF 14
.................... setup_timer_0(RTCC_INTERNAL|RTCC_DIV_1);
00E2: MOVF 01,W
00E3: ANDLW C7
00E4: IORLW 08
00E5: MOVWF 01
.................... setup_timer_1(T1_DISABLED);
00E6: BCF 03.5
00E7: CLRF 10
.................... setup_timer_2(T2_DISABLED,0,1);
00E8: MOVLW 00
00E9: MOVWF 78
00EA: MOVWF 12
00EB: MOVLW 00
00EC: BSF 03.5
00ED: MOVWF 12
.................... setup_ccp1(CCP_OFF);
00EE: BCF 03.5
00EF: BSF 20.2
00F0: MOVF 20,W
00F1: BSF 03.5
00F2: MOVWF 07
00F3: BCF 03.5
00F4: CLRF 17
00F5: BSF 03.5
00F6: CLRF 1B
00F7: CLRF 1C
00F8: MOVLW 01
00F9: MOVWF 1D
.................... setup_comparator(NC_NC_NC_NC);// This device COMP currently not supported by the PICWizard
00FA: BCF 03.5
00FB: BSF 03.6
00FC: CLRF 07
00FD: CLRF 08
00FE: CLRF 09
....................
.................... //TODO: User Code
.................... printf("Simple Thermomether\r\n",);
00FF: MOVLW 04
0100: MOVWF 0D
0101: MOVLW 00
0102: MOVWF 0F
0103: BCF 03.6
0104: CALL 041
.................... printf("(c) Kaklik 2013\r\n");
0105: MOVLW 0F
0106: BSF 03.6
0107: MOVWF 0D
0108: MOVLW 00
0109: MOVWF 0F
010A: BCF 03.6
010B: CALL 041
.................... printf("www.mlab.cz\r\n");
010C: MOVLW 18
010D: BSF 03.6
010E: MOVWF 0D
010F: MOVLW 00
0110: MOVWF 0F
0111: BCF 03.6
0112: CALL 041
....................
.................... while (TRUE)
.................... {
....................
.................... Delay_ms(100);
0113: MOVLW 64
0114: MOVWF 21
0115: GOTO 087
.................... }
0116: GOTO 113
....................
....................
....................
.................... }
0117: SLEEP
Configuration Fuses:
Word 1: 2CF5 INTRC NOWDT NOPUT MCLR NOPROTECT NOCPD NOBROWNOUT IESO FCMEN NOLVP NODEBUG
Word 2: 3FFF NOWRT BORV40