Line 1... |
Line 1... |
1 |
#include <16F876A.h> |
1 |
#include <16F876A.h> |
- |
|
2 |
#device *=8 |
2 |
#device adc=8 |
3 |
#device adc=8 |
3 |
|
4 |
|
4 |
#FUSES NOWDT //No Watch Dog Timer |
5 |
#FUSES NOWDT //No Watch Dog Timer |
5 |
#FUSES XT //Osc (= 4mhz) |
6 |
#FUSES XT //Osc (= 4mhz) |
6 |
#FUSES NOPUT //No Power Up Timer |
7 |
#FUSES NOPUT //No Power Up Timer |
Line 10... |
Line 11... |
10 |
#FUSES NOLVP //No low voltage prgming, B3(PIC16) or B5(PIC18) used for I/O |
11 |
#FUSES NOLVP //No low voltage prgming, B3(PIC16) or B5(PIC18) used for I/O |
11 |
#FUSES NOCPD //No EE protection |
12 |
#FUSES NOCPD //No EE protection |
12 |
#FUSES NOWRT //Program memory not write protected |
13 |
#FUSES NOWRT //Program memory not write protected |
13 |
|
14 |
|
14 |
#use delay(clock=4000000) |
15 |
#use delay(clock=4000000) |
15 |
#use rs232(stream=NMEA,baud=4800,parity=N,rcv=PIN_C7,bits=8) |
16 |
#use rs232(stream=NMEA,baud=4800,parity=N,rcv=PIN_C6,bits=8) |
16 |
//#use rs232(stream=PC,baud=9600,parity=N,rcv=PIN_C4,bits=8) |
17 |
#use rs232(stream=PC,baud=9600,parity=N,rcv=PIN_C7,bits=8) |