1616 |
kakl |
1 |
#include <18F4550.h> |
|
|
2 |
//#device ICD=TRUE |
|
|
3 |
//#device adc=10 |
|
|
4 |
#device adc=8 |
|
|
5 |
|
|
|
6 |
#FUSES NOWDT //No Watch Dog Timer |
|
|
7 |
#FUSES WDT128 //Watch Dog Timer uses 1:128 Postscale |
|
|
8 |
#FUSES HSPLL //High Speed Crystal/Resonator with PLL enabled |
|
|
9 |
#FUSES NOPROTECT //Code not protected from reading |
|
|
10 |
#FUSES NOBROWNOUT //No brownout reset |
|
|
11 |
#FUSES BORV46 //Brownout reset at 4.6V |
|
|
12 |
#FUSES NOPUT //Power Up Timer |
|
|
13 |
#FUSES NOCPD //No EE protection |
|
|
14 |
#FUSES STVREN //Stack full/underflow will cause reset |
|
|
15 |
#FUSES NODEBUG //Debug mode for use with ICD |
|
|
16 |
#FUSES NOLVP //No low voltage prgming, B3(PIC16) or B5(PIC18) used for I/O |
|
|
17 |
#FUSES NOWRT //Program memory not write protected |
|
|
18 |
#FUSES NOWRTD //Data EEPROM not write protected |
|
|
19 |
#FUSES NOIESO //Internal External Switch Over mode disabled |
|
|
20 |
#FUSES NOFCMEN //Fail-safe clock monitor disabled |
|
|
21 |
#FUSES NOPBADEN //PORTB pins are configured as digital I/O on RESET |
|
|
22 |
#FUSES NOWRTC //configuration not registers write protected |
|
|
23 |
#FUSES NOWRTB //Boot block not write protected |
|
|
24 |
#FUSES NOEBTR //Memory not protected from table reads |
|
|
25 |
#FUSES NOEBTRB //Boot block not protected from table reads |
|
|
26 |
#FUSES NOCPB //No Boot Block code protection |
|
|
27 |
#FUSES MCLR //Master Clear pin enabled |
|
|
28 |
#FUSES NOLPT1OSC //Timer1 configured for low-power operation |
|
|
29 |
//#FUSES XINST //Extended set extension and Indexed Addressing mode |
|
|
30 |
#FUSES PLL5 //Divide By 5 (20MHz oscillator input) = 4MHz |
|
|
31 |
#FUSES CPUDIV1 //System Clock 96/2 = 48MHz |
|
|
32 |
#FUSES NOUSBDIV //USB clock source comes from primary oscillator |
|
|
33 |
#FUSES NOVREGEN //USB voltage regulator disabled |
|
|
34 |
#FUSES NOICPRT //ICPRT disabled |
|
|
35 |
|
|
|
36 |
#use delay(clock=48000000,RESTART_WDT) |
|
|
37 |
#use rs232(baud=9600,parity=N,bits=8,xmit=PIN_B7,rcv=PIN_B6) |
|
|
38 |
|