Ameba-D User Manual
User Manual All information provided in this document is subject to legal disclaimers. © REALTEK 2019. All rights reserved.
152
Size:
64 bits
Address offset:
MaskTfr – 0x310
MaskBlock – 0x318
MaskSrcTran – 0x320
MaskDstTran – 0x328
MaskErr – 0x330
Read/write access:
read/write
The contents of the Raw Status registers are masked with the contents of the Mask registers: MaskBlock, MaskDstTran, MaskErr, MaskSrcTran,
and MaskTfr. Each Interrupt Mask register has a bit allocated per channel; for example, MaskTfr[2] is the mask bit for the Channel 2 transfer
complete interrupt.
When the source peripheral of DMA channel
i
is memory, then the source transaction complete interrupt, MaskSrcTran[
i
], must be masked to
prevent an erroneous triggering of an interrupt on the int_combined signal. Similarly, when the destination peripheral of DMA channel
i
is
memory, then the destination transaction complete interrupt, MaskDstTran[
i
], must be masked to prevent an erroneous triggering of an
interrupt on the int_combined(_n) signal.
A channel INT_MASK bit will be written only if the corresponding mask write enable bit in the INT_MASK_WE field is asserted on the same AHB
write transfer. This allows software to set a mask bit without performing a read-modified write operation. For example, writing hex 01x1 to the
MaskTfr register writes a 1 into MaskTfr[0], while MaskTfr[7:1] remains unchanged. Writing hex 00
xx
leaves MaskTfr[7:0] unchanged.
Writing a 1 to any bit in these registers unmasks the corresponding interrupt, thus allowing the DMAC to set the appropriate bit in the Status
registers and int_* port signals.
Bit
Name
Access
Reset
Description
63:8+dnc
RSVD
N/A
0x0
Reserved
dnc = DMAH_NUM_CHANNELS
7+dnc:8
INT_MASK_WE
W
0x0
Interrupt Mask Write Enable
0 = write disabled
1 = write enabled
dnc = DMAH_NUM_CHANNELS
7:dnc
RSVD
N/A
0x0
Reserved
dnc = DMAH_NUM_CHANNELS
If dnc = 8, then this field is not present.
dnc-1:0
INT_MASK
R/W
0x0
Interrupt Mask
0 = masked
1 = unmasked dnc = DMAH_NUM_CHANNELS
9.3.2.3.4
ClearBlock, ClearDstTran, ClearErr, ClearSrcTran, ClearTfr
Name:
Interrupt Clear Registers
Size:
64 bits
Address offset:
ClearTfr – 0x338
ClearBlock – 0x340
ClearSrcTran – 0x348
ClearDstTran – 0x350
ClearErr – 0x358
Read/write access:
write
Each bit in the Raw Status and Status registers is cleared on the same cycle by writing a 1 to the corresponding location in the Clear registers:
ClearBlock, ClearDstTran, ClearErr, ClearSrcTran, and ClearTfr. Each Interrupt Clear register has a bit allocated per channel; for example,
ClearTfr[2] is the clear bit for the Channel 2 transfer complete interrupt. Writing a 0 has no effect. These registers are not readable.
Bit
Name
Access
Reset
Description
63:DMAH_NUM_CHANNELS
RSVD
N/A
0x0
Reserved
Realtek confidential files
The document authorized to
SZ99iot
2019-05-15 10:08:03