找回密碼
 立即注冊

QQ登錄

只需一步,快速開始

搜索
查看: 4016|回復(fù): 4
收起左側(cè)

求74hc164控制三位一體的數(shù)碼管

[復(fù)制鏈接]
ID:217360 發(fā)表于 2017-7-6 11:42 | 顯示全部樓層 |閱讀模式
5黑幣
求74hc164控制三位一體的數(shù)碼管,要求顯示123,另外畫圖也求指點,本人菜手,不想涉及這方面的,可老師逼著我做,求大神幫忙

QQ截圖20170706113928.png

評分

參與人數(shù) 1黑幣 +4 收起 理由
5664645345 + 4 很給力!

查看全部評分

回復(fù)

使用道具 舉報

ID:82765 發(fā)表于 2017-7-6 19:47 | 顯示全部樓層
提示: 作者被禁止或刪除 內(nèi)容自動屏蔽
回復(fù)

使用道具 舉報

ID:137736 發(fā)表于 2017-7-6 23:14 | 顯示全部樓層
我用衛(wèi)星接收機顯示板調(diào)試好的程序,一位顯示數(shù)碼,你改改就能用。 74HC164.rar (13.93 KB, 下載次數(shù): 26)
回復(fù)

使用道具 舉報

ID:137736 發(fā)表于 2017-7-6 23:15 | 顯示全部樓層
#include "reg52.h"
#define uint unsigned int
#define uchar unsigned char
sbit DAT=P1^1;
sbit CLK=P1^2;
sbit LED=P1^0;
uchar code tab[]={0x9f,0x25,0x0d,0x99,0x49,0x41,0x1f,0x00,0x09,0xfd,0xff
};//0-9,-,全滅
void sendbyte(uchar byte)
{
uchar num,c;
num=tab[byte];
for(c=0;c<8;c++)
{
CLK=0;
DAT=num&0x01;
CLK=1;
num>>=1;
}
}

void delay_50ms(unsigned int t)
{
unsigned int j;
for(;t>0;t--)
for(j=6245;j>0;j--)
{;}
}
main()
{
unsigned char h;
LED=0;
while(1)
{
for(h=0;h<10;h++)
{
delay_50ms(2);
sendbyte(h);
delay_50ms(40);
}
h=0;
}
}
回復(fù)

使用道具 舉報

ID:215916 發(fā)表于 2017-7-7 01:40 | 顯示全部樓層
好好看下書,很簡單的
回復(fù)

使用道具 舉報

您需要登錄后才可以回帖 登錄 | 立即注冊

本版積分規(guī)則

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

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

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