77问答网
所有问题
怎样用keil编写4位数码管显示1234的程序
如题所述
举报该问题
其他回答
第1个回答 2017-08-25
: #include<reg52.h> #include<intrins.h> sbit wei=P1^0; sbit duan=P1^1; int w[8]={0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f};
第2个回答 2017-08-25
是仿真吗?还是在开发板上显示?
首先要有电路图或仿真图,才能写程序。与用什么写没有多大关系,keil 是用来编译的。本回答被提问者采纳
相似回答
怎样用keil编写4位数码管显示1234的程序
答:
这是用C编的:共阴
数码管
#include<reg52.h> define uint unsigned int define uchar unsigned char sbit dula=P2^6;sbit wela=P2^7;uint temp=
1234
;uchar code table[]={ 0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71} ;void play(uint)...
用Keil
uVision软件编一个让
4位
LED
数码管显示1234的程序
答:
include <reg52.h> define uchar unsigned char define uint unsigned int uchar code DSY_CODE[]= { 0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90,0xff };uchar code dis_bet[]={7,3,1,4};uchar code dis_pos[]={0x01,0x02,0x04,0x08};void DelayMS(uint ms){ ucha...
怎样用keil编写4位数码管显示1234的程序
答:
: #include<reg52.h> #include<intrins.h> sbit wei=P1^0; sbit duan=P1^1; int w[8]={0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f};
怎样用keil编写4位数码管显示1234的程序
答:
这首先要画出仿真图,或有开发板,才能根据仿真图或原理图来写程序的
。就是一个动态显示程序,很容易也很简单的。
keil
uvision
4数码管
停留到数字
答:
1,
用Keil
uVision软件编一个让
4位
LED
数码管显示
数字
的程序
#include #include sbit wei=P1^0; sbit duan=P1^1; int w[8]={0x06,0...
...
数码管
共阴极的来动态
显示
学号,比如
1234
,求
用keil
写出
的程序
。_百度...
答:
include<reg51.h>#define uchar unsigned charuchar tab[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x00}; //0到9uchar num;uchar led[]={1,2,3,4};void t0isr() interrupt 1{TH0=(65536-5000)/256;TL0=(65536-5000)%256;switch(num){case 0:P2=0x01;break...
用Keil
uVision软件编一个让
4位
LED
数码管显示
数字
的程序
答:
include<reg52.h> include<intrins.h> sbit wei=P1^0;sbit duan=P1^1;int w[8]={0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f};int i,tt;int temp;void main(){ TMOD=0X01;TH0=(65536-50000)/256;TL0=(65536-50000)%256;EA=1;ET0=1;TR0=1;tt=0;i=0;temp=0xfe;duan=1...
大家正在搜
keil编程数码管显示数字
keil数码管显示两位数
keil数码管动态显示
52单片机4位数码管显示
51单片机2位数码管显示
keil动态数码管编程
单片机四位数码管显示
单片机显示两位数码管
arduino数码管显示0到9
相关问题
怎样用keil编写4位数码管显示1234的程序
用Keil uVision软件编一个让4位LED数码管显示1...
怎样用keil编写4位数码管显示1234的程序
怎样用keil编写4位数码管显示1234的程序
怎样用keil编写4位数码管显示1234的程序
怎样用keil编写4位数码管显示1234的程序
怎样用keil编写4位数码管显示1234的程序
怎样用keil编写4位数码管显示1234的程序