1753 |
kakl |
1 |
#include <18F8310.h> |
1744 |
kakl |
2 |
#device adc=8 |
|
|
3 |
|
|
|
4 |
#FUSES NOWDT //No Watch Dog Timer |
|
|
5 |
#FUSES WDT128 //Watch Dog Timer uses 1:128 Postscale |
1753 |
kakl |
6 |
#FUSES INTRC_IO //Internal RC Osc, no CLKOUT |
1744 |
kakl |
7 |
#FUSES NOBROWNOUT //No brownout reset |
1753 |
kakl |
8 |
#FUSES BORV46 //Brownout reset at 4.6V |
|
|
9 |
#FUSES PUT //Power Up Timer |
|
|
10 |
#FUSES BW16 //16-bit external bus mode |
1744 |
kakl |
11 |
#FUSES STVREN //Stack full/underflow will cause reset |
|
|
12 |
#FUSES NODEBUG //No Debug mode for ICD |
1753 |
kakl |
13 |
#FUSES NOIESO //Internal External Switch Over mode disabled |
|
|
14 |
#FUSES NOFCMEN //Fail-safe clock monitor disabled |
|
|
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 |
|
|
17 |
#FUSES NOPROTECT //Code not protected from reading |
1744 |
kakl |
18 |
#FUSES NOEBTR //Memory not protected from table reads |
1753 |
kakl |
19 |
#FUSES NOLPT1OSC //Timer1 configured for higher power operation |
1744 |
kakl |
20 |
#FUSES MCLR //Master Clear pin enabled |
1753 |
kakl |
21 |
#FUSES MCU //Microcontroller Mode |
1744 |
kakl |
22 |
|
1753 |
kakl |
23 |
#use delay(clock=1000000) |
|
|
24 |
#use rs232(baud=9600,parity=N,xmit=PIN_C6,rcv=PIN_C7,bits=8) |
1744 |
kakl |
25 |
|