Subversion Repositories svnkaklik

Compare Revisions

Ignore whitespace Rev 459 → Rev 460

/programy/C/PIC_C/test/PIC16F88/blik/blik.BAK
4,7 → 4,7
void main()
{
 
setup_adc_ports(NO_ANALOGS|VSS_VDD);
setup_adc_ports(NO_ANALOGS|VSS_VDD); // parametry
setup_adc(ADC_OFF);
setup_spi(FALSE);
setup_timer_0(RTCC_INTERNAL|RTCC_DIV_1);
17,9 → 17,17
while(true) // nekonecny cyklus
{
output_high(PIN_B0); // nastav B0 na 1
Delay_ms(50); // pockej 50ms
output_high(PIN_B1); // nastav B0 na 1
Delay_ms(50); // pockej 50ms
output_high(PIN_B2); // nastav B0 na 1
Delay_ms(700); // pockej 700ms
output_low(PIN_B0); //nastav B0 na 0
Delay_ms(50); // pockej 50ms
output_low(PIN_B1); //nastav B0 na 0
Delay_ms(50); // pockej 50ms
output_low(PIN_B2); //nastav B0 na 0
Delay_ms(50); // pockej 50ms
} // opakuj cyklus
 
}
/programy/C/PIC_C/test/PIC16F88/blik/blik.PJT
3,6 → 3,7
Development_Mode=
Processor=0x688F
ToolSuite=CCS
Processor_Text=PIC16F88
 
[Directories]
Include=C:\Program Files\PICC\devices\;C:\Program Files\PICC\dr
10,7 → 11,7
LinkerScript=
 
