/programy/PIC_C/test/C16F876A/blik/blik.BAK |
---|
0,0 → 1,24 |
#include "D:\KAKLIK\projekty\programy\PIC_C\test\PIC16F876A\blik\blik.h" |
void main() |
{ |
setup_adc_ports(NO_ANALOGS); |
setup_adc(ADC_OFF); |
setup_spi(FALSE); |
setup_timer_0(RTCC_INTERNAL|RTCC_DIV_1); |
setup_timer_1(T1_DISABLED); |
setup_timer_2(T2_DISABLED,0,1); |
setup_comparator(NC_NC_NC_NC); |
setup_vref(FALSE); |
While(true) |
{ |
Delay_ms(500); |
Output_high(PIN_B1); |
Delay_ms(500); |
Output_low(PIN_B1); |
} |
} |
/programy/PIC_C/test/C16F876A/blik/blik.PJT |
---|
0,0 → 1,38 |
[PROJECT] |
Target=blik.HEX |
Development_Mode= |
Processor=0x876A |
ToolSuite=CCS |
[Directories] |
Include=C:\Program Files\PICC\devices\;C:\Program Files\PICC\dr |
Library= |
LinkerScript= |
[Target Data] |
FileList=D:\KAKLIK\projekty\programy\PIC_C\test\C16F876A\blik\blik.c |
BuildTool=C-COMPILER |
OptionString=+FM |
AdditionalOptionString= |
BuildRequired=1 |
[blik.c] |
Type=4 |
Path= |
FileList= |
BuildTool= |
OptionString= |
AdditionalOptionString= |
[mru-list] |
1=blik.c |
[Windows] |
0=0000 blik.c 0 0 796 451 3 0 |
[Opened Files] |
1=D:\KAKLIK\projekty\programy\PIC_C\test\C16F876A\blik\blik.c |
2= |
[Units] |
Count=1 |
1=D:\KAKLIK\projekty\programy\PIC_C\test\C16F876A\blik\blik.c (main) |
/programy/PIC_C/test/C16F876A/blik/blik.c |
---|
0,0 → 1,24 |
#include ".\blik.h" |
void main() |
{ |
setup_adc_ports(NO_ANALOGS); |
setup_adc(ADC_OFF); |
setup_spi(FALSE); |
setup_timer_0(RTCC_INTERNAL|RTCC_DIV_1); |
setup_timer_1(T1_DISABLED); |
setup_timer_2(T2_DISABLED,0,1); |
setup_comparator(NC_NC_NC_NC); |
setup_vref(FALSE); |
While(true) |
{ |
Delay_ms(500); |
Output_high(PIN_B1); |
Delay_ms(500); |
Output_low(PIN_B1); |
} |
} |
/programy/PIC_C/test/C16F876A/blik/blik.cof |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
Property changes: |
Added: svn:mime-type |
+application/octet-stream |
\ No newline at end of property |
/programy/PIC_C/test/C16F876A/blik/blik.err |
---|
0,0 → 1,2 |
No Errors |
0 Errors, 0 Warnings. |
/programy/PIC_C/test/C16F876A/blik/blik.h |
---|
0,0 → 1,15 |
#include <16F876A.h> |
#device adc=8 |
#FUSES NOWDT //No Watch Dog Timer |
#FUSES HS //High speed Osc (> 4mhz) |
#FUSES NOPUT //No Power Up Timer |
#FUSES NOPROTECT //Code not protected from reading |
#FUSES NODEBUG //No Debug mode for ICD |
#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 |
#use delay(clock=20000000) |
/programy/PIC_C/test/C16F876A/blik/blik.hex |
---|
0,0 → 1,18 |
:1000000000308A00172800002230840000080319FD |
:1000100016280630F800F701F70B0C28F80B0B2810 |
:100020007B30F700F70B1228800B0928003484017D |
:100030001F30830583161F149F141F159F1107304F |
:100040009C00FF308312A00083161F149F141F15FD |
:100050009F1183121F109412A0122008831687008C |
:10006000831220162008831687008312A01120080F |
:1000700083168700003083129400831694000108D1 |
:10008000C73908388100831290010030F8009200CF |
:1000900000308316920007309C0005081030F700EE |
:1000A000F70B502800001C0883120D1383169D01C6 |
:1000B00002308312A100FA30A2000420A10B5B28B9 |
:1000C00083168610831286140230A100FA30A20033 |
:1000D0000420A10B662883168610831286108316CF |
:0400E0005828630039 |
:02400E003A3F37 |
:00000001FF |
;PIC16F876A |
/programy/PIC_C/test/C16F876A/blik/blik.lst |
---|
0,0 → 1,175 |
CCS PCM C Compiler, Version 3.245, 27853 23-II-07 18:50 |
Filename: D:\KAKLIK\projekty\programy\PIC_C\test\C16F876A\blik\blik.lst |
ROM used: 114 words (1%) |
Largest free fragment is 2048 |
RAM used: 7 (4%) at main() level |
8 (5%) worst case |
Stack: 1 locations |
* |
0000: MOVLW 00 |
0001: MOVWF 0A |
0002: GOTO 017 |
0003: NOP |
.................... #include ".\blik.h" |
.................... #include <16F876A.h> |
.................... //////// Standard Header file for the PIC16F876A device //////////////// |
.................... #device PIC16F876A |
.................... #list |
.................... |
.................... #device adc=8 |
.................... |
.................... #FUSES NOWDT //No Watch Dog Timer |
.................... #FUSES HS //High speed Osc (> 4mhz) |
.................... #FUSES NOPUT //No Power Up Timer |
.................... #FUSES NOPROTECT //Code not protected from reading |
.................... #FUSES NODEBUG //No Debug mode for ICD |
.................... #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 |
.................... |
.................... #use delay(clock=20000000) |
0004: MOVLW 22 |
0005: MOVWF 04 |
0006: MOVF 00,W |
0007: BTFSC 03.2 |
0008: GOTO 016 |
0009: MOVLW 06 |
000A: MOVWF 78 |
000B: CLRF 77 |
000C: DECFSZ 77,F |
000D: GOTO 00C |
000E: DECFSZ 78,F |
000F: GOTO 00B |
0010: MOVLW 7B |
0011: MOVWF 77 |
0012: DECFSZ 77,F |
0013: GOTO 012 |
0014: DECFSZ 00,F |
0015: GOTO 009 |
0016: RETLW 00 |
.................... |
.................... |
.................... |
.................... |
.................... void main() |
.................... { |
0017: CLRF 04 |
0018: MOVLW 1F |
0019: ANDWF 03,F |
001A: BSF 03.5 |
001B: BSF 1F.0 |
001C: BSF 1F.1 |
001D: BSF 1F.2 |
001E: BCF 1F.3 |
001F: MOVLW 07 |
0020: MOVWF 1C |
.................... |
.................... setup_adc_ports(NO_ANALOGS); |
* |
0024: BSF 03.5 |
0025: BSF 1F.0 |
0026: BSF 1F.1 |
0027: BSF 1F.2 |
0028: BCF 1F.3 |
.................... setup_adc(ADC_OFF); |
0029: BCF 03.5 |
002A: BCF 1F.0 |
.................... setup_spi(FALSE); |
* |
0021: MOVLW FF |
0022: BCF 03.5 |
0023: MOVWF 20 |
* |
002B: BCF 14.5 |
002C: BCF 20.5 |
002D: MOVF 20,W |
002E: BSF 03.5 |
002F: MOVWF 07 |
0030: BCF 03.5 |
0031: BSF 20.4 |
0032: MOVF 20,W |
0033: BSF 03.5 |
0034: MOVWF 07 |
0035: BCF 03.5 |
0036: BCF 20.3 |
0037: MOVF 20,W |
0038: BSF 03.5 |
0039: MOVWF 07 |
003A: MOVLW 00 |
003B: BCF 03.5 |
003C: MOVWF 14 |
003D: BSF 03.5 |
003E: MOVWF 14 |
.................... setup_timer_0(RTCC_INTERNAL|RTCC_DIV_1); |
003F: MOVF 01,W |
0040: ANDLW C7 |
0041: IORLW 08 |
0042: MOVWF 01 |
.................... setup_timer_1(T1_DISABLED); |
0043: BCF 03.5 |
0044: CLRF 10 |
.................... setup_timer_2(T2_DISABLED,0,1); |
0045: MOVLW 00 |
0046: MOVWF 78 |
0047: MOVWF 12 |
0048: MOVLW 00 |
0049: BSF 03.5 |
004A: MOVWF 12 |
.................... setup_comparator(NC_NC_NC_NC); |
004B: MOVLW 07 |
004C: MOVWF 1C |
004D: MOVF 05,W |
004E: MOVLW 10 |
004F: MOVWF 77 |
0050: DECFSZ 77,F |
0051: GOTO 050 |
0052: NOP |
0053: MOVF 1C,W |
0054: BCF 03.5 |
0055: BCF 0D.6 |
.................... setup_vref(FALSE); |
0056: BSF 03.5 |
0057: CLRF 1D |
.................... |
.................... While(true) |
.................... { |
.................... Delay_ms(500); |
0058: MOVLW 02 |
0059: BCF 03.5 |
005A: MOVWF 21 |
005B: MOVLW FA |
005C: MOVWF 22 |
005D: CALL 004 |
005E: DECFSZ 21,F |
005F: GOTO 05B |
.................... Output_high(PIN_B1); |
0060: BSF 03.5 |
0061: BCF 06.1 |
0062: BCF 03.5 |
0063: BSF 06.1 |
.................... Delay_ms(500); |
0064: MOVLW 02 |
0065: MOVWF 21 |
0066: MOVLW FA |
0067: MOVWF 22 |
0068: CALL 004 |
0069: DECFSZ 21,F |
006A: GOTO 066 |
.................... Output_low(PIN_B1); |
006B: BSF 03.5 |
006C: BCF 06.1 |
006D: BCF 03.5 |
006E: BCF 06.1 |
.................... } |
006F: BSF 03.5 |
0070: GOTO 058 |
.................... |
.................... } |
0071: SLEEP |
Configuration Fuses: |
Word 1: 3F3A HS NOWDT NOPUT NODEBUG NOPROTECT NOBROWNOUT NOLVP NOCPD NOWRT |
/programy/PIC_C/test/C16F876A/blik/blik.sta |
---|
0,0 → 1,31 |
ROM used: 114 (1%) |
114 (1%) including unused fragments |
0 Average locations per line |
8 Average locations per statement |
RAM used: 7 (4%) at main() level |
8 (5%) worst case |
Lines Stmts % Files |
----- ----- --- ----- |
25 14 100 D:\KAKLIK\projekty\programy\PIC_C\test\C16F876A\blik\blik.c |
16 0 0 D:\KAKLIK\projekty\programy\PIC_C\test\C16F876A\blik\blik.h |
270 0 0 C:\Program Files\PICC\devices\16F876A.h |
----- ----- |
622 28 Total |
Page ROM % RAM Functions: |
---- --- --- --- ---------- |
0 19 17 1 @delay_ms1 |
0 91 80 1 main |
Segment Used Free |
--------- ---- ---- |
00000-00003 4 0 |
00004-007FF 110 1934 |
00800-00FFF 0 2048 |
01000-017FF 0 2048 |
01800-01FFF 0 2048 |
/programy/PIC_C/test/C16F876A/blik/blik.sym |
---|
0,0 → 1,45 |
015-016 CCP_1 |
015 CCP_1_LOW |
016 CCP_1_HIGH |
01B CCP_2_LOW |
01B-01C CCP_2 |
01C CCP_2_HIGH |
020 @TRIS_C |
021 main.@SCRATCH |
022 @delay_ms1.P1 |
077 @SCRATCH |
078 @SCRATCH |
078 _RETURN_ |
079 @SCRATCH |
07A @SCRATCH |
07B @SCRATCH |
09C.6 C1OUT |
09C.7 C2OUT |
0004 @delay_ms1 |
0017 main |
0017 @cinit |
Project Files: |
D:\KAKLIK\projekty\programy\PIC_C\test\C16F876A\blik\blik.c |
D:\KAKLIK\projekty\programy\PIC_C\test\C16F876A\blik\blik.h |
C:\Program Files\PICC\devices\16F876A.h |
Units: |
D:\KAKLIK\projekty\programy\PIC_C\test\C16F876A\blik\blik.c (main) |
Compiler Settings: |
Processor: PIC16F876A |
Pointer Size: 8 |
ADC Range: 0-255 |
Opt Level: 9 |
Short,Int,Long: 1,8,16 |
Output Files: |
Errors: D:\KAKLIK\projekty\programy\PIC_C\test\C16F876A\blik\blik.err |
INHX8: D:\KAKLIK\projekty\programy\PIC_C\test\C16F876A\blik\blik.hex |
Symbols: D:\KAKLIK\projekty\programy\PIC_C\test\C16F876A\blik\blik.sym |
List: D:\KAKLIK\projekty\programy\PIC_C\test\C16F876A\blik\blik.lst |
Debug/COFF: D:\KAKLIK\projekty\programy\PIC_C\test\C16F876A\blik\blik.cof |
Call Tree: D:\KAKLIK\projekty\programy\PIC_C\test\C16F876A\blik\blik.tre |
Statistics: D:\KAKLIK\projekty\programy\PIC_C\test\C16F876A\blik\blik.sta |
/programy/PIC_C/test/C16F876A/blik/blik.tre |
---|
0,0 → 1,5 |
ÀÄblik |
ÀÄmain 0/91 Ram=1 |
ÃÄ??0?? |
ÃÄ@delay_ms1 0/19 Ram=1 |
ÀÄ@delay_ms1 0/19 Ram=1 |