English
Language : 

PXD20RM Datasheet, PDF (551/1628 Pages) Freescale Semiconductor, Inc – PXD20 Microcontroller
• When the cursor width is an integer multiple of 32 bits, the pixels in each row roll from one word
in the RAM to the next one. The rightmost bit in the first word in the RAM is the top leftmost pixel
on the display. The leftmost bit in the word represents a pixel that is adjacent to the rightmost bit
in the next word (in the same row). The leftmost pixel on the next row is the rightmost bit in the
first word after n words that describe the first row.
• When the cursor is greater than 32 bits but not an integer multiple of 32, the pixels in each row roll
from one word into the next one such that the rightmost bit in the first word of the row is the
leftmost bit on the display. In the final word of the row there are unused bits.
The position of the cursor on the panel is defined by register 2 in the control descriptor for the cursor
(CTRLDESCCURSOR _2). The register contains two bit fields, POSY and POSX, which determine the
location of the upper left pixel of the cursor in the x and y axes. Both fields are expressed in terms of the
number of pixels in each axis. Placing the cursor beyond the panel area is not allowed.
The cursor can be configured to blink at a particular rate when it is enabled. The EN_BLINK,
HWC_BLINK_ON, and HWC_BLINK_OFF bit fields define the blink behavior. These are in register 4
in the control descriptor for the cursor (CTRLDESCCURSOR_4). EN_BLINK enables blinking. The
blinking time is based on the frame rate, and the on and off times are independently configurable.
HWC_BLINK_ON configures the number of frame refresh cycles for which the cursor is visible.
HWC_BLINK_OFF configures the number of frame refresh cycles for which the cursor is not visible. For
a frame refresh rate of 64 Hz, the HWC_BLINK_ON and HWC_BLINK_OFF counters give a range of
on/off times up to 4 seconds.
The cursor is enabled by setting the CUR_EN bit field in register 3 in the control descriptor for the cursor
(CTRLDESCCURSOR_3).
If the DCULite detects an invalid configuration in the cursor control descriptor, then the cursor
configuration is invalid and it cannot be made visible. In addition, the error flag HWC_ERR is set in the
layer parameter error register (PARR_ERR).
The cursor RAM may be written at any time when the TFT LCD panel is not being driven with data. This
means that the RAM can be modified when the DCULite is not enabled and during the vertical blanking
period.
12.4.6 CLUT RAM
The color look up table (CLUT) RAM is a dedicated memory in the DCULite used to store palettes for
indexed colors. Color information in this RAM is always stored as aligned 32-bit words where the
most-significant byte is always the alpha component, the next byte contains the red component, the next
the green component and the least significant byte the blue component (0xAARRGGBB).
The content of the RAM at a specific address is defined by the control descriptor of a layer. The LUOFFS
bit field in the layer control descriptor defines the starting address of the area, and the BPP bit field defines
the maximum size of the palette for that layer.
In Figure 12-81 three areas of the RAM are defined for different purposes. Area A is used by layer 1 as a
CLUT for its 4 bpp graphic. Area B is use by layer 5 as a store for its APAL8 graphic. Area C is used by
Freescale Semiconductor
PXD20 Microcontroller Reference Manual, Rev. 1
Preliminary—Subject to Change Without Notice
12-89