#include<18f4550.h>
#fuses xt,cpudiv1,nomclr,put,nowdt,noprotect,novregen
#use delay(clock=4m)
#use standard_io(b)
//int zaman=200;
#define data pin_b1
#define clk pin_b0
void main()
{
int i,j=0;
byte deger;
byte const bitmask[8]={1,2,4,8,16,32,64,128};
byte const datadeger[3]={0b01010101,0b100100001,0b01100000 };
deger=datadeger[0];
for(j=0;j<8;j++)
{
output_low(clk);
output_bit(data,deger & bitmask[j]);
output_high(clk);
}
}
25 Temmuz 2020 Cumartesi
ccs c 74hc164 ile yapılan örnek uygulama
Pic programlama ccs c 74hc164 ile yapilan örnek çalişma
Kaydol:
Kayıt Yorumları (Atom)

1 yorum:
Her yorum bilgidir. Araştırmaya devam...