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.
This function handles external line 15_10 interrupt request.
This function handles DAC interrupt request.
This function handles ADCx interrupt request.
Configure ADC (ADC instance: ADCx) and GPIO used by ADC channels.
ADC group regular overrun interruption callback
This function is executed in case of error occurrence.
ADC group regular end of unitary conversion interruption callback
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 = 4 APB2 Prescaler = 2 HSE Frequency(Hz) = 8000000 PLL_M = 8 PLL_N = 360 PLL_P = 2 PLL_Q = 7 VDD(V) = 3.3 Main regulator output voltage = Scale1 mode Flash Latency(WS) = 5
For this example, generate a waveform voltage on a spare DAC channel, so user has just to connect a wire between DAC channel (pin PA.04) and ADC channel (pin PA.04) to run this example. (this prevents the user from resorting to an external signal generator). This function configures the DAC and generates a constant voltage of Vdda/2.
For this example, generate a waveform voltage on a spare DAC channel, so user has just to connect a wire between DAC channel (pin PA.04) and ADC channel (pin PA.04) to run this example. (this prevents the user from resorting to an external signal generator). This function modifies the voltage level, to generate a waveform circular, shape of ramp: Voltage is increasing at each press on push button, from 0 to maximum range (Vdda) in 5 steps, then starting back from 0V. Voltage is updated incrementally at each call of this function.