Dma Stream X Number Of Data Register (Dma_Sxndtr) (X = 0 - ST STM32F205 series Reference Manual

Advanced arm-based 32-bit mcus
Hide thumbs Also See for STM32F205 series:
Table of Contents

Advertisement

DMA controller (DMA)
Bit 0 EN: Stream enable / flag stream ready when read low
Note: Before setting EN bit to '1' to start a new transfer, the event flags corresponding to the
9.5.6

DMA stream x number of data register (DMA_SxNDTR) (x = 0..7)

Address offset: 0x14 + 0x18 × stream number
Reset value: 0x0000 0000
31
30
29
15
14
13
rw
rw
rw
Bits 31:16 Reserved, must be kept at reset value.
Bits 15:0 NDT[15:0]: Number of data items to transfer
204/1378
This bit is set and cleared by software.
0: Stream disabled
1: Stream enabled
This bit may be cleared by hardware:
on a DMA end of transfer (stream ready to be configured)
if a transfer error occurs on the AHB master buses
when the FIFO threshold on memory AHB port is not compatible with the size of the
burst
When this bit is read as 0, the software is allowed to program the Configuration and FIFO
bits registers. It is forbidden to write these registers when the EN bit is read as 1.
stream in DMA_LISR or DMA_HISR register must be cleared.
28
27
26
25
12
11
10
9
rw
rw
rw
rw
Number of data items to be transferred (0 up to 65535). This register can be written only
when the stream is disabled. When the stream is enabled, this register is read-only,
indicating the remaining data items to be transmitted. This register decrements after each
DMA transfer.
Once the transfer has completed, this register can either stay at zero (when the stream is in
normal mode) or be reloaded automatically with the previously programmed value in the
following cases:
when the stream is configured in Circular mode.
when the stream is enabled again by setting EN bit to '1'
If the value of this register is zero, no transaction can be served even if the stream is
enabled.
24
23
22
21
Reserved
8
7
6
5
NDT[15:0]
rw
rw
rw
rw
RM0033 Rev 8
20
19
18
17
4
3
2
1
rw
rw
rw
rw
RM0033
16
0
rw

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the STM32F205 series and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Stm32f207 seriesStm32f215 seriesStm32f217 series

Table of Contents