寄存器和pin

In these years the LCD is finding widespread use. It has replaced the LEDs or other multi-segment LEDs.This is due to the following reasons:

近年来, LCD正在广泛使用。 它已替换LED或其他多段LED,原因如下:

  1. The declining price of LCDs.

    液晶显示器价格下降。

  2. The ability to display numbers, characters and graphics. This is in contrast to LEDs which are limited to numbers and a few characters.

    显示数字,字符和图形的能力。 这与限于数字和几个字符的LED形成对比。

  3. Ease of programming of character and graphics.

    易于对字符和图形进行编程。

16x2 LCD 1

Image source: http://electronica4u.blogspot.com/2012/03/how-16x2-alphanumeric-lcd-works.html

图片来源:http://electronica4u.blogspot.com/2012/03/how-16x2-alphanumeric-lcd-works.html

Image source: http://jinghanda.manufacturer.globalsources.com/si/6008801429542/pdtl/Alphanumeric-LCD/1035064002/Alphanumeric-LCD-Module.htm

图片来源:http://jinghanda.manufacturer.globalsources.com/si/6008801429542/pdtl/Alphanumeric-LCD/1035064002/Alphanumeric-LCD-Module.htm

LCD密码 (LCD PINs)

The LCD that we are discussing here in this section has 14 pins. The function of each Pin is given below:

我们在本节中讨论的LCD有14个引脚。 每个引脚的功能如下:

V cc ,V ss和V EE (Vcc, Vss and VEE)

Vcc and Vss provide +5V and ground to our LCD, respectively, VEE is used for controlling LCD contrast i.e. dimming the brightness or increasing the brightness of LCD.

V cc和V ss分别为我们的LCD提供+ 5V和接地,V EE用于控制LCD对比度,即调暗亮度或增加LCD的亮度。

RS(寄存器选择) (RS (Register Select))

There are two very important registers inside the LCD. The RS pin is used for the selection of these registers. If RS=0, the instruction command code register is selected, which allows the user to send commands for the LCD such as clear display, cursor at home, and so on. If RS=1, the data register is selected. It allows the user to send data that is to be displayed on the LCD.

LCD内部有两个非常重要的寄存器。 RS引脚用于选择这些寄存器。 如果RS = 0 ,则选择指令命令代码寄存器,从而允许用户向LCD发送命令,例如清晰显示,光标在家等。 如果RS = 1 ,则选择数据寄存器。 它允许用户发送要在LCD上显示的数据。

读/写(R / W) (R/W (Read/Write))

R/W inputs allows the user to write information to the LCD or read information from it. R/W is set 0 while reading and R/W is set 1 when writing.

R / W输入允许用户将信息写入LCD或从LCD读取信息。 读时R / W设置为0 ,写时R / W设置为1 。

E(启用) (E (Enable))

The enable pin is used by the LCD to latch information presented to its data pins.

LCD使用使能引脚来锁存提供给其数据引脚的信息。

When data is supplied to the data pins, a high-to-low pulse must be applied to this pin in order for the LCD to latch in the data present at the data pins. This pulse must be a minimum of 450ns wide.

当数据提供给数据引脚时,必须向该引脚施加一个高到低脉冲,以便LCD锁存数据引脚上的数据。 此脉冲的宽度必须至少为450ns

D0-D7 (D0-D7)

The 8-bit datapins, D0-D7 are used to send information to the LCD or read the contents of the LCD’s internal Registers. We send the ASCII codes is sent to the LCD to display numbers and letters for the letter A-Z, a-z, and numbers 0-9 to these pins while masking RS=1.

8位数据引脚D0-D7用于将信息发送到LCD或读取LCD内部寄存器的内容。 我们将ASCII码发送到LCD,以在屏蔽RS = 1的同时向这些引脚显示字母AZ,az和数字0-9的数字和字母。

There are also instruction command codes that can be sent to the LCD to clear the display or force the cursor to the home position or blink the cursor.

也可以将指令命令代码发送到LCD,以清除显示内容或将光标强制到起始位置或使光标闪烁。

The next table here incudes all the instruction command codes. To interface LCD to the AVR we can use 4-bit mode and 8-bit mode. The 8-bit data interfacing is easier to program but uses 4 more pins.

下表中包含所有指令命令代码。 要将LCD连接到AVR,我们可以使用4位模式和8位模式。 8位数据接口更易于编程,但又使用了4个引脚。

16x2 LCD PINs

翻译自: https://www.includehelp.com/embedded-system/pin-diagram-and-registers-of-16x2-lcd.aspx

寄存器和pin

