Subversion Repositories svnkaklik

Compare Revisions

Ignore whitespace Rev 470 → Rev 471

/programy/C/PIC_C/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);
*/
}
 
}
/programy/C/PIC_C/test/C16F873/blik/main.h
0,0 → 1,15
#include <16F876A.h>
#device adc=8
 
#FUSES NOWDT //No Watch Dog Timer
#FUSES HS //Crystal osc <= 4mhz
#FUSES NOPUT //No Power Up Timer
#FUSES NOPROTECT //Code not protected from reading
#FUSES NODEBUG //No Debug mode for ICD
#FUSES NOBROWNOUT //No brownout reset
#FUSES NOLVP //No low voltage prgming, B3(PIC16) or B5(PIC18) used for I/O
#FUSES NOCPD //No EE protection
#FUSES NOWRT //Program memory not write protected
 
#use delay(clock=20000000)
 
/programy/C/PIC_C/test/C16F873/blik/main.hex
0,0 → 1,17
:1000000000308A00192800002230840000080319FB
:1000100016280630F800F701F70B0C28F80B0B2810
:100020007B30F700F70B1228800B09288A110A127F
:100030006E2884011F30830583161F149F141F151B
:100040009F1107309C00FF308312A00083161F14FD
:100050009F141F159F1183121F109412A0122008C5
:1000600083168700831220162008831687008312C8
:10007000A011200883168700003083129400831695
:1000800094000108C73908388100831290010030BC
:10009000F800920000308316920007309C0005089B
:1000A0001030F700F70B522800001C0883120D13C4
:1000B00083169D018312A0102008831687008312E7
:1000C00087102108A10AA2000030A0008316870132
:1000D0008312220887006430A2000428612863008C
:02400E003A3F37
:00000001FF
;PIC16F876A