Subversion Repositories svnkaklik

Compare Revisions

No changes between revisions

Ignore whitespace Rev 470 → Rev 471

/programy/C/PIC_C/test/PIC16F84A/blik/blik.c
File deleted
/programy/C/PIC_C/test/PIC16F84A/blik/blik.lst
File deleted
/programy/C/PIC_C/test/PIC16F84A/blik/blik.hex
File deleted
/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:
Deleted: svn:mime-type
-application/octet-stream
\ No newline at end of property
/programy/C/PIC_C/test/PIC16F84A/blik/blik.h
File deleted
/programy/C/PIC_C/test/PIC16F84A/blik/blik.sta
File deleted
/programy/C/PIC_C/test/PIC16F84A/blik/blik.sym
File deleted
/programy/C/PIC_C/test/PIC16F84A/blik/blik.err
File deleted
/programy/C/PIC_C/test/PIC16F84A/blik/blik.tre
File deleted
/programy/C/PIC_C/test/PIC16F84A/blik/blik.BAK
File deleted
/programy/C/PIC_C/test/PIC16F84A/blik/blik.PJT
File deleted
/programy/C/PIC_C/test/PIC16F84A/blik/prg.bat
File deleted
/programy/C/PIC_C/test/C16F873/blik/main.c
0,0 → 1,31
#include ".\main.h"
 
 
void main()
{
int8 ble;
 
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);
 
output_low(PIN_C1);
 
While(true)
{
output_c(ble++);
delay_ms(100);
/*
Output_high(PIN_B2);
Delay_ms(100);
Output_low(PIN_B2);
Delay_ms(100);
*/
}
 
}
/programy/C/PIC_C/test/C16F873/blik/main.h
0,0 → 1,15
#include <16F876A.h>
#device adc=8
 
#FUSES NOWDT //No Watch Dog Timer
#FUSES HS //Crystal 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/C16F873/blik/main.hex
0,0 → 1,17
:1000000000308A00192800002230840000080319FB
:1000100016280630F800F701F70B0C28F80B0B2810
:100020007B30F700F70B1228800B09288A110A127F
:100030006E2884011F30830583161F149F141F151B
:100040009F1107309C00FF308312A00083161F14FD
:100050009F141F159F1183121F109412A0122008C5
:1000600083168700831220162008831687008312C8
:10007000A011200883168700003083129400831695
:1000800094000108C73908388100831290010030BC
:10009000F800920000308316920007309C0005089B
:1000A0001030F700F70B522800001C0883120D13C4
:1000B00083169D018312A0102008831687008312E7
:1000C00087102108A10AA2000030A0008316870132
:1000D0008312220887006430A2000428612863008C
:02400E003A3F37
:00000001FF
;PIC16F876A
/programy/C/PIC_C/test/C16F876A/blik/blik.PJT
31,7 → 31,7
0=0000 blik.c 0 0 796 451 3 0
 
[Opened Files]
1=D:\KAKLIK\projekty\programy\PIC_C\test\C16F876A\blik\blik.c
1=D:\KAKLIK\projekty\programy\C\PIC_C\test\C16F876A\blik\blik.c
2=
[Units]
Count=1
/programy/C/PIC_C/test/PIC16F84/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\C\PIC_C\test\PIC16F84\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\C\PIC_C\test\PIC16F84\blik\blik.c
2=
[Units]
Count=1
1=D:\KAKLIK\projekty\programy\C\PIC_C\test\PIC16F84\blik\blik.c (main)
/programy/C/PIC_C/test/PIC16F84/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/PIC16F84/blik/blik.lst
0,0 → 1,98
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
/programy/C/PIC_C/test/PIC16F84/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\C\PIC_C\test\PIC16F84\blik\blik.c
10 0 0 D:\KAKLIK\projekty\programy\C\PIC_C\test\PIC16F84\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/PIC16F84/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\C\PIC_C\test\PIC16F84\blik\blik.c
D:\KAKLIK\projekty\programy\C\PIC_C\test\PIC16F84\blik\blik.h
C:\Program Files\PICC\devices\16F84A.h
 
