单片机研究协会 发表于 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://www.51hei.com/bbs/) | Powered by Discuz! X3.1 |