-
1602显示驱动程序
LCD1602的数据写入及CGRAM的使用
编程 2010-06-19 17:41:11 阅读84 评论0 字号:大中小 订阅
1.当使能端E由1变为0时,执行写指令,数据被写入。
例如,欲写入数据i到DDRAM:
void WDR(uchar i)
{
CheckBusy();//检忙
LCD_RS=1;
LCD_RW=0;
LCD_EN=0;
Delay();
LCD_DATA=i;//数据输出到定义端口
Delay();
LCD_EN=1;
Delay();
LCD_EN=0;//这一步才开始写入到LCD
Delay();
}
2.CGRAM
1602能存储8个自定义字符,这8个自定义字符存储空间的首地址分别是:0X40,0X48,0X50,0X58,0X60,0X68,0X70,0X78。
以0x40来说,它的存储空间如图所示:(riting of LCD1602 and the Use of CGRAM)
- 2020-06-23 13:20:02下载
- 积分:1
-
inverted pendulum could turn back to say; to maintain a delicate balance. Fuzzy...
倒立摆可以倒来倒去,保持微妙的平衡。用模糊逻辑可以实现这一仿真,当然,还有不太成功的地方,大家可以自己修正!-inverted pendulum could turn back to say; to maintain a delicate balance. Fuzzy logic can be used to achieve this simulation, of course, the less successful, you can own that!
- 2022-10-28 02:10:06下载
- 积分:1
-
蝗虫搜索算法
说明: 蝗虫算法:蝗虫优化算法是模拟自然界蝗虫种群捕食行为而提出的一种群智能优化算法,主要利用了蝗虫间的社会作用力把空间分为吸引空间、舒适空间和排斥空间,根据不同蝗虫间距离大小的变化来改变空间范围从而找到最优位置。该算法具有结构简单、稳定性强、参数较少、收敛较快等特点。(The locust optimization algorithm is a swarm intelligence optimization algorithm proposed by simulating the predation behavior of locust populations in nature. It mainly uses the social force between locusts to divide the space into attractive space, comfortable space and repulsive space, according to the changes in the distance between different locusts. Change the spatial range to find the optimal position. The algorithm has the characteristics of simple structure, strong stability, fewer parameters and faster convergence.)
- 2020-07-26 16:31:25下载
- 积分:1
-
Geant4在window10平台上的中文安装说明
Geant4在window10平台上的中文安装说明(Geant4 Chinese installation instructions on the window10 platform)
- 2017-09-12 20:00:18下载
- 积分:1
-
1_same_sigma
Link budget for a transmitter and a receiver 1 and 10 km apart
- 2018-06-15 15:24:47下载
- 积分:1
-
mail-master
说明: Template mail, moderm, since, movil, Boostrap
- 2020-06-24 10:20:02下载
- 积分:1
-
ns2 模拟器为样本编码在无线
代码: NS2 模拟器是无线样本检验。工具命令语言 (TCL) 脚本使用固定数量的节点,可以创建无线网络模型。示例代码下面模型讨论了节点的无线网络。节点配置的通道、 网络接口、 电波传播模型、 介质访问控制 (MAC) 协议,adhoc 路由协议、 接口队列、 链路层、 地形对象和天线类型组件。执行文件 sample1.tcl 后可以在网络动画 (NAM) 窗口中查看节点的无线网络
- 2022-02-04 12:53:56下载
- 积分:1
-
demo_gesture_dot
说明: 用python实现3D空间散点的连线绘图(Realization of 3D Spatial Spot Connection Drawing with Python)
- 2020-06-19 21:20:02下载
- 积分:1
-
VC.NET实现窗体动画
VC.NET实现窗体动画,基于SonicUI引擎实现的UI动画,窗体可实现渐变渐入,内部元素可动画翻转,若要体现真正的动画效果,请下载源码后在VS下编译运行。
- 2022-01-25 14:21:20下载
- 积分:1
-
06
说明: C#4.0中文视频教程第六讲程序中的异常和错误处理(C#4.0 Chinese Video Course Lecture 6 Abnormal and Error Handling in Program)
- 2020-06-17 20:00:02下载
- 积分:1