| Electronic Components Datasheet Search |
|
AN4062 Datasheet(PDF) 11 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN4062 Datasheet(HTML) 11 Page - STMicroelectronics |
|
11 / 17 page ![]() DocID022897 Rev 3 11/17 AN4062 Peripheral firmware examples description 3.12 DMA RAM DAC example Purpose This example provides a description of how to use a DMA channel to transfer data buffer from RAM memory to DAC. Description DMA1 channel3 is configured to transfer continuously, word by word, a Half-word buffer to the DAC register DAC_DHR12R. The DAC channel conversion is configured to be triggered by TIM2 TRGO triggers and without noise/triangle wave generation.12-bit right data alignment is selected since we choose to access the DAC_DHR12R register. Note: Connect PA.04 pin to an oscilloscope. 3.13 DAC signal generation example Purpose This example provides a short description of how to use the DAC peripheral to generate several signals using the DMA controller. Description When the user presses the push-button, DMA transfers the selected waveform to DAC. • For each press on the push-button, one signal has been selected and monitored on the DAC Channel 1 • Escalator waveform (Channel 1). • Sine waveForm (Channel 1). Note: Use the push-button connected to PA0. Note: Connect PA4 (DAC Channel1) pin to an oscilloscope to monitor the DAC out wave. 3.14 TIM complementary signal example Purpose This example shows how to configure the TIM1 peripheral to generate three complementary TIM1 signals, to insert a defined dead time value, to use the break feature and to lock the desired parameters. Description TIM1CLK is fixed to SystemCoreClock, the TIM1 Prescaler is equal to 0 so the TIM1 counter clock used is SystemCoreClock (48 MHz). The objective is to generate a PWM signal at 17.57 KHz: • TIM1_Period = (SystemCoreClock / 17570) - 1 |
|
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |