找回密碼
 立即注冊

QQ登錄

只需一步,快速開始

搜索

數(shù)碼管顯示異常怎么修改單片機(jī)代碼?

查看數(shù): 3388 | 評(píng)論數(shù): 5 | 收藏 0
關(guān)燈 | 提示:支持鍵盤翻頁<-左 右->
    組圖打開中,請稍候......
發(fā)布時(shí)間: 2019-4-2 10:02

正文摘要:

#include <reg52.h>   #define uchar unsigned char #define uint  unsigned int #include <intrins.h> uchar a_a; uchar code smg_du[]={0x28,0xee,0x32,0xa2,0xe4,0xa1,0x2 ...

回復(fù)

ID:481641 發(fā)表于 2019-4-3 16:31
改數(shù)組
ID:96682 發(fā)表于 2019-4-3 15:40
明顯原理圖與程序不匹配,樓主得提供電路圖才好修改
ID:213173 發(fā)表于 2019-4-3 13:28
改為:
uchar code smg_du[]={//共陽數(shù)碼管段碼"0~f"
                0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,
                0x80,0x90,0x88,0x83,0xc6,0xa1,0x86,0x8e};  
uchar dis_smg[4];//顯示數(shù)字緩存
ID:501901 發(fā)表于 2019-4-2 22:24
是共陰的還是共陽的不要搞反
ID:67356 發(fā)表于 2019-4-2 22:18
uchar code smg_du[]={0x28,0xee,0x32,0xa2,0xe4,0xa1,0x21,0xea,0x20,0xa0,
                       0x60,0x25,0x39,0x26,0x31,0x71,0xff};
把這里改一下

小黑屋|51黑電子論壇 |51黑電子論壇6群 QQ 管理員QQ:125739409;技術(shù)交流QQ群281945664

Powered by 單片機(jī)教程網(wǎng)

快速回復(fù) 返回頂部 返回列表