导航:首页 > 操作系统 > 单片机的广告灯设计

单片机的广告灯设计

发布时间:2022-05-07 19:49:25

A. 在单片机的开发板上,制作一个广告灯,要求低四位led灯从低到高(从右

这对咱们信息这个广告一定要注意,LED灯的功率19 85

B. 单片机广告灯

这个问题其实并不难,还要看一看你的电路图,只有知道LED数码管的接线才能编写代码。

C. 单片机汇编语言编广告灯

#include <reg52.h>
//由于你没说清楚,这里假设只接了四个灯,IO口输出低电平时灯亮,
//P1.0接最右边的发光二极管。
sbit P10 = P1^0;
sbit P11 = P1^1;
sbit P12 = P1^2;
sbit P13 = P1^3;
//广告灯程序
void main(void)
{
unsigned int n,i;
while(1) //程序循环
{ //左移两次
for(i=0;i<2;i++)
{P13=1;P10=0;
for(n=0;n<40000;n++); //延时
P10=1;P11=0;
for(n=0;n<40000;n++);
P11=1;P12=0;
for(n=0;n<40000;n++);
P12=1;P13=0;
for(n=0;n<40000;n++);
}
//右移两次
for(i=0;i<2;i++)
{
P13=1;P12=0;
for(n=0;n<40000;n++);
P12=1;P11=0;
for(n=0;n<40000;n++);
P11=1;P10=0;
for(n=0;n<40000;n++);
P10=1;P13=0;
for(n=0;n<40000;n++);
}
//闪烁两次
for(i=0;i<2;i++)
{P13=0;P12=0;P11=0;P10=0;
for(n=0;n<40000;n++); //延时
P13=1;P12=1;P11=1;P10=1;
for(n=0;n<40000;n++); //延时
}
}
}

D. 帮忙翻译英文"基于单片机的广告灯电路设计”帮忙翻译下面一段摘要。太感谢了

Abstract: A new type of LED lanterns control system design methods to AT-89C51 microcontroller core, as the main control, and buttons, monitors, and other ancillary hardware circuit less by combining the use of LED lanterns software control. This system is small in size, less hardware, the circuit structure is simple and easy to operate, and other advantages.
Key words: LED lanterns; AT89C51; lantern controller; Mole Design

E. 单片机广告灯的设计C语言程序<分数不多 但求大神告知 好人一生平安>

#include<reg51.h>
#define uchar unsigned char
uchar ledt[]={0xfe,0xfd,0xfb,0xf7,0xef,0xdf,0xbf,0x7f};
uchar ledi[]={0xfc,0xf9,0xf3,0xe7,0xcf,0x9f,0x3f,0x7e);
uchar nt=0,ni=0;
void timer0() interrupt 1
{
TH0=(65536-50000)/256;
TL0=(65536-50000)%256;
switch(nt)
{
case 0:
case 1:
case 2:
case 3:
case 4:
case 5:
case 6:
case 7:
P1=ledt[nt];break;
case 8:
case 9:
case 10:
case 11:
case 12:
case 13:
case 14:
p1=ledt[14-nt];break;
case 15:
P1=0x00;break;
case 16:
P1=0xff;break;
default:
nt=0;break;
}
nt++;
}
void ext0() interrupt 0
{
switch(ni)
{
case 0:
case 1:
case 2:
case 3:
case 4:
case 5:
case 6:
case 7:
P1=ledt[ni];break;
case 8:
case 9:
case 10:
case 11:
case 12:
case 13:
case 14:
P1=ledt[14-ni];break;
case 15:
P1=0xff;break;
case 16:
P1=0x00;break;
default:
ni=0;break;
}
}
void delay(uchar a)
{
uchar i,j;
for(i=0;i<a;i++)
for(j=0;j<120;j++);
}
main()
{
TMOD=0x01;
TH0=(65536-50000)/256;
TL0=(65536-50000)%256;
ET0=1;
EX0=1;
IT0=0;
EA=1;
TR0=1;
while(1)
{
while(P3_2)
{
TR0=0;
delay(50);
ni++;
}
TR0=1;
}

F. 用单片机汇编语言制作广告灯。利用取表的方法。

ORG0000H
MOVDPTR,#TAB
LP1:
MOVR2,#4
LP:MOVA,R2
MOVCA,@A+DPTR
MOVP0,A
DJNZR7,$
DJNZR6,$-2
DJNZR2,LP
SJMPLP1
TAB:
DB0,18H,24H,42H,81H

END

G. MCS-51系列单片机制作广告灯程序和电路设计

明白你的需求我来完成你的任务
你把重点内容告诉我
我到时候怎样发给你

H. 用单片机设计广告灯

可以参见:
http://wenku..com/view/b8925de2524de518964b7d4d.html

I. 单片机应用课程设计(广告灯的设计)

你下次要是说100RMB或许还有可能有人给你做

阅读全文

与单片机的广告灯设计相关的资料

热点内容
如何获取哔哩哔哩app邮箱注册 浏览:528
怎么启动arduino编译环境 浏览:842
昕动app怎么突然进不去 浏览:471
如何登录内部服务器 浏览:878
python读取在线表格 浏览:1001
喝什么茶能缓解压抑 浏览:867
u命令无法打开 浏览:962
vue编译后的js能爬吗 浏览:453
解压骰子推荐3代 浏览:749
安卓手机划线密码忘了怎么解锁 浏览:309
精美角度主图指标源码 浏览:278
程序员编程函数需要特别好吗 浏览:183
fue加密毛发怎么样 浏览:929
网上考学历app如何屏蔽 浏览:352
python矩阵库 浏览:160
服务器如何ping服务器 浏览:281
云服务器双机热备怎么做 浏览:100
安卓果盘高清帐号是什么帐号 浏览:548
苹果解激活锁什么叫服务器解锁 浏览:596
用海绵宝宝做解压的东西 浏览:192