/programy/C/PIC/test/PIC16F887/blik.c |
---|
0,0 → 1,26 |
#include "D:\svnKaklik\programy\C\PIC\test\PIC16F887\blik.h" |
#define LED PIN_D6 //CHANGE PIN_XX TO YOUR LED PIN NUMBER, EX: PIN_A5 |
void main() |
{ |
setup_adc_ports(NO_ANALOGS|VSS_VDD); |
setup_adc(ADC_CLOCK_DIV_2); |
setup_spi(SPI_SS_DISABLED); |
setup_timer_0(RTCC_INTERNAL|RTCC_DIV_1); |
setup_timer_1(T1_DISABLED); |
setup_timer_2(T2_DISABLED,0,1); |
setup_ccp1(CCP_OFF); |
setup_comparator(NC_NC_NC_NC);// This device COMP currently not supported by the PICWizard |
//Example blinking LED program |
while(true){ |
output_low(LED); |
delay_ms(1000); |
output_high(LED); |
delay_ms(1000); |
} |
} |
/programy/C/PIC/test/PIC16F887/blik.h |
---|
0,0 → 1,19 |
#include <16F887.h> |
#device adc=8 |
#FUSES NOWDT //No Watch Dog Timer |
#FUSES INTRC //Internal RC Osc |
#FUSES NOPUT //No Power Up Timer |
#FUSES MCLR //Master Clear pin enabled |
#FUSES NOPROTECT //Code not protected from reading |
#FUSES NOCPD //No EE protection |
#FUSES NOBROWNOUT //No brownout reset |
#FUSES IESO //Internal External Switch Over mode enabled |
#FUSES FCMEN //Fail-safe clock monitor enabled |
#FUSES NOLVP //No low voltage prgming, B3(PIC16) or B5(PIC18) used for I/O |
#FUSES NODEBUG //No Debug mode for ICD |
#FUSES NOWRT //Program memory not write protected |
#FUSES BORV40 //Brownout reset at 4.0V |
#use delay(clock=4000000) |
/programy/C/PIC/test/PIC16F887/blik.hex |
---|
0,0 → 1,23 |
:1000000000308A0019280000223084008313000881 |
:10001000031918280130F800F701F70B0D28F80B29 |
:100020000C284A30F700F70B13281628800B0A28F3 |
:100030000800840183131F308305613083168F000D |
:100040000F0803170908C039890003131F129F12F4 |
:100050000030031788008312870188018901FF306F |
:100060000313A000831603170908C039890003137E |
:100070001F129F12003003178800831203131F13EF |
:100080009F1383169F1383121F149412A01220082B |
:100090008316870083122016200883168700831298 |
:1000A000A0112008831687000130831294000030CD |
:1000B000831694000108C739083881008312900123 |
:1000C0000030F80092000030831692008312201551 |
:1000D0002008831687008312970183169B019C01D9 |
:1000E00001309D008312031787018801890183165F |
:1000F00003130813831208130430A100FA30A2007E |
:100100000420A10B7E2883160813831208170430DD |
:10011000A100FA30A2000420A10B89280317772838 |
:0201200063007A |
:04400E00F52CFF3F4F |
:00000001FF |
;PIC16F887 |
;CRC=02C0 CREATED="07-V-11 19:14" |
/programy/C/PIC/test/PIC16F887/blik.pjt |
---|
0,0 → 1,26 |
[PROJECT] |
Target=D:\svnKaklik\programy\C\PIC\test\PIC16F887\blik.hex |
Development_Mode= |
Processor_Text=PIC16F887 |
ToolSuite=CCS |
Processor=0x887F |
[D:\svnKaklik\programy\C\PIC\test\PIC16F887\blik] |
Type=4 |
Path= |
FileList= |
BuildTool= |
OptionString= |
AdditionalOptionString= |
[mru-list] |
1=D:\svnKaklik\programy\C\PIC\test\PIC16F887\blik.c |
[Windows] |
0=0000 %S 0 0 796 451 3 0 |
[Opened Files] |
1=blik.c |
2= |
[Target Data] |
OptionString=-p +FM |
FileList=D:\svnKaklik\programy\C\PIC\test\PIC16F887\blik.c |
[Units] |
Count=1 |
1=blik (main) |
/programy/C/PIC/test/PIC18F2550/blik.c |
---|
0,0 → 1,28 |
#include "D:\svnKaklik\programy\C\PIC\test\PIC18F2550\blik.h" |
void main() |
{ |
setup_adc_ports(NO_ANALOGS|VSS_VDD); |
setup_adc(ADC_OFF); |
setup_spi(SPI_SS_DISABLED); |
setup_wdt(WDT_OFF); |
setup_timer_0(RTCC_INTERNAL); |
setup_timer_1(T1_DISABLED); |
setup_timer_2(T2_DISABLED,0,1); |
setup_timer_3(T3_DISABLED|T3_DIV_BY_1); |
setup_comparator(NC_NC_NC_NC); |
setup_vref(FALSE); |
//Setup_Oscillator parameter not selected from Intr Oscillator Config tab |
// TODO: USER CODE!! |
while(true) |
{ |
Output_high(PIN_A0); |
Delay_ms(100); |
Output_low(PIN_A0); |
Delay_ms(100); |
} |
} |
/programy/C/PIC/test/PIC18F2550/blik.h |
---|
0,0 → 1,34 |
#include <18F2550.h> |
#device adc=8 |
#FUSES NOWDT //No Watch Dog Timer |
#FUSES WDT128 //Watch Dog Timer uses 1:128 Postscale |
#FUSES XT //Crystal osc <= 4mhz for PCM/PCH , 3mhz to 10 mhz for PCD |
#FUSES NOPROTECT //Code not protected from reading |
#FUSES NOBROWNOUT //No brownout reset |
#FUSES BORV20 //Brownout reset at 2.0V |
#FUSES NOPUT //No Power Up Timer |
#FUSES NOCPD //No EE protection |
#FUSES STVREN //Stack full/underflow will cause reset |
#FUSES NODEBUG //No Debug mode for ICD |
#FUSES NOLVP //No low voltage prgming, B3(PIC16) or B5(PIC18) used for I/O |
#FUSES NOWRT //Program memory not write protected |
#FUSES NOWRTD //Data EEPROM not write protected |
#FUSES IESO //Internal External Switch Over mode enabled |
#FUSES FCMEN //Fail-safe clock monitor enabled |
#FUSES PBADEN //PORTB pins are configured as analog input channels on RESET |
#FUSES NOWRTC //configuration not registers write protected |
#FUSES NOWRTB //Boot block not write protected |
#FUSES NOEBTR //Memory not protected from table reads |
#FUSES NOEBTRB //Boot block not protected from table reads |
#FUSES NOCPB //No Boot Block code protection |
#FUSES MCLR //Master Clear pin enabled |
#FUSES LPT1OSC //Timer1 configured for low-power operation |
#FUSES NOXINST //Extended set extension and Indexed Addressing mode disabled (Legacy mode) |
#FUSES PLL12 //Divide By 12(48MHz oscillator input) |
#FUSES CPUDIV4 //System Clock by 4 |
#FUSES USBDIV //USB clock source comes from PLL divide by 2 |
#FUSES VREGEN //USB voltage regulator enabled |
#use delay(clock=4000000) |
/programy/C/PIC/test/PIC18F2550/blik.hex |
---|
0,0 → 1,16 |
:020000040000FA |
:1000000016EF00F0EA6A060EE96EEF500EE0010E00 |
:10001000016E006A002EFED7012EFBD74A0E006E3D |
:10002000002EFED700D0EF2EF2D7000CF86AD09E3B |
:10003000EA6AE96AC150C00B0F09C16E070EB46EBF |
:10004000C150C00B0F09C16EC290C69A949E938096 |
:100050009392010EC66E000EC76ED190800ED56EC3 |
:10006000CD6A000ECA6E000ECB6EB16A070EB46E7A |
:100070009250926E030E006E002EFED7B450A19CDB |
:10008000B56A92908980640E066EBCDF929089906A |
:0A009000640E066EB7DFF5D703001B |
:020000040030CA |
:0E0000003FC0390E008781000FC00FE00F4097 |
:00000001FF |
;PIC18F2550 |
;CRC=386A CREATED="28-X-10 15:37" |
/programy/C/PIC/test/PIC18F2550/blik.pjt |
---|
0,0 → 1,26 |
[PROJECT] |
Target=D:\svnKaklik\programy\C\PIC\test\PIC18F2550\blik.hex |
Development_Mode= |
Processor_Text=PIC18F2550 |
ToolSuite=CCS |
Processor=0x2550 |
[D:\svnKaklik\programy\C\PIC\test\PIC18F2550\blik] |
Type=4 |
Path= |
FileList= |
BuildTool= |
OptionString= |
AdditionalOptionString= |
[mru-list] |
1=D:\svnKaklik\programy\C\PIC\test\PIC18F2550\blik.c |
[Windows] |
0=0000 %S 0 0 796 451 3 0 |
[Opened Files] |
1=blik.c |
2= |
[Target Data] |
OptionString=-p +FH |
FileList=D:\svnKaklik\programy\C\PIC\test\PIC18F2550\blik.c |
[Units] |
Count=1 |
1=blik.c (main) |