/Designs/dum/SW/2patra/1np/main.c
88,9 → 88,6
#define LED1 PIN_J7
#define LED2 PIN_J6
 
#define ON(port) output_low(port);
#define OFF(port) output_high(port);
 
int1 s105AN; // Predchozi stav vypinacu
int1 r110NJU;
int1 r110NJD;
139,8 → 136,6
setup_comparator(NC_NC_NC_NC);
setup_vref(FALSE);
 
OFF(OS101A);
 
s105AN=S105AN; // Poznamenej vychozi stav vypinacu
r110NJU=R110NJU;
r110NJD=R110NJD;
192,13 → 187,11
if(s107AN!=S107AN) {s107AN=S107AN; send(S17A);}
if(s109AJ!=S109AJ) {s109AJ=S109AJ; send(S19A);}
if(s101AN!=S101AN) {s101AN=S101AN; output_toggle(OS101A); delay_ms(100);}
if(s101AJ!=S101AJ) {s101AJ=S101AJ; output_toggle(OS101A); delay_ms(100);}
if(s101AN!=S101AN) {s101AN=S101AN; send(S11A);}
if(s101AJ!=S101AJ) {s101AJ=S101AJ; send(S11A);}
if(s102AN!=S102AN) {s102AN=S102AN; send(S12A);}
if(s110AN!=S110AN) {s110AN=S110AN; send(S1aA);}
if(s108AV!=S108AV) {s108AV=S108AV; send(S18A);}
 
if(get_timer0()>65000) {output_toggle(LED2); set_timer0(0);}
}
}
/Designs/dum/SW/2patra/1np/main.pjt
23,7 → 23,7
1=main.c
2=main.h
3=..\..\..\..\..\..\..\..\..\Program Files\PICC\Devices\18F8310.h
4=..\2np\main.c
4=
5=
6=..\..\..\..\..\Modules\PIC\PIC18F8xTQ8001A\SW\PIC18F8310\blik.h
7=..\..\..\..\..\Modules\PIC\PIC18F8xTQ8001A\SW\PIC18F8310\blik.c
/Designs/dum/SW/2patra/1np/main.h
10,7 → 10,7
#FUSES BW16 //16-bit external bus mode
#FUSES STVREN //Stack full/underflow will cause reset
#FUSES NODEBUG //No Debug mode for ICD
#FUSES NOIESO //Internal External Switch Over mode enabled
#FUSES IESO //Internal External Switch Over mode enabled
#FUSES NOFCMEN //Fail-safe clock monitor enabled
#FUSES NOXINST //Extended set extension and Indexed Addressing mode disabled (Legacy mode)
#FUSES NOWAIT //Wait selections unavailable for Table Reads or Table Writes