寄存器和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:
近年來(lái), LCD正在廣泛使用。 它已替換LED或其他多段LED,原因如下:
The declining price of LCDs.
液晶顯示器價(jià)格下降。
The ability to display numbers, characters and graphics. This is in contrast to LEDs which are limited to numbers and a few characters.
顯示數(shù)字,字符和圖形的能力。 這與限于數(shù)字和幾個(gè)字符的LED形成對(duì)比。
Ease of programming of character and graphics.
易于對(duì)字符和圖形進(jìn)行編程。
Image source: http://electronica4u.blogspot.com/2012/03/how-16x2-alphanumeric-lcd-works.html
圖片來(lái)源: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
圖片來(lái)源: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:
我們?cè)诒竟?jié)中討論的LCD有14個(gè)引腳。 每個(gè)引腳的功能如下:
.minHeight{min-height: 250px;}@media (min-width: 1025px){.minHeight{min-height: 90px;}} .minHeight{min-height: 250px;}@media (min-width: 1025px){.minHeight{min-height: 90px;}}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對(duì)比度,即調(diào)暗亮度或增加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內(nèi)部有兩個(gè)非常重要的寄存器。 RS引腳用于選擇這些寄存器。 如果RS = 0 ,則選擇指令命令代碼寄存器,從而允許用戶向LCD發(fā)送命令,例如清晰顯示,光標(biāo)在家等。 如果RS = 1 ,則選擇數(shù)據(jù)寄存器。 它允許用戶發(fā)送要在LCD上顯示的數(shù)據(jù)。
讀/寫(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讀取信息。 讀時(shí)R / W設(shè)置為0 ,寫時(shí)R / W設(shè)置為1 。
E(啟用) (E (Enable))
The enable pin is used by the LCD to latch information presented to its data pins.
LCD使用使能引腳來(lái)鎖存提供給其數(shù)據(jù)引腳的信息。
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.
當(dāng)數(shù)據(jù)提供給數(shù)據(jù)引腳時(shí),必須向該引腳施加一個(gè)高到低脈沖,以便LCD鎖存數(shù)據(jù)引腳上的數(shù)據(jù)。 此脈沖的寬度必須至少為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位數(shù)據(jù)引腳D0-D7用于將信息發(fā)送到LCD或讀取LCD內(nèi)部寄存器的內(nèi)容。 我們將ASCII碼發(fā)送到LCD,以在屏蔽RS = 1的同時(shí)向這些引腳顯示字母AZ,az和數(shù)字0-9的數(shù)字和字母。
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.
也可以將指令命令代碼發(fā)送到LCD,以清除顯示內(nèi)容或?qū)⒐鈽?biāo)強(qiáng)制到起始位置或使光標(biāo)閃爍。
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位數(shù)據(jù)接口更易于編程,但又使用了4個(gè)引腳。
翻譯自: https://www.includehelp.com/embedded-system/pin-diagram-and-registers-of-16x2-lcd.aspx
寄存器和pin
總結(jié)
以上是生活随笔為你收集整理的寄存器和pin_16x2 LCD的PIN图和寄存器的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 吴忠治疗卵巢功能低下最好的医院推荐
- 下一篇: c语言数组-1_C数组-智能问题与解答