Line 14... |
Line 14... |
14 |
#define ONE_WIRE_PIN PIN_E2 |
14 |
#define ONE_WIRE_PIN PIN_E2 |
15 |
#include "ds1820.c" |
15 |
#include "ds1820.c" |
16 |
|
16 |
|
17 |
void main() |
17 |
void main() |
18 |
{ |
18 |
{ |
- |
|
19 |
|
19 |
/* setup_adc_ports(NO_ANALOGS|VSS_VDD); |
20 |
/* setup_adc_ports(NO_ANALOGS|VSS_VDD); // for PIC18F4550 |
20 |
setup_adc(ADC_CLOCK_DIV_2); |
21 |
setup_adc(ADC_CLOCK_DIV_2); |
21 |
setup_psp(PSP_DISABLED); |
22 |
setup_psp(PSP_DISABLED); |
22 |
setup_spi(SPI_SS_DISABLED); |
23 |
setup_spi(SPI_SS_DISABLED); |
23 |
setup_wdt(WDT_OFF); |
24 |
setup_wdt(WDT_OFF); |
24 |
setup_timer_0(RTCC_INTERNAL); |
25 |
setup_timer_0(RTCC_INTERNAL); |