/programy/PIC_C/mereni/piezo_cidlo/PRG.BAT |
---|
0,0 → 1,10 |
@echo off |
picpgr reset PIC16F84 |
picpgr erase PIC16F84 |
rem cls |
picpgr program piezo.hex hex PIC16f84 XT_ON PWRTE_ON WDTE_OFF CP_OFF |
picpgr run |
pause |
picpgr stop |
pause |
/programy/PIC_C/mereni/piezo_cidlo/PRG.PIF |
---|
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/mereni/piezo_cidlo/RUN.PIF |
---|
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/mereni/piezo_cidlo/Run.BAT |
---|
0,0 → 1,6 |
@echo off |
picpgr reset PIC16F84 |
picpgr run |
pause |
picpgr stop |
pause |
/programy/PIC_C/mereni/piezo_cidlo/piezo.BAK |
---|
0,0 → 1,13 |
#include "D:\@Kaklik\programy\PIC_C\cidlo\piezo.h" |
void main() |
{ |
port_b_pullups(false); |
setup_counters(RTCC_INTERNAL,WDT_18MS); |
while (true) |
{ |
if (input(PIN_B0)) output_high(PIN_A3); else output_low(PIN_A3); |
} |
} |
/programy/PIC_C/mereni/piezo_cidlo/piezo.HEX |
---|
0,0 → 1,13 |
:1000000000308A001928000010308400000803190D |
:10001000182801308D008C018C0B0C288D0B0B28BF |
:100020004A308C008C0B122800000000800B09283D |
:10003000402884011F3083058316811708308312FE |
:100040008C008C1D2B280730810181308400000832 |
:10005000C0390F3880006400813084000008C03946 |
:100060000C048000831606148312061C4328831692 |
:1000700085118312851502308F00FA309000042814 |
:100080008F0B3D284728831685118312851132284E |
:0200900063000B |
:02400E00FE3F73 |
:00000001FF |
;PIC16C84 |
/programy/PIC_C/mereni/piezo_cidlo/piezo.LST |
---|
0,0 → 1,112 |
CCS PCW C Compiler, Version 3.110, 15448 |
Filename: d:\@kaklik\programy\pic_c\cidlo\piezo.LST |
ROM used: 73 (7%) |
Largest free fragment is 951 |
RAM used: 3 (8%) at main() level |
4 (11%) worst case |
Stack: 1 locations |
* |
0000: MOVLW 00 |
0001: MOVWF 0A |
0002: GOTO 019 |
0003: NOP |
.................... #include "D:\@Kaklik\programy\PIC_C\cidlo\piezo.h" |
.................... #include <16C84.h> |
.................... //////// Standard Header file for the PIC16C84 device //////////////// |
.................... #device PIC16C84 |
.................... #list |
.................... |
.................... #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: GOTO 040 (RETURN) |
.................... #fuses HS,WDT |
.................... |
.................... |
.................... |
.................... |
.................... void main() |
.................... { |
0019: CLRF 04 |
001A: MOVLW 1F |
001B: ANDWF 03,F |
.................... port_b_pullups(false); |
001C: BSF 03.5 |
001D: BSF 01.7 |
.................... setup_counters(RTCC_INTERNAL,WDT_18MS); |
001E: MOVLW 08 |
001F: BCF 03.5 |
0020: MOVWF 0C |
0021: BTFSS 0C.3 |
0022: GOTO 02B |
0023: MOVLW 07 |
0024: CLRF 01 |
0025: MOVLW 81 |
0026: MOVWF 04 |
0027: MOVF 00,W |
0028: ANDLW C0 |
0029: IORLW 0F |
002A: MOVWF 00 |
002B: CLRWDT |
002C: MOVLW 81 |
002D: MOVWF 04 |
002E: MOVF 00,W |
002F: ANDLW C0 |
0030: IORWF 0C,W |
0031: MOVWF 00 |
.................... |
.................... while (true) |
.................... { |
.................... if (input(PIN_B0)) |
0032: BSF 03.5 |
0033: BSF 06.0 |
0034: BCF 03.5 |
0035: BTFSS 06.0 |
0036: GOTO 043 |
.................... { |
.................... output_high(PIN_A3); |
0037: BSF 03.5 |
0038: BCF 05.3 |
0039: BCF 03.5 |
003A: BSF 05.3 |
.................... delay_ms(500); |
003B: MOVLW 02 |
003C: MOVWF 0F |
003D: MOVLW FA |
003E: MOVWF 10 |
003F: GOTO 004 |
0040: DECFSZ 0F,F |
0041: GOTO 03D |
.................... } |
.................... else output_low(PIN_A3); |
0042: GOTO 047 |
0043: BSF 03.5 |
0044: BCF 05.3 |
0045: BCF 03.5 |
0046: BCF 05.3 |
.................... } |
0047: GOTO 032 |
.................... } |
.................... |
0048: SLEEP |
/programy/PIC_C/mereni/piezo_cidlo/piezo.PJT |
---|
0,0 → 1,32 |
[PROJECT] |
Target=piezo.HEX |
Development_Mode= |
Processor=0x6C84 |
ToolSuite=CCS |
[Directories] |
Include=C:\PROGRAM FILES\PICC\devices\;C:\PROGRAM FILES\PICC\dr |
Library= |
LinkerScript= |
[Target Data] |
FileList=piezo.c; |
BuildTool=C-COMPILER |
OptionString=+FM |
AdditionalOptionString= |
BuildRequired=1 |
[piezo.c] |
Type=4 |
Path= |
FileList= |
BuildTool= |
OptionString= |
AdditionalOptionString= |
[mru-list] |
1=piezo.c |
[Windows] |
0=0000 piezo.c 0 0 796 451 3 0 |
/programy/PIC_C/mereni/piezo_cidlo/piezo.SYM |
---|
0,0 → 1,14 |
00C @SCRATCH |
00D @SCRATCH |
00D _RETURN_ |
00F main.@SCRATCH |
010 delay_ms.P1 |
delay_us.P1 |
0004 delay_ms |
0019 main |
Project Files: |
d:\@kaklik\programy\pic_c\cidlo\piezo.c |
D:\@Kaklik\programy\PIC_C\cidlo\piezo.h |
C:\PROGRAM FILES\PICC\devices\16C84.h |
/programy/PIC_C/mereni/piezo_cidlo/piezo.c |
---|
0,0 → 1,18 |
#include "D:\@Kaklik\programy\PIC_C\cidlo\piezo.h" |
void main() |
{ |
port_b_pullups(false); |
setup_counters(RTCC_INTERNAL,WDT_18MS); |
while (true) |
{ |
if (input(PIN_B0)) |
{ |
output_high(PIN_A3); |
delay_ms(500); |
} |
else output_low(PIN_A3); |
} |
} |
/programy/PIC_C/mereni/piezo_cidlo/piezo.cod |
---|
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/mereni/piezo_cidlo/piezo.err |
---|
0,0 → 1,0 |
No Errors |
/programy/PIC_C/mereni/piezo_cidlo/piezo.h |
---|
0,0 → 1,4 |
#include <16C84.h> |
#use delay(clock=4000000) |
#fuses HS,WDT |
/programy/PIC_C/mereni/piezo_cidlo/piezo.sta |
---|
0,0 → 1,28 |
ROM used: 73 (7%) |
951 (93%) including unused fragments |
1 Average locations per line |
8 Average locations per statement |
RAM used: 3 (8%) at main() level |
4 (11%) worst case |
Lines Stmts % Files |
----- ----- --- ----- |
19 9 100 d:\@kaklik\programy\pic_c\cidlo\piezo.c |
5 0 0 D:\@Kaklik\programy\PIC_C\cidlo\piezo.h |
111 0 0 C:\PROGRAM FILES\PICC\devices\16C84.h |
----- ----- |
270 18 Total |
Page ROM % RAM Functions: |
---- --- --- --- ---------- |
0 21 29 1 delay_ms |
0 48 66 1 main |
Segment Used Free |
--------- ---- ---- |
0000-0003 4 0 |
0004-03FF 69 951 |
/programy/PIC_C/mereni/piezo_cidlo/piezo.tre |
---|
0,0 → 1,4 |
ÀÄpiezo |
ÀÄmain 0/48 Ram=1 |
ÃÄ??0?? |
ÀÄdelay_ms 0/21 Ram=1 |
/programy/PIC_C/mereni/piezo_cidlo/vssver.scc |
---|
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 |