Subversion Repositories svnkaklik

Rev

Details | Last modification | View Log

Rev Author Line No. Line
829 kaklik 1
#include "D:\svnKaklik\programy\C\PIC\test\PIC18F2550\blik.h"
2
 
3
 
4
void main()
5
{
6
 
7
   setup_adc_ports(NO_ANALOGS|VSS_VDD);
8
   setup_adc(ADC_OFF);
9
   setup_spi(SPI_SS_DISABLED);
10
   setup_wdt(WDT_OFF);
11
   setup_timer_0(RTCC_INTERNAL);
12
   setup_timer_1(T1_DISABLED);
13
   setup_timer_2(T2_DISABLED,0,1);
14
   setup_timer_3(T3_DISABLED|T3_DIV_BY_1);
15
   setup_comparator(NC_NC_NC_NC);
16
   setup_vref(FALSE);
17
//Setup_Oscillator parameter not selected from Intr Oscillator Config tab
18
 
19
   // TODO: USER CODE!!
20
 
21
while(true)
22
   {
23
      Output_high(PIN_A0);
24
      Delay_ms(100);
25
      Output_low(PIN_A0);
26
      Delay_ms(100);
27
   }
28
}