1 |
#include <18F8310.h> |
1 |
#include <18F8310.h> |
2 |
#device adc=8 |
2 |
#device adc=8 |
3 |
|
3 |
|
4 |
#FUSES NOWDT //No Watch Dog Timer |
4 |
#FUSES NOWDT //No Watch Dog Timer |
5 |
#FUSES WDT128 //Watch Dog Timer uses 1:128 Postscale |
5 |
#FUSES WDT128 //Watch Dog Timer uses 1:128 Postscale |
6 |
#FUSES INTRC_IO //Internal RC Osc, no CLKOUT |
6 |
#FUSES INTRC_IO //Internal RC Osc, no CLKOUT |
7 |
#FUSES NOBROWNOUT //No brownout reset |
7 |
#FUSES NOBROWNOUT //No brownout reset |
8 |
#FUSES BORV46 //Brownout reset at 4.6V |
8 |
#FUSES BORV46 //Brownout reset at 4.6V |
9 |
#FUSES PUT //Power Up Timer |
9 |
#FUSES PUT //Power Up Timer |
10 |
#FUSES BW16 //16-bit external bus mode |
10 |
#FUSES BW16 //16-bit external bus mode |
11 |
#FUSES STVREN //Stack full/underflow will cause reset |
11 |
#FUSES STVREN //Stack full/underflow will cause reset |
12 |
#FUSES NODEBUG //No Debug mode for ICD |
12 |
#FUSES NODEBUG //No Debug mode for ICD |
13 |
#FUSES IESO //Internal External Switch Over mode enabled |
13 |
#FUSES NOIESO //Internal External Switch Over mode enabled |
14 |
#FUSES NOFCMEN //Fail-safe clock monitor enabled |
14 |
#FUSES NOFCMEN //Fail-safe clock monitor enabled |
15 |
#FUSES NOXINST //Extended set extension and Indexed Addressing mode disabled (Legacy mode) |
15 |
#FUSES NOXINST //Extended set extension and Indexed Addressing mode disabled (Legacy mode) |
16 |
#FUSES NOWAIT //Wait selections unavailable for Table Reads or Table Writes |
16 |
#FUSES NOWAIT //Wait selections unavailable for Table Reads or Table Writes |
17 |
#FUSES NOPROTECT //Code not protected from reading |
17 |
#FUSES NOPROTECT //Code not protected from reading |
18 |
#FUSES NOEBTR //Memory not protected from table reads |
18 |
#FUSES NOEBTR //Memory not protected from table reads |
19 |
#FUSES LPT1OSC //Timer1 configured for low-power operation |
19 |
#FUSES LPT1OSC //Timer1 configured for low-power operation |
20 |
#FUSES NOMCLR //Master Clear pin enabled |
20 |
#FUSES NOMCLR //Master Clear pin enabled |
21 |
#FUSES MCU //Microcontroller Mode |
21 |
#FUSES MCU //Microcontroller Mode |
22 |
|
22 |
|
23 |
#use delay(clock=1000000) |
23 |
#use delay(clock=1000000) |
24 |
#use rs232(baud=19200,parity=N,xmit=PIN_C6,rcv=PIN_C7,bits=8) |
24 |
#use rs232(baud=19200,parity=N,xmit=PIN_C6,rcv=PIN_C7,bits=8) |
25 |
|
25 |
|