Rev 3458 Rev 3463
Line 1... Line 1...
1 #include <16F887.h> 1 #include <16F887.h>
2 #device adc=8 2 #device adc=8
3   3  
4   -  
5   -  
6 //#FUSES WDT // Watch Dog Timer 4 //#FUSES WDT // Watch Dog Timer
7 #FUSES NOWDT //No Watch Dog Timer 5 #FUSES NOWDT //No Watch Dog Timer
8 #FUSES HS //external crystal oscillator 6 #FUSES HS //external crystal oscillator
9 #FUSES NOPUT //No Power Up Timer 7 #FUSES NOPUT //No Power Up Timer
10 #FUSES MCLR //Master Clear pin enabled 8 #FUSES MCLR //Master Clear pin enabled
Line 18... Line 16...
18 #FUSES NOWRT //Program memory not write protected 16 #FUSES NOWRT //Program memory not write protected
19 #FUSES BORV40 //Brownout reset at 4.0V 17 #FUSES BORV40 //Brownout reset at 4.0V
20   18  
21 #use delay(clock=20000000) 19 #use delay(clock=20000000)
22   20  
23 //set I2C -  
24 //#use i2c(Master,Slow,sda=PIN_C4,scl=PIN_C3) -  
25   -  
26 //set RS232 21 //set RS232
27 #use rs232(baud=9600,parity=N,xmit=PIN_C6,rcv=PIN_C7,bits=8) 22 #use rs232(baud=9600,parity=N,xmit=PIN_C6,rcv=PIN_C7,bits=8)