/******************** (C) COPYRIGHT 2007 STMicroelectronics ********************
* File Name          : readme.txt
* Author             : MCD Application Team
* Version            : V1.0
* Date               : 10/08/2007
* Description        : Description of the AN2548 Application note's Example1.
********************************************************************************
* THE PRESENT SOFTWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
* WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME.
* AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT,
* INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE
* CONTENT OF SUCH SOFTWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING
* INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
*******************************************************************************/

Example description
===================
This example describes how  to use the ADC and DMA to transfer continuously 
converted data from ADC to a data buffer. The data is used for internal computation
(peak value is computed and data is normalized - a simple Automatic Gain Control 
algorithm) and then transfered through a high speed SPI, using another DMA channel.

The ADC is configured to converts continuously ADC1 channel14.
Each time an end of conversion occurs the DMA transfers, in circular mode, the
converted data from ADC1 DR register to the ADC_ConvertedValue data array.
The ADC1 clock is set to 14 MHz.

When half of the data buffer is available, we parses the array and normalises 
the values in the array (the peak value is set to 0xFFFF). Once the normalisation
is completed, the SPI is used to send the results externally. 


Directory contents
==================
stm32f10x_conf.h  Library Configuration file
stm32f10x_it.c    Interrupt handlers
stm32f10x_it.h    Interrupt handlers header file
main.c            Main program


Hardware environment
====================
 - Connect a variable power supply 0-3.3V to ADC1 Channel14 mapped on pin PC.04
   (potentiometer RV1 on STM3210B-EVAL board) 

         
How to use it
=============
  + RVMDK
    - Open the DMA_AN_Example1.uv2 project
    - Rebuild all files: Project->Rebuild all target files
    - Load project image: Debug->Start/Stop Debug Session
    - Run program: Debug->Run (F5)

  + RIDE
    - Open the DMA_AN_Example1.rprj project
    - Rebuild all files: Project->Build Project
    - Load project image: Debug->start
    - Run program: Debug->Run(ctrl+F9)  
    
  + EWARM
    - Open the DMA_AN_Example1.eww workspace.
    - Rebuild all files: Project->Rebuild all
    - Load project image: Project->Debug
    - Run program: Debug->Go(F5)

******************* (C) COPYRIGHT 2007 STMicroelectronics *****END OF FILE******
