/******************** (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 Example3.
********************************************************************************
* 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 shows how the DMA can be used to acquire data from a GPIO (parallel) 
port, synchronised with an (external) clock signal. (for the sake of this demo, the
clock is generated by software toggling GPIOA pin 6). 
The control of the DMA channel is done through the TIM3 channel 1 (Input Capture 
Mode) which is using the DMA channel 6. 
This is a non standard utilisation of the DMA as the peripheral controlling the DMA 
request (TIM3) is neither the source, nor the destination of the DMA data transfer.
Instead, the data source is a GPIO port (PD0-PD15) - programmed in GPIO input mode
and the data destination is a RAM buffer (accessed by the DMA Channel 6 in circular mode)

The TIMCLK frequency is set to 72 MHz, and used in Input Capture/DMA Mode. 

The system clock is set to 72MHz.


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


Hardware environment
====================
 - Connect a signal generator on PD.00 to PD.15.
 - In the example, the PA.06 (capture clock signal) is driven internally (by SW).
   By removing the SW control on this pin (leaving the GPIO in input floating mode),
   an external clock signal can be used. Alternativelly, PA.06 may be driven externally
   (leaving PA.06 in input floating mode - alternate function).   

  
How to use it
=============
  + RVMDK
    - Open the DMA_AN_Example3.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_Example3.rprj project
    - Rebuild all files: Project->Build Project
    - Load project image: Debug->start
    - Run program: Debug->Run(ctrl+F9)  
    
  + EWARM
    - Open the DMA_AN_Example3.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******
