DocID018909 Rev 11
353/1731
RM0090
Chrom-Art Accelerator™ controller (DMA2D)
372
11.3.13 Watermark
A watermark can be programmed to generate an interrupt when the last pixel of a given line
has been written to the destination memory area.
The line number is defined in the LW[15:0] field of the DMA2D_LWR register.
When the last pixel of this line has been transferred, the TWIF flag of the DMA2D_ISR
register is raised and an interrupt is generated if the TWIE bit of the DMA2D_CR is set.
11.3.14 Error
management
Two kind of errors can be triggered:
•
AHB master port errors signalled by the TEIF flag of the DMA2D_ISR register.
•
Conflicts caused by CLUT access (CPU trying to access the CLUT while a CLUT
loading or a DMA2D transfer is ongoing) signalled by the CAEIF flag of the
DMA2D_ISR register.
Both flags are associated to their own interrupt enable flag in the DMA2D_CR register to
generate an interrupt if need be (TEIE and CAEIE).
11.3.15
AHB dead time
To limit the AHB bandwidth usage, a dead time between two consecutive AHB accesses
can be programmed.
This feature can be enabled by setting the EN bit in the DMA2D_AMTCR register.
The dead time value is stored in the DT[7:0] field of the DMA2D_AMTCR register. This
value represents the guaranteed minimum number of cycles between two consecutive
transactions on the AHB bus.
The update of the dead time value while the DMA2D is running will be taken into account for
the next AHB transfer.
11.4 DMA2D
interrupts
An interrupt can be generated on the following events:
•
Configuration error
•
CLUT transfer complete
•
CLUT access error
•
Transfer watermark reached
•
Transfer complete
•
Transfer error
Separate interrupt enable bits are available for flexibility.
Table 59. DMA2D interrupt requests
Interrupt event
Event flag
Enable control bit
Configuration error
CEIF
CEIE
CLUT transfer complete
CTCIF
CTCIE