English
Language : 

SH7205 Datasheet, PDF (1456/1904 Pages) Renesas Technology Corp – Renesas 32-Bit RISC Microcomputer SuperHTM RISC engine Family / SH7200 Series
Section 26 2D Graphics Engine (2DG)
(e) Summary of Logical Operations
Since the logical operation function is installed only on the input B path, it cannot be performed
on the input A path. Furthermore, chromakey processing and color gradation processing cannot
proceed simultaneously. As logical operation specifications, logical operation settings are enabled
on all operating modes that are set by the BTYPE bits of the GR_BLTMODE register.
Examples of the effects of using logical operations are given below:
Blit mode setting:
Blending coefficient selection:
Logical operation type selection:
Logical operation color setting:
Replacement color setting:
Fill mode (GR_BLTMODE register, BTYPE bits = 10)
Blending coefficient = (GR_BRD1CNT register, FBFA bits =
00)
Type of Logical operation (GR_BRD1CNT register, LGTYPE
bits = 01)
Setting for white as the color for logical operations in the
GR_LGDAT register
Setting for gray as the replacement color in the GR_BRDCOL
register
Example of Logical Operation
(In Fill mode)
In Fill operation, the register value and the result of logical
operation are blended according to the FBFA bits of the
GR_BRD1CNT register, which is set by the user.
The blending result is output to the output port C.
Register value
When RGB = (8, 8, 8)
(= gray) is set
in the GR_BRDCOL
register
An example of
the result of XOR
operation between
the input and
RGB = (F, F, F)
(= white) set in the
GR_LGDAT register
Input B buffer
Result of logical operation
Fa
Fb
Figure 26.30 Example of Logical Operations
Rev. 1.00 Mar. 25, 2008 Page 1424 of 1868
REJ09B0372-0100