1045 |
jacho |
1 |
#include "C:\Users\Honza\Documents\pic\seriovk\main.h" |
|
|
2 |
#use rs232(baud=9600,parity=N,xmit=PIN_B7,rcv=PIN_B6,bits=8) //rcv TXD xmit RXD |
|
|
3 |
|
|
|
4 |
|
|
|
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 |
printf("Simple Thermomether\r\n",); |
|
|
20 |
printf("(c) Kaklik 2013\r\n"); |
|
|
21 |
printf("www.mlab.cz\r\n"); |
|
|
22 |
|
|
|
23 |
while (TRUE) |
|
|
24 |
{ |
|
|
25 |
|
|
|
26 |
Delay_ms(100); |
|
|
27 |
} |
|
|
28 |
|
|
|
29 |
|
|
|
30 |
|
|
|
31 |
} |