Symbols
loading...
Files
loading...

TIM_DMA sample

TIM_DMA is a sample project defining the following symbols:

Most used functions

Name
Location
Summary
This function handles NMI exception.
This function handles Hard Fault exception.
This function handles Debug Monitor exception.
This function handles Memory Manage exception.
This function handles Bus Fault exception.
This function handles Usage Fault exception.
This function handles SysTick Handler.
This function handles SVCall exception.
This function handles PendSVC exception.
Main program
System Clock Configuration The system Clock is configured as follow : System Clock source = PLL (HSE) SYSCLK(Hz) = 100000000 HCLK(Hz) = 100000000 AHB Prescaler = 1 APB1 Prescaler = 2 APB2 Prescaler = 1 HSE Frequency(Hz) = 8000000 PLL_M = 8 PLL_N = 400 PLL_P = 4 VDD(V) = 3.3 Main regulator output voltage = Scale1 mode Flash Latency(WS) = 3
This function handles TIM3 update interrupt.
This function handles DMA interrupt request.
Timer update interrupt processing
Set LED2 to Blinking mode for an infinite loop (toggle period based on value provided as input parameter).
This function enables the peripheral clock for the DMA, configures the DMA transfer, configures the NVIC for DMA and enables the DMA.
This function configures TIM3 channel 3 to generate a PWM edge aligned signal with a frequency equal to 17.57 KHz and a variable duty cycle that is changed by the DMA after a specific number of update DMA requests. The number of this repetitive requests is defined by the TIM3 repetition counter, each 4 update requests, the TIM3 Channel 3 Duty Cycle changes to the next new value defined by the aCCValue.
DMA transfer complete callback
DMA transfer error callback
Initialize LED2.

Other commonly used symbols

Name
Location
Summary
Miscellaneous Configuration *********************** Vector Table base offset field. This value must be a multiple of 0x200.
@file Examples_LL/TIM/TIM_DMA/Inc/main.h @author MCD Application Team Header for main.c module @attention Copyright (c) 2017 STMicroelectronics. All rights reserved. This software is licensed under terms that can be found in the LICENSE file in the root directory of this software component. If no LICENSE file comes with this software, it is provided AS-IS.
@file Examples_LL/TIM/TIM_DMA/Inc/stm32f4xx_it.h @author MCD Application Team This file contains the headers of the interrupt handlers. @attention Copyright (c) 2017 STMicroelectronics. All rights reserved. This software is licensed under terms that can be found in the LICENSE file in the root directory of this software component. If no LICENSE file comes with this software, it is provided AS-IS.
Toggle periods for various blinking modes

Dependencies

TIM_DMA depends on the following libraries: