单片机89C52RC电子钟C语言程序.docVIP

  • 30
  • 0
  • 约8.1千字
  • 约 10页
  • 2017-09-19 发布于福建
  • 举报
#include reg51.h #includeintrins.h unsigned char wei_tab1[]={0x7f,0xbf,0xdf,0xef,0xf7,0xfb,0xfd,0xfe}; unsigned char code duan_tab[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07, //0,1,2,3,4,5,6,7 0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71, //8,9,A,B,C,D,E,F 0xbf,0x86,0xdb,0xcf,0xe6,0xed,0xfd,0x87, //0.,1.,2.,3.,4.,5.,6.,7. 0xff,0xef,0xf7,0xfc,0xb9,0xde,0xf9,0xf1, //8.,9.,A.,B.,C.,D.,E.,F. 0x00,0x40,0x73,0x38,0x76,0x50,0x78,0x6e}; //灭,-,P,L,H,r,t,y unsigned char led_buffer[]={0,1,2,3,4,5,6,7,8,9}; int count=0; char disp_count=0; char hour=00;

文档评论(0)

1亿VIP精品文档

相关文档