Datasheet

SAM9263 [DATASHEET]
Atmel-6249N-ATARM-SAM9263-Datasheet_14-Mar-16
954
44.3.1.6 Block Transfer
A rectangle (or square) shape in pixel units can be transferred between areas in the virtual memory area of the
VRAM. Logical operations such as AND, OR, XOR, NOT, NOR, NAND and XNOR can be made between the
pixels in the source area and the destination area and stored in the destination area.
The following registers need to be programmed to perform a block transfer:
TDGC_BTSXR: size in pixel units on X-axis.
TDGC_BTSYR: size in pixel units on Y-axis.
TDGC_SBXR: starting position in pixel units on X-axis.
TDGC_TEXR: ending position in pixel units on X-axis.
TDGC_SBYR: starting position in pixel units on Y-axis.
TDGC_TEYR: ending position in pixel units on Y-axis.
TDGC_LOR: set LOC bitfield to select a logic operation MOV/AND/OR/XOR/NOT/NOR/NAND/XNOR.
TDGC_CSR: set CLR[3:0] bitfield to select a color.
TDGC_GOR: set GOC bitfield and OP bitfields to select the following values.
Set GOC to select block transfer.
Set OP[1:0] to select no update X & Y.
Set OP[2] to select absolute.
Set OP[3] to select no transformation.
BTB bit in TDGC_GSR signals the completion of the block transfer operation.
44.3.1.7 Absolute Block Transfer
A block of data is copied (or xor/or/and/xnor/nand/not/nor/xnor) from the start position loaded into start x and start
y registers to the target position loaded into target x and target y registers. The size of data is based on size x and
size y registers.
Figure 44-7. Absolute Block Transfer from (1,0) to (4,4) Size (4,2)
1,0
1,1 3,1
X
Y
DISPLAY
(0,0) (11,0)
(0,8) (11,8)
2,0 4,0
4,4
4,5 6,5
5,4 7,4