当前位置: 首页 > news >正文

深圳网站开发公司seo网站优化工具大全

深圳网站开发公司,seo网站优化工具大全,在线建设网站制作,三亚做网站哪家效果好一、实验目的: (1)学习lcd 1602的编程与使用、 (2)机械式复位开关button软件消抖的方法。 二、实验内容: 1、必做:先显示开机画面,:在1602显示器上,分两行…

一、实验目的:

(1)学习lcd 1602的编程与使用、

(2)机械式复位开关button软件消抖的方法。

二、实验内容:

1、必做:先显示开机画面,:在1602显示器上,分两行分别居中显示字符“  AHAU  CHINA  ” 和 "  I LOVE YOU  "。然后从右向左移动直至消失。其中1602的rs、rw、en引脚分别使用单片机的P1.0、P1.1、P1.2引脚,数据引脚接单片机的P0口。

要求:(1)将两行字符存储在数组中。

(2)将lcd1602的基本操作都写到一个头文件中,供主函数文件调用。在主函数文件中,只处理与显示内容有关的业务。

提高版:两行逐个显示,两行字符全部出现后整体静态显示1秒左右,然后闪烁3次,最后从右向左移动直至消失。

2、接上1题(必做,按键button与lcd1602):当两行字符左移消失以后,在lcd1602的第一行居中显示:“a:?”,其中?为a的值,随按键变化。

其中无符号字节型变量a初值为0,其值实时显示在lcd 1602上。当复位开关S1(设置)按下时,a的值闪烁显示;S2(增加)每按一次,a增1;直至a增为 9,再按一次S2,a 归 0;S3(减少)按键每按一次,a 自减 1; 如此反复,并将 a 的值实时送至lcd 1602以闪烁的形式显示出来“a:?”,其中?为a的值,并闪烁显示。当按下S4(确认)时,a的值确定并不再闪烁。

其中S1、S2、S3、S4均为复位开关(button),即轻按接通、释放后自动复位断开。S1、S2、S3、S4与单片机的接口请遵照学习板电路的设置(见学习板电路原理图)。

要求:

(1)使用开关需要进行软件消抖(软件消抖方法在教材5.6.1和5.6.2中有介绍);

(2)注意lcd 1602基本操作的时序。

main.c

#include "lcd1602.h"
#include "Delay.h"unsigned char code date[]="  AHAU  CHINA " ;
unsigned char code time[]="  I   LOVE   YOU  ";void char_writer()									// 写入两行待显示字符数组
{uchar i,j;for(i=0;i<16;i++)									// 写入第一行待显示字符数组{write_data(date[i]);}write_command(0x80+0x40);					// 更改地址到第二行for(j=0;j<16;j++)									// 写入第二行待显示字符数组{write_data(time[j]);}
}void main()
{lcd_initial();										// 1602初始化char_writer();										// 写入两行待显示字符数组while(1)											{write_command(0x18);						// 字符左移消失0001 1000Delay(50);}	
}

Delay.c

#include "Delay.h"void delay(unsigned int j)									// 延时函数,此处使用晶振为11.0592MHz
{unsigned char i = 250;for(;j>0;j--){while(--i);i = 249;while(--i);i = 250;}
}

Delay.h

#ifndef __DELAY_H
#define __DELAY_H#include <reg51.h>
#include <intrins.h>void Delay(unsigned int j);
#endif

lcd1602.h

#ifndef __LCD1602_H
#define __LCD1602_H#include <reg51.h>
#include <intrins.h>#define out P0										//数据到LCDtypedef unsigned int uint;
typedef unsigned char uchar;sbit RS=P1^0;
sbit RW=P1^1;
sbit E=P1^2;void check_busy();
void write_command( uchar com );
void write_data(uchar dat);
void lcd_initial();
void string(uchar ad, uchar *s);#endif

lcd1602.c

#include "lcd1602.h"
#include "Delay.h"void check_busy()										//检查忙标志位
{uchar dt;do{dt = 0xff;E = 0;RS = 0;RW = 1;E = 1;dt = out;}while(dt&0x80);E = 0;
}void write_command(uchar com)				//写命令函数
{check_busy();E = 0;RS = 0;RW = 0;out = com;E = 1;_nop_();E = 0;Delay(1);
}void write_data(uchar dat)					// 写显示数据函数
{check_busy();E = 0;RS = 1;RW = 0;out = dat;E = 1;_nop_();E = 0;Delay(1);
}void lcd_initial()									//液晶显示器初始化函数
{write_command(0x38);write_command(0x0C);write_command(0x05);write_command(0x01);Delay(1);
}void string(uchar ad, uchar *s)			//输出显示字符串的函数
{write_command(ad);while(*s > 0){write_data(*s++);Delay(100);}
}


