/programy/PIC_C/test/C16F876A/blik/blik.c |
---|
0,0 → 1,24 |
#include ".\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); |
} |
} |