/** @page DMA_TIM1BurstMode Use DMA to transfer data in Burst mode from RAM buffer to TIM1

  @par Firmware description

  This application provides a short description of how to use the DMA peripheral in circular mode to transfer data in Burst mode fro RAM Buffer to TIM1.
TIM1 is configured in PWM output mode, DMA channel 2 is configured to transfer data from RAM memory to TIM1 registers (PSCRH, PSCRL, ARRH, ARRL, RCR, CCR1H, CCR1L). 
The goal of this transfer is to update simultaneously, on an external event provided from Key Button, the frequency  and duty cycle TIM1 channel1.
When starting the application, read the values of TIM1 registers : PSCRH, PSCRL, ARRH, ARRL, RCR, CCR1H, CCR1L.
After the 1st  key press, and any odd key press, TIM1 registers values will be as follow:
  - PSCRH = 0x77
  - PSCRL = 0x66
  - ARRH = 0x55
  - ARRL = 0x44
  - RCR = 0x33
  - CCR1H = 0x22
  - CCR1L = 0x11
  
  After the 2nd key press, and any even key press, TIM1 registers values will be as follow: 
  - PSCRH = 0xFF
  - PSCRL = 0xEE
  - ARRH = 0xDD
  - ARRL = 0xCC
  - RCR = 0xBB
  - CCR1H = 0xAA
  - CCR1L = 0x99
    
  @par Directory contents

  - include
    - stm8l15x_conf.h                Library Configuration file
    - stm8l15x_it.h                  Interrupt routines declaration
    - main.h                         Main program header file
 
  - source
    - stm8_interrupt_vector.c        Interrupt handlers
    - stm8l15x_it.c                  Interrupt routines source
    - main.c                         Main program  

  - project\\STVD\\Cosmic
    - project.stw                Contains the STVD workspace
    - project.stp                Contains the STVD project
    - stm8_interrupt_vector.c    Interrupt handlers
                 
  - project\\STVD\\Raisonance
    - project.stw                Contains the STVD workspace
    - project.stp                Contains the STVD project
         
  - RIDE
    - project.rapp               Contains the Ride workspace
    - project.rprj               Contains the Ride project


 @par Hardware and Software environment

  - This application runs on STM8l15x devices.
  
  - This application note has been tested with STMicroelectronics STM8L1526-EVAL evaluation
    board and ST Visual Develop (STVD) toolchain (Cosmic and Raisonance compilers).  

  - STM8L1526-EVAL Set-up
     - LCD glass daughter board (MB821)
  @note Make sure that the LCD glass daughter board (MB821) is mounted in IO position,
        for more details please refer to section "1.4 LCD glass Module" of the
        STM8L1526-EVAL User Manual.
        
     - KEY push-buttons.
  @note Make sure that jumper JP7 is in key position.

  @par How to use it with STVD ?
   
  - Open the STVD workspace
  - Rebuild all files: Project->Rebuild all
  - Load project image: Debug->Start/Stop Debug Session
  - Run program: Debug->Run (F5)

 @par How to use it with RIDE ?

  - Open the RIDE workspace
  - Rebuild all files: Project->Build project(Alt+F9)
  - Load project image: Debug->Start (Ctrl+D)
  - Run program: Debug->Run (Ctrl+F9)
..  
  */

/******************* (C) COPYRIGHT 2010 STMicroelectronics *****END OF FILE****/
