Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

AN4157 Datasheet(PDF) 8 Page - STMicroelectronics

Part # AN4157
Description  STM32F3DISCOVERY peripheral firmware examples
PDF  24 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN4157 Datasheet(HTML) 8 Page - STMicroelectronics

Back Button AN4157 Datasheet HTML 4Page - STMicroelectronics AN4157 Datasheet HTML 5Page - STMicroelectronics AN4157 Datasheet HTML 6Page - STMicroelectronics AN4157 Datasheet HTML 7Page - STMicroelectronics AN4157 Datasheet HTML 8Page - STMicroelectronics AN4157 Datasheet HTML 9Page - STMicroelectronics AN4157 Datasheet HTML 10Page - STMicroelectronics AN4157 Datasheet HTML 11Page - STMicroelectronics AN4157 Datasheet HTML 12Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 8 / 24 page
background image
Peripheral firmware examples description
AN4157
8/24
Doc ID 023629 Rev 1
Each time the push-button is pressed, two signals have been selected and monitored on the
DAC Channels:
●
Escalator waveform (Channel 1) and Sine waveForm (Channel 2).
●
Noise waveform (Channel 1) and Triangle waveform (Channel 2).
Note:
Use the push-button connected to PA0.
Connect PA4 (DAC Channel1) and PA5 (DAC Channel2) pins to an oscilloscope to monitor
the DAC out waves.
3.4
DMA Flash RAM example
3.4.1
Purpose
This example describes how to use a DMA channel to transfer a word data buffer from the
Flash memory to the embedded SRAM memory.
3.4.2
Description
DMA1 Channel1 is configured to transfer the content of a 32-word data buffer, stored in the
Flash memory, to the reception buffer declared in RAM.
●
The start of transfer is triggered by software. DMA1 Channel1 memory-to-memory
transfer is enabled as well as source and destination address incrementing.
●
The transfer is started by setting the Channel enable bit for DMA1 Channel1.
●
At the end of the transfer, a Transfer Complete interrupt is generated since it is enabled.
Once the interrupt is generated, the remaining data to be transferred is read, it must be
equal to 0. The Transfer Complete Interrupt pending bit is then cleared. A comparison
between the source and destination buffers is done to check that all data have been
correctly transferred.
3.5
DMA RAM DAC example
3.5.1
Purpose
This example provides a description of how to use a DMA channel to transfer data buffer
from RAM memory to DAC.
3.5.2
Description
DMA2 channel3 is configured to transfer continuously, word by word, a 32-word buffer to the
dual DAC register DAC_DHR12RD. Both DAC channels conversions are configured to be
triggered by TIM2 TRGO triggers and without noise/triangle wave generation. 12-bit right
data alignment is selected to be able to access DAC_DHR12RD register.
Note:
Connect the oscilloscope to PA04 and PA05.



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24


Datasheet Download

Go To PDF Page


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


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
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