- 56
- 0
- 约1.7千字
- 约 3页
- 2017-09-25 发布于山东
- 举报
AVR单片机数码管秒表显示
程序如下:
#includeiom16v.h
#includemacros.h
#define uint unsigned int
#define uchar unsigned char
uint a,b,c,d=0;
void
void
vvooiidd delay(c)
{
for
for
ffoorr(a=0;ac;a++)
for
for
ffoorr(b=0;b12;b++);
};
uchar tab[]={
0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90,
};
uchar tab1[]={
0x01,
0x02,
0x04,
0x08,
0x10,
0x20,
原创力文档

文档评论(0)