
VII LCD CONTROLLER BLOCK: LCD CONTROLLER
4. Write a
5.In the line
6.Write the display memory address at which pixel B exists to the screen 1 start address register (0x39FFEC, 0x39FFED, D0/0x39FFF0). Although halfword addresses are set in this register in landscape mode, addresses must be set in byte units in portrait mode. In the example discussed here, because pixel A is at 0x0, the offset from A to B is 240 - 1 = 239 (0xEF) bytes. For
7.If necessary, select the pixel clock frequency for use in portrait mode by using the PMODCLK[1:0] (D[1:0])/portrait mode register (0x39FFFB). This clock division circuit is provided specifically for portrait display on a small LCD panel. If the pixel clock frequency is changed here, the frame rate must be reviewed, including resetting of the
Table 2.14 Clock Settings for Default Portrait Mode
PMODCLK1 | PMODCLK0 | Pixel clock PCLK | Memory clock MCLK |
0 | 0 | CLK | CLK |
0 | 1 | CLK/2 | CLK/2 |
1 | 0 | CLK/4 | CLK/4 |
1 | 1 | CLK/8 | CLK/8 |
CLK denotes the LCDC clock selected using the LCLKSEL[2:0] (D[2:0])/FIFO control register (0x39FFF4).
8.Set default portrait mode.
PMODEN (D7)/portrait mode register (0x39FFFB) = "1" PMODSEL (D6)/portrait mode register (0x39FFFB) = "0"
Upon completion of the above setting, the display mode is switched to portrait mode.
In the example discussed here, the display memory contains blank space equivalent to 16 horizontal pixels. This portion can be used in the same way as a memory address offset, which is set in order to configure a virtual screen in landscape mode. Therefore, images can be panned within the scope of this number of pixels. The image displayed on the screen is moved to the left or right by incrementing or decrementing the screen 1 start address register in
Images can also be scrolled in the vertical direction by changing the screen 1 start address register.
Note: In default portrait mode, the screen cannot be scrolled in the vertical direction one line at a time. Always make sure the screen is scrolled two lines at a time. To this end, increment or decrement the screen 1 start address register by an amount equal to twice the number of bytes set in the line byte count register (0x39FFFC) in step 5.
EPSON | S1C33L03 FUNCTION PART |