LCD1602 temperature display program design process

Publisher:SparkStar22Latest update time:2022-05-26 Source: eefocusKeywords:LCD1602 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

In the display of temperature, LCD1602 is used, which can display two lines of characters, 16 characters per line, and the display capacity is 162. Through the parallel interface, it can be directly connected to the I/O port of the microcontroller.


The pins and functions of 1602 are as follows:


VSS: power ground


VDD: positive power supply, connected to +5V power supply


VL: LCD bias signal


RS: Data/instruction register selection terminal. When the level is high, the data register is selected; when the level is low, the instruction register is selected.


R/W: Read/write selection terminal. When the level is high, it is a read operation, and when the level is low, it is a write operation.


E(6): Enable signal, falling edge triggered


D0-D7: I/O port data transmission line


BLA: Backlight positive electrode


BLK: Backlight negative electrode


When the RS and R/W pin signals are 1 and the E pin changes from 1 to 0, the data is read; when the RS pin signal is 1, the R/W pin signal is 0, and the E pin changes from 1 to 0, the data is stored. Therefore, the reading and storage of data can be controlled by setting the high and low levels of RS and R/W.


Its specific command operations include clearing the screen, carriage return, input mode control, display switch control, position control, and display mode control, as shown in the table.

In this system, the LCD is initialized first, the AD converted value is sent to the LCD, the LCD reads the data, then writes the function, and finally displays the collected temperature value on the LCD1602 screen. The flow chart is shown in the figure.

Keywords:LCD1602 Reference address:LCD1602 temperature display program design process

Previous article:MCU Interrupts - Technical Summary
Next article:51 MCU Introduction - Serial Communication Experiment (Simulated Serial Communication/Multi-machine Communication Example)

Recommended ReadingLatest update time:2024-11-15 08:01

LCD1602 liquid crystal display with Chinese characters perpetual calendar program
; } /******************************************** Delay function with 1ms as the basic unit********************************************/ void delay(uint z) { uint x,y; for(x=z;x 0; x--) for ( y =  110 ;   y 0 ;   y--)     ; } /************************************************ Read    lcd1602 status    ***********
[Microcontroller]
LCD1602 liquid crystal display with Chinese characters perpetual calendar program
Based on ds18b20 temperature band upper limit program--LCD1602 liquid crystal display
This is displayed using 1602. The program is a modification of the previous experiments. When the temperature is =40 degrees, the fan rotates. This is a microcontroller system experiment for participating in an electronic competition. The program is in assembly language (ASM) with detailed comments, which is worth refe
[Microcontroller]
MCU write LCD1602 liquid crystal program source code
Download the schematic diagram of this program in pdf format:  http://www.51hei.com/f/ks51.pdf   /***********Write 1602 LCD**************/ /** *Function: Write 1602 LCD *Time: March 15, 2014 08:59:26 *Author: Han Zhuzi **/ #include reg52.h #include intrins.h typedef unsigned int uint; typedef unsigned cha
[Microcontroller]
msp430 MCU controls lcd1602 display C program
//1602 LCD display program written by MSP430 2011/8/26 //Hardware connection      //P4 数据口  P3.7---E P3.6---RW  P3.5----RS #include"msp430x14x.h" #define    uint          unsigned int #define rw(x) P3OUT=(P3OUT&(~BIT6))|(x?BIT6:0); unsigned char table0 ="hankouxueyuan";                                           
[Microcontroller]
LCD1602+MCU+Puzhong+Jiangsu University of Science and Technology Automation Association
1 Realization phenomenon LCD1602 Working Principle To display a character or string on LCD1602, you only need to write the character constant or string constant to be displayed in the C51 program. After compiling, the C51 program will automatically generate its standard ASCII code, and then send the
[Microcontroller]
LCD1602+MCU+Puzhong+Jiangsu University of Science and Technology Automation Association
DS18B20.h LCD1602.h header file download temperature and LCD debugging ok can be called directly
DS18B20.h header file content preview: /*DS18B20 driver*/ //Author: Zhan Lei                                                                                                                                    //Function: Drive the DS18B20 single bus thermometer chip and read the current temperature of the thermometer.
[Microcontroller]
51 single chip microcomputer LCD1602
      LCD1602 is a very simple human-computer interaction. With this guy, learning is no longer lonely, at least with this guy's company. The comments are very detailed, see the code.     Schematic diagram:             Code: #include reg52.h #define uint unsigned int #define uchar unsigned char //Port
[Microcontroller]
MCU high efficiency code reading 18B20 displayed on LCD1602
#include STC89C5xRC.H #include intrins.h sbit DATA_IO = P3^2; /* 软件延时函数,延时时间(t*10)us */ void DelayX10us(unsigned char t) {     do {         _nop_();         _nop_();         _nop_();         _nop_();         _nop_();         _nop_();         _nop_();         _nop_();     } while (--t); } bit GetACK() {         bit a
[Microcontroller]
MCU high efficiency code reading 18B20 displayed on LCD1602
Latest Microcontroller Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号