1,30 → 1,30 |
CCS PCW C Compiler, Version 3.110, 15448 |
CCS PCM C Compiler, Version 4.090, 47914 23-I-10 18:21 |
|
Filename: d:\@kaklik\programy\pic_c\prenos\blikac.LST |
Filename: D:\svnKaklik\programy\C\PIC_C\mereni\tester serv\blikac.lst |
|
ROM used: 137 (13%) |
Largest free fragment is 887 |
RAM used: 4 (11%) at main() level |
5 (14%) worst case |
ROM used: 141 words (14%) |
Largest free fragment is 883 |
RAM used: 7 (19%) at main() level |
8 (22%) worst case |
Stack: 1 locations |
|
* |
0000: MOVLW 00 |
0001: MOVWF 0A |
0002: GOTO 027 |
0002: GOTO 02B |
0003: NOP |
.................... #include "D:\@Kaklik\programy\PIC_C\prenos\blikac.h" |
.................... #include <16C84.h> |
.................... //////// Standard Header file for the PIC16C84 device //////////////// |
.................... #device PIC16C84 |
.................... #list |
.................... #include "blikac.h" |
.................... #include <16C84.h> |
.................... //////// Standard Header file for the PIC16C84 device //////////////// |
.................... #device PIC16C84 |
.................... #list |
.................... |
.................... #use delay(clock=4000000) |
0004: MOVLW 10 |
.................... #use delay(clock=4000000) |
0004: MOVLW 13 |
0005: MOVWF 04 |
0006: MOVF 00,W |
0007: BTFSC 03.2 |
0008: GOTO 018 |
0008: GOTO 017 |
0009: MOVLW 01 |
000A: MOVWF 0D |
000B: CLRF 0C |
36,163 → 36,169 |
0011: MOVWF 0C |
0012: DECFSZ 0C,F |
0013: GOTO 012 |
0014: NOP |
0015: NOP |
0016: DECFSZ 00,F |
0017: GOTO 009 |
0018: RETLW 00 |
0019: MOVLW 11 |
001A: MOVWF 04 |
001B: MOVLW FC |
001C: ANDWF 00,F |
001D: RRF 00,F |
001E: RRF 00,F |
001F: MOVF 00,W |
0020: BTFSC 03.2 |
0021: GOTO 026 |
0022: GOTO 024 |
0023: NOP |
0024: DECFSZ 00,F |
0025: GOTO 023 |
0026: GOTO 07A (RETURN) |
.................... #fuses XT,PUT,NOWDT |
.................... |
0014: GOTO 015 |
0015: DECFSZ 00,F |
0016: GOTO 009 |
0017: RETLW 00 |
0018: MOVLW 12 |
0019: SUBWF 14,F |
001A: BTFSS 03.0 |
001B: GOTO 02A |
001C: MOVLW 14 |
001D: MOVWF 04 |
001E: MOVLW FC |
001F: ANDWF 00,F |
0020: BCF 03.0 |
0021: RRF 00,F |
0022: RRF 00,F |
0023: MOVF 00,W |
0024: BTFSC 03.2 |
0025: GOTO 02A |
0026: GOTO 028 |
0027: NOP |
0028: DECFSZ 00,F |
0029: GOTO 027 |
002A: GOTO 07E (RETURN) |
.................... #fuses XT,PUT,NOWDT |
.................... |
.................... #DEFINE SERVO_X PIN_A2 // piny na ktere jsou pripojena serva |
.................... #DEFINE SERVO_Y PIN_B0 |
.................... #DEFINE TL1 PIN_B1 |
.................... |
.................... void main() |
.................... { |
.................... int i; |
0027: CLRF 04 |
0028: MOVLW 1F |
0029: ANDWF 03,F |
.................... while (true) |
.................... { |
.................... while(input(TL1)) |
002A: BSF 03.5 |
002B: BSF 06.1 |
002C: BCF 03.5 |
002D: BTFSS 06.1 |
002E: GOTO 06A |
.................... { |
.................... for(i=0;i<=100;i++) |
002F: CLRF 0F |
0030: MOVF 0F,W |
0031: SUBLW 64 |
0032: BTFSS 03.0 |
0033: GOTO 04C |
.................... { |
.................... output_high(servo_y); |
0034: BSF 03.5 |
0035: BCF 06.0 |
0036: BCF 03.5 |
0037: BSF 06.0 |
.................... output_high(servo_x); |
.................... |
.................... #DEFINE SERVO_X PIN_A2 // piny na ktere jsou pripojena serva |
.................... #DEFINE SERVO_Y PIN_B0 |
.................... #DEFINE TL1 PIN_B1 |
.................... |
.................... void main() |
.................... { |
002B: CLRF 04 |
002C: MOVLW 1F |
002D: ANDWF 03,F |
.................... int i; |
.................... while (true) |
.................... { |
.................... while(input(TL1)) |
.................... { |
002E: BSF 03.5 |
002F: BSF 06.1 |
0030: BCF 03.5 |
0031: BTFSS 06.1 |
0032: GOTO 06E |
.................... for(i=0;i<=100;i++) |
0033: CLRF 12 |
0034: MOVF 12,W |
0035: SUBLW 64 |
0036: BTFSS 03.0 |
0037: GOTO 050 |
.................... { |
.................... output_high(servo_y); |
0038: BSF 03.5 |
0039: BCF 05.2 |
0039: BCF 06.0 |
003A: BCF 03.5 |
003B: BSF 05.2 |
.................... delay_us(1000); |
003C: MOVLW 01 |
003D: MOVWF 10 |
003E: CALL 004 |
.................... output_low(servo_y); |
003F: BSF 03.5 |
0040: BCF 06.0 |
0041: BCF 03.5 |
0042: BCF 06.0 |
.................... output_low(servo_x); |
003B: BSF 06.0 |
.................... output_high(servo_x); |
003C: BSF 03.5 |
003D: BCF 05.2 |
003E: BCF 03.5 |
003F: BSF 05.2 |
.................... delay_us(1000); |
0040: MOVLW 01 |
0041: MOVWF 13 |
0042: CALL 004 |
.................... output_low(servo_y); |
0043: BSF 03.5 |
0044: BCF 05.2 |
0044: BCF 06.0 |
0045: BCF 03.5 |
0046: BCF 05.2 |
.................... delay_ms(20); |
0047: MOVLW 14 |
0048: MOVWF 10 |
0049: CALL 004 |
.................... } |
004A: INCF 0F,F |
004B: GOTO 030 |
.................... |
.................... for(i=0;i<=100;i++) |
004C: CLRF 0F |
004D: MOVF 0F,W |
004E: SUBLW 64 |
004F: BTFSS 03.0 |
0050: GOTO 069 |
.................... { |
.................... output_high(servo_y); |
0051: BSF 03.5 |
0052: BCF 06.0 |
0053: BCF 03.5 |
0054: BSF 06.0 |
.................... output_high(servo_x); |
0046: BCF 06.0 |
.................... output_low(servo_x); |
0047: BSF 03.5 |
0048: BCF 05.2 |
0049: BCF 03.5 |
004A: BCF 05.2 |
.................... delay_ms(20); |
004B: MOVLW 14 |
004C: MOVWF 13 |
004D: CALL 004 |
.................... } |
004E: INCF 12,F |
004F: GOTO 034 |
.................... |
.................... for(i=0;i<=100;i++) |
0050: CLRF 12 |
0051: MOVF 12,W |
0052: SUBLW 64 |
0053: BTFSS 03.0 |
0054: GOTO 06D |
.................... { |
.................... output_high(servo_y); |
0055: BSF 03.5 |
0056: BCF 05.2 |
0056: BCF 06.0 |
0057: BCF 03.5 |
0058: BSF 05.2 |
.................... delay_us(2000); |
0059: MOVLW 02 |
005A: MOVWF 10 |
005B: CALL 004 |
.................... output_low(servo_y); |
005C: BSF 03.5 |
005D: BCF 06.0 |
005E: BCF 03.5 |
005F: BCF 06.0 |
.................... output_low(servo_x); |
0058: BSF 06.0 |
.................... output_high(servo_x); |
0059: BSF 03.5 |
005A: BCF 05.2 |
005B: BCF 03.5 |
005C: BSF 05.2 |
.................... delay_us(2000); |
005D: MOVLW 02 |
005E: MOVWF 13 |
005F: CALL 004 |
.................... output_low(servo_y); |
0060: BSF 03.5 |
0061: BCF 05.2 |
0061: BCF 06.0 |
0062: BCF 03.5 |
0063: BCF 05.2 |
.................... delay_ms(20); |
0064: MOVLW 14 |
0065: MOVWF 10 |
0066: CALL 004 |
.................... } |
0067: INCF 0F,F |
0068: GOTO 04D |
.................... } |
0069: GOTO 02A |
.................... output_high(servo_y); |
006A: BSF 03.5 |
006B: BCF 06.0 |
006C: BCF 03.5 |
006D: BSF 06.0 |
.................... output_high(servo_x); |
0063: BCF 06.0 |
.................... output_low(servo_x); |
0064: BSF 03.5 |
0065: BCF 05.2 |
0066: BCF 03.5 |
0067: BCF 05.2 |
.................... delay_ms(20); |
0068: MOVLW 14 |
0069: MOVWF 13 |
006A: CALL 004 |
.................... } |
006B: INCF 12,F |
006C: GOTO 051 |
.................... } |
006D: GOTO 02E |
.................... output_high(servo_y); |
006E: BSF 03.5 |
006F: BCF 05.2 |
006F: BCF 06.0 |
0070: BCF 03.5 |
0071: BSF 05.2 |
.................... delay_us(1500); |
0072: MOVLW 01 |
0073: MOVWF 10 |
0074: CALL 004 |
0075: MOVLW 02 |
0076: MOVWF 10 |
0077: MOVLW EC |
0078: MOVWF 11 |
0079: GOTO 019 |
007A: DECFSZ 10,F |
007B: GOTO 077 |
.................... output_low(servo_y); |
007C: BSF 03.5 |
007D: BCF 06.0 |
007E: BCF 03.5 |
007F: BCF 06.0 |
.................... output_low(servo_x); |
0071: BSF 06.0 |
.................... output_high(servo_x); |
0072: BSF 03.5 |
0073: BCF 05.2 |
0074: BCF 03.5 |
0075: BSF 05.2 |
.................... delay_us(1500); |
0076: MOVLW 01 |
0077: MOVWF 13 |
0078: CALL 004 |
0079: MOVLW 02 |
007A: MOVWF 13 |
007B: MOVLW F7 |
007C: MOVWF 14 |
007D: GOTO 018 |
007E: DECFSZ 13,F |
007F: GOTO 07B |
.................... output_low(servo_y); |
0080: BSF 03.5 |
0081: BCF 05.2 |
0081: BCF 06.0 |
0082: BCF 03.5 |
0083: BCF 05.2 |
.................... delay_ms(20); |
0084: MOVLW 14 |
0085: MOVWF 10 |
0086: CALL 004 |
.................... } |
0087: GOTO 02A |
.................... } |
.................... |
0088: SLEEP |
0083: BCF 06.0 |
.................... output_low(servo_x); |
0084: BSF 03.5 |
0085: BCF 05.2 |
0086: BCF 03.5 |
0087: BCF 05.2 |
.................... delay_ms(20); |
0088: MOVLW 14 |
0089: MOVWF 13 |
008A: CALL 004 |
.................... } |
008B: GOTO 02E |
.................... } |
008C: SLEEP |
|
Configuration Fuses: |
Word 1: 3FF9 XT NOWDT PUT NOPROTECT |