① AT89c51单片机编程实现9–0循环显示数码管显示,求图求程序
#include<reg51.h>
#defineucharunsignedchar
uchartable[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f};
voiddelay()
{
uchari,j;
for(i=0;i<200;i++)
for(j=0;j<250;j++);
}
main()
{
uchari;
i=9;
while(1)
{
if(i>9)i=9;
P1=table[i];
delay();
i--;
}
}