Rev 6 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download
CCS PCW C Compiler, Version 3.110, 15448
Filename: d:\@kaklik\programy\pic_c\motory\main.LST
ROM used: 52 (5%)
Largest free fragment is 972
RAM used: 2 (3%) at main() level
3 (4%) worst case
Stack: 1 locations
*
0000: MOVLW 00
0001: MOVWF 0A
0002: GOTO 019
0003: NOP
.................... #include "D:\@Kaklik\programy\PIC_C\motory\main.h"
.................... #include <16F84.h>
.................... //////// Standard Header file for the PIC16F84 device ////////////////
.................... #device PIC16F84
.................... #list
....................
.................... #use delay(clock=4000000)
0004: MOVLW 0F
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
.................... #fuses XT,WDT
....................
....................
....................
....................
.................... void main()
.................... {
0019: CLRF 04
001A: MOVLW 1F
001B: ANDWF 03,F
.................... while (true)
.................... {
....................
.................... Delay_ms(25);
001C: MOVLW 19
001D: MOVWF 0F
001E: CALL 004
....................
.................... output_high(pin_A0);
001F: BSF 03.5
0020: BCF 05.0
0021: BCF 03.5
0022: BSF 05.0
.................... output_low(pin_A1);
0023: BSF 03.5
0024: BCF 05.1
0025: BCF 03.5
0026: BCF 05.1
....................
.................... // output_high(pin_A2);
.................... // Delay_ms(10);
.................... // output_low(pin_A2);
.................... Delay_ms(25);
0027: MOVLW 19
0028: MOVWF 0F
0029: CALL 004
....................
.................... output_low(pin_A0);
002A: BSF 03.5
002B: BCF 05.0
002C: BCF 03.5
002D: BCF 05.0
.................... output_high(pin_A1);
002E: BSF 03.5
002F: BCF 05.1
0030: BCF 03.5
0031: BSF 05.1
.................... }
0032: GOTO 01C
.................... }
....................
0033: SLEEP