AT89C51单片机实验 LED 0-9999循环显示的程序图

[复制链接]
查看11 | 回复2 | 2009-4-19 21:53:01 | 显示全部楼层 |阅读模式
急需要程序。。。
要求
0-9999每秒钟显示一个,要按顺序显示下去
急急急急急急急急急急急急急急急 用汇编语言数码管显示

回复

使用道具 举报

千问 | 2009-4-19 21:53:01 | 显示全部楼层
#include #define uchar unsigned char#define uint unsigned intuint t1oc=20; //20*50000us=1suint count;uchar tp[4];//数码管显示代码unsigned char code tab[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71,0x40,0x80...
回复

使用道具 举报

千问 | 2009-4-19 21:53:01 | 显示全部楼层
void display(unsigned char num,unsigned char wei) { P2=tab_w[wei]; P3=tab[num]; delay1ms(2); P3=0x00; }...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行