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.
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
- Popular Resources
- Popular amplifiers
- Single-chip microcomputer C language programming and simulation
- 100 Examples of Microcontroller C Language Applications (with CD-ROM, 3rd Edition) (Wang Huiliang, Wang Dongfeng, Dong Guanqiang)
- Principles and Applications of Single Chip Microcomputers and C51 Programming (3rd Edition) (Xie Weicheng, Yang Jiaguo)
- FOUNDRY PROCESS QUALIFICATION GUIDELINES – TECHNOLOGY QUALIFICATION VEHICLE TESTING JEP001-3B
- Learn ARM development(16)
- Learn ARM development(17)
- Learn ARM development(18)
- Embedded system debugging simulation tool
- A small question that has been bothering me recently has finally been solved~~
- Learn ARM development (1)
- Learn ARM development (2)
- Learn ARM development (4)
- Learn ARM development (6)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- LED chemical incompatibility test to see which chemicals LEDs can be used with
- Application of ARM9 hardware coprocessor on WinCE embedded motherboard
- What are the key points for selecting rotor flowmeter?
- LM317 high power charger circuit
- A brief analysis of Embest's application and development of embedded medical devices
- Single-phase RC protection circuit
- stm32 PVD programmable voltage monitor
- Introduction and measurement of edge trigger and level trigger of 51 single chip microcomputer
- Improved design of Linux system software shell protection technology
- What to do if the ABB robot protection device stops
- CGD and Qorvo to jointly revolutionize motor control solutions
- CGD and Qorvo to jointly revolutionize motor control solutions
- Keysight Technologies FieldFox handheld analyzer with VDI spread spectrum module to achieve millimeter wave analysis function
- Infineon's PASCO2V15 XENSIV PAS CO2 5V Sensor Now Available at Mouser for Accurate CO2 Level Measurement
- Advanced gameplay, Harting takes your PCB board connection to a new level!
- Advanced gameplay, Harting takes your PCB board connection to a new level!
- A new chapter in Great Wall Motors R&D: solid-state battery technology leads the future
- Naxin Micro provides full-scenario GaN driver IC solutions
- Interpreting Huawei’s new solid-state battery patent, will it challenge CATL in 2030?
- Are pure electric/plug-in hybrid vehicles going crazy? A Chinese company has launched the world's first -40℃ dischargeable hybrid battery that is not afraid of cold
- Selection and use of bypass capacitors
- CircuitPython Holiday Wreath
- Application and advantages of mica capacitors
- First Battlefield
- Infrared remote control LED dot matrix
- [Chuanglong TL570x-EVM] Install Prossessor SDK and create a development environment
- NRK3301 speech recognition chip schematic
- Microchip Live Today: How to Build a Car Charger
- TI application note: Wi-Fi built-in security
- EEWORLD University Hall----Live Replay: Energy Saving and Carbon Reduction-Omron Relay, Switch, and Connector Solutions for Photovoltaic Inverter/Energy Storage Systems