EDMA Interrupt Generation
6-33
EDMA Controller
The TCC field can have values between 0000b to 1111b. These are directly
mapped to the CIPR bits as shown in Table 6–9. For example, if TCC = 1100b,
CIPR[12] is set to 1 after the transfer is complete, and this generates a CPU
interrupt only if CIER[12] = 1. The user can program the TCC value to be any-
thing between 0000b to 1111b for any EDMA channel. In other words, there
need not necessarily be a direct relation between the channel number and the
TCC value. This allows multiple channels having the same TCC value to cause
the CPU to execute the same ISR (for different channels).
Table 6–9. Transfer Complete Code (TCC) to DMA Interrupt Mapping
TCC in Options
(TCINT=1)
CIPR[15:0] Bits
Set
0000b
CIPR[0]
0001b
CIPR[1]
0010b
CIPR[2]
0011b
CIPR[3]
0100b
CIPR[4]
0101b
CIPR[5]
0110b
CIPR[6]
0111b
CIPR[7]
1000b
CIPR[8]
1001b
CIPR[9]
1010b
CIPR[10]
1011b
CIPR[11]
1100b
CIPR[12]
1101b
CIPR[13]
1110b
CIPR[14]
1111b
CIPR[15]