/programy/C/PIC/test/C16F873/blik/main.c |
---|
0,0 → 1,31 |
#include ".\main.h" |
void main() |
{ |
int8 ble; |
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); |
output_low(PIN_C1); |
While(true) |
{ |
output_c(ble++); |
delay_ms(100); |
Output_high(PIN_B2); |
Delay_ms(100); |
Output_low(PIN_B2); |
Delay_ms(100); |
} |
} |