SINGLE shot data xfer setting CTRLA in DMA

Go To Last Post
2 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi,

I'm trying to get the DMA set up on an XMEGA-A and the data sheet says for setting up the bits in CTRLA:

 

Bit 2 – SINGLE: Single-Shot Data transfer
Setting this bit enables the single-shot mode. The channel will then do a burst transfer of BURSTLEN bytes on the
transfer trigger. A write to this bit will be ignored while the channel is enabled.

 

I assume from this that this bit once set, remains set until the channel is reset? As setting this bit is ignored if the channel is enabled,

and the channel needs to be enabled just before being triggered into use, I assume that just subsequently setting the ENABLE bit without

the SINGLE bit set, will enable the channel but keep the channel in SINGLE mode?

 

 

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

5.4 Transfer Triggers

. . .

By default, a trigger starts a block transfer operation. When the block transfer is complete, the channel is automatically
disabled. When enabled again, the channel will wait for the next block transfer trigger. It is possible to select the trigger to
start a burst transfer instead of a block transfer. This is called a single-shot transfer
, and for each trigger only one burst is
transferred. When repeat mode is enabled, the next block transfer does not require a transfer trigger. It will start as soon
as the previous block is done.