NHD-0216HZ
Newhaven Display International, LLC 7/9
Shifting of right/left cursor position or display without writing or reading of display data.
This instruction is used to correct or search display data.
During 2-line mode display, cursor moves to the 2nd line after the 40th digit of the 1st line.
Note that display shift is performed simultaneously in all the lines.
When display data is shifted repeatedly, each line is shifted individually.
When display shift is performed, the contents of the address counter are not changed.
Shift patterns according to S/C and R/L bits
S/C
R/L
Operation
0
0
Shift cursor to the left, AC is decreased by 1
0
1
Shift cursor to the right, AC is increased by 1
1
0
Shift all the display to the left, cursor moves according to the display
1
1
Shift all the display to the right, cursor moves according to the display
6)
Function set
RS
R/W
DB7
DB6
DB5
DB4
DB3
DB2
DB1
DB0
0
0
0
0
1
DL
N
F
-
-
DL: Interface data length control bit
When DL=“High”, it means 8-bit bus mode with MPU.
When DL=“Low”, it means 4-bit bus mode with MPU. Hence, DL is a signal to select 8-bit or 4-bit bus
mode.
When 4-but bus mode, it needs to transfer 4-bit data twice.
N: Display line number control bit
When N=“Low”, 1-line display mode is set.
When N=“High”, 2-line display mode is set.
F: Display line number control bit
When F=“Low”, 5x8 dots format display mode is set.
When F=“High”, 5x11 dots format display mode.
7)
Set CGRAM address
RS
R/W
DB7
DB6
DB5
DB4
DB3
DB2
DB1
DB0
0
0
0
1
AC5
AC4
AC3
AC2
AC1
AC0
Set CGRAM address to AC.
The instruction makes CGRAM data available from MPU.
8)
Set DDRAM address
RS
R/W
DB7
DB6
DB5
DB4
DB3
DB2
DB1
DB0
0
0
1
AC6
AC5
AC4
AC3
AC2
AC1
AC0
Set DDRAM address to AC.
This instruction makes DDRAM data available form MPU.
When 1-line display mode (N=LOW), DDRAM address is form “00H” to “4FH”.In 2-line display mode
(N=High), DDRAM address in the 1st line form “00H” to “27H”, and DDRAM address in the 2nd line is