
HD66841
16
Screen Size
Screen size can be programmed either by pins or internal registers.
In the pin programming method, either 640 dots or 720 dots (80 characters or 90 characters) can be selected
with the XDOT pin as the number of horizontal displayed characters, and either 200, 350, 400, 480, 512, or
540 lines can be selected with the YL2–YL0 pins as the number of vertical displayed lines. The number of
vertical displayed lines can be adjusted by from +0 to +15 lines with the ADJ and F3–F0 pins.
In the internal register programming method, any even number of characters from 4 to 506 (from 32 to
4048 dots) can be selected with the horizontal displayed characters register (R6, R7), and any even number
of lines from 4 to 1028 can be selected with the vertical displayed lines register (R2, R3 and the high-order
two bits of R4). However, note that an odd number of lines can also be selected if the screen configuration
is single-screen and Y-driver (scan drivers) are positioned on one side of the LCD screen.
The relationship between the LCD screen and the pins and internal registers controlling screen size is
shown in Figure 4.
LCD screen
Number of horizontal displayed characters
Pin: XDOT
Register: Horizontal displayed characters
register (R6, R7)
Number of vertical displayed
lines
Pins YL2–YL0, ADJ, F3–F0
Register: Vertical displayed
lines register
(R2, R3, high-order
2 bits of R4)
Figure 4 Relationship between LCD Screen and Pins and Internal Registers