[Target Data]
FileList=D:\KAKLIK\projekty\programy\PIC_C\test\PIC16F88\blik\blik.c
FileList=D:\KAKLIK\projekty\programy\C\PIC_C\test\PIC16F88\blik\blik.c
BuildTool=C-COMPILER
OptionString=+FM
AdditionalOptionString=
31,11 → 32,11
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
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=
4=
5=
[Units]
Count=1
1=D:\KAKLIK\projekty\programy\PIC_C\test\PIC16F88\blik\blik.c (main)
1=D:\KAKLIK\projekty\programy\C\PIC_C\test\PIC16F88\blik\blik.c (main)
/programy/C/PIC_C/test/PIC16F88/blik/blik.c
4,6 → 4,8
void main()
{
 
int i;
 
setup_adc_ports(NO_ANALOGS|VSS_VDD); // parametry
setup_adc(ADC_OFF);
setup_spi(FALSE);
17,9 → 19,25
while(true) // nekonecny cyklus
{
output_high(PIN_B0); // nastav B0 na 1
Delay_ms(700); // pockej 700ms
Delay_ms(50); // pockej 50ms
output_high(PIN_B1); // nastav B0 na 1
Delay_ms(50); // pockej 50ms
output_high(PIN_B2); // nastav B0 na 1
 
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
} // opakuj cyklus
output_low(PIN_B1); //nastav B0 na 0
Delay_ms(50); // pockej 50ms
output_low(PIN_B2); //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
/programy/C/PIC_C/test/PIC16F88/blik/blik.h
2,7 → 2,7
#device adc=8
 
#FUSES NOWDT //No Watch Dog Timer
#FUSES XT //Crystal osc <= 4mhz
#FUSES INTRC //Crystal osc <= 4mhz
#FUSES NOPUT //No Power Up Timer
#FUSES NOMCLR //Master Clear pin used for I/O
#FUSES NOBROWNOUT //No brownout reset
14,5 → 14,5
#FUSES NOFCMEN //Fail-safe clock monitor disabled
#FUSES NOIESO //Internal External Switch Over mode disabled
 
#use delay(clock=4000000)
#use delay(clock=37526)
 
/programy/C/PIC_C/test/PIC16F88/blik/blik.hex
1,16 → 1,20
:1000000000308A00192800002230840000080319FB
:1000100018280130F800F701F70B0C28F80B0B2813
:100020004A30F700F70B122800000000800B092867
:10003000003484011F30830583161F129F121B0892
:1000400080399B0007309C001F129F121B088039CB
:100050009B0083121F109412831606118614061239
:10006000003083129400831694000108C7390838C1
:100070008100831290010030F80092000030831656
:10008000920007309C0005080330F700F70B462864
:100090001C0883120D1383169D018F010F08061093
:1000A000831206140430A100AF30A2000420A10B7B
:1000B000542883160610831206103230A200042042
:0600C00083164F286300C7
:04400E00093FFC3F2B
:1000000000308A000428000084011F308305831615
:100010001F129F121B0880399B0007309C001F1283
:100020009F121B0880399B0083121F1094128316A5
:100030000611861406120030831294008316940071
:100040000108C73908388100831290010030F80098
:10005000920000308316920007309C001C08831227
:100060000D1383169D018F010F08061083120614CD
:100070009930F700F70B3A2800000000831686102D
:10008000831286149930F700F70B44280000000013
:100090008316061183120615A1012108643C031C76
:1000A000672883160511831205150230F700F70B38
:1000B0005728000000008316051183120511023035
:1000C000F700F70B612800000000A10A4D288316F5
:1000D0000610831206109930F700F70B6D28000008
:1000E000000083168610831286109930F700F70BF4
:1000F000772800000000831606118312061199303C
:10010000F700F70B812800000000831635286300F4
:04400E00193FFC3F1B
:00000001FF
;PIC16F88
/programy/C/PIC_C/test/PIC16F88/blik/blik.lst
1,17 → 1,17
CCS PCM C Compiler, Version 3.245, 27853 05-XI-06 22:19
CCS PCM C Compiler, Version 3.245, 27853 13-I-08 00:59
 
Filename: D:\KAKLIK\projekty\programy\PIC_C\test\PIC16F88\blik\blik.lst
Filename: D:\KAKLIK\projekty\programy\C\PIC_C\test\PIC16F88\blik\blik.lst
 
ROM used: 99 words (2%)
ROM used: 136 words (3%)
Largest free fragment is 2048
RAM used: 6 (3%) at main() level
7 (4%) worst case
Stack: 1 locations
6 (3%) worst case
Stack: 0 locations
 
*
0000: MOVLW 00
0001: MOVWF 0A
0002: GOTO 019
0002: GOTO 004
0003: NOP
.................... #include "blik.h"
.................... #include <16F88.h>
22,7 → 22,7
.................... #device adc=8
....................
.................... #FUSES NOWDT //No Watch Dog Timer
.................... #FUSES XT //Crystal osc <= 4mhz
.................... #FUSES INTRC //Crystal osc <= 4mhz
.................... #FUSES NOPUT //No Power Up Timer
.................... #FUSES NOMCLR //Master Clear pin used for I/O
.................... #FUSES NOBROWNOUT //No brownout reset
34,28 → 34,7
.................... #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
.................... #use delay(clock=37526)
....................
....................
....................
62,101 → 41,177
....................
.................... 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
0004: CLRF 04
0005: MOVLW 1F
0006: ANDWF 03,F
0007: BSF 03.5
0008: BCF 1F.4
0009: BCF 1F.5
000A: MOVF 1B,W
000B: ANDLW 80
000C: MOVWF 1B
000D: MOVLW 07
000E: MOVWF 1C
....................
.................... int i;
....................
.................... 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
000F: BCF 1F.4
0010: BCF 1F.5
0011: MOVF 1B,W
0012: ANDLW 80
0013: MOVWF 1B
.................... setup_adc(ADC_OFF);
0029: BCF 03.5
002A: BCF 1F.0
0014: BCF 03.5
0015: 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
0016: BCF 14.5
0017: BSF 03.5
0018: BCF 06.2
0019: BSF 06.1
001A: BCF 06.4
001B: MOVLW 00
001C: BCF 03.5
001D: MOVWF 14
001E: BSF 03.5
001F: MOVWF 14
.................... setup_timer_0(RTCC_INTERNAL|RTCC_DIV_1);
0035: MOVF 01,W
0036: ANDLW C7
0037: IORLW 08
0038: MOVWF 01
0020: MOVF 01,W
0021: ANDLW C7
0022: IORLW 08
0023: MOVWF 01
.................... setup_timer_1(T1_DISABLED);
0039: BCF 03.5
003A: CLRF 10
0024: BCF 03.5
0025: 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
0026: MOVLW 00
0027: MOVWF 78
0028: MOVWF 12
0029: MOVLW 00
002A: BSF 03.5
002B: 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
002C: MOVLW 07
002D: MOVWF 1C
002E: MOVF 1C,W
002F: BCF 03.5
0030: BCF 0D.6
.................... setup_vref(FALSE);
004B: BSF 03.5
004C: CLRF 1D
0031: BSF 03.5
0032: CLRF 1D
.................... setup_oscillator(False);
004D: CLRF 0F
004E: MOVF 0F,W
0033: CLRF 0F
0034: 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
0035: BCF 06.0
0036: BCF 03.5
0037: BSF 06.0
.................... Delay_ms(50); // pockej 50ms
0038: MOVLW 99
0039: MOVWF 77
003A: DECFSZ 77,F
003B: GOTO 03A
003C: NOP
003D: NOP
.................... output_high(PIN_B1); // nastav B0 na 1
003E: BSF 03.5
003F: BCF 06.1
0040: BCF 03.5
0041: BSF 06.1
.................... Delay_ms(50); // pockej 50ms
0042: MOVLW 99
0043: MOVWF 77
0044: DECFSZ 77,F
0045: GOTO 044
0046: NOP
0047: NOP
.................... output_high(PIN_B2); // nastav B0 na 1
0048: BSF 03.5
0049: BCF 06.2
004A: BCF 03.5
004B: BSF 06.2
....................
.................... for(i=0;i<=100;i++)
004C: CLRF 21
004D: MOVF 21,W
004E: SUBLW 64
004F: BTFSS 03.0
0050: GOTO 067
.................... {
.................... Output_high(PIN_A2);
0051: BSF 03.5
0052: BCF 05.2
0053: BCF 03.5
0054: BSF 05.2
.................... Delay_ms(1);
0055: MOVLW 02
0056: MOVWF 77
0057: DECFSZ 77,F
0058: GOTO 057
0059: NOP
005A: NOP
.................... Output_low(PIN_A2);
005B: BSF 03.5
005C: BCF 05.2
005D: BCF 03.5
005E: BCF 05.2
.................... Delay_ms(1);
005F: MOVLW 02
0060: MOVWF 77
0061: DECFSZ 77,F
0062: GOTO 061
0063: NOP
0064: NOP
.................... }
0065: INCF 21,F
0066: GOTO 04D
....................
.................... output_low(PIN_B0); //nastav B0 na 0
0059: BSF 03.5
005A: BCF 06.0
005B: BCF 03.5
005C: BCF 06.0
0067: BSF 03.5
0068: BCF 06.0
0069: BCF 03.5
006A: 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
006B: MOVLW 99
006C: MOVWF 77
006D: DECFSZ 77,F
006E: GOTO 06D
006F: NOP
0070: NOP
.................... output_low(PIN_B1); //nastav B0 na 0
0071: BSF 03.5
0072: BCF 06.1
0073: BCF 03.5
0074: BCF 06.1
.................... Delay_ms(50); // pockej 50ms
0075: MOVLW 99
0076: MOVWF 77
0077: DECFSZ 77,F
0078: GOTO 077
0079: NOP
007A: NOP
.................... output_low(PIN_B2); //nastav B0 na 0
007B: BSF 03.5
007C: BCF 06.2
007D: BCF 03.5
007E: BCF 06.2
.................... Delay_ms(50); // pockej 50ms
007F: MOVLW 99
0080: MOVWF 77
0081: DECFSZ 77,F
0082: GOTO 081
0083: NOP
0084: NOP
.................... } // opakuj cyklus
0085: BSF 03.5
0086: GOTO 035
....................
.................... }
0062: SLEEP
0087: SLEEP
 
