Subversion Repositories svnkaklik

Compare Revisions

No changes between revisions

Ignore whitespace Rev 409 → Rev 410

/programy/C/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/C/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/C/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/C/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/C/PIC_C/test/C16F876A/blik/blik.err
0,0 → 1,2
No Errors
0 Errors, 0 Warnings.
/programy/C/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/C/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/C/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/C/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/C/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/C/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
/programy/C/PIC_C/test/PIC16F84A/blik/blik.PJT
0,0 → 1,38
[PROJECT]
Target=blik.HEX
Development_Mode=
Processor=0x6F84
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\PIC16F84A\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\PIC16F84A\blik\blik.c
2=
[Units]
Count=1
1=D:\KAKLIK\projekty\programy\PIC_C\test\PIC16F84A\blik\blik.c (main)
/programy/C/PIC_C/test/PIC16F84A/blik/blik.BAK
0,0 → 1,9
#include "blik.h"
 
 
void main()
{
 
setup_timer_0(RTCC_INTERNAL|RTCC_DIV_1);
 
}
/programy/C/PIC_C/test/PIC16F84A/blik/blik.c
0,0 → 1,17
#include "blik.h"
 
 
void main()
{
 
setup_timer_0(RTCC_INTERNAL|RTCC_DIV_1);
 
while(true)
{
output_high(PIN_B0);
Delay_ms(700);
output_low(PIN_B0);
Delay_ms(50);
}
 
}
/programy/C/PIC_C/test/PIC16F84A/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/C/PIC_C/test/PIC16F84A/blik/blik.err
0,0 → 1,2
No Errors
0 Errors, 0 Warnings.
/programy/C/PIC_C/test/PIC16F84A/blik/blik.h
0,0 → 1,9
#include <16F84A.h>
 
#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)
 
/programy/C/PIC_C/test/PIC16F84A/blik/blik.hex
0,0 → 1,10
:1000000000308A001928000010308400000803190D
:10001000182801308D008C018C0B0C288D0B0B28BF
:100020004A308C008C0B122800000000800B09283D
:10003000003484011F30830583160108C73908384E
:10004000810006108312061404308F00AF30900038
:1000500004208F0B262883160610831206103230D8
:0A006000900004208316212863009D
:02400E00F93F78
:00000001FF
;PIC16F84A
/programy/C/PIC_C/test/PIC16F84A/blik/blik.lst
0,0 → 1,98
CCS PCM C Compiler, Version 3.245, 27853 05-XI-06 21:34
 
Filename: D:\KAKLIK\projekty\programy\PIC_C\test\PIC16F84A\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
/programy/C/PIC_C/test/PIC16F84A/blik/blik.sta
0,0 → 1,28
 
ROM used: 53 (5%)
53 (5%) including unused fragments
 
0 Average locations per line
8 Average locations per statement
 
RAM used: 3 (4%) at main() level
4 (6%) worst case
 
Lines Stmts % Files
----- ----- --- -----
18 7 100 D:\KAKLIK\projekty\programy\PIC_C\test\PIC16F84A\blik\blik.c
10 0 0 D:\KAKLIK\projekty\programy\PIC_C\test\PIC16F84A\blik\blik.h
113 0 0 C:\Program Files\PICC\devices\16F84A.h
----- -----
282 14 Total
 
Page ROM % RAM Functions:
---- --- --- --- ----------
0 21 40 1 @delay_ms1
0 28 53 1 main
 
Segment Used Free
--------- ---- ----
00000-00003 4 0
00004-003FF 49 971
 
/programy/C/PIC_C/test/PIC16F84A/blik/blik.sym
0,0 → 1,32
00C @SCRATCH
00D @SCRATCH
00D _RETURN_
00F main.@SCRATCH
010 @delay_ms1.P1
 
0004 @delay_ms1
0019 main
0019 @cinit
 
Project Files:
D:\KAKLIK\projekty\programy\PIC_C\test\PIC16F84A\blik\blik.c
D:\KAKLIK\projekty\programy\PIC_C\test\PIC16F84A\blik\blik.h
C:\Program Files\PICC\devices\16F84A.h
 
Units:
D:\KAKLIK\projekty\programy\PIC_C\test\PIC16F84A\blik\blik.c (main)
 
Compiler Settings:
Processor: PIC16F84A
Pointer Size: 8
Opt Level: 9
Short,Int,Long: 1,8,16
 