Units:
D:\KAKLIK\projekty\programy\C\PIC_C\test\PIC16F84\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\C\PIC_C\test\PIC16F84\blik\blik.err
INHX8: D:\KAKLIK\projekty\programy\C\PIC_C\test\PIC16F84\blik\blik.hex
Symbols: D:\KAKLIK\projekty\programy\C\PIC_C\test\PIC16F84\blik\blik.sym
List: D:\KAKLIK\projekty\programy\C\PIC_C\test\PIC16F84\blik\blik.lst
Debug/COFF: D:\KAKLIK\projekty\programy\C\PIC_C\test\PIC16F84\blik\blik.cof
Call Tree: D:\KAKLIK\projekty\programy\C\PIC_C\test\PIC16F84\blik\blik.tre
Statistics: D:\KAKLIK\projekty\programy\C\PIC_C\test\PIC16F84\blik\blik.sta
/programy/C/PIC_C/test/PIC16F84/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/PIC16F84/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/PIC16F84/blik/blik.err
0,0 → 1,2
No Errors
0 Errors, 0 Warnings.
/programy/C/PIC_C/test/PIC16F84/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/PIC16F84/blik/blik.hex
0,0 → 1,10
:1000000000308A001928000010308400000803190D
:10001000182801308D008C018C0B0C288D0B0B28BF
:100020004A308C008C0B122800000000800B09283D
:10003000003484011F30830583160108C73908384E
:10004000810006108312061404308F00AF30900038
:1000500004208F0B262883160610831206103230D8
:0A006000900004208316212863009D
:02400E00F93F78
:00000001FF
;PIC16F84A
/programy/C/PIC_C/test/PIC16F84/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/PIC16F84/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
34,7 → 34,7
[Opened Files]
1=D:\KAKLIK\projekty\programy\C\PIC_C\test\PIC16F88\blik\blik.c
2=D:\KAKLIK\projekty\programy\C\PIC_C\test\PIC16F88\blik\blik.h
3=
3=C:\Program Files\PICC\devices\16F88.h
4=
5=
[Units]
/programy/C/PIC_C/test/PIC16F88/blik/blik.c
26,12 → 26,13
 
for(i=0;i<=100;i++)
{
Output_high(PIN_A2);
Delay_ms(1);
Output_low(PIN_A2);
Delay_ms(1);
}
 
output_low(PIN_B0); //nastav B0 na 0
Delay_ms(50); // pockej 50ms
output_low(PIN_B1); //nastav B0 na 0
/programy/C/PIC_C/test/PIC16F88/blik/blik.cof
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/programy/C/PIC_C/test/PIC16F88/blik/blik.lst
1,4 → 1,4
CCS PCM C Compiler, Version 3.245, 27853 13-I-08 00:59
CCS PCM C Compiler, Version 3.245, 27853 23-III-08 21:04
 
Filename: D:\KAKLIK\projekty\programy\C\PIC_C\test\PIC16F88\blik\blik.lst
 
141,6 → 141,7
004F: BTFSS 03.0
0050: GOTO 067
.................... {
....................
.................... Output_high(PIN_A2);
0051: BSF 03.5
0052: BCF 05.2
168,7 → 169,7
.................... }
0065: INCF 21,F
0066: GOTO 04D
....................
....................
.................... output_low(PIN_B0); //nastav B0 na 0
0067: BSF 03.5
0068: BCF 06.0
/programy/C/PIC_C/test/PIC16F88/blik/blik.sta
10,11 → 10,11
 
Lines Stmts % Files
----- ----- --- -----
44 28 100 D:\KAKLIK\projekty\programy\C\PIC_C\test\PIC16F88\blik\blik.c
45 28 100 D:\KAKLIK\projekty\programy\C\PIC_C\test\PIC16F88\blik\blik.c
19 0 0 D:\KAKLIK\projekty\programy\C\PIC_C\test\PIC16F88\blik\blik.h
279 0 0 C:\Program Files\PICC\devices\16F88.h
----- -----
684 56 Total
686 56 Total
 
Page ROM % RAM Functions:
---- --- --- --- ----------