單片機研究協會 發表于 2025-1-16 01:10
有兩點可以優化
1:改用共陰數碼管,可以省三極管
2:改用位域操作
jjy1039 發表于 2025-1-16 08:59
54行大概是不對的void segment_out(uchar dat) {
xiaobendan001 發表于 2025-1-16 12:46
有沒有試過?軟件模擬也能看到的
WL0123 發表于 2025-1-16 16:32
數碼管顯示異常是樓主的數碼管位驅動碼錯誤所致。修改如下:
1.png (26.67 KB, 下載次數: 0)
hjx5548 發表于 2025-1-21 22:13
如果這樣怎么修改
WL0123 發表于 2025-1-22 11:30
如果MCU采用的還是STC12C5A60S2那就沒有P55,只有P50~53。示例程序:
WL0123 發表于 2025-1-22 11:30
如果MCU采用的還是STC12C5A60S2那就沒有P55,只有P50~53。示例程序:
hjx5548 發表于 2025-1-23 07:04
修改一下,十位顯示9,個位無顯示。
/*hjx5548 發表于 2025-1-21 22:13
如果這樣怎么修改
WL0123 發表于 2025-1-23 14:55
如果MCU采用的還是STC12C5A60S2不需要設置端口模式,默認是準雙向。沒有P55,就在P50~53選一個空閑腳或其 ...
WL0123 發表于 2025-1-23 14:55
如果MCU采用的還是STC12C5A60S2不需要設置端口模式,默認是準雙向。沒有P55,就在P50~53選一個空閑腳或其 ...
hjx5548 發表于 2025-1-24 07:55
segment_out(duan_ma[date]);//上傳怎么沒有了
hjx5548 發表于 2025-1-24 05:11
#include "STC8G.h"
#include
#define uint unsigned int
hjx5548 發表于 2025-1-24 05:11
#include "STC8G.h"
#include
#define uint unsigned int
hjx5548 發表于 2025-1-24 05:11
#include "STC8G.h"
#include
#define uint unsigned int
hjx5548 發表于 2025-1-24 05:11
#include "STC8G.h"
#include
#define uint unsigned int
歡迎光臨 (http://m.zg4o1577.cn/bbs/) | Powered by Discuz! X3.1 |