gokmenn
Üye
- Katılım
- 2 Haz 2011
- Mesajlar
- 129
- Puanları
- 1
YAZILIMDA BİR YANLIŞLIK VAR MI BU USTALAR Bİ GÖZ ATARSANIZ SEVİNİRİM
KAÇ GÜNDÜR BUNA UĞRAŞIYORUM BOŞA KÜREK ÇEKMEK İSTEMİYORUM
ŞİMDİDEN ÇOK TŞK
#include <16f877a.h>
#fuses xt,nowrt,noprotect,nobrownout,nolvp,nocpd,nowdt,no debug
#use delay(clock=20M)
#use fast_io(b) //port yönlendirme komutuları b portu için geçerlidir#include
#byte TRISB = 0x86
#byte PORTB = 0x06
void main()
{
setup_adc_ports(NO_ANALOGS);
setup_adc(ADC_OFF);
setup_psp(PSP_DISABLED);
setup_spi(SPI_SS_DISABLED);
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);
{
unsigned int k;
unsigned int l;
unsigned int m;
unsigned char dizi1[]={
0xFF,0x09,0x09,0x09,0x01,0x00, // F
0xFC,0x12,0x11,0x12,0xFC,0x00, // A
0x01,0x01,0xFF,0x01,0x01,0x00, // T
0x00,0x84,0xFD,0x84,0x00,0x00, // İ
0xFF,0x10,0x10,0x10,0xFF,0x00, // H
0x00,0x00,0x00,0x00,0x00,0x00 // Bosluk
};
unsigned char dizi2[]={
0xFF,0x02,0x0C,0x02,0xFF,0x00, // M
0xFF,0x89,0x89,0x89,0x81,0x00, // E
0xFF,0x10,0x10,0x10,0xFF,0x00, // H
0xFF,0x02,0x0C,0x02,0xFF,0x00, // M
0xFF,0x89,0x89,0x89,0x81,0x00, // E
0x01,0x01,0xFF,0x01,0x01,0x00, // T
0x00,0x00,0x00,0x00,0x00,0x00 // Bosluk
};
unsigned char dizi3[]={
0x7E,0x81,0x81,0x91,0x72,0x00, // G
0x78,0x85,0x84,0x85,0x78,0x00, // Ö
0xFF,0x18,0x24,0x42,0x81,0x00, // K
0xFF,0x02,0x0C,0x02,0xFF,0x00, // M
0xFF,0x89,0x89,0x89,0x81,0x00, // E
0xFF,0x04,0x08,0x10,0xFF,0x00, // N
0x00,0x00,0x00,0x00,0x00,0x00 // Bosluk
};
TRISB=0x00;
PORTB=0Xff;
while(1)
{
for(k=0;k<36;k++)
{
PORTB=dizi1[k];
Delay_Ms(1); // 1ms bekle
}
Delay_Ms(36); // 36ms bekle
for(l=0;l<30;l++){
PORTB=dizi2[l];
Delay_Ms(1); // 1ms bekle
}
Delay_Ms(30); // 30ms bekle
for(m=0;m<60;m++){
PORTB=dizi3[m];
Delay_Ms(1); // 1ms bekle
}
Delay_Ms(60); // 60ms bekle
}
}
}
KAÇ GÜNDÜR BUNA UĞRAŞIYORUM BOŞA KÜREK ÇEKMEK İSTEMİYORUM
ŞİMDİDEN ÇOK TŞK
#include <16f877a.h>
#fuses xt,nowrt,noprotect,nobrownout,nolvp,nocpd,nowdt,no debug
#use delay(clock=20M)
#use fast_io(b) //port yönlendirme komutuları b portu için geçerlidir#include
#byte TRISB = 0x86
#byte PORTB = 0x06
void main()
{
setup_adc_ports(NO_ANALOGS);
setup_adc(ADC_OFF);
setup_psp(PSP_DISABLED);
setup_spi(SPI_SS_DISABLED);
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);
{
unsigned int k;
unsigned int l;
unsigned int m;
unsigned char dizi1[]={
0xFF,0x09,0x09,0x09,0x01,0x00, // F
0xFC,0x12,0x11,0x12,0xFC,0x00, // A
0x01,0x01,0xFF,0x01,0x01,0x00, // T
0x00,0x84,0xFD,0x84,0x00,0x00, // İ
0xFF,0x10,0x10,0x10,0xFF,0x00, // H
0x00,0x00,0x00,0x00,0x00,0x00 // Bosluk
};
unsigned char dizi2[]={
0xFF,0x02,0x0C,0x02,0xFF,0x00, // M
0xFF,0x89,0x89,0x89,0x81,0x00, // E
0xFF,0x10,0x10,0x10,0xFF,0x00, // H
0xFF,0x02,0x0C,0x02,0xFF,0x00, // M
0xFF,0x89,0x89,0x89,0x81,0x00, // E
0x01,0x01,0xFF,0x01,0x01,0x00, // T
0x00,0x00,0x00,0x00,0x00,0x00 // Bosluk
};
unsigned char dizi3[]={
0x7E,0x81,0x81,0x91,0x72,0x00, // G
0x78,0x85,0x84,0x85,0x78,0x00, // Ö
0xFF,0x18,0x24,0x42,0x81,0x00, // K
0xFF,0x02,0x0C,0x02,0xFF,0x00, // M
0xFF,0x89,0x89,0x89,0x81,0x00, // E
0xFF,0x04,0x08,0x10,0xFF,0x00, // N
0x00,0x00,0x00,0x00,0x00,0x00 // Bosluk
};
TRISB=0x00;
PORTB=0Xff;
while(1)
{
for(k=0;k<36;k++)
{
PORTB=dizi1[k];
Delay_Ms(1); // 1ms bekle
}
Delay_Ms(36); // 36ms bekle
for(l=0;l<30;l++){
PORTB=dizi2[l];
Delay_Ms(1); // 1ms bekle
}
Delay_Ms(30); // 30ms bekle
for(m=0;m<60;m++){
PORTB=dizi3[m];
Delay_Ms(1); // 1ms bekle
}
Delay_Ms(60); // 60ms bekle
}
}
}