27.8.16 Channel Control A

Name: CHCTRLA
Offset: 0x40 + n*0x10 [n=0..15]
Reset: 0x00000000
Property: PAC Write-Protection, Enable-Protected

Bit 3130292827262524 
   THRESHOLD[1:0]BURSTLEN[3:0] 
Access R/WR/WR/WR/WR/WR/W 
Reset 000000 
Bit 2322212019181716 
   TRIGACT[1:0]     
Access R/WR/W 
Reset 00 
Bit 15141312111098 
 TRIGSRC[7:0] 
Access R/WR/WR/WR/WR/WR/WR/WR/W 
Reset 00000000 
Bit 76543210 
  RUNSTDBY    ENABLESWRST 
Access R/WR/WR/W 
Reset 000 

Bits 29:28 – THRESHOLD[1:0] FIFO Threshold

These bits define the threshold from where the DMA starts to write to the destination. These bits have no effect in the case of single beat transfers.

These bits are not enable-protected.

ValueNameDescription
0x01BEATDestination write starts after each beat source addess read
0x12BEATSDestination write starts after 2-beats source address read
0x24BEATSDestination write starts after 4-beats source address read
0x38BEATSDestination write starts after 8-beats source address read

Bits 27:24 – BURSTLEN[3:0] Burst Length

These bits define the burst mode.

These bits are not enable-protected.

ValueNameDescription
0x0SINGLESingle-beat burst
0x12BEAT2-beats burst length
0x23BEAT3-beats burst length
0x34BEAT4-beats burst length
0x45BEAT5-beats burst length
0x56BEAT6-beats burst length
0x67BEAT7-beats burst length
0x78BEAT8-beats burst length
0x89BEAT9-beats burst length
0x910BEAT10-beats burst length
0xA11BEAT11-beats burst length
0xB12BEAT12-beats burst length
0xC13BEAT13-beats burst length
0xD14BEAT14-beats burst length
0xE15BEAT15-beats burst length
0xF16BEAT16-beats burst length

Bits 21:20 – TRIGACT[1:0] Trigger Action

These bits define the trigger action used for a transfer.

These bits are not enable-protected.

ValueNameDescription
0x0BLOCKOne trigger required for each block transfer
0x1Reserved
0x2BURSTOne trigger required for each burst transfer
0x3TRANSACTIONOne trigger required for each transaction

Bits 15:8 – TRIGSRC[7:0] Trigger Source

These bits define the peripheral that will be the source of a trigger.
Table 27-2. Triggers Map
TRIGSRC[7:0]Trigger
0DISABLE; Only software/event tri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MAC_ID_OVF
57TC7_DMAC_ID_MC_0
58TC7_DMAC_ID_MC_1
59TC8_DMAC_ID_OVF
60TC8_DMAC_ID_MC_0
61TC8_DMAC_ID_MC_1
62TC9_DMAC_ID_OVF
63TC9_DMAC_ID_MC_0
64TC9_DMAC_ID_MC_1
65QSPI_DMAC_ID_RX
66QSPI_DMAC_ID_TX
67CAN0_DMAC_ID_DBGMSG
68CAN1_DMAC_ID_DBGMSG

Bit 6 – RUNSTDBY Channel run in standby

This bit is used to keep the DMAC channel running in Idle and Standby Sleep mode.

This bit is not enable-protected.

ValueDescription
0The DMAC channel is halted in Idle and Standby Sleep mode.
1The DMAC channel continues to run in Idle and Standby Sleep mode.

Bit 1 – ENABLE Channel Enable

When writing a ‘0’ to this bit during an ongoing transfer, the bit must not be cleared until the internal data transfer buffer is empty and the DMA transfer is aborted. The internal data transfer buffer is empty when the ongoing burst transfer is completed.

Writing a ‘1’ to this bit enables the DMA channel.

This bit is not enable-protected.

ValueDescription
0DMA channel is disabled.
1DMA channel is enabled.

Bit 0 – SWRST Channel Software Reset

Writing a ‘0’ to this bit has no effect.

Writing a ‘1’ to this bit resets the channel registers to their initial state. The bit can be set when the channel is disabled (ENABLE=0). Writing a ‘1’ to this bit is ignored as long as ENABLE=1. This bit is automatically cleared when the reset is completed.

ValueDescription
0There is no reset operation ongoing.
1The reset operation is ongoing.