寄存器和pin_16x2 LCD的PIN圖和寄存器

寄存器和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

16x2 LCD 2

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個引腳。 每個引腳的功能如下:

16x2 LCD PINs

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

本文來自互聯網用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務,不擁有所有權,不承擔相關法律責任。
如若轉載,請注明出處:http://www.pswp.cn/news/379043.shtml
繁體地址,請注明出處:http://hk.pswp.cn/news/379043.shtml
英文地址,請注明出處:http://en.pswp.cn/news/379043.shtml

如若內容造成侵權/違法違規/事實不符,請聯系多彩編程網進行投訴反饋email:809451989@qq.com,一經查實,立即刪除!

相關文章

【Java IO知識】讀取中文亂碼問題解決

讀取文件主要是要設置讀取的輸入流如InputStreamReader時要設置讀取的解碼格式,要和文件本身的編碼格式相同,這樣讀取出來的才不會亂碼。 InputStreamReader reader new InputStreamInputReader(input, "編碼格式"); ANSI是"gbk" 注:必須是在讀取的時候就…

ffplay分析(視頻解碼線程的操作)

《ffplay的數據結構分析》 《ffplay分析(從啟動到讀取線程的操作)》 《ffplay分析(音頻解碼線程的操作)》 《ffplay 分析(音頻從Frame(解碼后)隊列取數據到SDL輸出)》 《ffplay分析 (視頻從Fram…

【轉】.NET深入學習筆記(4):深拷貝與淺拷貝(Deep Copy and Shallow Copy)

今天繼續利用準備WSE安全開發文章的空閑時間,完善《.NET深入學習筆記》系列(基本都是.Net重要的知識點,我都做了詳細的總結,是什么、為什么、和怎么實現)。想必很多人也接觸過這兩個概念。做過C的人對深淺拷貝的概念一…

c語言數組-1_C數組-智能問題與解答

c語言數組-1C programming Arrays (One-D Array, Two-D Array) Aptitude Questions and Answers : In this section you will find C Aptitude Questions and Answers on One Dimensional (1D) and Two Dimensional (2D) array. C編程數組(一維數組,二維數組)能力問…

abap 添加alv上的工具欄的按鈕_Excel里的置頂功能——快速訪問工具欄

100萬職場人都在看后臺回復禮包領199元職場干貨大家好,我是小可~今天跟大家分享一個提高Excel操作效率的小技巧自定義你的快速訪問工具欄設置后的效果▼▼▼也就是把你最經常用到的兩三個功能放到快速訪問工具欄可以一眼就找到這些功能不需要靠快捷鍵或者功能選項卡…

用遞歸法求12+22+...+n2的值

思路分析: 談到遞歸,我個人會聯想到數學里面的通式。因為遞歸調用的函數的對應法則是相同的。例如這道題:f(x)=x。這個就是函數通式,只不過把每個求得的結果進行累加求和即可。用戶輸入5的時候,會出現f(5)=5,之后再進行x減一操作,執行f(4)=4,最后將每個進行累加即可。…

機器學習資料推薦

機器學習資料推薦 機器學習的資料 1:斯坦福大學視頻(作為入門教程,網易有中文字幕,而且講義也有翻譯版本)20集200左右講義 2:機器學習 Tom M.Mitchell(雖然出版10多年,但是通俗易懂的內容,讓讀者對機器學習…

ffplay源碼(版本:ffmpeg-4.2.1)

ffplay源碼(版本:ffmpeg-4.2.1) /** Copyright (c) 2003 Fabrice Bellard** This file is part of FFmpeg.** FFmpeg is free software; you can redistribute it and/or* modify it under the terms of the GNU Lesser General Public* Lic…

stringwriter_Java StringWriter toString()方法與示例

stringwriterStringWriter類的toString()方法 (StringWriter Class toString() method) toString() method is available in java.io package. toString()方法在java.io包中可用。 toString() method is used to represent the buffer current value in terms of string. toStr…

編寫一個函數,計算下式當n=10和n=100的值。

思路分析: 首先,我個人看法:當我拿到這道題的時候,我會把它當成一道數學題對待。分子是動的,恒為一,分母是進行依次增加的。且奇數項為正,偶數項為負。因為設計運算出現的是分數,故,設計選取存儲類型為double。 找出問題: ①正負號問題、②分母問題、③累計求和問題…

POJ 1001 大數的乘法

對這道題的理解 大數的乘法 關鍵是 實型的 那么首先就是數出來小數點有幾位這個相信很簡單 從后面往前數剛開始0 不算接著就是遇到小數點結束如果沒有小數點 那么置為0 接著就是輸出地時候首先算出小數點的位置然后輸出 你想怎么樣都行 從后往前數這個時候輸出 那么就是你也…

鈴木uy125摩托車機油_濟南鈴木安徽發布國四新車—6480元瑞夢125、9380元UY125

安徽合肥,這個具有兩千多年歷史的古城,以“三國故地、包拯家鄉”而聞名海內外,2019年4月22日濟南鈴木為這座城市帶來一份驚喜,今年正值國四執行,濟南鈴木旗下兩款國四新車瑞夢125與UY125正式在合肥與大家相見。濟南鈴木…

Andrej Karpathy最新大模型入門視頻講解

最近這兩天,特斯拉前AI總監 現在在OpenAI的安德烈卡帕西(Andrej Karpathy)的新教程火了 這次 他專門面向普通大眾做了一個關于大語言模型的科普視頻 時長1個小時,全部為“非技術介紹”, 涵蓋了模型推理、訓練、微…

Jquery 尋找父、子、兄弟節點

JQUERY的父,子,兄弟節點查找方法 jQuery.parent(expr) 找父親節點,可以傳入expr進行過濾,比如$("span").parent()或者$("span").parent(".class") jQuery.parents(expr),類似于jQuery.parents(exp…

編寫一個程序,計算用戶輸入的起始時間到終止時間之間相隔的天數。

思路分析: 閏年:閏年又分為普通閏年和世紀閏年 普通閏年:能被4整除且不能被100整除的為閏年(2004為閏年,1999不是閏年) 世紀閏年:能被400整除的是閏年(2020年是閏年,1900年不是閏年) 閏年共有366天&#x…

longvalue_Java Short類longValue()方法及示例

longvalue短類longValue()方法 (Short class longValue() method) longValue() method is available in java.lang package. longValue()方法在java.lang包中可用。 longValue() method is used to return the value denoted by this Short object converted to type long (by …

mvc的Controller返回值類型ActionResult詳解

一、簡介 ActionResult 操作方法通過執行工作并返回操作結果來響應用戶輸入。 操作結果表示框架將代表操作方法執行的命令。 ActionResult 類是操作結果的基類。 以下類型從 ActionResult 派生: ContentResult EmptyResult FileResult HttpUnauthorizedResult …

柵格布局一般怎么用_建筑混凝土色差大怎么辦?用這種方法處理,一般都看不出來...

由于模板銹蝕、脫模劑污染、原材料等原因,建筑混凝土成形后經常會遇到顏色不一致的現象,為此我們總結了混凝土面色差調整施工工藝,可供大家參考使用。一、混凝土面色差調整施工工藝流程及說明基層表面打磨→吸塵器吸塵→濕潤墻面→素水泥處理…

Java SimpleTimeZone equals()方法與示例

SimpleTimeZone類的equals()方法 (SimpleTimeZone Class equals() method) equals() method is available in java.util package. equals()方法在java.util包中可用。 equals() method is used to check whether this SimpleTimeZone and the given object (ob) are equals or …

FusionChart完全入門手冊4

想不想打造讓人震撼的圖表系統,想不想做出和別人不一樣的圖表,從本節起,我就帶領大家走入這片神奇的土地,讓大家去采摘屬于自己的創意之果,我們的目標是------個性無罪,個性萬歲! 問題三、如何做…