EasyManuals Logo

ST STM32F102 series User Manual

ST STM32F102 series
690 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #270 background imageLoading...
Page #270 background image
Advanced-control timers (TIM1&TIM8) RM0008
270/690
Bits 15:13 Reserved, always read as 0
Bits 12:8 DBL[4:0]: DMA Burst Length.
This 5-bit vector defines the length of DMA transfers (the timer recognizes a burst transfer when a read
or a write access is done to the TIMx_DMAR address), i.e. the number of transfers. Transfers can be in
half-words or in bytes (see example below).
00000: 1 transfer,
00001: 2 transfers,
00010: 3 transfers,
...
10001: 18 transfers.
Example: Let us consider the following transfer: DBL = 7 bytes & DBA = TIM2_CR1.
– If DBL = 7 bytes and DBA = TIM2_CR1 represents the address of the byte to be transferred, the
address of the transfer should be given by the following equation:
(TIMx_CR1 address) + DBA + (DMA index), where DMA index = DBL
In this example, 7 bytes are added to (TIMx_CR1 address) + DBA, which gives us the address from/to
which the data will be copied. In this case, the transfer is done to 7 registres starting from the following
address: (TIMx_CR1 address) + DBA
According to the configuration of the DMA Data Size, several cases may occur:
– If you configure the DMA Data Size in half-words, 16-bit data will be transferred to each of the 7
registers.
– If you configure the DMA Data Size in bytes, the data will aslo be transferred to 7 registers: the first
register will contain the first MSB byte, the second register, the first LSB byte and so on. So with the
transfer Timer, you also have to specify the size of data transferred by DMA.
Bits 7:5 Reserved, always read as 0
Bits 4:0 DBA[4:0]: DMA Base Address.
This 5-bits vector defines the base-address for DMA transfers (when read/write access are done
through the TIMx_DMAR address). DBA is defined as an offset starting from the address of the
TIMx_CR1 register.
Example:
00000: TIMx_CR1,
00001: TIMx_CR2,
00010: TIMx_SMCR,
...

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

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

ST STM32F102 series Specifications

General IconGeneral
BrandST
ModelSTM32F102 series
CategoryMicrocontrollers
LanguageEnglish

Related product manuals