Output Files:
Errors: D:\KAKLIK\projekty\programy\PIC_C\test\PIC16F84A\blik\blik.err
INHX8: D:\KAKLIK\projekty\programy\PIC_C\test\PIC16F84A\blik\blik.hex
Symbols: D:\KAKLIK\projekty\programy\PIC_C\test\PIC16F84A\blik\blik.sym
List: D:\KAKLIK\projekty\programy\PIC_C\test\PIC16F84A\blik\blik.lst
Debug/COFF: D:\KAKLIK\projekty\programy\PIC_C\test\PIC16F84A\blik\blik.cof
Call Tree: D:\KAKLIK\projekty\programy\PIC_C\test\PIC16F84A\blik\blik.tre
Statistics: D:\KAKLIK\projekty\programy\PIC_C\test\PIC16F84A\blik\blik.sta
/programy/C/PIC_C/test/PIC16F84A/blik/blik.tre
0,0 → 1,5
ÀÄblik
ÀÄmain 0/28 Ram=1
ÃÄ??0??
ÃÄ@delay_ms1 0/21 Ram=1
ÀÄ@delay_ms1 0/21 Ram=1
/programy/C/PIC_C/test/PIC16F84A/blik/prg.bat
0,0 → 1,6
call picpgr stop LPT2
call picpgr erase pic16f84a LPT2
call picpgr program blik.hex hex pic16f84a LPT2
call picpgr run LPT2
pause
call picpgr stop LPT2
/programy/C/PIC_C/test/PIC16F88/blik/blik.PJT
0,0 → 1,41
[PROJECT]
Target=blik.HEX
Development_Mode=
Processor=0x688F
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\PIC16F88\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\PIC16F88\blik\blik.c
2=D:\KAKLIK\projekty\programy\PIC_C\test\PIC16F88\blik\blik.h
3=C:\Program Files\PICC\devices\16F88.h
4=D:\KAKLIK\projekty\programy\PIC_C\test\PIC16F88\blik\blik.lst
5=
[Units]
Count=1
1=D:\KAKLIK\projekty\programy\PIC_C\test\PIC16F88\blik\blik.c (main)
/programy/C/PIC_C/test/PIC16F88/blik/blik.BAK
0,0 → 1,25
#include "blik.h"
 
 
void main()
{
 
setup_adc_ports(NO_ANALOGS|VSS_VDD);
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);
setup_oscillator(False);
 
while(true) // nekonecny cyklus
{
output_high(PIN_B0); // nastav B0 na 1
Delay_ms(700); // pockej 700ms
output_low(PIN_B0); //nastav B0 na 0
Delay_ms(50); // pockej 50ms
} // opakuj cyklus
 
}
/programy/C/PIC_C/test/PIC16F88/blik/blik.c
0,0 → 1,25
#include "blik.h"
 
 
void main()
{
 
setup_adc_ports(NO_ANALOGS|VSS_VDD); // parametry
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);
setup_oscillator(False);
 
while(true) // nekonecny cyklus
{
output_high(PIN_B0); // nastav B0 na 1
Delay_ms(700); // pockej 700ms
output_low(PIN_B0); //nastav B0 na 0
Delay_ms(50); // pockej 50ms
} // opakuj cyklus
 
}
/programy/C/PIC_C/test/PIC16F88/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/C/PIC_C/test/PIC16F88/blik/blik.err
0,0 → 1,2
No Errors
0 Errors, 0 Warnings.
/programy/C/PIC_C/test/PIC16F88/blik/blik.h
0,0 → 1,18
#include <16F88.h>
#device adc=8
 
#FUSES NOWDT //No Watch Dog Timer
#FUSES XT //Crystal osc <= 4mhz
#FUSES NOPUT //No Power Up Timer
#FUSES NOMCLR //Master Clear pin used for I/O
#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
#FUSES NODEBUG //No Debug mode for ICD
#FUSES NOPROTECT //Code not protected from reading
#FUSES NOFCMEN //Fail-safe clock monitor disabled
#FUSES NOIESO //Internal External Switch Over mode disabled
 
#use delay(clock=4000000)
 