Configuration Fuses:
Word 1: 3F09 XT NOWDT NOPUT NOMCLR NOBROWNOUT NOLVP NOCPD NOWRT NODEBUG CCPB0 NOPROTECT
Word 1: 3F19 NOWDT NOPUT NOMCLR NOBROWNOUT NOLVP NOCPD NOWRT NODEBUG CCPB0 NOPROTECT INTRC
Word 2: 3FFC NOFCMEN NOIESO
/programy/C/PIC_C/test/PIC16F88/blik/blik.sta
1,29 → 1,28
 
ROM used: 99 (2%)
99 (2%) including unused fragments
ROM used: 136 (3%)
136 (3%) including unused fragments
 
0 Average locations per line
7 Average locations per statement
5 Average locations per statement
 
RAM used: 6 (3%) at main() level
7 (4%) worst case
6 (3%) 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
44 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
----- -----
648 30 Total
684 56 Total
 
Page ROM % RAM Functions:
---- --- --- --- ----------
0 21 21 1 @delay_ms1
0 74 75 1 main
0 132 97 1 main
 
Segment Used Free
--------- ---- ----
00000-00003 4 0
00004-007FF 95 1949
00004-007FF 132 1912
00800-00FFF 0 2048
 
/programy/C/PIC_C/test/PIC16F88/blik/blik.sym
1,8 → 1,7
015 CCP_1_LOW
015-016 CCP_1
016 CCP_1_HIGH
021 main.@SCRATCH
022 @delay_ms1.P1
021 main.i
077 @SCRATCH
078 @SCRATCH
078 _RETURN_
12,17 → 11,16
09C.6 C1OUT
09C.7 C2OUT
 
