1 |
#include <16F88.h> |
1 |
#include <16F88.h> |
2 |
#device adc=8 |
2 |
#device adc=8 |
3 |
|
3 |
|
4 |
#FUSES WDT //Watch Dog Timer |
4 |
#FUSES WDT //Watch Dog Timer |
5 |
#FUSES INTRC_IO //Internal RC Osc, no CLKOUT |
5 |
#FUSES INTRC_IO //Internal RC Osc, no CLKOUT |
6 |
#FUSES PUT //Power Up Timer |
6 |
#FUSES PUT //Power Up Timer |
7 |
#FUSES NOMCLR //Master Clear pin used for I/O |
7 |
#FUSES NOMCLR //Master Clear pin used for I/O |
8 |
#FUSES NOBROWNOUT //No brownout reset |
8 |
#FUSES NOBROWNOUT //No brownout reset |
9 |
#FUSES NOLVP //No low voltage prgming, B3(PIC16) or B5(PIC18) used for I/O |
9 |
#FUSES NOLVP //No low voltage prgming, B3(PIC16) or B5(PIC18) used for I/O |
10 |
#FUSES NOCPD //No EE protection |
10 |
#FUSES NOCPD //No EE protection |
11 |
#FUSES NOWRT //Program memory not write protected |
11 |
#FUSES NOWRT //Program memory not write protected |
12 |
#FUSES NODEBUG //No Debug mode for ICD |
12 |
#FUSES NODEBUG //No Debug mode for ICD |
13 |
#FUSES NOPROTECT //Code not protected from reading |
13 |
#FUSES NOPROTECT //Code not protected from reading |
14 |
#FUSES NOFCMEN //Fail-safe clock monitor disabled |
14 |
#FUSES NOFCMEN //Fail-safe clock monitor disabled |
15 |
#FUSES NOIESO //Internal External Switch Over mode disabled |
15 |
#FUSES NOIESO //Internal External Switch Over mode disabled |
16 |
|
16 |
|
17 |
#use delay(clock=4000000) |
17 |
#use delay(clock=4000000) |
18 |
#use rs232(baud=2400,parity=N,xmit=PIN_B5,rcv=PIN_B2,bits=8) |
18 |
#use rs232(baud=2400,parity=N,xmit=PIN_B5,rcv=PIN_B2,bits=8,FORCE_SW) |
19 |
#use i2c(Master,Slow,sda=PIN_B1,scl=PIN_B4,SMBUS)//,force_hw) |
19 |
#use i2c(MASTER,SLOW,sda=PIN_B1,scl=PIN_B4,SMBUS)//,force_hw) |
20 |
|
20 |
|