/programy/C/PIC_C/test/PIC16F88/blik/blik.hex
0,0 → 1,16
:1000000000308A00192800002230840000080319FB
:1000100018280130F800F701F70B0C28F80B0B2813
:100020004A30F700F70B122800000000800B092867
:10003000003484011F30830583161F129F121B0892
:1000400080399B0007309C001F129F121B088039CB
:100050009B0083121F109412831606118614061239
:10006000003083129400831694000108C7390838C1
:100070008100831290010030F80092000030831656
:10008000920007309C0005080330F700F70B462864
:100090001C0883120D1383169D018F010F08061093
:1000A000831206140430A100AF30A2000420A10B7B
:1000B000542883160610831206103230A200042042
:0600C00083164F286300C7
:04400E00093FFC3F2B
:00000001FF
;PIC16F88
/programy/C/PIC_C/test/PIC16F88/blik/blik.lst
0,0 → 1,162
CCS PCM C Compiler, Version 3.245, 27853 05-XI-06 22:19
 
Filename: D:\KAKLIK\projekty\programy\PIC_C\test\PIC16F88\blik\blik.lst
 
ROM used: 99 words (2%)
Largest free fragment is 2048
RAM used: 6 (3%) at main() level
7 (4%) worst case
Stack: 1 locations
 
*
0000: MOVLW 00
0001: MOVWF 0A
0002: GOTO 019
0003: NOP
.................... #include "blik.h"
.................... #include <16F88.h>
.................... //////// Standard Header file for the PIC16F88 device ////////////////
.................... #device PIC16F88
.................... #list
....................
.................... #device adc=8
....................
.................... #FUSES NOWDT //No Watch Dog Timer
.................... #FUSES XT //Crystal osc <= 4mhz
.................... #FUSES NOPUT //No Power Up Timer
.................... #FUSES NOMCLR //Master Clear pin used for I/O
.................... #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
.................... #FUSES NODEBUG //No Debug mode for ICD
.................... #FUSES NOPROTECT //Code not protected from reading
.................... #FUSES NOFCMEN //Fail-safe clock monitor disabled
.................... #FUSES NOIESO //Internal External Switch Over mode disabled
....................
.................... #use delay(clock=4000000)
0004: MOVLW 22
0005: MOVWF 04
0006: MOVF 00,W
0007: BTFSC 03.2
0008: GOTO 018
0009: MOVLW 01
000A: MOVWF 78
000B: CLRF 77
000C: DECFSZ 77,F
000D: GOTO 00C
000E: DECFSZ 78,F
000F: GOTO 00B
0010: MOVLW 4A
0011: MOVWF 77
0012: DECFSZ 77,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
001C: BSF 03.5
001D: BCF 1F.4
001E: BCF 1F.5
001F: MOVF 1B,W
0020: ANDLW 80
0021: MOVWF 1B
0022: MOVLW 07
0023: MOVWF 1C
....................
.................... setup_adc_ports(NO_ANALOGS|VSS_VDD); // parametry
0024: BCF 1F.4
0025: BCF 1F.5
0026: MOVF 1B,W
0027: ANDLW 80
0028: MOVWF 1B
.................... setup_adc(ADC_OFF);
0029: BCF 03.5
002A: BCF 1F.0
.................... setup_spi(FALSE);
002B: BCF 14.5
002C: BSF 03.5
002D: BCF 06.2
002E: BSF 06.1
002F: BCF 06.4
0030: MOVLW 00
0031: BCF 03.5
0032: MOVWF 14
0033: BSF 03.5
0034: MOVWF 14
.................... setup_timer_0(RTCC_INTERNAL|RTCC_DIV_1);
0035: MOVF 01,W
0036: ANDLW C7
0037: IORLW 08
0038: MOVWF 01
.................... setup_timer_1(T1_DISABLED);
0039: BCF 03.5
003A: CLRF 10
.................... setup_timer_2(T2_DISABLED,0,1);
003B: MOVLW 00
003C: MOVWF 78
003D: MOVWF 12
003E: MOVLW 00
003F: BSF 03.5
0040: MOVWF 12
.................... setup_comparator(NC_NC_NC_NC);
0041: MOVLW 07
0042: MOVWF 1C
0043: MOVF 05,W
0044: MOVLW 03
0045: MOVWF 77
0046: DECFSZ 77,F
0047: GOTO 046
0048: MOVF 1C,W
0049: BCF 03.5
004A: BCF 0D.6
.................... setup_vref(FALSE);
004B: BSF 03.5
004C: CLRF 1D
.................... setup_oscillator(False);
004D: CLRF 0F
004E: MOVF 0F,W
....................
.................... while(true) // nekonecny cyklus
.................... {
.................... output_high(PIN_B0); // nastav B0 na 1
004F: BCF 06.0
0050: BCF 03.5
0051: BSF 06.0
.................... Delay_ms(700); // pockej 700ms
0052: MOVLW 04
0053: MOVWF 21
0054: MOVLW AF
0055: MOVWF 22
0056: CALL 004
0057: DECFSZ 21,F
0058: GOTO 054
.................... output_low(PIN_B0); //nastav B0 na 0
0059: BSF 03.5
005A: BCF 06.0
005B: BCF 03.5
005C: BCF 06.0
.................... Delay_ms(50); // pockej 50ms
005D: MOVLW 32
005E: MOVWF 22
005F: CALL 004
.................... } // opakuj cyklus
0060: BSF 03.5
0061: GOTO 04F
....................
.................... }
0062: SLEEP
 
