Rev 410 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download
CCS PCM C Compiler, Version 3.245, 27853 23-III-08 21:00
Filename: D:\KAKLIK\projekty\programy\C\PIC_C\test\PIC16F84\blik\blik.lst
ROM used: 53 words (5%)
Largest free fragment is 971
RAM used: 3 (4%) at main() level
4 (6%) worst case
Stack: 1 locations
*
0000: MOVLW 00
0001: MOVWF 0A
0002: GOTO 019
0003: NOP
.................... #include "blik.h"
.................... #include <16F84A.h>
.................... //////// Standard Header file for the PIC16F84A device ////////////////
.................... #device PIC16F84A
.................... #list
....................
....................
.................... #FUSES NOWDT //No Watch Dog Timer
.................... #FUSES XT //Crystal osc <= 4mhz
.................... #FUSES NOPUT //No Power Up Timer
.................... #FUSES NOPROTECT //Code not protected from reading
....................
.................... #use delay(clock=4000000)
0004: MOVLW 10
0005: MOVWF 04
0006: MOVF 00,W
0007: BTFSC 03.2
0008: GOTO 018
0009: MOVLW 01
000A: MOVWF 0D
000B: CLRF 0C
000C: DECFSZ 0C,F
000D: GOTO 00C
000E: DECFSZ 0D,F
000F: GOTO 00B
0010: MOVLW 4A
0011: MOVWF 0C
0012: DECFSZ 0C,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
....................
.................... setup_timer_0(RTCC_INTERNAL|RTCC_DIV_1);
001C: BSF 03.5
001D: MOVF 01,W
001E: ANDLW C7
001F: IORLW 08
0020: MOVWF 01
....................
.................... while(true)
.................... {
.................... output_high(PIN_B0);
0021: BCF 06.0
0022: BCF 03.5
0023: BSF 06.0
.................... Delay_ms(700);
0024: MOVLW 04
0025: MOVWF 0F
0026: MOVLW AF
0027: MOVWF 10
0028: CALL 004
0029: DECFSZ 0F,F
002A: GOTO 026
.................... output_low(PIN_B0);
002B: BSF 03.5
002C: BCF 06.0
002D: BCF 03.5
002E: BCF 06.0
.................... Delay_ms(50);
002F: MOVLW 32
0030: MOVWF 10
0031: CALL 004
.................... }
0032: BSF 03.5
0033: GOTO 021
....................
.................... }
0034: SLEEP
Configuration Fuses:
Word 1: 3FF9 XT NOWDT NOPUT NOPROTECT