Home > other >  Some problems about the LCD1602 in 51 single-chip microcomputer
Some problems about the LCD1602 in 51 single-chip microcomputer

Time:12-24

For (num=0; Num<11. Num++)
{write_data (table (num));
Delay (20); }
Write_com (0 x80 + 0 x53);
For (num=0; Num<13; Num++)
{write_data (table1 (num));
Delay (20); }
For (num=0; Num<16. Num++)
{write_com (0 x18);
Delay (20); }
This is part of the above 1602 display character code, want to ask about the middle order code 0 x80 + 0 x53 why is a newline, behind the 0 x18 is what meaning, beginners MCU have so many don't understand

CodePudding user response:

Write_com complete LCD1602 instructions
Write_com (0 x80 + 0 x53) is to set up DDRAM addresses, need DB7 constant is 1 (0 x80); Order code 0 x80 + 0 x53 not line, but the character data is written into the address 0 x53 RAM in
Write_com (0 x18) is to set the display instruction or the cursor movement direction, 0 x18 said display content left shift, the cursor does not move
Refer to https://www.cirmall.com/articles/31252
https://www.cnblogs.com/aslmer/p/5801363.html

CodePudding user response:

reference 1st floor yishumei response:
write_com complete LCD1602 instructions
Write_com (0 x80 + 0 x53) is to set up DDRAM addresses, need DB7 constant is 1 (0 x80); Order code 0 x80 + 0 x53 not line, but the character data is written into the address 0 x53 RAM in
Write_com (0 x18) is to set the display instruction or the cursor movement direction, 0 x18 said display content left shift, the cursor does not move
Refer to https://www.cirmall.com/articles/31252
https://www.cnblogs.com/aslmer/p/5801363.html

Oh oh oh thank you bosses

CodePudding user response:

Oh oh thank you big brother
  • Related