Configuration Fuses:
Word 1: 3F09 XT NOWDT NOPUT NOMCLR NOBROWNOUT NOLVP NOCPD NOWRT NODEBUG CCPB0 NOPROTECT
Word 2: 3FFC NOFCMEN NOIESO
/programy/C/PIC_C/test/PIC16F88/blik/blik.sta
0,0 → 1,29
 
ROM used: 99 (2%)
99 (2%) including unused fragments
 
0 Average locations per line
7 Average locations per statement
 
RAM used: 6 (3%) at main() level
7 (4%) worst case
 
Lines Stmts % Files
----- ----- --- -----
26 15 100 D:\KAKLIK\projekty\programy\PIC_C\test\PIC16F88\blik\blik.c
19 0 0 D:\KAKLIK\projekty\programy\PIC_C\test\PIC16F88\blik\blik.h
279 0 0 C:\Program Files\PICC\devices\16F88.h
----- -----
648 30 Total
 
Page ROM % RAM Functions:
---- --- --- --- ----------
0 21 21 1 @delay_ms1
0 74 75 1 main
 
Segment Used Free
--------- ---- ----
00000-00003 4 0
00004-007FF 95 1949
00800-00FFF 0 2048
 
/programy/C/PIC_C/test/PIC16F88/blik/blik.sym
0,0 → 1,41
015 CCP_1_LOW
015-016 CCP_1
016 CCP_1_HIGH
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
0019 main
0019 @cinit
 
Project Files:
D:\KAKLIK\projekty\programy\PIC_C\test\PIC16F88\blik\blik.c
D:\KAKLIK\projekty\programy\PIC_C\test\PIC16F88\blik\blik.h
C:\Program Files\PICC\devices\16F88.h
 
Units:
D:\KAKLIK\projekty\programy\PIC_C\test\PIC16F88\blik\blik.c (main)
 
Compiler Settings:
Processor: PIC16F88
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\PIC16F88\blik\blik.err
INHX8: D:\KAKLIK\projekty\programy\PIC_C\test\PIC16F88\blik\blik.hex
Symbols: D:\KAKLIK\projekty\programy\PIC_C\test\PIC16F88\blik\blik.sym
List: D:\KAKLIK\projekty\programy\PIC_C\test\PIC16F88\blik\blik.lst
Debug/COFF: D:\KAKLIK\projekty\programy\PIC_C\test\PIC16F88\blik\blik.cof
Call Tree: D:\KAKLIK\projekty\programy\PIC_C\test\PIC16F88\blik\blik.tre
Statistics: D:\KAKLIK\projekty\programy\PIC_C\test\PIC16F88\blik\blik.sta
/programy/C/PIC_C/test/PIC16F88/blik/blik.tre
0,0 → 1,5
ÀÄblik
ÀÄmain 0/74 Ram=1
ÃÄ??0??
ÃÄ@delay_ms1 0/21 Ram=1
ÀÄ@delay_ms1 0/21 Ram=1
/programy/C/PIC_C/test/PIC16F88/blik/prg.bat
0,0 → 1,6
call picpgr stop LPT2
call picpgr erase pic16f88 LPT2
call picpgr program blik.hex hex pic16f88 LPT2
call picpgr run LPT2
pause
call picpgr stop LPT2