74HC595擴(kuò)展IO口
//下面是51單片機(jī)74HC595的c51驅(qū)動(dòng)
本文引用地址:http://m.butianyuan.cn/article/201611/320302.htm#include
#include
#define uchar unsigned char
#define uint unsigned int
code uchar shu[]={1,2,4,8,16,32,64,128};
sbit ssj=P2^0;//數(shù)據(jù)線
sbit ssz=P2^1;//同步時(shí)鐘
//sbit sss=P2^2;
void delay()
{
}
void fasong( uchar sj )
{
// sss=0;
// sss=1;
}
void main(void)
{
}
評論