/**
  @page TIM_TIM1ComplementarySignals TIM TIM1 ComplementarySignals example
  
  @verbatim
  *************** (C) COPYRIGHT 2020 - 2023 megawin Technology ***************
  * @file    TIM/TIM_TIM1ComplementarySignals/readme.txt 
  * @author  megawin Application Team
  * @version V0.1.10
  * @date    05-January-2023
  * @brief   Description of the TIM_TIM1ComplementarySignals 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 configure the TIM1 peripheral to generate one 
complementary TIM1 signal, to insert a defined dead time value, to use the break 
feature and to lock the desired parameters.\n 
The system clock works at 72Mhz and is generated through PLL configuration.
The PLL clock source is an external 12Mhz crystal oscillator.
The frequency division ratio of APB1 is 1, and the frequency division ratio of APB2 is 1.\n
TIM1CLK is fixed to 72MHz，the TIM1 Prescaler is equal to 0，so the TIM1 counter
clock used is 72 MHz.\n
TIM1 frequency = TIM1 counter clock / (TIM1_Period + 1) = 1.09KHz。\n
TIM1 Channel1 duty cycle = TIM1_CCR1 / (TIM1_Period + 1) = 50%。\n
TIM1 Channel1N duty cycle = (TIM1_Period - TIM1_CCR1) / (TIM1_Period + 1) = 50%。\n
A dead time of 100 / 72Mhz is inserted between the different complementary signals, 
and the Lock level 1 is selected.
The break Polarity is used at High level.\n
The TIM1 waveform can be displayed using an oscilloscope.\n 

@par Directory contents 

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


@par Hardware and Software environment 

  - Hardware environment
    - HSE crystal is 12MHz
    -  Connect the TIM1 pins to an oscilloscope to monitor the different waveforms:
      - TIM1_CH1 pin  (PA.08)
      - TIM1_CH1N pin (PB.13)     
    - Connect TIM1 break pin TIM1_BKIN pin (PA.06) to the VCC to generate Break。
  

@par How to use it ? 

In order to make the program work, you must do the following :
 - Open TIM_TIM1ComplementarySignals.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>
 */
