Rev 2322 Rev 2416
Line 1... Line 1...
1 #include <18F4550.h> 1 #include <18F4550.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 HS //High speed Osc (> 4mhz for PCM/PCH) (>10mhz for PCD) 6 #FUSES INTRC_IO //Internal RC Osc, no CLKOUT
7 #FUSES NOPROTECT //Code not protected from reading 7 #FUSES NOPROTECT //Code not protected from reading
8 #FUSES NOBROWNOUT //No brownout reset 8 #FUSES NOBROWNOUT //No brownout reset
9 #FUSES BORV20 //Brownout reset at 2.0V 9 #FUSES BORV20 //Brownout reset at 2.0V
10 #FUSES NOPUT //No Power Up Timer 10 #FUSES NOPUT //No Power Up Timer
11 #FUSES NOCPD //No EE protection 11 #FUSES NOCPD //No EE protection
Line 23... Line 23...
23 #FUSES NOEBTRB //Boot block not protected from table reads 23 #FUSES NOEBTRB //Boot block not protected from table reads
24 #FUSES NOCPB //No Boot Block code protection 24 #FUSES NOCPB //No Boot Block code protection
25 #FUSES MCLR //Master Clear pin enabled 25 #FUSES MCLR //Master Clear pin enabled
26 #FUSES LPT1OSC //Timer1 configured for low-power operation 26 #FUSES LPT1OSC //Timer1 configured for low-power operation
27 #FUSES NOXINST //Extended set extension and Indexed Addressing mode disabled (Legacy mode) 27 #FUSES NOXINST //Extended set extension and Indexed Addressing mode disabled (Legacy mode)
28 #FUSES PLL6 //Divide By 12(48MHz oscillator input) 28 #FUSES PLL12 //Divide By 12(48MHz oscillator input)
29 #FUSES CPUDIV1 //System Clock by 4 29 #FUSES CPUDIV1 //System Clock by 1
30 #FUSES USBDIV //USB clock source comes from PLL divide by 2 30 #FUSES USBDIV //USB clock source comes from PLL divide by 2
31 #FUSES VREGEN //USB voltage regulator enabled 31 #FUSES VREGEN //USB voltage regulator enabled
32 #FUSES ICPRT //ICPRT enabled 32 #FUSES ICPRT //ICPRT enabled
33   33  
34 #use delay(clock=20000000) 34 #use delay(clock=8000000)
35   35