Rev Author Line No. Line
3380 kaklik 1 #include <16F887.h>
3379 kaklik 2 #device adc=8
3  
3380 kaklik 4 //#FUSES WDT // Watch Dog Timer
5 #FUSES NOWDT //No Watch Dog Timer
3458 kaklik 6 #FUSES HS //external crystal oscillator
3380 kaklik 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  
3458 kaklik 19 #use delay(clock=20000000)
3379 kaklik 20  
3380 kaklik 21 //set RS232
3458 kaklik 22 #use rs232(baud=9600,parity=N,xmit=PIN_C6,rcv=PIN_C7,bits=8)