74ls164数码管驱动
来源:学生作业帮 编辑:大师作文网作业帮 分类:综合作业 时间:2024/11/11 22:36:17
74ls164数码管驱动
#define clock PORTD.1
#define date PORTD.0
#define clock_en DDRD.1
#define date_en DDRD.0
unsigned char lab[2][10]={ 0x03,0x9F,0x25,0x0D,0x99,0x49,0x41,0x1F,0x01,0x09,
0x02,0x9E,0x24,0x0C,0x98,0x48,0x40,0x1E,0x00,0x08};
void send(unsigned char w)
{
unsigned char i;
for(i=0;i>1;
}
return ;
}
void xianshi(long w,unsigned char weishu)
{
unsigned char i,j;
bit flag=0;
clock_en=1;
date_en=1;
if(w
#define date PORTD.0
#define clock_en DDRD.1
#define date_en DDRD.0
unsigned char lab[2][10]={ 0x03,0x9F,0x25,0x0D,0x99,0x49,0x41,0x1F,0x01,0x09,
0x02,0x9E,0x24,0x0C,0x98,0x48,0x40,0x1E,0x00,0x08};
void send(unsigned char w)
{
unsigned char i;
for(i=0;i>1;
}
return ;
}
void xianshi(long w,unsigned char weishu)
{
unsigned char i,j;
bit flag=0;
clock_en=1;
date_en=1;
if(w