1, What is the working principle of lcd1602?
Line segment display
The dot-matrix LCD is composed of M&TImes;N display units. For example, the brightness of the first line of the screen is determined by the 16 bytes of O00H——OOFH in the RAM area. When (00OH) = FFH, a short bright line is displayed on the upper left corner of the screen with a length of 8 dots; When (3FFH)=FFH, a short bright line is displayed in the lower right corner of the screen; when (000H)=FFH, (001H) =00H, (002H) =O0H...(O0EH) =00H,(O0FH) =O0H, a dotted line consisting of 8 bright lines and 8 dark lines is displayed on the top of the screen. This is the basic principle of LCD display.
Character display
It is more complicated to display a character with LCD, because a character is composed of 6&TImes;8 or 8×8 dot matrix, it is necessary to find the 8 bytes of the display RAM area corresponding to a certain position on the display screen, and make each word The different bits of the section are "1", the others are "0", the ones that are "1" are lit, and the ones that are "O" are not lit. In this way, a certain character is formed. But for the controller with a character generator, the display of characters is relatively simple. You can make the controller work in text mode, and find out the corresponding display RAM according to the number of rows and columns displayed on the LCD and the number of columns in each row. Address, set up the cursor, and send the code corresponding to the character here.
Display of Chinese characters
The display of Chinese characters generally uses graphics. The dot matrix code of the Chinese characters to be displayed is extracted from the microcomputer in advance (usually using font extraction software). Each Chinese character occupies 32B, divided into two halves, each occupying 16B, and the left is 1, 3 ,....Customer side is 2, 4,.... According to the row and column number displayed on the LCD and the number of columns in each row, the address corresponding to the display RAM can be found, the cursor is set up, and the Chinese character to be displayed is sent. For the first byte, add 1 to the cursor position, send the second byte, line feed is aligned by column, and send the third byte... until 32B is displayed, a complete Chinese character can be obtained on the LCD.

2, lcd1602 working principle-the basic parameters of lcd1602
Display capacity: 16×2 characters
Chip working voltage: 4.5-5.5V
Working current: 2.0mA (5.0V)
The best working voltage of the module: 5.0v
Character size: 2.95×4.35 (WxH) mm

