单片机数字钟的设计+包含电路图+c语言程序+mcs-51单片机.docVIP

  • 7
  • 0
  • 约4.33千字
  • 约 6页
  • 2017-08-22 发布于河南
  • 举报

单片机数字钟的设计+包含电路图+c语言程序+mcs-51单片机.doc

单片机数字钟的设计 2007-01-16 21:46 单片机数字钟的设计 开机时,显示12:00:00的时间开始计时;0.1用来P0.0用来较秒,P较分,P0.2用来较时。 C语言原程序: #include AT89X52.H unsigned char code dispcode[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71,0x00}; unsigned char dispbitcode[]={0xfe,0xfd,0xfb,0xf7,0xef,0xdf,0xbf,0x7f}; unsigned char dispbuf[8]={0,0,16,0,0,16,0,0}; unsigned char dispbitcnt; unsigned char second; unsigned char minite; unsigned char hour; unsigned int tcnt; unsigned char mstcnt;??? unsigned char i,j;??? void main(void) { ??? TMOD=0x02; ??? TH0=0x06; ??? TL0=0x06; ??? TR0=1; ??? ET0=

文档评论(0)

1亿VIP精品文档

相关文档