Rev Author Line No. Line
1597 kakl 1 #include <16F877A.h>
1369 kakl 2 #device adc=8
3  
1597 kakl 4 #FUSES NOWDT //No Watch Dog Timer
5 #FUSES HS //High speed Osc (> 4mhz)
6 #FUSES NOPUT //No Power Up Timer
7 #FUSES NOPROTECT //Code not protected from reading
8 #FUSES NODEBUG //No Debug mode for ICD
9 #FUSES NOBROWNOUT //No brownout reset
10 #FUSES NOLVP //No low voltage prgming, B3(PIC16) or B5(PIC18) used for I/O
11 #FUSES NOCPD //No EE protection
12 #FUSES NOWRT //Program memory not write protected
1369 kakl 13  
1597 kakl 14 #use delay(clock=20000000) // 14318180)
15 //#use rs232(baud=9600,parity=N,xmit=PIN_C6,rcv=PIN_C7,bits=8) // Pro USART
16 #use rs232(baud=9600,parity=N,bits=8,xmit=PIN_B7,rcv=PIN_B6) // Pro PICkit2
17  
18 #use i2c(Master,Fast,sda=PIN_C4,scl=PIN_C3,SMBUS)
19