完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
单片机数字钟的设计 开机时,显示12:00:00的时间开始计时;P0.0用来较秒,P0.1用来较分,P0.2用来较时。 ![]() C语言原程序: #include 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=1; EA=1; while(1) 更多精彩内容请点击//www.obk20.com/soft/33/2013/20130522318589.html下载观看~ |
|
相关推荐
1个回答
|
|
不错的文档,值得收藏
|
|
|
|
你正在撰写答案
如果你是对答案或其他答案精选点评或询问,请使用“评论”功能。
1032 浏览 0 评论
《DNESP32S3使用指南-IDF版_V1.6》第六十四章 LVGL 综合例程
731 浏览 0 评论
3017 浏览 1 评论
1698 浏览 0 评论
ESP32驱动ST7789触摸屏开发指南:LVGL主题设置与示波器面板
1406 浏览 0 评论
【youyeetoo X1 windows 开发板体验】少儿AI智能STEAM积木平台
13094 浏览 31 评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-5-11 08:21 , Processed in 0.479169 second(s), Total 74, Slave 56 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191