Subversion Repositories svnkaklik

Rev

Rev 410 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download

#include "D:\KAKLIK\projekty\programy\PIC_C\test\PIC16F876A\blik\blik.h"


void main()
{

   setup_adc_ports(NO_ANALOGS);
   setup_adc(ADC_OFF);
   setup_spi(FALSE);
   setup_timer_0(RTCC_INTERNAL|RTCC_DIV_1);
   setup_timer_1(T1_DISABLED);
   setup_timer_2(T2_DISABLED,0,1);
   setup_comparator(NC_NC_NC_NC);
   setup_vref(FALSE);
   
   While(true)
   {
      Delay_ms(500);
      Output_high(PIN_B1);
      Delay_ms(500);
      Output_low(PIN_B1);   
   }

}