| Electronic Components Datasheet Search |
|
AN4062 Datasheet(PDF) 10 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN4062 Datasheet(HTML) 10 Page - STMicroelectronics |
|
10 / 17 page ![]() Peripheral firmware examples description AN4062 10/17 DocID022897 Rev 3 Description In this example: • ADC1 is configured to convert continuously the Voltage reference and the Temperature sensor. • Each time an end of conversion occurs, the DMA transfers, in circular mode, the converted data from ADC1 DR register to the RegularConvData_Tab[2] table. 3.10 ADC low power example Purpose This example provides a short description of how to use the ADC peripheral with Auto- delayed conversion mode and Auto-poweroff modes. Description The ADC is triggered by TIM3_TRGO which is connected to TIM3_Update Event. Each time the ADC is triggered, it converts the input voltage connected to PC.1 (which corresponds to ADC channel 11), and then the ADC enter the delay mode (no Overrun detect) until the ADC data register has been read by pressing the USER button. Note: Connect the external signal (ranges from 0 to 3.3V) to the ADC1 pin (PC.01) to be converted. Note: Connect an ammeter to JP2 to measure the IDD current. 3.11 DMA Flash RAM example Purpose This example describes how to use a DMA channel to transfer a word data buffer from a Flash memory to an embedded SRAM memory. Description DMA1 Channel1 is configured to transfer the contents 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. Source and destination address incrementing is also enabled. • 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, which 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. |
|
|
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 |