Rev Author Line No. Line
3622 kaklik 1 #include <16F887.h>
2 #device adc=8
3  
4 //#FUSES WDT // Watch Dog Timer
5 #FUSES NOWDT //No Watch Dog Timer
6 #FUSES HS //external crystal oscillator
7 #FUSES NOPUT //No Power Up Timer
8 #FUSES MCLR //Master Clear pin enabled
9 #FUSES NOPROTECT //Code not protected from reading
10 #FUSES NOCPD //No EE protection
11 #FUSES NOBROWNOUT //No brownout reset
12 #FUSES IESO //Internal External Switch Over mode enabled
13 #FUSES FCMEN //Fail-safe clock monitor enabled
14 #FUSES NOLVP //No low voltage prgming, B3(PIC16) or B5(PIC18) used for I/O
15 #FUSES NODEBUG //No Debug mode for ICD
16 #FUSES NOWRT //Program memory not write protected
17 #FUSES BORV40 //Brownout reset at 4.0V
18  
19 #use delay(clock=20000000)
20  
21 //set RS232
22 #use rs232(baud=9600,parity=N,xmit=PIN_C6,rcv=PIN_C7,bits=8)