/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) |