S1D13506 Bitblt Synchronization - Epson S1D13506 Technical Manual

Color lcd/crt/tv controller
Table of Contents

Advertisement

Page 92
FIFO Not Empty Status
0
1
1
1

10.3 S1D13506 BitBLT Synchronization

S1D13506
X25B-G-003-04
BltMemoryOffset = ScreenStride ÷ 2
REG[10Dh] is set to 01h and REG[10Ch] is set to 40h.
8. Calculate the number of WORDS the blit engine expects to receive.
nWORDS
9. Program the BitBLT Destination/Source Linear Select bits for a rectangular blit (Bit-
BLT Destination Linear Select = 0, BitBLT Source Linear Select = 0).
Start the blit operation and wait for the blit engine to start. REG[100h] is set to 80h,
then wait until REG[100h] bit 7 returns a 1.
10. Prior to reading all nWORDS from the Blit FIFO, confirm the Blit FIFO is not empty
(REG[100h] bit 4 returns a 1). If the BitBLT FIFO Not Empty Status returns a 1 and
the BitBLT FIFO Half Full Status returns a 0 then you can read up to 8 WORDS. If
the BitBLT FIFO Full Status returns a 1, read up to 16 WORDS. If the BitBLT FIFO
Not Empty Status returns a 0 (the FIFO is empty), do not read from the BitBLT FIFO
until it returns a 1.
The following table summarizes how many words can be read from the Blit FIFO.
Table 10-7: Possible Blit FIFO Reads
BitBLT Control Register 0 (REG[100h])
FIFO Half Full Status
0
0
1
1
Note
The order of register initialization is irrelevant as long as all relevant registers are pro-
grammed before the BitBLT is initiated.
A BitBLT operation can only be started if the blit engine is not busy servicing another blit.
Before a new BitBLT operation is started, software must confirm the BitBLT Active Status
bit (REG[100h] bit 7) returns a 0. Software can either test this bit after each BitBLT
operation, or before each BitBLT operation.
Testing the BitBLT Status After
= 640 ÷ 2
= 320
= 140h
= ((BlitWidth + 1 + DestinationPhase) ÷ 2) × BlitHeight
= (100 + 1 + 0) ÷ 2 × 20
= 1000
= 3E8h
FIFO Full Status
0
0
0
1
Epson Research and Development
Vancouver Design Center
Word Reads
Available
0 (do not read)
up to 8
8
16
Programming Notes and Examples
Issue Date: 02/03/21

Advertisement

Table of Contents
loading

Table of Contents