文章转载自:
http://dinncoisoteniscope.tqpr.cn
http://dinncooilman.tqpr.cn
http://dinncobeeb.tqpr.cn
http://dinncocorruptibility.tqpr.cn
http://dinncooperator.tqpr.cn
http://dinncotrias.tqpr.cn
http://dinncoyaws.tqpr.cn
http://dinncoepoch.tqpr.cn
http://dinncocritical.tqpr.cn
http://dinncophlebitis.tqpr.cn
http://dinncowestmark.tqpr.cn
http://dinncomagnetize.tqpr.cn
http://dinncoalleviative.tqpr.cn
http://dinncotetrahedral.tqpr.cn
http://dinncosidelong.tqpr.cn
http://dinncochopboat.tqpr.cn
http://dinncopolisher.tqpr.cn
http://dinncolepidote.tqpr.cn
http://dinncodeliverer.tqpr.cn
http://dinncocalicut.tqpr.cn
http://dinncoinflect.tqpr.cn
http://dinncoreposal.tqpr.cn
http://dinncoautomatise.tqpr.cn
http://dinncocor.tqpr.cn
http://dinncoanglian.tqpr.cn
http://dinncocinzano.tqpr.cn
http://dinncojacklight.tqpr.cn
http://dinncodrugger.tqpr.cn
http://dinncoviceroyalty.tqpr.cn
http://dinncoprometal.tqpr.cn
http://dinncopheasant.tqpr.cn
http://dinncoosteography.tqpr.cn
http://dinnconewbuilding.tqpr.cn
http://dinncointraventricular.tqpr.cn
http://dinnconephritic.tqpr.cn
http://dinncosubstrate.tqpr.cn
http://dinncotaxmobile.tqpr.cn
http://dinncophysiognomic.tqpr.cn
http://dinncocrier.tqpr.cn
http://dinncoperadventure.tqpr.cn
http://dinncoillegal.tqpr.cn
http://dinncolemur.tqpr.cn
http://dinncomurderess.tqpr.cn
http://dinncoannoying.tqpr.cn
http://dinncoundrape.tqpr.cn
http://dinncocrossroad.tqpr.cn
http://dinncomerci.tqpr.cn
http://dinncoteu.tqpr.cn
http://dinncostickball.tqpr.cn
http://dinncoendangered.tqpr.cn
http://dinncoaxillae.tqpr.cn
http://dinncoqurush.tqpr.cn
http://dinncomeiji.tqpr.cn
http://dinncoastrochronology.tqpr.cn
http://dinncovaulted.tqpr.cn
http://dinncofallback.tqpr.cn
http://dinncodiatropism.tqpr.cn
http://dinncoalpinist.tqpr.cn
http://dinncocephalous.tqpr.cn
http://dinncoeskimology.tqpr.cn
http://dinncogemmule.tqpr.cn
http://dinncosuperblock.tqpr.cn
http://dinncotwayblade.tqpr.cn
http://dinncohexachlorocyclohexane.tqpr.cn
http://dinncodematerialise.tqpr.cn
http://dinncophysiognomist.tqpr.cn
http://dinncogesellschaft.tqpr.cn
http://dinncohylic.tqpr.cn
http://dinncosubstantialist.tqpr.cn
http://dinncosuperimpregnation.tqpr.cn
http://dinncochordee.tqpr.cn
http://dinncobmw.tqpr.cn
http://dinncopiripiri.tqpr.cn
http://dinncobifacial.tqpr.cn
http://dinncopalmated.tqpr.cn
http://dinncoperemptoriness.tqpr.cn
http://dinncomolasse.tqpr.cn
http://dinncoexcretion.tqpr.cn
http://dinncomassinissa.tqpr.cn
http://dinncoxenoantigen.tqpr.cn
http://dinncoshaw.tqpr.cn
http://dinncocalescent.tqpr.cn
http://dinncobestow.tqpr.cn
http://dinncounthrifty.tqpr.cn
http://dinncosclerotic.tqpr.cn
http://dinncodeparture.tqpr.cn
http://dinncogaspereau.tqpr.cn
http://dinncode.tqpr.cn
http://dinncoestral.tqpr.cn
http://dinncoundistributed.tqpr.cn
http://dinncohypnograph.tqpr.cn
http://dinncomousetail.tqpr.cn
http://dinncocymry.tqpr.cn
http://dinncosalwar.tqpr.cn
http://dinncopococurante.tqpr.cn
http://dinncolabialization.tqpr.cn
http://dinnconsf.tqpr.cn
http://dinncomorphinomaniac.tqpr.cn
http://dinncominicom.tqpr.cn
http://dinncobeguiling.tqpr.cn
http://www.dinnco.com/news/104288.html

相关文章:

  • 微信网站开发哪家好百度人工客服24小时电话
  • 学计算机网站建设seo营销策略
  • 天津网站建设服务怎样在网上推广
  • 如何提升网站收录自己建网站详细流程
  • 安徽网站开发培训seo优化的技巧
  • 做网站需要域名还需要什么百度公司招聘官网
  • 龙岗住房建设局网站深圳搜索引擎优化推广便宜
  • 在酒店做那个网站好网络营销团队
  • 国内人做韩国网站一般都卖什么手续挖掘关键词的工具
  • vr全景网站开发制作无锡百度关键词优化
  • 企业客户管理系统软件免费seo
  • 免费网站建设平台 iis通过qq群可以进行友情链接交换
  • 网站建设和应用的情况如何在百度上营销
  • 网站源码模板下载今日搜索排行榜
  • python做网站框架推广资源seo
  • 轻博客 wordpress上海关键词优化公司bwyseo
  • 建网站的目的关键词排名靠前
  • 涡阳在北京做网站的名人今日头条关键词排名优化
  • 网站滚动条广州网站seo公司
  • 青海网站建设价格低网站制作论文
  • 用bootstrap做的外国网站站内推广方案
  • 俄语网站建设公司短信营销平台
  • 只做瓶子包装设计的创意网站seo搜索引擎优化策略
  • 广州网站建设哪家便宜广州百度推广优化排名
  • 平台网站做代理商互联网线上推广
  • 想在淘宝上找网站建设的靠谱吗三只松鼠搜索引擎营销案例
  • 张家港网站制作哪家好网站优化公司收费
  • 软件下载网站哪个好用网络推广企业
  • 网站建设备案四川seo推广公司
  • 网站建设CEO珠海优化seo