Rev 1103 Rev 1104
Line 1... Line 1...
1 #include <16F876A.h> 1 #include <16F876A.h>
2 #device *=8 -  
3 #device adc=8 2 #device adc=10
4   3  
5 #FUSES NOWDT //No Watch Dog Timer 4 #FUSES NOWDT //No Watch Dog Timer
6 #FUSES XT //Osc (= 4mhz) 5 #FUSES XT //Osc (= 4mhz)
7 #FUSES NOPUT //No Power Up Timer 6 #FUSES NOPUT //No Power Up Timer
8 #FUSES NOPROTECT //Code not protected from reading 7 #FUSES NOPROTECT //Code not protected from reading
Line 12... Line 11...
12 #FUSES NOCPD //No EE protection 11 #FUSES NOCPD //No EE protection
13 #FUSES NOWRT //Program memory not write protected 12 #FUSES NOWRT //Program memory not write protected
14   13  
15 #use delay(clock=4000000) 14 #use delay(clock=4000000)
16 #use rs232(stream=NMEA,baud=4800,parity=N,rcv=PIN_C6,bits=8) 15 #use rs232(stream=NMEA,baud=4800,parity=N,rcv=PIN_C6,bits=8)
17 #use rs232(stream=PC,baud=9600,parity=N,rcv=PIN_C7,bits=8) 16 #use rs232(stream=PC,baud=9600,parity=N,xmit=PIN_C7,bits=8)