/**
  @page TIM_ParallelSynchro TIM_ParallelSynchro example
  
  @verbatim
  *************** (C) COPYRIGHT 2020 - 2023 megawin Technology ***************
  * @file    TIM/TIM_ParallelSynchro/readme.txt 
  * @author  megawin Application Team
  * @version V0.1.10
  * @date    05-January-2023
  * @brief   Description of the TIM_ParallelSynchro example.
  ******************************************************************************
  * THE PRESENT FIRMWARE 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, MEGAWIN SHALL NOT BE HELD LIABLE FOR ANY DIRECT,
  * INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM
  * THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE
  * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
  ******************************************************************************
   @endverbatim

@par Example Description 

This example shows how to synchronize TIM peripherals in parallel mode.

In this example three timers are used:

Timers synchronisation in parallel mode:

1/TIM2 is configured as Master Timer:
 - PWM Mode is used
 - The TIM2 Update event is used as Trigger Output  

2/TIM3 and TIM4 are slaves for TIM2,
 - PWM Mode is used
 - The ITR1(TIM2) is used as input trigger for both slaves 
 - External Clock Mode 1 is used, so clock of slave counter are controlled 
   by the Master trigger output signal(TIM2 update event).

In this example, TIMXCLK is fixed at 72MHz, and the TIM2 counter clock is 72MHz. \n
The main timer TIM2 runs at TIM2 frequency:\n
TIM2 frequency = (TIM2 counter clock) / (TIM2 period + 1) = 281.25kHz, duty cycle = TIM2_CCR1 / (TIM2_ARR + 1) = 25%. \n
TIM3 frequency = (TIM2 frequency) / (TIM3 period + 1) = 70.3125kHz, duty cycle = TIM3_CCR1 / (TIM3_ARR + 1) = 25%. \n
TIM4 frequency = (TIM2 frequency) / (TIM4 period + 1) = 70.3125kHz, duty cycle = TIM4_CCR1 / (TIM4_ARR + 1) = 50%. \n


@par Directory contents 

  - TIM/TIM_ParallelSynchro/TIM_ParallelSynchro.uvprojx   MDK5 project file
  - TIM/TIM_ParallelSynchro/TIM_ParallelSynchro.uvoptx    MDK5 project options file
  - TIM/TIM_ParallelSynchro/JLinkSettings.ini             Jlink settings file
  - TIM/TIM_ParallelSynchro/main.c                        Main program


@par Hardware and Software environment 

  - Hardware environment
    - HSE crystal is 12MHz
    - Connect the following pins to an oscilloscope to monitor the different waveforms:
      - TIM2_CH1 (PA0)
      - TIM3_CH1 (PA6)
      - TIM4_CH1 (PB0)


@par How to use it ? 

In order to make the program work, you must do the following :
 - Open TIM_ParallelSynchro.uvprojx from this example folder by Keil MDK5
 - Rebuild all files and load your image into target memory
 - Run the example 
   
 * <h3><center>&copy; COPYRIGHT 2020 - 2023 megawin Technology</center></h3>
 */
