Rev 2906 Rev 2908
Line 1... Line 1...
1 #include "C:\Users\Honza\Documents\pic\I2C_vlhkost\main.h" 1 #include <16F887.h>
-   2 #device adc=8
2   3  
-   4 #FUSES NOWDT //No Watch Dog Timer
-   5 #FUSES INTRC //Internal RC Osc
-   6 #FUSES NOPUT //No Power Up Timer
-   7 #FUSES MCLR //Master Clear pin enabled
-   8 #FUSES NOPROTECT //Code not protected from reading
-   9 #FUSES NOCPD //No EE protection
-   10 #FUSES NOBROWNOUT //No brownout reset
-   11 #FUSES IESO //Internal External Switch Over mode enabled
-   12 #FUSES FCMEN //Fail-safe clock monitor enabled
-   13 #FUSES NOLVP //No low voltage prgming, B3(PIC16) or B5(PIC18) used for I/O
-   14 #FUSES NODEBUG //No Debug mode for ICD
-   15 #FUSES NOWRT //Program memory not write protected
-   16 #FUSES BORV40 //Brownout reset at 4.0V
3   17  
-   18 #use delay(clock=8000000)
4   19  
5   -  
6 void main() -  
7 { -  
8   -  
9 setup_adc_ports(NO_ANALOGS|VSS_VDD); -  
10 setup_adc(ADC_CLOCK_DIV_2); -  
11 setup_spi(SPI_SS_DISABLED); -  
12 setup_timer_0(RTCC_INTERNAL|RTCC_DIV_1); -  
13 setup_timer_1(T1_DISABLED); -  
14 setup_timer_2(T2_DISABLED,0,1); -  
15 setup_ccp1(CCP_OFF); -  
16 setup_comparator(NC_NC_NC_NC);// This device COMP currently not supported by the PICWizard -  
17   -  
18 //TODO: User Code -  
19   -  
20 } -