0004 @delay_ms1
0019 main
0019 @cinit
0004 main
0004 @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
D:\KAKLIK\projekty\programy\C\PIC_C\test\PIC16F88\blik\blik.c
D:\KAKLIK\projekty\programy\C\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)
D:\KAKLIK\projekty\programy\C\PIC_C\test\PIC16F88\blik\blik.c (main)
 
Compiler Settings:
Processor: PIC16F88
32,10 → 30,10
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
Errors: D:\KAKLIK\projekty\programy\C\PIC_C\test\PIC16F88\blik\blik.err
INHX8: D:\KAKLIK\projekty\programy\C\PIC_C\test\PIC16F88\blik\blik.hex
Symbols: D:\KAKLIK\projekty\programy\C\PIC_C\test\PIC16F88\blik\blik.sym
List: D:\KAKLIK\projekty\programy\C\PIC_C\test\PIC16F88\blik\blik.lst
Debug/COFF: D:\KAKLIK\projekty\programy\C\PIC_C\test\PIC16F88\blik\blik.cof
Call Tree: D:\KAKLIK\projekty\programy\C\PIC_C\test\PIC16F88\blik\blik.tre
Statistics: D:\KAKLIK\projekty\programy\C\PIC_C\test\PIC16F88\blik\blik.sta
/programy/C/PIC_C/test/PIC16F88/blik/blik.tre
1,5 → 1,3
ÀÄblik
ÀÄmain 0/74 Ram=1
ÃÄ??0??
ÃÄ@delay_ms1 0/21 Ram=1
ÀÄ@delay_ms1 0/21 Ram=1
ÀÄmain 0/132 Ram=1
ÀÄ??0??