Symbols
loading...
Files
loading...
SourceVuSTM32 Libraries and SamplesDAC_GenerateWaveform_TriggerHW

DAC_GenerateWaveform_TriggerHW sample

DAC_GenerateWaveform_TriggerHW 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) = 180000000 HCLK(Hz) = 180000000 AHB Prescaler = 1 APB1 Prescaler = 2 APB2 Prescaler = 1 HSE Frequency(Hz) = 8000000 PLL_M = 8 PLL_N = 360 PLL_P = 2 VDD(V) = 3.3 Main regulator output voltage = Scale1 mode Flash Latency(WS) = 5
This function handles DAC1 interrupt.
Set LED1 to Blinking mode for an infinite loop (toggle period based on value provided as input parameter).
Initialize LED1.
Function to manage IRQ Handler
Turn-on LED1.
Configures User push-button in EXTI Line Mode.
Turn-off LED1.
Wait for User push-button press to start transfer.
This function handles DMA1 interrupt request.
This function configures DMA for transfer of data from DAC
Configure DAC (DAC instance: DAC1, DAC instance channel: channel1 ) and GPIO used by DAC channel.
Perform DAC activation procedure to make it ready to generate a voltage (DAC instance: DAC1).
DAC underrun interruption callback
Configure timer as a time base (timer instance: TIM6) used to trig DAC conversion.
DMA transfer error callback

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/DAC/DAC_GenerateWaveform_TriggerHW/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/DAC/DAC_GenerateWaveform_TriggerHW/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.
Key push-button
Toggle periods for various blinking modes
Computation of a data from maximum value on digital scale 12 bits (corresponding to voltage Vdda) to a value on the new scale (corresponding to voltage defined by WAVEFORM_AMPLITUDE).

Dependencies

DAC_GenerateWaveform_TriggerHW depends on the following libraries: