#include <18F8722.h> //#device ICD=TRUE #device adc=8 #FUSES NOWDT //Watch Dog Timer #FUSES HS //High speed Osc (> 4mhz) #FUSES NOPUT //No Power Up Timer #FUSES NOPROTECT //Code not protected from reading #FUSES NODEBUG //No Debug mode for ICD #FUSES BROWNOUT //Reset when brownout detected #FUSES LVP //Low Voltage Programming on B3(PIC16) or B5(PIC18) #FUSES NOCPD //No EE protection #FUSES NOWRT //Program memory not write protected #use delay(clock=20000000) #define EEPROM_SCL PIN_C3 #define EEPROM_SDA PIN_C4 #define IR_INPUT PIN_B0 // the infrared receiver has to be connected to an // interrupt-pin! #define IR_STATUS (!input(IR_INPUT)) // invert the signal from the infrared receiver #use rs232(baud=9600,parity=N,xmit=PIN_C6,rcv=PIN_C7,bits=8,enable=PIN_B1) #use rs232(baud=9600,parity=N,xmit=PIN_G1,rcv=PIN_G2,bits=8)