English
Language : 

SH7205 Datasheet, PDF (1448/1904 Pages) Renesas Technology Corp – Renesas 32-Bit RISC Microcomputer SuperHTM RISC engine Family / SH7200 Series
Section 26 2D Graphics Engine (2DG)
(b) Summary of Fill Function
This section shows examples of using the fill function. Set the registers as follows:
• Set the GR_BRDCOL register to specify a fill color.
• Set the GR_SABSET register to specify the number of pixels to be transferred to the SB
buffer.
• To specify the number of pixels to be transferred to the DC buffer, set the GR_DCSET
register.
• Set the BTYPE bits of the GR_BLTMODE register to 10 in order to specify filling operation
for blitter operating mode.
• To specify the blitter function, set the SB_SETEN bit of the GR_BLTPLY register to 1, and
the SA_SETEN bit to 0.
With the above settings, the fill function operates as follows:
1. By the GR_BLTPLY register settings, image data equal to the pixel count set in the
GR_SABSET register is transferred to the SB buffer.
2. The pixel data transferred to the SB buffer is blended with the pixel data set in the
GR_BRDCOL register.
3. Image data equal to the number of pixels set in the GR_DCSET register is output to the DC
buffer.
The DMAC first transfers, memory-to-memory, pixels equal to the pixel count set in the register
from an SDRAM area specified by the CPU to the SB buffer. After that, the DMAC transfers,
memory-to-memory, the pixel data processed in the 2DG from the DC buffer to the SDRAM area
specified by the CPU (the original image area whose contents were transferred to the SB buffer).
As a result, the specified area on the SDRAM can be replaced with blended pixel data. In this
case, the 2DG performs input to the SB buffer and output from the DC buffer.
Rev. 1.00 Mar. 25, 2008 Page 1416 of 1868
REJ09B0372-0100