寄存器和pin_16x2 LCD的PIN图和寄存器相关推荐

  1. 计算机组成原理寄存器的实验原理,计算机组成原理实验报告_寄存器的原理及操作课案.docx...

    <计算机组成原理实验报告_寄存器的原理及操作课案.docx>由会员分享,提供在线免费全文阅读可下载,此文档格式为docx,更多相关<计算机组成原理实验报告_寄存器的原理及操作课案.d ...

  2. ARM TTBR0TTBR1寄存器与ARM32页表复制。TTBR0TTBR1两寄存器在ARM,ARM32,ARM64linux中分页管理页表基地址的存放不同,CP15 CP2控制TTBR01附加协处理

    一,ARM TTBR0,TTBR1寄存器: 从ARMV6开始增加了TTBR1寄存器,但是在ARM32的时候,TTBR1寄存器未使用,原因如下: TTBR0和TTBR1寄存器只支持2G,1G,512M等 ...

  3. idr寄存器、_STM32中的IDR和ODR寄存器

    #define WARM_KEY_PIN     (GPIOC->IDR&(1<<5)) #define Speak(tmp)       GPIOA->ODR=tmp ...

  4. 关于STM32的BSRR(端口位设置/清除寄存器) 和 BRR(端口位清除寄存器) 的理解(初学32)

    关于STM32的BSRR(端口位设置/清除寄存器) 和 BRR(端口位清除寄存器) 的理解(初学32) BSRR 共32位,其对应位数低电平不影响ODR(端口输出数据寄存器),若低16位(0-15位) ...

  5. linux设备寄存器映射,linux LCD驱动 及 ARM 寄存器映射

    折腾了2天LCD驱动程序才发现系统其实已经移植了LCD驱动.设备名为/dev/fb0. 白折腾. 不过也有好处,搞了一遍基本了解LCD驱动的实现方法. 这里涉及到一个问题是如何把ARM寄存器地址空间映 ...

  6. 发那科机器人寄存器Ar_发那科机器人应用-数值寄存器 R[]

    数值寄存器R 数值寄存器指令 数值寄存器指令是进行寄存器的算术运算的指令.数值寄存器用来存储某一整数值或小数值得变量(有关数值寄存器, 见 7.3 节).标准情况下提供有 200 个数值寄存器. R[ ...

  7. 把变量赋值给寄存器_用C语言对DSP的寄存器进行操作?

    欢迎FPGA工程师加入官方微信技术群 在嵌入式软件的开发过程中,我们常用的语言主要是:汇编语言和C语言.相比较于汇编语言,C语言对我们来说,更贴近我们的一些语言习惯.在DSP的开发过程中,我们主要还是 ...

  8. 寄存器在哪里_二、汇编之寄存器

    我们想用汇编语言控制我们想控制的外设,就必须通过控制器发送控制命令,那这些控制命令存放在哪里,就放在CPU内部组成单元之一,寄存器里面. 1.CPU内部一般由4部分组成 (1)运算器:进行信息的处理 ...

  9. linux用户空间寄存器,在Linux用户空间中访问硬件寄存器

    我想写Linux用户空间中OMAP3530上的硬件寄存器.请找到下面的代码. Mmap返回错误: 内存映射失败.错误-1 mmap:权限被拒绝 #include #include #include # ...

最新文章

  1. SAP MM初阶事务代码MEK1维护PB00价格
  2. Django的model.py
  3. 配置Git绑定Git@OSC
  4. rabbitmq 消费端代码获取队列名称_C#调用RabbitMQ实现消息队列的示例代码
  5. 用户生命周期常用指标_生命周期管理工具如何使用指标
  6. linux下如何分区格式化硬盘,Linux之磁盘如何分区,格式化挂载
  7. 我:一个女孩从软件测试工程师到主管的成长
  8. Android修改读写速度,Android 通过adb测试机器读写速度(rk)
  9. Android smali语法
  10. 计算机cpu温度显示原理,鲁大师的测温功能是怎么做到的?测温原理介绍
  11. 设计之星 ai_漫画 |《钢铁之星》:AI肆虐的时代,夹杂人类阴谋
  12. 从0.1开始学Python——[24]
  13. 用计算机打字用英语怎么说,打字用英语怎么说
  14. 基于JSP+Mysql java教师教学质量测评系统
  15. 你的睡眠时间和睡眠质量达标了么
  16. 好文转载—程序员的禅修之路
  17. 闭环式数字孪生智慧交通管理系统平台应用及分析
  18. 单相半波可控整流电路仿真设计(任务书+lunwen+MATLAB仿真源文件)
  19. office2007下载地址
  20. Android 垃圾分类APP(五)垃圾分类新闻展示

热门文章

  1. 百年理工计算机专业课程,这两所国内的百年理工院校,实力强劲,都是国内顶尖实力...
  2. 计算机信息技术为教育带来的变化,信息技术对课堂教学带来的变化
  3. 宝塔php gd库,宝塔面板安装 EasyImag – 一款最简单图床的安装体验
  4. 【完成发布】Lazy Line Painter – 非常有趣的 jQuery 路径动画插件
  5. 前端路由实现原理(history)
  6. CSS3 Transform、Transition和Animation属性总结
  7. 前端基础-HTML的的标签详解
  8. 靠谱的div引入任何外链内容
  9. OpenDaylight开发hello-world项目之开发工具安装
  10. JDBC、Tomcat为什么要破坏双亲委派模型?