/roboti/istrobot/laserus/873/ble/laserus.PJT |
---|
0,0 → 1,35 |
[PROJECT] |
Target=laserus.HEX |
Development_Mode= |
Processor=0x003F |
ToolSuite=CCS |
[Directories] |
Include=C:\Program Files\PICC\devices\;C:\Program Files\PICC\Dr |
Library= |
LinkerScript= |
[Target Data] |
FileList=laserus.c; |
BuildTool=C-COMPILER |
OptionString=+FM |
AdditionalOptionString= |
BuildRequired=1 |
[laserus.c] |
Type=4 |
Path= |
FileList= |
BuildTool= |
OptionString= |
AdditionalOptionString= |
[mru-list] |
1=laserus.c |
[Windows] |
0=0000 laserus.c 0 0 796 451 3 0 |
[Opened Files] |
1=C:\PIC\laserus\873\ble\laserus.c |
2= |
/roboti/istrobot/laserus/873/ble/laserus.c |
---|
0,0 → 1,22 |
#include "C:\PIC\laserus\873\ble\laserus.h" |
#int_EXT |
EXT_isr() |
{ |
} |
void main() |
{ |
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_DIV_BY_4,255,1); |
enable_interrupts(INT_EXT); |
enable_interrupts(GLOBAL); |
} |
/roboti/istrobot/laserus/873/ble/laserus.h |
---|
0,0 → 1,15 |
#include <16F873.h> |
#device adc=8 |
#FUSES NOWDT //No Watch Dog Timer |
#FUSES XT //Crystal osc <= 4mhz |
#FUSES NOPUT //No Power Up Timer |
#FUSES NOPROTECT //Code not protected from reading |
#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 |
#FUSES NODEBUG //No Debug mode for ICD |
#use delay(clock=4000000) |