Line 1... |
Line 1... |
1 |
#include <16F88.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 //No Watch Dog Timer |
7 |
#FUSES NOWDT //No Watch Dog Timer |
5 |
#FUSES INTRC_IO //Internal RC Osc, no CLKOUT |
8 |
#FUSES INTRC //Internal RC Osc |
6 |
#FUSES PUT //Power Up Timer |
9 |
#FUSES NOPUT //No Power Up Timer |
7 |
#FUSES MCLR //Master Clear pin enabled |
10 |
#FUSES MCLR //Master Clear pin enabled |
8 |
#FUSES NOBROWNOUT //No brownout reset |
11 |
#FUSES NOPROTECT //Code not protected from reading |
9 |
#FUSES NOLVP //No low voltage prgming, B3(PIC16) or B5(PIC18) used for I/O |
12 |
#FUSES NOCPD //No EE protection |
10 |
#FUSES NOCPD //No EE protection |
13 |
#FUSES NOBROWNOUT //No brownout reset |
11 |
#FUSES NOWRT //Program memory not write protected |
14 |
#FUSES IESO //Internal External Switch Over mode enabled |
12 |
#FUSES NODEBUG //No Debug mode for ICD |
15 |
#FUSES FCMEN //Fail-safe clock monitor enabled |
- |
|
16 |
#FUSES NOLVP //No low voltage prgming, B3(PIC16) or B5(PIC18) used for I/O |
13 |
#FUSES NOPROTECT //Code not protected from reading |
17 |
#FUSES NODEBUG //No Debug mode for ICD |
14 |
#FUSES NOFCMEN //Fail-safe clock monitor disabled |
18 |
#FUSES NOWRT //Program memory not write protected |
15 |
#FUSES NOIESO //Internal External Switch Over mode disabled |
19 |
#FUSES BORV40 //Brownout reset at 4.0V |
16 |
|
20 |
|
17 |
#use delay(clock=8000000) |
21 |
#use delay(clock=8000000) |
18 |
|
22 |
|
- |
|
23 |
//set I2C |
- |
|
24 |
//#use i2c(Master,Slow,sda=PIN_C4,scl=PIN_C3) |
- |
|
25 |
|
- |
|
26 |
//set RS232 |
- |
|
27 |
#use rs232(baud=38400,parity=N,xmit=PIN_C6,rcv=PIN_C7,bits=8) |